","prevScroll":[0,19],"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":65395}],"doNotSerialize":["$$savedWorldAsURL","$$baseThemeStyleSheet"],"doNotCopyProperties":["$$savedWorldAsURL"],"_ClipMode":"visible","_Scale":0.6623944953559926,"publishPartDialog":{"__isSmartRef__":true,"id":65397},"#startLetters":"","loadingMorph":{"__isSmartRef__":true,"id":65797},"lastModified":{"__isSmartRef__":true,"id":65925},"savedWorldAsURL":{"__isSmartRef__":true,"id":65926},"lastEvt":{"__isSmartRef__":true,"id":65927},"_Scroll":[0,19],"__LivelyClassName__":"lively.morphic.World","__SourceModuleName__":"Global.lively.morphic.Core","eventStartPos":"lively.pt(1210.8,1210.8)","_Position":"lively.pt(-2.0,-2.0)","pastePositionInWorld":"lively.pt(1032.0,728.0)","scrollOffset":"lively.pt(0.0,19.0)"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2},{"__isSmartRef__":true,"id":32},{"__isSmartRef__":true,"id":57},{"__isSmartRef__":true,"id":82},{"__isSmartRef__":true,"id":107}],"scripts":[{"__isSmartRef__":true,"id":132}],"id":"E853632D-5F2E-46A4-B344-8CE7410CB67B","shape":{"__isSmartRef__":true,"id":133},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"SlideSnapper","partsBinMetaInfo":{"__isSmartRef__":true,"id":134},"eventHandler":{"__isSmartRef__":true,"id":142},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","566D2A29-27F9-4832-9122-93B03B2300F2"],"partTests":{"__isSmartRef__":true,"id":143},"owner":{"__isSmartRef__":true,"id":0},"isSnapping":true,"isBeingDragged":false,"prevScroll":[0,0],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","snap","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":148},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1650.5,716.1)","snap":"lively.pt(350.0,300.0)","distanceToDragEvent":"lively.pt(217.0,-10.9)"},"2":{"submorphs":[{"__isSmartRef__":true,"id":3}],"scripts":[],"id":"9A2A972E-6417-46D9-99E3-CCCDD68ED6AE","shape":{"__isSmartRef__":true,"id":8},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14},"lighterFill":{"__isSmartRef__":true,"id":19},"label":{"__isSmartRef__":true,"id":3},"name":"ScriptableButton4","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":24},"attributeConnections":[{"__isSmartRef__":true,"id":25}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":26},"derivationIds":[2588,"2B2B4635-C2EC-4DA9-8431-5EE9470FAEC9"],"owner":{"__isSmartRef__":true,"id":1},"_ClipMode":"visible","isPressed":false,"prevScroll":[0,0],"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.998001,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(100.8,40.9)","distanceToDragEvent":"lively.pt(73.0,-16.0)"},"3":{"submorphs":[],"scripts":[],"id":"C92DBFFE-26C5-4902-B1E2-1EAEAF149BC4","shape":{"__isSmartRef__":true,"id":4},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":2},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":5}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":7},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"69060D02-25C5-4714-8EF8-64855140F467"],"_MinTextWidth":101,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"4":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"5":{"style":{"__isSmartRef__":true,"id":6},"chunkOwner":{"__isSmartRef__":true,"id":3},"_id":"_6903","storedString":"stop snapping","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7":{"morph":{"__isSmartRef__":true,"id":3},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":9},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"9":{"stops":[{"__isSmartRef__":true,"id":10},{"__isSmartRef__":true,"id":11},{"__isSmartRef__":true,"id":12},{"__isSmartRef__":true,"id":13}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"10":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"11":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"12":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"13":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"14":{"stops":[{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":16},{"__isSmartRef__":true,"id":17},{"__isSmartRef__":true,"id":18}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"15":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"16":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"19":{"stops":[{"__isSmartRef__":true,"id":20},{"__isSmartRef__":true,"id":21},{"__isSmartRef__":true,"id":22},{"__isSmartRef__":true,"id":23}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"21":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"22":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"23":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"24":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25":{"sourceObj":{"__isSmartRef__":true,"id":2},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"26":{"morph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27":{"onFire":{"__isSmartRef__":true,"id":28}},"28":{"varMapping":{"__isSmartRef__":true,"id":29},"source":"function onFire() {\n\tif (!this.owner.isSnapping) {\n this.setLabel(\"stop snapping\");\n this.owner.startSnapping()\n } else {\n this.setLabel(\"start snapping\");\n this.owner.stopSnapping()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29":{"this":{"__isSmartRef__":true,"id":2}},"30":{"timestamp":{"__isSmartRef__":true,"id":31},"tags":[]},"31":{"isSerializedDate":true,"string":"Sun Mar 04 2012 22:01:28 GMT+0100 (Central Europe Standard Time)"},"32":{"submorphs":[{"__isSmartRef__":true,"id":33}],"scripts":[],"id":"30712C60-4C3E-4C26-B30A-C6B3B0327456","shape":{"__isSmartRef__":true,"id":38},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":39},"lighterFill":{"__isSmartRef__":true,"id":44},"label":{"__isSmartRef__":true,"id":33},"name":"ScriptableButton2","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":49},"attributeConnections":[{"__isSmartRef__":true,"id":50}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":51},"derivationIds":[2588,"6230EF9D-0F8B-4904-86B1-C078ED4915AB","3CC742CD-EF78-4585-886F-3971F33E1362"],"owner":{"__isSmartRef__":true,"id":1},"_ClipMode":"visible","isPressed":false,"prevScroll":[0,0],"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.998001,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":52},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(101.8,74.9)","distanceToDragEvent":"lively.pt(69.0,-12.0)"},"33":{"submorphs":[],"scripts":[],"id":"83CB0BB1-F490-4F98-85A7-AFE76E06D9B5","shape":{"__isSmartRef__":true,"id":34},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":32},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":35}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":37},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"C25A2E83-EAC6-450F-BC73-5874CCA90545","AC94E24A-62BC-497B-93E1-9C92C793B1E3"],"_MinTextWidth":101,"_MinTextHeight":null,"_WordBreak":"break-all","_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"34":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"35":{"style":{"__isSmartRef__":true,"id":36},"chunkOwner":{"__isSmartRef__":true,"id":33},"_id":"_766","storedString":"down","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37":{"morph":{"__isSmartRef__":true,"id":33},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":39},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"39":{"stops":[{"__isSmartRef__":true,"id":40},{"__isSmartRef__":true,"id":41},{"__isSmartRef__":true,"id":42},{"__isSmartRef__":true,"id":43}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"40":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"41":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"44":{"stops":[{"__isSmartRef__":true,"id":45},{"__isSmartRef__":true,"id":46},{"__isSmartRef__":true,"id":47},{"__isSmartRef__":true,"id":48}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"45":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"46":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"47":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"48":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"49":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"50":{"sourceObj":{"__isSmartRef__":true,"id":32},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":32},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"51":{"morph":{"__isSmartRef__":true,"id":32},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"52":{"onFire":{"__isSmartRef__":true,"id":53}},"53":{"varMapping":{"__isSmartRef__":true,"id":54},"source":"function onFire() {\n var items = $world.submorphs.select(function(ea) { return ea.isSlideContainer} )\n var offset = pt(0,this.owner.snap.y)\n\n items.forEach(function(ea) {\n ea.moveBy(offset)\n })\n}","funcProperties":{"__isSmartRef__":true,"id":55},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"54":{"this":{"__isSmartRef__":true,"id":32}},"55":{"timestamp":{"__isSmartRef__":true,"id":56},"tags":[]},"56":{"isSerializedDate":true,"string":"Sun Mar 04 2012 22:01:59 GMT+0100 (Central Europe Standard Time)"},"57":{"submorphs":[{"__isSmartRef__":true,"id":58}],"scripts":[],"id":"6E689C7C-6A13-4602-9780-54462474A601","shape":{"__isSmartRef__":true,"id":63},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":64},"lighterFill":{"__isSmartRef__":true,"id":69},"label":{"__isSmartRef__":true,"id":58},"name":"ScriptableButton3","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":74},"attributeConnections":[{"__isSmartRef__":true,"id":75}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":76},"derivationIds":[2588,"6230EF9D-0F8B-4904-86B1-C078ED4915AB","3CC742CD-EF78-4585-886F-3971F33E1362","E1BB5307-D846-4086-B411-A63263877EC3"],"owner":{"__isSmartRef__":true,"id":1},"_ClipMode":"visible","isPressed":false,"prevScroll":[0,0],"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.998001,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":77},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(205.6,41.9)","distanceToDragEvent":"lively.pt(68.0,-17.0)"},"58":{"submorphs":[],"scripts":[],"id":"70888607-2FD2-4FE9-BB8E-2BAFDFEF9C29","shape":{"__isSmartRef__":true,"id":59},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":57},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":60}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":62},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"C25A2E83-EAC6-450F-BC73-5874CCA90545","AC94E24A-62BC-497B-93E1-9C92C793B1E3","4BF58851-01D8-4074-863E-1E643F84B123"],"_MinTextWidth":101,"_MinTextHeight":null,"_WordBreak":"break-all","_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"59":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"60":{"style":{"__isSmartRef__":true,"id":61},"chunkOwner":{"__isSmartRef__":true,"id":58},"_id":"_768","storedString":"right","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"61":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"62":{"morph":{"__isSmartRef__":true,"id":58},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"63":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":64},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"64":{"stops":[{"__isSmartRef__":true,"id":65},{"__isSmartRef__":true,"id":66},{"__isSmartRef__":true,"id":67},{"__isSmartRef__":true,"id":68}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"65":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"66":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"67":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"68":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"69":{"stops":[{"__isSmartRef__":true,"id":70},{"__isSmartRef__":true,"id":71},{"__isSmartRef__":true,"id":72},{"__isSmartRef__":true,"id":73}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"70":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"71":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"72":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"73":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"74":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"75":{"sourceObj":{"__isSmartRef__":true,"id":57},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":57},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"76":{"morph":{"__isSmartRef__":true,"id":57},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"77":{"onFire":{"__isSmartRef__":true,"id":78}},"78":{"varMapping":{"__isSmartRef__":true,"id":79},"source":"function onFire() {\n var items = $world.submorphs.select(function(ea) { return ea.isSlideContainer} )\n var offset = pt(this.owner.snap.x,0)\n\n items.forEach(function(ea) {\n ea.moveBy(offset)\n })\n}","funcProperties":{"__isSmartRef__":true,"id":80},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"79":{"this":{"__isSmartRef__":true,"id":57}},"80":{"timestamp":{"__isSmartRef__":true,"id":81},"tags":[]},"81":{"isSerializedDate":true,"string":"Sun Mar 04 2012 22:04:10 GMT+0100 (Central Europe Standard Time)"},"82":{"submorphs":[{"__isSmartRef__":true,"id":83}],"scripts":[],"id":"50123E8D-58BB-450C-8802-5ACCEA150E44","shape":{"__isSmartRef__":true,"id":88},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":89},"lighterFill":{"__isSmartRef__":true,"id":94},"label":{"__isSmartRef__":true,"id":83},"name":"ScriptableButton5","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":99},"attributeConnections":[{"__isSmartRef__":true,"id":100}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":101},"derivationIds":[2588,"6230EF9D-0F8B-4904-86B1-C078ED4915AB","3CC742CD-EF78-4585-886F-3971F33E1362","B0D14C00-5AFD-4708-B7AD-24BB1DF2EA85"],"owner":{"__isSmartRef__":true,"id":1},"_ClipMode":"visible","isPressed":false,"prevScroll":[0,0],"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.996005996001,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":102},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(98.8,6.0)","distanceToDragEvent":"lively.pt(69.0,-12.0)"},"83":{"submorphs":[],"scripts":[],"id":"57751B97-6F77-4461-A661-E0824E4A1FF3","shape":{"__isSmartRef__":true,"id":84},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":82},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":85}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":87},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"C25A2E83-EAC6-450F-BC73-5874CCA90545","AC94E24A-62BC-497B-93E1-9C92C793B1E3","EE63FC95-4E6A-463D-8D5B-50742BE35B7F"],"_MinTextWidth":101,"_MinTextHeight":null,"_WordBreak":"break-all","_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"84":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"85":{"style":{"__isSmartRef__":true,"id":86},"chunkOwner":{"__isSmartRef__":true,"id":83},"_id":"_770","storedString":"up","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"86":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"87":{"morph":{"__isSmartRef__":true,"id":83},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"88":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":89},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"89":{"stops":[{"__isSmartRef__":true,"id":90},{"__isSmartRef__":true,"id":91},{"__isSmartRef__":true,"id":92},{"__isSmartRef__":true,"id":93}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"90":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"91":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"92":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"93":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"94":{"stops":[{"__isSmartRef__":true,"id":95},{"__isSmartRef__":true,"id":96},{"__isSmartRef__":true,"id":97},{"__isSmartRef__":true,"id":98}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"95":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"96":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"97":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"98":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"99":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"100":{"sourceObj":{"__isSmartRef__":true,"id":82},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":82},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"101":{"morph":{"__isSmartRef__":true,"id":82},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"102":{"onFire":{"__isSmartRef__":true,"id":103}},"103":{"varMapping":{"__isSmartRef__":true,"id":104},"source":"function onFire() {\n var items = $world.submorphs.select(function(ea) { return ea.isSlideContainer} )\n var offset = pt(0,-this.owner.snap.y)\n\n items.forEach(function(ea) {\n ea.moveBy(offset)\n })\n}","funcProperties":{"__isSmartRef__":true,"id":105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"104":{"this":{"__isSmartRef__":true,"id":82}},"105":{"timestamp":{"__isSmartRef__":true,"id":106},"tags":[]},"106":{"isSerializedDate":true,"string":"Sun Mar 04 2012 22:03:53 GMT+0100 (Central Europe Standard Time)"},"107":{"submorphs":[{"__isSmartRef__":true,"id":108}],"scripts":[],"id":"A08D288E-451B-4C84-9670-364B417C4030","shape":{"__isSmartRef__":true,"id":113},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":114},"lighterFill":{"__isSmartRef__":true,"id":119},"label":{"__isSmartRef__":true,"id":108},"name":"ScriptableButton6","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":124},"attributeConnections":[{"__isSmartRef__":true,"id":125}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":126},"derivationIds":[2588,"6230EF9D-0F8B-4904-86B1-C078ED4915AB","3CC742CD-EF78-4585-886F-3971F33E1362","E1BB5307-D846-4086-B411-A63263877EC3","64E5BDC2-3725-4D7A-A2E0-839D2D48FB68"],"owner":{"__isSmartRef__":true,"id":1},"_ClipMode":"visible","isPressed":false,"prevScroll":[0,0],"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.996005996001,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":127},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,40.9)","distanceToDragEvent":"lively.pt(64.0,-16.0)"},"108":{"submorphs":[],"scripts":[],"id":"DE2C3483-23AE-444E-8283-4E1B1FAFBBC5","shape":{"__isSmartRef__":true,"id":109},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":107},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":110}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":112},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"C25A2E83-EAC6-450F-BC73-5874CCA90545","AC94E24A-62BC-497B-93E1-9C92C793B1E3","4BF58851-01D8-4074-863E-1E643F84B123","E70F6974-95E3-4428-8D3C-0DA060B18407"],"_MinTextWidth":101,"_MinTextHeight":null,"_WordBreak":"break-all","_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"109":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"110":{"style":{"__isSmartRef__":true,"id":111},"chunkOwner":{"__isSmartRef__":true,"id":108},"_id":"_772","storedString":"left","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"111":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"112":{"morph":{"__isSmartRef__":true,"id":108},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"113":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":114},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"114":{"stops":[{"__isSmartRef__":true,"id":115},{"__isSmartRef__":true,"id":116},{"__isSmartRef__":true,"id":117},{"__isSmartRef__":true,"id":118}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"115":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"116":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"117":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"118":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"119":{"stops":[{"__isSmartRef__":true,"id":120},{"__isSmartRef__":true,"id":121},{"__isSmartRef__":true,"id":122},{"__isSmartRef__":true,"id":123}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"120":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"121":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"122":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"123":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"124":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"125":{"sourceObj":{"__isSmartRef__":true,"id":107},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":107},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"126":{"morph":{"__isSmartRef__":true,"id":107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"127":{"onFire":{"__isSmartRef__":true,"id":128}},"128":{"varMapping":{"__isSmartRef__":true,"id":129},"source":"function onFire() {\n var items = $world.submorphs.select(function(ea) { return ea.isSlideContainer} )\n var offset = pt(-this.owner.snap.x,0)\n\n items.forEach(function(ea) {\n ea.moveBy(offset)\n })\n}","funcProperties":{"__isSmartRef__":true,"id":130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"129":{"this":{"__isSmartRef__":true,"id":107}},"130":{"timestamp":{"__isSmartRef__":true,"id":131},"tags":[]},"131":{"isSerializedDate":true,"string":"Sun Mar 04 2012 22:04:19 GMT+0100 (Central Europe Standard Time)"},"132":{"target":{"__isSmartRef__":true,"id":1},"selector":"doSnap","args":[],"stopped":false,"tickTime":1000,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"133":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":10.73,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(314.6,112.0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"134":{"partsSpaceName":"PartsBin/Jens","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":"SlideSnapper","changes":[{"__isSmartRef__":true,"id":135},{"__isSmartRef__":true,"id":137},{"__isSmartRef__":true,"id":139}],"lastModifiedDate":{"__isSmartRef__":true,"id":141},"revisionOnLoad":205764,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"135":{"date":{"__isSmartRef__":true,"id":136},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"136":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"137":{"date":{"__isSmartRef__":true,"id":138},"author":"jenslincke","message":"no comment","id":"032DCC61-416B-4D75-BD0D-CE4FE4C0F799"},"138":{"isSerializedDate":true,"string":"Thu Feb 13 2014 18:07:45 GMT+0100 (Central Europe Standard Time)"},"139":{"date":{"__isSmartRef__":true,"id":140},"author":"jenslincke","message":"no comment","id":"F853C80C-583A-48AB-A962-920F0BE199E4"},"140":{"isSerializedDate":true,"string":"Thu Feb 13 2014 18:08:46 GMT+0100 (Central Europe Standard Time)"},"141":{"isSerializedDate":true,"string":"Thu Feb 13 2014 18:04:28 GMT+0100 (Central Europe Standard Time)"},"142":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"143":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":144}},"144":{"test01IsMorph":{"__isSmartRef__":true,"id":145}},"145":{"varMapping":{"__isSmartRef__":true,"id":146},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"146":{"this":{"__isSmartRef__":true,"id":143}},"147":{},"148":{"doSnap":{"__isSmartRef__":true,"id":149},"startSnapping":{"__isSmartRef__":true,"id":153},"stopSnapping":{"__isSmartRef__":true,"id":157}},"149":{"varMapping":{"__isSmartRef__":true,"id":150},"source":"function doSnap() {\n var items = $world.submorphs.select(function(ea) { return ea.isSlideContainer} )\n this.snap = pt(350,300)\n\n var itemsAtPos = {}\n\n items.forEach(function(ea) {\n var p = ea.getPosition();\n p.x += this.snap.x / 2\n p.y += this.snap.y / 2\n p.x = p.x - (p.x % this.snap.x) + 20\n p.y = p.y - (p.y % this.snap.y) + 20\n if (itemsAtPos[p]) {\n p = p.addPt(pt(20,20))\n this.bringToFront()\n }\n itemsAtPos[p] = ea\n ea.setPosition(p)\n }, this)\n \n // this.world().halos.invoke('alignAtTarget')\n \n}","funcProperties":{"__isSmartRef__":true,"id":151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"150":{"this":{"__isSmartRef__":true,"id":1}},"151":{"timestamp":{"__isSmartRef__":true,"id":152},"tags":[]},"152":{"isSerializedDate":true,"string":"Sun Aug 04 2013 11:38:29 GMT+0200 (Central Europe Daylight Time)"},"153":{"varMapping":{"__isSmartRef__":true,"id":154},"source":"function startSnapping() {\n this.isSnapping = true;\n this.startStepping(1000, \"doSnap\")\n}","funcProperties":{"__isSmartRef__":true,"id":155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"154":{"this":{"__isSmartRef__":true,"id":1}},"155":{"timestamp":{"__isSmartRef__":true,"id":156},"tags":[]},"156":{"isSerializedDate":true,"string":"Sun Mar 04 2012 21:52:45 GMT+0100 (Central Europe Standard Time)"},"157":{"varMapping":{"__isSmartRef__":true,"id":158},"source":"function stopSnapping() {\n this.isSnapping = false;\n this.stopStepping()\n}","funcProperties":{"__isSmartRef__":true,"id":159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"158":{"this":{"__isSmartRef__":true,"id":1}},"159":{"timestamp":{"__isSmartRef__":true,"id":160},"tags":[]},"160":{"isSerializedDate":true,"string":"Sun Mar 04 2012 21:53:44 GMT+0100 (Central Europe Standard Time)"},"161":{"submorphs":[{"__isSmartRef__":true,"id":162}],"scripts":[],"id":"BF3D928D-08CD-4F27-B401-5592B58C08C5","shape":{"__isSmartRef__":true,"id":167},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":173},"lighterFill":{"__isSmartRef__":true,"id":178},"label":{"__isSmartRef__":true,"id":162},"name":"ScriptableButton9","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":183},"attributeConnections":[{"__isSmartRef__":true,"id":184}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":185},"derivationIds":[2588,"896FB31B-9217-40E2-9C63-7D28A65A0759","B1035252-0345-49FB-A872-4B205DE673F1"],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"_ClipMode":"visible","prevScroll":[0,0],"isPressed":false,"_PreviousBorderWidth":1.1840000000000002,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":186},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(41.4,27.3)","distanceToDragEvent":"lively.pt(139.7,-16.7)"},"162":{"submorphs":[],"scripts":[],"id":"8D0AF11D-DAAD-4943-B629-FAD3AA3B02B9","shape":{"__isSmartRef__":true,"id":163},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":219,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":161},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":164}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":166},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"43F69DAF-38B3-482F-98BE-A5E860C03A0D","659C18AB-9993-4F24-AA39-3E5DD1920C1A"],"_MinTextWidth":219,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_WordBreak":"break-all","lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"163":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(219.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"164":{"style":{"__isSmartRef__":true,"id":165},"chunkOwner":{"__isSmartRef__":true,"id":162},"_id":"_718","storedString":"fetch projector","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"165":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"166":{"morph":{"__isSmartRef__":true,"id":162},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"167":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":168},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(219.0,25.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"168":{"stops":[{"__isSmartRef__":true,"id":169},{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":171},{"__isSmartRef__":true,"id":172}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"169":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"170":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"171":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"172":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"173":{"stops":[{"__isSmartRef__":true,"id":174},{"__isSmartRef__":true,"id":175},{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":177}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"174":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"175":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"176":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"177":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"178":{"stops":[{"__isSmartRef__":true,"id":179},{"__isSmartRef__":true,"id":180},{"__isSmartRef__":true,"id":181},{"__isSmartRef__":true,"id":182}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"179":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"180":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"181":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"182":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"183":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"184":{"sourceObj":{"__isSmartRef__":true,"id":161},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":161},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"185":{"morph":{"__isSmartRef__":true,"id":161},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"186":{"onFire":{"__isSmartRef__":true,"id":187}},"187":{"varMapping":{"__isSmartRef__":true,"id":188},"source":"function onFire() {\n\n this.get('SlideProjector').setPosition(this.getPosition().addPt(pt(0,30)))\n\n}","funcProperties":{"__isSmartRef__":true,"id":189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"188":{"this":{"__isSmartRef__":true,"id":161}},"189":{"timestamp":{"__isSmartRef__":true,"id":190},"user":"undefined","tags":[]},"190":{"isSerializedDate":true,"string":"Thu Mar 08 2012 09:53:22 GMT+0100 (Central Europe Standard Time)"},"191":{"submorphs":[{"__isSmartRef__":true,"id":192}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5960},"derivationIds":[null,"304ECE78-3F3F-4D3D-B625-294072FA3A2F"],"id":"335D8D77-31A5-4ABC-9FEC-D863547AF6BB","eventHandler":{"__isSmartRef__":true,"id":5961},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isSlideContainer":true,"slide":{"__isSmartRef__":true,"id":5962},"pane":{"__isSmartRef__":true,"id":11730},"name":"PresentationItem for SWASlide39","owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position","distanceToDragEvent"],"showsHalos":false,"behaviorGroups":["Slides"],"prevScroll":[0,0],"_Rotation":0,"_Scale":0.3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15186},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withLayers":["Global.PreventDroppingLayer"],"_Position":"lively.pt(20.0,1220.0)","distanceToDragEvent":"lively.pt(219.2,-16.8)"},"192":{"submorphs":[{"__isSmartRef__":true,"id":193},{"__isSmartRef__":true,"id":199},{"__isSmartRef__":true,"id":219},{"__isSmartRef__":true,"id":5516},{"__isSmartRef__":true,"id":5921}],"scripts":[],"id":"8C219BE2-5B55-4B77-9C18-04FEBC52C3E5","shape":{"__isSmartRef__":true,"id":5955},"__layered_droppingEnabled__":false,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":5956},"draggingEnabled":true,"name":"SWASlide41","partsBinMetaInfo":{"__isSmartRef__":true,"id":5958},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":5959},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","8F91B70A-3469-4055-9432-932C5FF9D147","21701CB3-AA31-49AA-9B26-927EE7A48039"],"prevScroll":[0,0],"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","eventsAreIgnored":true,"_ClipMode":"visible","grabbingEnabled":false,"_Visible":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","lastWorldPosition","_Position"],"owner":{"__isSmartRef__":true,"id":191},"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(370.0,1220.0)","_Position":"lively.pt(10.0,10.0)"},"193":{"submorphs":[],"scripts":[],"id":"CE562095-1246-4C44-8C4C-9AE6430803F2","shape":{"__isSmartRef__":true,"id":194},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":195},"textChunks":[{"__isSmartRef__":true,"id":196}],"owner":{"__isSmartRef__":true,"id":192},"charsReplaced":"Live Objects","lastFindLoc":12,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":198},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","7094B047-BBF8-494A-8702-CA09FAC1EF06","BB093554-AED2-40D5-83F8-8B106AB08015"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"previousSelection":[25,25],"isBeingDragged":false,"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"194":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"195":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"196":{"style":{"__isSmartRef__":true,"id":197},"chunkOwner":{"__isSmartRef__":true,"id":193},"storedString":"Explorative Development","_id":"_314","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"197":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"198":{"morph":{"__isSmartRef__":true,"id":193},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"199":{"submorphs":[],"scripts":[],"id":"9F53CCE4-683A-4929-BAFF-3F38A887FAD3","shape":{"__isSmartRef__":true,"id":200},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":201},"textChunks":[{"__isSmartRef__":true,"id":202},{"__isSmartRef__":true,"id":204},{"__isSmartRef__":true,"id":206},{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":210},{"__isSmartRef__":true,"id":212},{"__isSmartRef__":true,"id":214},{"__isSmartRef__":true,"id":216}],"charsReplaced":"Explorative development","lastFindLoc":93,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":218},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","5B9344A3-AEDC-4C81-903E-5BCC2CCC3D52","879C9EB8-E93D-43F3-BA05-75F0458C00FF"],"owner":{"__isSmartRef__":true,"id":192},"_Rotation":0,"_Scale":1.001001001001001,"previousSelection":[32,32],"priorSelectionRange":[26,26],"__serializedExpressions__":["_Position","textColor","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(97.0,193.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)"},"200":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,186.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"201":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"202":{"style":{"__isSmartRef__":true,"id":203},"chunkOwner":{"__isSmartRef__":true,"id":199},"storedString":"","_id":"_538","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"203":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"204":{"style":{"__isSmartRef__":true,"id":205},"chunkOwner":{"__isSmartRef__":true,"id":199},"storedString":"■ ","_id":"_315","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"205":{"webkitUserSelect":"auto","color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outline":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"206":{"style":{"__isSmartRef__":true,"id":207},"chunkOwner":{"__isSmartRef__":true,"id":199},"storedString":"Direct manipulation\n","_id":"_316","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"207":{"webkitUserSelect":"auto","color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","fontWeight":"bold","backgroundColor":"rgb(255,255,255)","float":"none","outline":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"208":{"style":{"__isSmartRef__":true,"id":209},"chunkOwner":{"__isSmartRef__":true,"id":199},"storedString":"\n■ ","_id":"_317","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"209":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"210":{"style":{"__isSmartRef__":true,"id":211},"chunkOwner":{"__isSmartRef__":true,"id":199},"storedString":"Immediate feedback\n","_id":"_318","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"211":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"bold","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"212":{"style":{"__isSmartRef__":true,"id":213},"chunkOwner":{"__isSmartRef__":true,"id":199},"storedString":"\n■ ","_id":"_319","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"213":{"webkitUserSelect":"auto","color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outline":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"214":{"style":{"__isSmartRef__":true,"id":215},"chunkOwner":{"__isSmartRef__":true,"id":199},"storedString":"Morph compositions\n","_id":"_320","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"215":{"webkitUserSelect":"auto","color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","fontWeight":"bold","backgroundColor":"rgb(255,255,255)","float":"none","outline":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"216":{"style":{"__isSmartRef__":true,"id":217},"chunkOwner":{"__isSmartRef__":true,"id":199},"storedString":"\n","_id":"_321","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"217":{"textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"218":{"morph":{"__isSmartRef__":true,"id":199},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"219":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":220},"derivationIds":[null,"2C9A2720-A277-4A0A-BAA0-3F023E1759CA"],"id":"E0A0DCE0-25CD-439F-B5C9-405F5CF24E9B","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":221},{"__isSmartRef__":true,"id":223},{"__isSmartRef__":true,"id":225},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":229},{"__isSmartRef__":true,"id":231},{"__isSmartRef__":true,"id":233},{"__isSmartRef__":true,"id":235},{"__isSmartRef__":true,"id":237},{"__isSmartRef__":true,"id":239},{"__isSmartRef__":true,"id":241},{"__isSmartRef__":true,"id":243},{"__isSmartRef__":true,"id":245},{"__isSmartRef__":true,"id":247},{"__isSmartRef__":true,"id":249},{"__isSmartRef__":true,"id":251},{"__isSmartRef__":true,"id":253},{"__isSmartRef__":true,"id":255},{"__isSmartRef__":true,"id":257},{"__isSmartRef__":true,"id":259},{"__isSmartRef__":true,"id":261},{"__isSmartRef__":true,"id":263},{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":267},{"__isSmartRef__":true,"id":269},{"__isSmartRef__":true,"id":271},{"__isSmartRef__":true,"id":273},{"__isSmartRef__":true,"id":275},{"__isSmartRef__":true,"id":277},{"__isSmartRef__":true,"id":279},{"__isSmartRef__":true,"id":281},{"__isSmartRef__":true,"id":283},{"__isSmartRef__":true,"id":285},{"__isSmartRef__":true,"id":287},{"__isSmartRef__":true,"id":289},{"__isSmartRef__":true,"id":291},{"__isSmartRef__":true,"id":293},{"__isSmartRef__":true,"id":295},{"__isSmartRef__":true,"id":297},{"__isSmartRef__":true,"id":299},{"__isSmartRef__":true,"id":301},{"__isSmartRef__":true,"id":303},{"__isSmartRef__":true,"id":305},{"__isSmartRef__":true,"id":307},{"__isSmartRef__":true,"id":309},{"__isSmartRef__":true,"id":311},{"__isSmartRef__":true,"id":313}],"eventHandler":{"__isSmartRef__":true,"id":315},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":12,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":192},"_MaxTextWidth":400.26667887176706,"_MinTextWidth":400.26667887176706,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":316},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":317}],"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"],"doNotCopyProperties":["$$textString"],"_syntaxHighlightTimeout":null,"lastSyntaxHighlightTime":38,"accessibleInInactiveWindow":true,"showsHalos":false,"charsReplaced":"","lastFindLoc":39,"isBeingDragged":false,"previousSelection":[37,3],"doitContext":{"__isSmartRef__":true,"id":318},"_WordBreak":"break-all","_lastSyntaxHighlightTime":30,"_Rotation":0,"_Scale":1.1073654710215566,"__serializedExpressions__":["_Position","distanceToDragEvent"],"textString":"// this.doitContext = this.get('Boy')\n\n// ...\nif (correctAnswer === answer) {\n asker.nextTurn(this, asker) \n} else {\n this.getHit();\n if (!this.isDead()) {\n asker.nextTurn(asker, this)\n }\n}\n// ...","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(20.3,399.8)","distanceToDragEvent":"lively.pt(186.7,-10.7)"},"220":{"_BorderWidth":1,"_NodeClass":["morph","text"],"_NodeId":"morph-2c9a2720-a277-4a0a-baa0-3f023e1759ca","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(410.3,262.3)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"221":{"style":{"__isSmartRef__":true,"id":222},"chunkOwner":{"__isSmartRef__":true,"id":219},"_id":"_8727","storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"222":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"223":{"_id":"_8729","style":{"__isSmartRef__":true,"id":224},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":" this.doitContext = this.get('Boy')","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"224":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"225":{"_id":"_8730","style":{"__isSmartRef__":true,"id":226},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"\n\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"226":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"227":{"_id":"_8731","style":{"__isSmartRef__":true,"id":228},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"228":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"229":{"_id":"_8732","style":{"__isSmartRef__":true,"id":230},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":" ...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"230":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"231":{"_id":"_8733","style":{"__isSmartRef__":true,"id":232},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"232":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"233":{"_id":"_8734","style":{"__isSmartRef__":true,"id":234},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"234":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"235":{"_id":"_8735","style":{"__isSmartRef__":true,"id":236},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":" (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"236":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"237":{"_id":"_8763","style":{"__isSmartRef__":true,"id":238},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"correctAnswer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"238":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"239":{"_id":"_8764","style":{"__isSmartRef__":true,"id":240},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":" === ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"240":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"241":{"_id":"_8765","style":{"__isSmartRef__":true,"id":242},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"answer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"242":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"243":{"_id":"_8766","style":{"__isSmartRef__":true,"id":244},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"244":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"245":{"_id":"_8736","style":{"__isSmartRef__":true,"id":246},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"246":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"247":{"_id":"_8737","style":{"__isSmartRef__":true,"id":248},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"248":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"249":{"_id":"_8767","style":{"__isSmartRef__":true,"id":250},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"asker","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"250":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"251":{"_id":"_8768","style":{"__isSmartRef__":true,"id":252},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":".nextTurn(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"252":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"253":{"_id":"_8738","style":{"__isSmartRef__":true,"id":254},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"254":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"255":{"_id":"_8739","style":{"__isSmartRef__":true,"id":256},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"256":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"257":{"_id":"_8769","style":{"__isSmartRef__":true,"id":258},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"asker","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"258":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"259":{"_id":"_8770","style":{"__isSmartRef__":true,"id":260},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":")","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"260":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"261":{"_id":"_8740","style":{"__isSmartRef__":true,"id":262},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"262":{"__serializedExpressions__":["backgroundColor"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","backgroundColor":"Color.rgba(204,204,0,0.4)"},"263":{"_id":"_8741","style":{"__isSmartRef__":true,"id":264},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"264":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"265":{"_id":"_8742","style":{"__isSmartRef__":true,"id":266},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"266":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"267":{"_id":"_8743","style":{"__isSmartRef__":true,"id":268},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"268":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"269":{"_id":"_8744","style":{"__isSmartRef__":true,"id":270},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"270":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"271":{"_id":"_8745","style":{"__isSmartRef__":true,"id":272},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"272":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"273":{"_id":"_8746","style":{"__isSmartRef__":true,"id":274},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"274":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"275":{"_id":"_8747","style":{"__isSmartRef__":true,"id":276},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"276":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"277":{"_id":"_8748","style":{"__isSmartRef__":true,"id":278},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":".getHit();\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"278":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"279":{"_id":"_8749","style":{"__isSmartRef__":true,"id":280},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"280":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"281":{"_id":"_8750","style":{"__isSmartRef__":true,"id":282},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":" (!","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"282":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"283":{"_id":"_8751","style":{"__isSmartRef__":true,"id":284},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"284":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"285":{"_id":"_8752","style":{"__isSmartRef__":true,"id":286},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":".isDead()) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"286":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"287":{"_id":"_8753","style":{"__isSmartRef__":true,"id":288},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"288":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"289":{"_id":"_8754","style":{"__isSmartRef__":true,"id":290},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"290":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"291":{"_id":"_8771","style":{"__isSmartRef__":true,"id":292},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"asker","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"292":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"293":{"_id":"_8772","style":{"__isSmartRef__":true,"id":294},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":".nextTurn(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"294":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"295":{"_id":"_8773","style":{"__isSmartRef__":true,"id":296},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"asker","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"296":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"297":{"_id":"_8774","style":{"__isSmartRef__":true,"id":298},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"298":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"299":{"_id":"_8755","style":{"__isSmartRef__":true,"id":300},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"300":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"301":{"_id":"_8756","style":{"__isSmartRef__":true,"id":302},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":")\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"302":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"303":{"_id":"_8757","style":{"__isSmartRef__":true,"id":304},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"304":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"305":{"_id":"_8758","style":{"__isSmartRef__":true,"id":306},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"306":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"307":{"_id":"_8759","style":{"__isSmartRef__":true,"id":308},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"308":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"309":{"_id":"_8760","style":{"__isSmartRef__":true,"id":310},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"310":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"311":{"_id":"_8761","style":{"__isSmartRef__":true,"id":312},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"312":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"313":{"_id":"_8762","style":{"__isSmartRef__":true,"id":314},"chunkOwner":{"__isSmartRef__":true,"id":219},"storedString":" ...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"314":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"315":{"morph":{"__isSmartRef__":true,"id":219},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"316":{"resizeWidth":true,"resizeHeight":true},"317":{"sourceObj":{"__isSmartRef__":true,"id":219},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":219},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"318":{"submorphs":[{"__isSmartRef__":true,"id":319},{"__isSmartRef__":true,"id":367},{"__isSmartRef__":true,"id":427},{"__isSmartRef__":true,"id":444}],"scripts":[{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":495}],"shape":{"__isSmartRef__":true,"id":5762},"derivationIds":[null,"682C43E6-971F-4644-B6AB-A89F1F309B5E"],"id":"38280A7B-8AE7-4C6A-9D45-0B601C09E0B4","eventHandler":{"__isSmartRef__":true,"id":5763},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1594},"lifeBar":{"__isSmartRef__":true,"id":319},"deathAnimation":{"__isSmartRef__":true,"id":367},"owner":{"__isSmartRef__":true,"id":644},"character":{"__isSmartRef__":true,"id":427},"animateScript":{"__isSmartRef__":true,"id":493},"isBusy":true,"textBubble":{"__isSmartRef__":true,"id":444},"showsHalos":false,"name":"Boy","lastSpeedTimestamp":1340705398191,"walkScript":{"__isSmartRef__":true,"id":495},"__serializedExpressions__":["_Position","direction"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5764},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,48.0)","direction":"lively.pt(0.0,1.0)"},"319":{"submorphs":[],"scripts":[],"id":"B8937038-E958-4208-8731-83E7B3034DBA","shape":{"__isSmartRef__":true,"id":320},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LifeBar2","partsBinMetaInfo":{"__isSmartRef__":true,"id":321},"eventHandler":{"__isSmartRef__":true,"id":336},"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","8872CA7B-AEBD-45E8-8D7A-8C16B7073561","1133C396-EFC1-4714-9C48-4D320032559F"],"partTests":{"__isSmartRef__":true,"id":337},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","character":{"__isSmartRef__":true,"id":318},"owner":{"__isSmartRef__":true,"id":318},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":342},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,-13.0)"},"320":{"_BorderWidth":1,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,8.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(151,255,0)","_Padding":"lively.rect(0,0,0,0)"},"321":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":322},{"__isSmartRef__":true,"id":324},{"__isSmartRef__":true,"id":326},{"__isSmartRef__":true,"id":328},{"__isSmartRef__":true,"id":330},{"__isSmartRef__":true,"id":332},{"__isSmartRef__":true,"id":334}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"322":{"date":{"__isSmartRef__":true,"id":323},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"323":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"324":{"date":{"__isSmartRef__":true,"id":325},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"325":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"326":{"date":{"__isSmartRef__":true,"id":327},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"327":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"328":{"date":{"__isSmartRef__":true,"id":329},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"329":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"330":{"date":{"__isSmartRef__":true,"id":331},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"331":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"332":{"date":{"__isSmartRef__":true,"id":333},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"333":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"334":{"date":{"__isSmartRef__":true,"id":335},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"335":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (Central Europe Daylight Time)"},"336":{"morph":{"__isSmartRef__":true,"id":319},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"337":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":338}},"338":{"test01IsMorph":{"__isSmartRef__":true,"id":339}},"339":{"varMapping":{"__isSmartRef__":true,"id":340},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"340":{"this":{"__isSmartRef__":true,"id":337}},"341":{},"342":{"setColorForWidth":{"__isSmartRef__":true,"id":343},"reset":{"__isSmartRef__":true,"id":347},"hit":{"__isSmartRef__":true,"id":351},"extent":{"__isSmartRef__":true,"id":355},"isDead":{"__isSmartRef__":true,"id":359},"lifeLoss":{"__isSmartRef__":true,"id":363},"heal":{"__isSmartRef__":true,"id":347}},"343":{"varMapping":{"__isSmartRef__":true,"id":344},"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":345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"344":{"this":{"__isSmartRef__":true,"id":319}},"345":{"timestamp":{"__isSmartRef__":true,"id":346},"user":"timfelgentreff","tags":[]},"346":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (Central Europe Daylight Time)"},"347":{"varMapping":{"__isSmartRef__":true,"id":348},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"348":{"this":{"__isSmartRef__":true,"id":319}},"349":{"timestamp":{"__isSmartRef__":true,"id":350},"user":"timfelgentreff","tags":[]},"350":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (Central Europe Daylight Time)"},"351":{"varMapping":{"__isSmartRef__":true,"id":352},"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":353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"352":{"this":{"__isSmartRef__":true,"id":319}},"353":{"timestamp":{"__isSmartRef__":true,"id":354},"user":"timfelgentreff","tags":[]},"354":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (Central Europe Daylight Time)"},"355":{"varMapping":{"__isSmartRef__":true,"id":356},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"356":{"this":{"__isSmartRef__":true,"id":319}},"357":{"timestamp":{"__isSmartRef__":true,"id":358},"user":"timfelgentreff","tags":[]},"358":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (Central Europe Daylight Time)"},"359":{"varMapping":{"__isSmartRef__":true,"id":360},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"360":{"this":{"__isSmartRef__":true,"id":319}},"361":{"timestamp":{"__isSmartRef__":true,"id":362},"user":"timfelgentreff","tags":[]},"362":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (Central Europe Daylight Time)"},"363":{"varMapping":{"__isSmartRef__":true,"id":364},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"364":{"this":{"__isSmartRef__":true,"id":319}},"365":{"timestamp":{"__isSmartRef__":true,"id":366},"user":"timfelgentreff","tags":[]},"366":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (Central Europe Daylight Time)"},"367":{"submorphs":[{"__isSmartRef__":true,"id":368}],"scripts":[],"id":"36930206-F285-4829-A3E8-056CB3E85E32","shape":{"__isSmartRef__":true,"id":391},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"DeathAnimation2","partsBinMetaInfo":{"__isSmartRef__":true,"id":392},"eventHandler":{"__isSmartRef__":true,"id":405},"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","DC6AF031-4E21-4076-ABC3-9D13F29725A5","68F1CD11-4262-43DC-BF3F-F105F30F9417"],"partTests":{"__isSmartRef__":true,"id":406},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":368},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","character":{"__isSmartRef__":true,"id":318},"owner":{"__isSmartRef__":true,"id":318},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":411},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"368":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":369},"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","DD557BF7-D160-41F2-92B9-E07260DA4032","0B41917F-CCB8-4ACE-88B3-84D7C5A365EF"],"id":"51EF8092-5F1A-4FAC-84B1-7CDB4E838AB1","eventHandler":{"__isSmartRef__":true,"id":370},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":371},"moved":true,"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":367},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":386},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"369":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"370":{"morph":{"__isSmartRef__":true,"id":368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"371":{"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":372},{"__isSmartRef__":true,"id":374},{"__isSmartRef__":true,"id":376},{"__isSmartRef__":true,"id":378},{"__isSmartRef__":true,"id":380},{"__isSmartRef__":true,"id":382},{"__isSmartRef__":true,"id":384}],"migrationLevel":4,"revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"372":{"date":{"__isSmartRef__":true,"id":373},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"373":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"374":{"date":{"__isSmartRef__":true,"id":375},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"375":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"376":{"date":{"__isSmartRef__":true,"id":377},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"377":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"378":{"date":{"__isSmartRef__":true,"id":379},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"379":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"380":{"date":{"__isSmartRef__":true,"id":381},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"381":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"382":{"date":{"__isSmartRef__":true,"id":383},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"383":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"384":{"date":{"__isSmartRef__":true,"id":385},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"385":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"386":{"soliloquize":{"__isSmartRef__":true,"id":387}},"387":{"varMapping":{"__isSmartRef__":true,"id":388},"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":389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"388":{"this":{"__isSmartRef__":true,"id":368}},"389":{"timestamp":{"__isSmartRef__":true,"id":390},"user":"lauritz","tags":[]},"390":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"391":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"392":{"partsSpaceName":"PartsBin/Basic","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":393},{"__isSmartRef__":true,"id":395},{"__isSmartRef__":true,"id":397},{"__isSmartRef__":true,"id":399},{"__isSmartRef__":true,"id":401},{"__isSmartRef__":true,"id":403}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"393":{"date":{"__isSmartRef__":true,"id":394},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"394":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"395":{"date":{"__isSmartRef__":true,"id":396},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"396":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"397":{"date":{"__isSmartRef__":true,"id":398},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"398":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"399":{"date":{"__isSmartRef__":true,"id":400},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"400":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"401":{"date":{"__isSmartRef__":true,"id":402},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"402":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"403":{"date":{"__isSmartRef__":true,"id":404},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"404":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"405":{"morph":{"__isSmartRef__":true,"id":367},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"406":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":407}},"407":{"test01IsMorph":{"__isSmartRef__":true,"id":408}},"408":{"varMapping":{"__isSmartRef__":true,"id":409},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"409":{"this":{"__isSmartRef__":true,"id":406}},"410":{},"411":{"die":{"__isSmartRef__":true,"id":412},"reset":{"__isSmartRef__":true,"id":415},"nextImage":{"__isSmartRef__":true,"id":419},"start":{"__isSmartRef__":true,"id":423}},"412":{"varMapping":{"__isSmartRef__":true,"id":413},"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":414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"413":{"this":{"__isSmartRef__":true,"id":367}},"414":{},"415":{"varMapping":{"__isSmartRef__":true,"id":416},"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":417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"416":{"this":{"__isSmartRef__":true,"id":367}},"417":{"timestamp":{"__isSmartRef__":true,"id":418},"user":"timfelgentreff","tags":[]},"418":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (Central Europe Daylight Time)"},"419":{"varMapping":{"__isSmartRef__":true,"id":420},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"420":{"this":{"__isSmartRef__":true,"id":367}},"421":{"timestamp":{"__isSmartRef__":true,"id":422},"user":"timfelgentreff","tags":[]},"422":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (Central Europe Daylight Time)"},"423":{"varMapping":{"__isSmartRef__":true,"id":424},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"424":{"this":{"__isSmartRef__":true,"id":367}},"425":{"timestamp":{"__isSmartRef__":true,"id":426},"user":"timfelgentreff","tags":[]},"426":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (Central Europe Daylight Time)"},"427":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":428},"derivationIds":[null,"B92FC6A0-9182-4008-A4D3-70E96420A6D7","985C903B-2533-41D1-8CC0-D54E9F519C16","D600725A-EA19-4BC4-9288-17D864E6BC4A","C33BB11D-8706-4E40-9E31-55025A5FB55F","4AD36628-6805-40DE-80C4-00ABC6DE7450"],"id":"32F10B52-D728-4B90-8C29-49256C8869B0","eventHandler":{"__isSmartRef__":true,"id":429},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"VillagerCharacter","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":430},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":318},"eventsAreIgnored":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":439},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"428":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/villager.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"429":{"morph":{"__isSmartRef__":true,"id":427},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"430":{"partName":"VillagerCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"An animated male character. He knows not too much and is always undecided.","changes":[{"__isSmartRef__":true,"id":431},{"__isSmartRef__":true,"id":433},{"__isSmartRef__":true,"id":435},{"__isSmartRef__":true,"id":437}],"migrationLevel":4,"revisionOnLoad":156242,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"431":{"date":{"__isSmartRef__":true,"id":432},"author":"tessi","message":"the villager talks!","id":"1706B121-230C-4CC8-91FD-3EEC9CBDFEBA"},"432":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:27:38 GMT+0200 (Central Europe Daylight Time)"},"433":{"date":{"__isSmartRef__":true,"id":434},"author":"tessi","message":"","id":"5FF65A56-3684-43C4-AFCE-57C257420F5B"},"434":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:40:03 GMT+0200 (Central Europe Daylight Time)"},"435":{"date":{"__isSmartRef__":true,"id":436},"author":"tessi","message":"","id":"3EFBCB6C-DA48-4D0F-BD8D-1BB8BB59EFD7"},"436":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:45:13 GMT+0200 (Central Europe Daylight Time)"},"437":{"date":{"__isSmartRef__":true,"id":438},"author":"lauritz","message":"no comment","id":"A4FBB639-0C0D-4125-8C7F-AA2222B725A0"},"438":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:35:23 GMT+0200 (Central Europe Daylight Time)"},"439":{"soliloquize":{"__isSmartRef__":true,"id":440}},"440":{"varMapping":{"__isSmartRef__":true,"id":441},"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":442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"441":{"this":{"__isSmartRef__":true,"id":427}},"442":{"timestamp":{"__isSmartRef__":true,"id":443},"user":"lauritz","tags":[]},"443":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:35:19 GMT+0200 (Central Europe Daylight Time)"},"444":{"submorphs":[{"__isSmartRef__":true,"id":445}],"scripts":[],"shape":{"__isSmartRef__":true,"id":458},"id":"FBFB3244-B89C-49D7-9926-6CEECCFB29D5","eventHandler":{"__isSmartRef__":true,"id":459},"__layered_droppingEnabled__":false,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":460},"name":"TextBubble2","partsBinMetaInfo":{"__isSmartRef__":true,"id":461},"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","FCFBEB3A-F434-48D4-89B4-9F36B6973A36"],"_ClipMode":"visible","isBeingDragged":false,"text":{"__isSmartRef__":true,"id":445},"isCopyMorphRef":true,"morphRefId":1,"_Visible":false,"moved":true,"owner":{"__isSmartRef__":true,"id":318},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":472},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"445":{"submorphs":[],"scripts":[],"id":"AB74F4EA-8F6F-4321-92AE-2F9307FDA710","shape":{"__isSmartRef__":true,"id":446},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":null,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":447},"textChunks":[{"__isSmartRef__":true,"id":454}],"charsReplaced":"s","lastFindLoc":6,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":456},"_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","E4A42FBB-8012-487A-87E7-16A0CDC2D8B4"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":null,"_MinTextHeight":null,"previousSelection":[2,2],"owner":{"__isSmartRef__":true,"id":444},"isBeingDragged":false,"isLabel":true,"_HandStyle":"default","allowInput":false,"eventsAreIgnored":true,"layout":{"__isSmartRef__":true,"id":457},"_WordBreak":"break-all","_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-28.0,-42.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(66.0,-19.0)"},"446":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(222.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"447":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":448},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":452}],"revisionOnLoad":154217,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"448":{"date":{"__isSmartRef__":true,"id":449},"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"},"449":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (Central Europe Standard Time)"},"450":{"date":{"__isSmartRef__":true,"id":451},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"451":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (Central Europe Daylight Time)"},"452":{"date":{"__isSmartRef__":true,"id":453},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"453":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (Central Europe Daylight Time)"},"454":{"style":{"__isSmartRef__":true,"id":455},"chunkOwner":{"__isSmartRef__":true,"id":445},"storedString":"I have never lost a melee!","_id":"_322","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"455":{"whiteSpace":"pre","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"456":{"morph":{"__isSmartRef__":true,"id":445},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"457":{"centeredHorizontal":true,"centeredVertical":true,"adjustForNewBounds":true},"458":{"_ClipMode":"visible","_BorderWidth":2.444,"_BorderRadius":0,"_Opacity":0.6818000000000001,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(279.0,47.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(235,235,235)"},"459":{"morph":{"__isSmartRef__":true,"id":444},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"460":{"resizeWidth":true,"resizeHeight":true},"461":{"partName":"TextBubble","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A little text bubble with a say(\"string\") method","changes":[{"__isSmartRef__":true,"id":462},{"__isSmartRef__":true,"id":464},{"__isSmartRef__":true,"id":466},{"__isSmartRef__":true,"id":468},{"__isSmartRef__":true,"id":470}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"462":{"date":{"__isSmartRef__":true,"id":463},"author":"tessi","message":"Fix multiline text and text wrapping bugs; added reset() function","id":"F30F2C0C-BE12-4128-A871-336DBCFEA0E4"},"463":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:18:14 GMT+0200 (Central Europe Daylight Time)"},"464":{"date":{"__isSmartRef__":true,"id":465},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"465":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (Central Europe Daylight Time)"},"466":{"date":{"__isSmartRef__":true,"id":467},"author":"tessi","message":"no comment","id":"F0B6C1B2-B5D8-4250-9126-12195350AC31"},"467":{"isSerializedDate":true,"string":"Fri Apr 20 2012 23:58:32 GMT+0200 (Central Europe Daylight Time)"},"468":{"date":{"__isSmartRef__":true,"id":469},"author":"tessi","message":"let TextBubble disappear when nothing was said some tim","id":"10474226-7FE2-4BFB-AEA5-365C537C3666"},"469":{"isSerializedDate":true,"string":"Sat Apr 21 2012 11:49:01 GMT+0200 (Central Europe Daylight Time)"},"470":{"date":{"__isSmartRef__":true,"id":471},"author":"tessi","message":"added hide() method","id":"D8F1C9C7-279C-441E-85C1-1F6BBC58E311"},"471":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:55 GMT+0200 (Central Europe Daylight Time)"},"472":{"say":{"__isSmartRef__":true,"id":473},"showBubbleTime":{"__isSmartRef__":true,"id":477},"disappear":{"__isSmartRef__":true,"id":481},"reset":{"__isSmartRef__":true,"id":485},"hide":{"__isSmartRef__":true,"id":489}},"473":{"varMapping":{"__isSmartRef__":true,"id":474},"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":475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"474":{"this":{"__isSmartRef__":true,"id":444}},"475":{"timestamp":{"__isSmartRef__":true,"id":476},"user":"tessi","tags":[]},"476":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:26 GMT+0200 (Central Europe Daylight Time)"},"477":{"varMapping":{"__isSmartRef__":true,"id":478},"source":"function showBubbleTime() {\n return 6000\n}","funcProperties":{"__isSmartRef__":true,"id":479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"478":{"this":{"__isSmartRef__":true,"id":444}},"479":{"timestamp":{"__isSmartRef__":true,"id":480},"user":"timfelgentreff","tags":[]},"480":{"isSerializedDate":true,"string":"Sat May 05 2012 19:26:43 GMT+0200 (Central Europe Daylight Time)"},"481":{"varMapping":{"__isSmartRef__":true,"id":482},"source":"function disappear(oldText) {\n if (this.text.getTextString() == oldText) {\n this.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"482":{"this":{"__isSmartRef__":true,"id":444}},"483":{"timestamp":{"__isSmartRef__":true,"id":484},"user":"tessi","tags":[]},"484":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:35 GMT+0200 (Central Europe Daylight Time)"},"485":{"varMapping":{"__isSmartRef__":true,"id":486},"source":"function reset() {\n this.say()\n}","funcProperties":{"__isSmartRef__":true,"id":487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"486":{"this":{"__isSmartRef__":true,"id":444}},"487":{"timestamp":{"__isSmartRef__":true,"id":488},"user":"tessi","tags":[]},"488":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:17:22 GMT+0200 (Central Europe Daylight Time)"},"489":{"varMapping":{"__isSmartRef__":true,"id":490},"source":"function hide() {\n this.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"490":{"this":{"__isSmartRef__":true,"id":444}},"491":{"timestamp":{"__isSmartRef__":true,"id":492},"user":"tessi","tags":[]},"492":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:24 GMT+0200 (Central Europe Daylight Time)"},"493":{"target":{"__isSmartRef__":true,"id":318},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":494}],"stopped":false,"tickTime":3000,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"494":{},"495":{"target":{"__isSmartRef__":true,"id":318},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":496}]],"stopped":true,"tickTime":10,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"496":{"submorphs":[{"__isSmartRef__":true,"id":497}],"scripts":[],"shape":{"__isSmartRef__":true,"id":539},"derivationIds":[null,"572E1B6B-8258-4341-AF59-8A5D702AD1CC"],"id":"9F9F8EA0-F355-4CCB-881E-C79EF0DA86A6","eventHandler":{"__isSmartRef__":true,"id":540},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":1,"column":3,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":497},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":1350},{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":1343},{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":1336},{"__isSmartRef__":true,"id":2624}],"charactersStandingHere":[{"__isSmartRef__":true,"id":318}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5679},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,48.0)"},"497":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":498},"derivationIds":[null,"C6168C15-11BB-46C5-8F7F-28A50A193114"],"id":"B45215B5-7942-4122-AA93-4554DA6BAD7E","eventHandler":{"__isSmartRef__":true,"id":499},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":496},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":500},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"498":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-c6168c15-11bb-46c5-8f7f-28a50a193114","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"499":{"morph":{"__isSmartRef__":true,"id":497},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"500":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"501":{"varMapping":{"__isSmartRef__":true,"id":502},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"502":{"this":{"__isSmartRef__":true,"id":503},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":534}},"503":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":504},"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":"83F99C15-9D55-48FF-A329-80358353C757","eventHandler":{"__isSmartRef__":true,"id":505},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"GrassTile1","showsHalos":false,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"partsBinMetaInfo":{"__isSmartRef__":true,"id":506},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1.0060210561262526,"eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":529},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"504":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,16.0)","_Padding":"lively.rect(0,0,0,0)"},"505":{"morph":{"__isSmartRef__":true,"id":503},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"506":{"partName":"GrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"undefined","changes":[{"__isSmartRef__":true,"id":507},{"__isSmartRef__":true,"id":509},{"__isSmartRef__":true,"id":511},{"__isSmartRef__":true,"id":513},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":517},{"__isSmartRef__":true,"id":519},{"__isSmartRef__":true,"id":521},{"__isSmartRef__":true,"id":523},{"__isSmartRef__":true,"id":525},{"__isSmartRef__":true,"id":527}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"507":{"date":{"__isSmartRef__":true,"id":508},"author":"timfelgentreff","message":"no comment","id":"AB07369F-96D1-4872-ACD6-189F95A98CF0"},"508":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:49 GMT+0200 (Central Europe Daylight Time)"},"509":{"date":{"__isSmartRef__":true,"id":510},"author":"timfelgentreff","message":"no comment","id":"6F09CB47-AE1A-43B5-9092-C226FC943D70"},"510":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:53:15 GMT+0200 (Central Europe Daylight Time)"},"511":{"date":{"__isSmartRef__":true,"id":512},"author":"tessi","message":"","id":"C9AC5438-390B-4092-A840-5DA53EA949A2"},"512":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:34:40 GMT+0200 (Central Europe Daylight Time)"},"513":{"date":{"__isSmartRef__":true,"id":514},"author":"timfelgentreff","message":"","id":"BB95B383-D653-4EC1-B02D-BD13262D13DD"},"514":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:30:37 GMT+0200 (Central Europe Daylight Time)"},"515":{"date":{"__isSmartRef__":true,"id":516},"author":"lauritz","message":"","id":"20A6EE92-FFDB-4B50-AF32-430C3263E33A"},"516":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:30 GMT+0200 (Central Europe Daylight Time)"},"517":{"date":{"__isSmartRef__":true,"id":518},"author":"tessi","message":"","id":"3FE7CF26-4ECF-4270-865D-14D92EF17F15"},"518":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:12:42 GMT+0200 (Central Europe Daylight Time)"},"519":{"date":{"__isSmartRef__":true,"id":520},"author":"timfelgentreff","message":"no comment","id":"89243BFB-B9D4-46C9-B626-FA908A74640F"},"520":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:21 GMT+0200 (Central Europe Daylight Time)"},"521":{"date":{"__isSmartRef__":true,"id":522},"author":"timfelgentreff","message":"no comment","id":"4F5D5D9C-6A36-40E0-A7B5-0EC147FC3CCB"},"522":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:38 GMT+0200 (Central Europe Daylight Time)"},"523":{"date":{"__isSmartRef__":true,"id":524},"author":"timfelgentreff","message":"no comment","id":"2A16772C-A949-41B4-81E6-729009D52750"},"524":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:31 GMT+0200 (Central Europe Daylight Time)"},"525":{"date":{"__isSmartRef__":true,"id":526},"author":"timfelgentreff","message":"no comment","id":"46CEDCB2-B98B-446F-82EF-A2E5C82104E8"},"526":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:32:56 GMT+0200 (Central Europe Daylight Time)"},"527":{"date":{"__isSmartRef__":true,"id":528},"author":"timfelgentreff","message":"no comment","id":"1BA41EB4-3E79-44BA-9F92-9D7A5EED3AE5"},"528":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:50 GMT+0200 (Central Europe Daylight Time)"},"529":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"530":{"varMapping":{"__isSmartRef__":true,"id":531},"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":532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"531":{"this":{"__isSmartRef__":true,"id":503}},"532":{"timestamp":{"__isSmartRef__":true,"id":533},"user":"timfelgentreff","tags":[]},"533":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:06 GMT+0200 (Central Europe Daylight Time)"},"534":{"$super":{"__isSmartRef__":true,"id":535}},"535":{"varMapping":{"__isSmartRef__":true,"id":536},"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":537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"536":{"obj":{"__isSmartRef__":true,"id":503},"name":"dropOn"},"537":{},"538":{},"539":{"_NodeClass":["morph","box"],"_NodeId":"morph-572e1b6b-8258-4341-af59-8a5d702ad1cc","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"540":{"morph":{"__isSmartRef__":true,"id":496},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"541":{"partsSpaceName":"PartsBin/FreedomOfSpeech","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":542},{"__isSmartRef__":true,"id":544},{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":548},{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":552},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":556},{"__isSmartRef__":true,"id":558},{"__isSmartRef__":true,"id":560},{"__isSmartRef__":true,"id":562},{"__isSmartRef__":true,"id":564},{"__isSmartRef__":true,"id":566},{"__isSmartRef__":true,"id":568},{"__isSmartRef__":true,"id":570},{"__isSmartRef__":true,"id":572},{"__isSmartRef__":true,"id":574},{"__isSmartRef__":true,"id":576},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":582},{"__isSmartRef__":true,"id":584},{"__isSmartRef__":true,"id":586},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":590},{"__isSmartRef__":true,"id":592},{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":596},{"__isSmartRef__":true,"id":598},{"__isSmartRef__":true,"id":600},{"__isSmartRef__":true,"id":602},{"__isSmartRef__":true,"id":604},{"__isSmartRef__":true,"id":606},{"__isSmartRef__":true,"id":608},{"__isSmartRef__":true,"id":610},{"__isSmartRef__":true,"id":612},{"__isSmartRef__":true,"id":614},{"__isSmartRef__":true,"id":616},{"__isSmartRef__":true,"id":618},{"__isSmartRef__":true,"id":620},{"__isSmartRef__":true,"id":622},{"__isSmartRef__":true,"id":624},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":628},{"__isSmartRef__":true,"id":630},{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":634},{"__isSmartRef__":true,"id":636},{"__isSmartRef__":true,"id":638},{"__isSmartRef__":true,"id":640},{"__isSmartRef__":true,"id":642}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"542":{"date":{"__isSmartRef__":true,"id":543},"author":"lauritz","message":"difference between dev and normal style in border-width","id":"3001D4D8-C44F-49E0-8101-5726A7ACFD8F"},"543":{"isSerializedDate":true,"string":"Mon May 07 2012 18:54:58 GMT+0200 (Central Europe Daylight Time)"},"544":{"date":{"__isSmartRef__":true,"id":545},"author":"tessi","message":"cannot set color to null","id":"A33818D9-5418-451A-86B6-17C0E01E3D95"},"545":{"isSerializedDate":true,"string":"Thu May 03 2012 15:20:35 GMT+0200 (Central Europe Daylight Time)"},"546":{"date":{"__isSmartRef__":true,"id":547},"author":"timfelgentreff","message":"no comment","id":"3D7FD71F-6695-46ED-915B-DACB2BDD66EC"},"547":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:11 GMT+0200 (Central Europe Daylight Time)"},"548":{"date":{"__isSmartRef__":true,"id":549},"author":"tessi","message":"","id":"CDFC653A-73C4-4FEF-BF2F-E515698C9D49"},"549":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:40:27 GMT+0200 (Central Europe Daylight Time)"},"550":{"date":{"__isSmartRef__":true,"id":551},"author":"tessi","message":"cache Neighbours","id":"5AE79688-A888-4376-8A8F-63679330D24C"},"551":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:19 GMT+0200 (Central Europe Daylight Time)"},"552":{"date":{"__isSmartRef__":true,"id":553},"author":"tessi","message":"let characters register themself when enter/leave the tile","id":"9095AE1D-1FE5-44A4-9A4E-C9C39B1C4F40"},"553":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:48 GMT+0200 (Central Europe Daylight Time)"},"554":{"date":{"__isSmartRef__":true,"id":555},"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"},"555":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:58 GMT+0200 (Central Europe Daylight Time)"},"556":{"date":{"__isSmartRef__":true,"id":557},"author":"lauritz","message":"","id":"AC05F3B3-162F-4A75-A601-EA5F744AC530"},"557":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:25:17 GMT+0200 (Central Europe Daylight Time)"},"558":{"date":{"__isSmartRef__":true,"id":559},"author":"timfelgentreff","message":"revert last commit","id":"DEE21763-B63C-41AF-917B-4481E54000AF"},"559":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:53:55 GMT+0200 (Central Europe Daylight Time)"},"560":{"date":{"__isSmartRef__":true,"id":561},"author":"timfelgentreff","message":"uncomment return","id":"21656693-2A83-4D04-9612-55622B41EB18"},"561":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:46:38 GMT+0200 (Central Europe Daylight Time)"},"562":{"date":{"__isSmartRef__":true,"id":563},"author":"timfelgentreff","message":"fix shallowCopy","id":"5DDF2C7F-DEE5-4161-A515-B5831A00DCB3"},"563":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:13:27 GMT+0200 (Central Europe Daylight Time)"},"564":{"date":{"__isSmartRef__":true,"id":565},"author":"timfelgentreff","message":"add shallowCopy","id":"86DCAE73-A5D2-470F-BF0E-77E914236CEA"},"565":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:10:22 GMT+0200 (Central Europe Daylight Time)"},"566":{"date":{"__isSmartRef__":true,"id":567},"author":"timfelgentreff","message":"no comment","id":"181F2453-F14A-4CC7-BFF0-910480CD4B1F"},"567":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:23 GMT+0200 (Central Europe Daylight Time)"},"568":{"date":{"__isSmartRef__":true,"id":569},"author":"timfelgentreff","message":"show obstacle state in dev style","id":"9FD0FE89-0EE1-4499-B055-D2C077CCEACA"},"569":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:37:34 GMT+0200 (Central Europe Daylight Time)"},"570":{"date":{"__isSmartRef__":true,"id":571},"author":"timfelgentreff","message":"no comment","id":"4571845C-4F67-4DD6-954F-B93B98F8DDF3"},"571":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:35:25 GMT+0200 (Central Europe Daylight Time)"},"572":{"date":{"__isSmartRef__":true,"id":573},"author":"timfelgentreff","message":"fix adding obstacles","id":"891954C6-3DC3-41AC-8038-4E7C028B0147"},"573":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:37 GMT+0200 (Central Europe Daylight Time)"},"574":{"date":{"__isSmartRef__":true,"id":575},"author":"timfelgentreff","message":"things support","id":"DD13E7D3-6948-4B69-947A-24A2B084646B"},"575":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:58 GMT+0200 (Central Europe Daylight Time)"},"576":{"date":{"__isSmartRef__":true,"id":577},"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"},"577":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:14 GMT+0200 (Central Europe Daylight Time)"},"578":{"date":{"__isSmartRef__":true,"id":579},"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"},"579":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:29:15 GMT+0200 (Central Europe Daylight Time)"},"580":{"date":{"__isSmartRef__":true,"id":581},"author":"timfelgentreff","message":"","id":"712D65D3-A68A-47B9-AFDC-B20E826217DB"},"581":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:00:26 GMT+0200 (Central Europe Daylight Time)"},"582":{"date":{"__isSmartRef__":true,"id":583},"author":"timfelgentreff","message":"","id":"DF45FC66-1C49-447D-914F-A905DA0AECB2"},"583":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:47 GMT+0200 (Central Europe Daylight Time)"},"584":{"date":{"__isSmartRef__":true,"id":585},"author":"timfelgentreff","message":"","id":"6D9186F6-64FC-48E0-95AF-27E462A13E1D"},"585":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:55:04 GMT+0200 (Central Europe Daylight Time)"},"586":{"date":{"__isSmartRef__":true,"id":587},"author":"timfelgentreff","message":"","id":"24121E2C-3B59-48EF-8026-290C8D296496"},"587":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:02:53 GMT+0200 (Central Europe Daylight Time)"},"588":{"date":{"__isSmartRef__":true,"id":589},"author":"timfelgentreff","message":"","id":"F4CC9F23-A50B-4206-A549-A610CC9C69AC"},"589":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:11:38 GMT+0200 (Central Europe Daylight Time)"},"590":{"date":{"__isSmartRef__":true,"id":591},"author":"timfelgentreff","message":"","id":"563A8831-9CE6-49D1-B87D-453B761FB751"},"591":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:53 GMT+0200 (Central Europe Daylight Time)"},"592":{"date":{"__isSmartRef__":true,"id":593},"author":"timfelgentreff","message":"","id":"E1AA7A8A-D3C5-4263-9A1E-91C13F532ED6"},"593":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:55 GMT+0200 (Central Europe Daylight Time)"},"594":{"date":{"__isSmartRef__":true,"id":595},"author":"timfelgentreff","message":"","id":"0672C6C8-D032-495B-B9EE-E41F194C86DE"},"595":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:19:15 GMT+0200 (Central Europe Daylight Time)"},"596":{"date":{"__isSmartRef__":true,"id":597},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"597":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"598":{"date":{"__isSmartRef__":true,"id":599},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"599":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"600":{"date":{"__isSmartRef__":true,"id":601},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"601":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"602":{"date":{"__isSmartRef__":true,"id":603},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"603":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"604":{"date":{"__isSmartRef__":true,"id":605},"author":"timfelgentreff","message":"","id":"DE0AC226-458D-416E-A42C-BAA848650C4C"},"605":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:28:14 GMT+0200 (Central Europe Daylight Time)"},"606":{"date":{"__isSmartRef__":true,"id":607},"author":"lauritz","message":"","id":"CFD35308-806E-4804-8706-15DA1CEC5743"},"607":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:49:16 GMT+0200 (Central Europe Daylight Time)"},"608":{"date":{"__isSmartRef__":true,"id":609},"author":"timfelgentreff","message":"","id":"18365ED6-1BC8-43AD-ADC8-2B0C8005B784"},"609":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:23:38 GMT+0200 (Central Europe Daylight Time)"},"610":{"date":{"__isSmartRef__":true,"id":611},"author":"timfelgentreff","message":"","id":"4978F7BB-7FF5-47C1-8A55-6CAB03479B28"},"611":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:41:12 GMT+0200 (Central Europe Daylight Time)"},"612":{"date":{"__isSmartRef__":true,"id":613},"author":"timfelgentreff","message":"","id":"07EE540F-D786-49CC-8DD0-56F6B3AC6716"},"613":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:43:41 GMT+0200 (Central Europe Daylight Time)"},"614":{"date":{"__isSmartRef__":true,"id":615},"author":"timfelgentreff","message":"","id":"B5D9BC0C-15F0-4AE7-884B-48515F6A030E"},"615":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:08:19 GMT+0200 (Central Europe Daylight Time)"},"616":{"date":{"__isSmartRef__":true,"id":617},"author":"timfelgentreff","message":"","id":"F01F7BC6-E59F-4B63-8A3D-10C3AC3E34FD"},"617":{"isSerializedDate":true,"string":"Fri Apr 20 2012 08:22:08 GMT+0200 (Central Europe Daylight Time)"},"618":{"date":{"__isSmartRef__":true,"id":619},"author":"tessi","message":"revert timfels last commit (tile was overwritten with thing)","id":"27A8A743-D064-44C6-948E-8E3D5118790D"},"619":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:34:17 GMT+0200 (Central Europe Daylight Time)"},"620":{"date":{"__isSmartRef__":true,"id":621},"author":"timfelgentreff","message":"no comment","id":"6BBA00B9-6D11-4D9D-B6E9-95FE7CC915CD"},"621":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:20:14 GMT+0200 (Central Europe Daylight Time)"},"622":{"date":{"__isSmartRef__":true,"id":623},"author":"timfelgentreff","message":"no comment","id":"957E9210-4394-452A-9291-BD0E8FA736BF"},"623":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:28:00 GMT+0200 (Central Europe Daylight Time)"},"624":{"date":{"__isSmartRef__":true,"id":625},"author":"tessi","message":"added reset() method. use game() and map() instead of get() calls","id":"5B2AF6B7-3DC9-4EE1-A616-6510338BA091"},"625":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:18:16 GMT+0200 (Central Europe Daylight Time)"},"626":{"date":{"__isSmartRef__":true,"id":627},"author":"timfelgentreff","message":"avoid setting props in shallowCopy","id":"0102BAF0-8471-4805-98CB-FFA285A96B15"},"627":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:45:14 GMT+0200 (Central Europe Daylight Time)"},"628":{"date":{"__isSmartRef__":true,"id":629},"author":"timfelgentreff","message":"copy properties,too, so we can publish","id":"409A8B29-1CB7-4C30-B420-7F0FEB4489EA"},"629":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:48:47 GMT+0200 (Central Europe Daylight Time)"},"630":{"date":{"__isSmartRef__":true,"id":631},"author":"tessi","message":"added stub method for getting characters standing on the tile","id":"2DD011DC-7ABF-4928-A2EE-FDA603BCB307"},"631":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:22:23 GMT+0200 (Central Europe Daylight Time)"},"632":{"date":{"__isSmartRef__":true,"id":633},"author":"lauritz","message":"no comment","id":"2A0ACEC2-2DDA-4061-9ECE-8D49CCD6C0A0"},"633":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:00:07 GMT+0200 (Central Europe Daylight Time)"},"634":{"date":{"__isSmartRef__":true,"id":635},"author":"timfelgentreff","message":"revert caching","id":"03257D32-EA99-4EA6-8CFA-D6C55E6A4D96"},"635":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:20:05 GMT+0200 (Central Europe Daylight Time)"},"636":{"date":{"__isSmartRef__":true,"id":637},"author":"tessi","message":"fix neighbours calculation","id":"F2AE41B4-A670-4277-B7F3-5BCC20D74ECE"},"637":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:48 GMT+0200 (Central Europe Daylight Time)"},"638":{"date":{"__isSmartRef__":true,"id":639},"author":"timfelgentreff","message":"add a neighboursReachableFromHere function, so we can return only neighbours that are reachable to A*","id":"646448AF-6B6F-4D4E-900B-2DC7B927ACE8"},"639":{"isSerializedDate":true,"string":"Thu May 03 2012 13:29:50 GMT+0200 (Central Europe Daylight Time)"},"640":{"date":{"__isSmartRef__":true,"id":641},"author":"tessi","message":"normal border color is transparent","id":"94D5AA98-D1D9-4C6F-BED3-828305C3F390"},"641":{"isSerializedDate":true,"string":"Thu May 03 2012 15:25:32 GMT+0200 (Central Europe Daylight Time)"},"642":{"date":{"__isSmartRef__":true,"id":643},"author":"tessi","message":"no comment","id":"928E1DC4-09B5-46D7-A245-48E332175C68"},"643":{"isSerializedDate":true,"string":"Fri May 04 2012 17:01:42 GMT+0200 (Central Europe Daylight Time)"},"644":{"submorphs":[{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":4510},{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":1350},{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1454},{"__isSmartRef__":true,"id":4780},{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":1343},{"__isSmartRef__":true,"id":2368},{"__isSmartRef__":true,"id":4690},{"__isSmartRef__":true,"id":1246},{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":1336},{"__isSmartRef__":true,"id":2624},{"__isSmartRef__":true,"id":2631},{"__isSmartRef__":true,"id":4600},{"__isSmartRef__":true,"id":4337},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":2721},{"__isSmartRef__":true,"id":2728},{"__isSmartRef__":true,"id":2832},{"__isSmartRef__":true,"id":5018},{"__isSmartRef__":true,"id":5108},{"__isSmartRef__":true,"id":3915},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":2839},{"__isSmartRef__":true,"id":3306},{"__isSmartRef__":true,"id":5198},{"__isSmartRef__":true,"id":5288},{"__isSmartRef__":true,"id":5410},{"__isSmartRef__":true,"id":3396},{"__isSmartRef__":true,"id":3486},{"__isSmartRef__":true,"id":3576},{"__isSmartRef__":true,"id":1461},{"__isSmartRef__":true,"id":318},{"__isSmartRef__":true,"id":2846}],"scripts":[],"id":"4230ABDE-4F8B-4820-B72B-F717B03B85B9","shape":{"__isSmartRef__":true,"id":5500},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Map","partsBinMetaInfo":{"__isSmartRef__":true,"id":5501},"eventHandler":{"__isSmartRef__":true,"id":5510},"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","51D2E387-4380-4422-B47D-72D1D1530C65","71884EAE-76A4-4E86-840E-58D89EF576E5","7FC33F62-DC6A-4BD7-8CCF-BDA9A0D9AFC5"],"partTests":{"__isSmartRef__":true,"id":5511},"owner":{"__isSmartRef__":true,"id":5516},"prevScroll":[0,0],"tiles":[[{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":4780},{"__isSmartRef__":true,"id":4690},{"__isSmartRef__":true,"id":4600},{"__isSmartRef__":true,"id":5018},{"__isSmartRef__":true,"id":5198}],[{"__isSmartRef__":true,"id":4510},{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1246},{"__isSmartRef__":true,"id":4337},{"__isSmartRef__":true,"id":5108},{"__isSmartRef__":true,"id":5288}],[{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":3915},{"__isSmartRef__":true,"id":5410}],[{"__isSmartRef__":true,"id":1350},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":1336},{"__isSmartRef__":true,"id":2721},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":3396}],[{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1343},{"__isSmartRef__":true,"id":2624},{"__isSmartRef__":true,"id":2728},{"__isSmartRef__":true,"id":2839},{"__isSmartRef__":true,"id":3486}],[{"__isSmartRef__":true,"id":1454},{"__isSmartRef__":true,"id":2368},{"__isSmartRef__":true,"id":2631},{"__isSmartRef__":true,"id":2832},{"__isSmartRef__":true,"id":3306},{"__isSmartRef__":true,"id":3576}]],"_ClipMode":"visible","isMap":true,"isCopyMorphRef":true,"morphRefId":1,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5622},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1.6,-1.4)","distanceToDragEvent":"lively.pt(379.0,-19.3)"},"645":{"submorphs":[{"__isSmartRef__":true,"id":646}],"scripts":[],"shape":{"__isSmartRef__":true,"id":650},"derivationIds":[null,"7DF8AFAE-FD28-49FF-ACB8-C0E0464DD2B8"],"id":"0FB9364D-54E9-4573-827B-A491538C74AB","eventHandler":{"__isSmartRef__":true,"id":651},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":0,"column":0,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":646},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4935},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"646":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":647},"derivationIds":[null,"3B15490C-8ED9-47FA-A0B8-4E9389FE96F5"],"id":"E6170005-DA24-44A3-B37B-4EC5A4710409","eventHandler":{"__isSmartRef__":true,"id":648},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":645},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":649},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"647":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-3b15490c-8ed9-47fa-a0b8-4e9389fe96f5","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"648":{"morph":{"__isSmartRef__":true,"id":646},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"649":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"650":{"_NodeClass":["morph","box"],"_NodeId":"morph-7df8afae-fd28-49ff-acb8-c0e0464dd2b8","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"651":{"morph":{"__isSmartRef__":true,"id":645},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"652":{"submorphs":[{"__isSmartRef__":true,"id":653}],"scripts":[],"id":"9FCA8F46-9EC7-4634-BD7C-2A3211B015D4","shape":{"__isSmartRef__":true,"id":675},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Thing","partsBinMetaInfo":{"__isSmartRef__":true,"id":676},"eventHandler":{"__isSmartRef__":true,"id":751},"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","FC58D829-A2E5-478F-B93F-D683886A47CB"],"partTests":{"__isSmartRef__":true,"id":752},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":757},"thing":{"__isSmartRef__":true,"id":653},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":4337},{"__isSmartRef__":true,"id":1246},{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":4510},{"__isSmartRef__":true,"id":4600},{"__isSmartRef__":true,"id":4690},{"__isSmartRef__":true,"id":4780},{"__isSmartRef__":true,"id":645}],"owner":{"__isSmartRef__":true,"id":757},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4870},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":654},"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","7DAE371E-8C77-4F24-A84D-CD29E1E11B24"],"id":"8F30313D-DB89-48B8-A5A7-746C84C74CCD","eventHandler":{"__isSmartRef__":true,"id":655},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"TreeThing1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":656},"moved":true,"isThing":true,"_ClipMode":"visible","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":652},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":667},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-93.0,-132.0)"},"654":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/tree.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(141.0,180.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"655":{"morph":{"__isSmartRef__":true,"id":653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"656":{"partName":"TreeThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A not movable tree.","changes":[{"__isSmartRef__":true,"id":657},{"__isSmartRef__":true,"id":659},{"__isSmartRef__":true,"id":661},{"__isSmartRef__":true,"id":663},{"__isSmartRef__":true,"id":665}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"657":{"date":{"__isSmartRef__":true,"id":658},"author":"timfelgentreff","message":"resize","id":"178F8ABC-5DE3-489C-B8EA-1AA89F7BD552"},"658":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:33:32 GMT+0200 (Central Europe Daylight Time)"},"659":{"date":{"__isSmartRef__":true,"id":660},"author":"tessi","message":"","id":"7B587A9B-4A72-4337-B5A2-22ECF5417652"},"660":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:14:54 GMT+0200 (Central Europe Daylight Time)"},"661":{"date":{"__isSmartRef__":true,"id":662},"author":"tessi","message":"","id":"94DAAC08-767D-4E73-AC75-1D56331C7ACC"},"662":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:43:14 GMT+0200 (Central Europe Daylight Time)"},"663":{"date":{"__isSmartRef__":true,"id":664},"author":"tessi","message":"","id":"DFDA9255-BAD7-44C4-BCDC-36D91964FC81"},"664":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:51:42 GMT+0200 (Central Europe Daylight Time)"},"665":{"date":{"__isSmartRef__":true,"id":666},"author":"timfelgentreff","message":"no comment","id":"C9A066E4-3B98-4778-92E0-0E8C5CF4FFA8"},"666":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:07:31 GMT+0200 (Central Europe Daylight Time)"},"667":{"dropOn":{"__isSmartRef__":true,"id":668}},"668":{"varMapping":{"__isSmartRef__":true,"id":669},"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":674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"669":{"this":{"__isSmartRef__":true,"id":653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":670}},"670":{"$super":{"__isSmartRef__":true,"id":671}},"671":{"varMapping":{"__isSmartRef__":true,"id":672},"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":673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"672":{"obj":{"__isSmartRef__":true,"id":653},"name":"dropOn"},"673":{},"674":{},"675":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"676":{"partsSpaceName":"PartsBin/FreedomOfSpeech","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":677},{"__isSmartRef__":true,"id":679},{"__isSmartRef__":true,"id":681},{"__isSmartRef__":true,"id":683},{"__isSmartRef__":true,"id":685},{"__isSmartRef__":true,"id":687},{"__isSmartRef__":true,"id":689},{"__isSmartRef__":true,"id":691},{"__isSmartRef__":true,"id":693},{"__isSmartRef__":true,"id":695},{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":699},{"__isSmartRef__":true,"id":701},{"__isSmartRef__":true,"id":703},{"__isSmartRef__":true,"id":705},{"__isSmartRef__":true,"id":707},{"__isSmartRef__":true,"id":709},{"__isSmartRef__":true,"id":711},{"__isSmartRef__":true,"id":713},{"__isSmartRef__":true,"id":715},{"__isSmartRef__":true,"id":717},{"__isSmartRef__":true,"id":719},{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":723},{"__isSmartRef__":true,"id":725},{"__isSmartRef__":true,"id":727},{"__isSmartRef__":true,"id":729},{"__isSmartRef__":true,"id":731},{"__isSmartRef__":true,"id":733},{"__isSmartRef__":true,"id":735},{"__isSmartRef__":true,"id":737},{"__isSmartRef__":true,"id":739},{"__isSmartRef__":true,"id":741},{"__isSmartRef__":true,"id":743},{"__isSmartRef__":true,"id":745},{"__isSmartRef__":true,"id":747},{"__isSmartRef__":true,"id":749}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"677":{"date":{"__isSmartRef__":true,"id":678},"author":"tessi","message":"cannot set color to null","id":"C0274811-3BE8-44E9-8C87-99D1F426E9D7"},"678":{"isSerializedDate":true,"string":"Thu May 03 2012 15:21:30 GMT+0200 (Central Europe Daylight Time)"},"679":{"date":{"__isSmartRef__":true,"id":680},"author":"tessi","message":"reset() sets devStyle; replace get() calls with game() and map()","id":"2AB88C79-A426-4144-9134-5E0717044086"},"680":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:29 GMT+0200 (Central Europe Daylight Time)"},"681":{"date":{"__isSmartRef__":true,"id":682},"author":"timfelgentreff","message":"no comment","id":"49C8495C-85F0-4B00-AB8B-0086DC167B81"},"682":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:35:31 GMT+0200 (Central Europe Daylight Time)"},"683":{"date":{"__isSmartRef__":true,"id":684},"author":"timfelgentreff","message":"setExtent before setPosition","id":"6FDDC46A-4F38-43E9-9258-5570855703AE"},"684":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:01:01 GMT+0200 (Central Europe Daylight Time)"},"685":{"date":{"__isSmartRef__":true,"id":686},"author":"timfelgentreff","message":"blue border","id":"BA7A047B-D7E3-4AB9-95E0-0AD19B254904"},"686":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:59:59 GMT+0200 (Central Europe Daylight Time)"},"687":{"date":{"__isSmartRef__":true,"id":688},"author":"timfelgentreff","message":"","id":"F01F7BC6-E59F-4B63-8A3D-10C3AC3E34FD"},"688":{"isSerializedDate":true,"string":"Fri Apr 20 2012 08:22:08 GMT+0200 (Central Europe Daylight Time)"},"689":{"date":{"__isSmartRef__":true,"id":690},"author":"timfelgentreff","message":"","id":"B5D9BC0C-15F0-4AE7-884B-48515F6A030E"},"690":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:08:19 GMT+0200 (Central Europe Daylight Time)"},"691":{"date":{"__isSmartRef__":true,"id":692},"author":"timfelgentreff","message":"","id":"07EE540F-D786-49CC-8DD0-56F6B3AC6716"},"692":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:43:41 GMT+0200 (Central Europe Daylight Time)"},"693":{"date":{"__isSmartRef__":true,"id":694},"author":"timfelgentreff","message":"","id":"4978F7BB-7FF5-47C1-8A55-6CAB03479B28"},"694":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:41:12 GMT+0200 (Central Europe Daylight Time)"},"695":{"date":{"__isSmartRef__":true,"id":696},"author":"timfelgentreff","message":"","id":"18365ED6-1BC8-43AD-ADC8-2B0C8005B784"},"696":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:23:38 GMT+0200 (Central Europe Daylight Time)"},"697":{"date":{"__isSmartRef__":true,"id":698},"author":"lauritz","message":"","id":"CFD35308-806E-4804-8706-15DA1CEC5743"},"698":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:49:16 GMT+0200 (Central Europe Daylight Time)"},"699":{"date":{"__isSmartRef__":true,"id":700},"author":"timfelgentreff","message":"","id":"DE0AC226-458D-416E-A42C-BAA848650C4C"},"700":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:28:14 GMT+0200 (Central Europe Daylight Time)"},"701":{"date":{"__isSmartRef__":true,"id":702},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"702":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"703":{"date":{"__isSmartRef__":true,"id":704},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"704":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"705":{"date":{"__isSmartRef__":true,"id":706},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"706":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"707":{"date":{"__isSmartRef__":true,"id":708},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"708":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"709":{"date":{"__isSmartRef__":true,"id":710},"author":"timfelgentreff","message":"","id":"0672C6C8-D032-495B-B9EE-E41F194C86DE"},"710":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:19:15 GMT+0200 (Central Europe Daylight Time)"},"711":{"date":{"__isSmartRef__":true,"id":712},"author":"timfelgentreff","message":"","id":"E1AA7A8A-D3C5-4263-9A1E-91C13F532ED6"},"712":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:55 GMT+0200 (Central Europe Daylight Time)"},"713":{"date":{"__isSmartRef__":true,"id":714},"author":"timfelgentreff","message":"","id":"563A8831-9CE6-49D1-B87D-453B761FB751"},"714":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:53 GMT+0200 (Central Europe Daylight Time)"},"715":{"date":{"__isSmartRef__":true,"id":716},"author":"timfelgentreff","message":"","id":"F4CC9F23-A50B-4206-A549-A610CC9C69AC"},"716":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:11:38 GMT+0200 (Central Europe Daylight Time)"},"717":{"date":{"__isSmartRef__":true,"id":718},"author":"timfelgentreff","message":"","id":"24121E2C-3B59-48EF-8026-290C8D296496"},"718":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:02:53 GMT+0200 (Central Europe Daylight Time)"},"719":{"date":{"__isSmartRef__":true,"id":720},"author":"timfelgentreff","message":"","id":"6D9186F6-64FC-48E0-95AF-27E462A13E1D"},"720":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:55:04 GMT+0200 (Central Europe Daylight Time)"},"721":{"date":{"__isSmartRef__":true,"id":722},"author":"timfelgentreff","message":"","id":"DF45FC66-1C49-447D-914F-A905DA0AECB2"},"722":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:47 GMT+0200 (Central Europe Daylight Time)"},"723":{"date":{"__isSmartRef__":true,"id":724},"author":"timfelgentreff","message":"","id":"712D65D3-A68A-47B9-AFDC-B20E826217DB"},"724":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:00:26 GMT+0200 (Central Europe Daylight Time)"},"725":{"date":{"__isSmartRef__":true,"id":726},"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"},"726":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:29:15 GMT+0200 (Central Europe Daylight Time)"},"727":{"date":{"__isSmartRef__":true,"id":728},"author":"timfelgentreff","message":"initial publish","id":"4384AF65-BA4C-424D-A5EA-E68A6EEE9E6F"},"728":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:39:23 GMT+0200 (Central Europe Daylight Time)"},"729":{"date":{"__isSmartRef__":true,"id":730},"author":"timfelgentreff","message":"add support for registering and deregistering as obstacle","id":"6E027D14-54DC-4EEE-86D7-F76CD7A727B5"},"730":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:57 GMT+0200 (Central Europe Daylight Time)"},"731":{"date":{"__isSmartRef__":true,"id":732},"author":"timfelgentreff","message":"fix registering","id":"C3CC144E-61B2-4154-963B-F5812D40887C"},"732":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:25:20 GMT+0200 (Central Europe Daylight Time)"},"733":{"date":{"__isSmartRef__":true,"id":734},"author":"timfelgentreff","message":"fix DNU","id":"CB97C29A-144D-4AA8-9763-C6AD0294C76D"},"734":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:29 GMT+0200 (Central Europe Daylight Time)"},"735":{"date":{"__isSmartRef__":true,"id":736},"author":"timfelgentreff","message":"push the right tiles to occluded tiles","id":"4756DD2F-8511-47A5-BA08-D24CB2CDB071"},"736":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:47:29 GMT+0200 (Central Europe Daylight Time)"},"737":{"date":{"__isSmartRef__":true,"id":738},"author":"timfelgentreff","message":"no comment","id":"4E20F671-CDDF-4A8C-B375-590965148158"},"738":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:48:48 GMT+0200 (Central Europe Daylight Time)"},"739":{"date":{"__isSmartRef__":true,"id":740},"author":"timfelgentreff","message":"actually register things as obstacle for the whole rectangle, not only the other stuff","id":"E15C00E6-10CD-4BEE-A685-C852A7D2B0FA"},"740":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:06:03 GMT+0200 (Central Europe Daylight Time)"},"741":{"date":{"__isSmartRef__":true,"id":742},"author":"timfelgentreff","message":"use the right index","id":"82122F19-AA93-4BE0-82A3-98068DCF0F25"},"742":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:11:07 GMT+0200 (Central Europe Daylight Time)"},"743":{"date":{"__isSmartRef__":true,"id":744},"author":"timfelgentreff","message":"no comment","id":"8B215513-36A1-4E9D-A85F-901CF829A749"},"744":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:20:02 GMT+0200 (Central Europe Daylight Time)"},"745":{"date":{"__isSmartRef__":true,"id":746},"author":"timfelgentreff","message":"fix deregister obstacle, function scope this error","id":"9107E550-ADD2-4504-90DA-7D389E5EE394"},"746":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:27:22 GMT+0200 (Central Europe Daylight Time)"},"747":{"date":{"__isSmartRef__":true,"id":748},"author":"timfelgentreff","message":"change become() so it accepts a ThingMorph as well as a name","id":"0039C1AA-215A-4BE0-AA97-F1C383BE908C"},"748":{"isSerializedDate":true,"string":"Thu May 03 2012 13:49:59 GMT+0200 (Central Europe Daylight Time)"},"749":{"date":{"__isSmartRef__":true,"id":750},"author":"tessi","message":"normal border color is transparent","id":"1665FD61-C4FA-4C51-9616-9C5E1C8B9F80"},"750":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:59 GMT+0200 (Central Europe Daylight Time)"},"751":{"morph":{"__isSmartRef__":true,"id":652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"752":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":753}},"753":{"test01IsMorph":{"__isSmartRef__":true,"id":754}},"754":{"varMapping":{"__isSmartRef__":true,"id":755},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"755":{"this":{"__isSmartRef__":true,"id":752}},"756":{},"757":{"submorphs":[{"__isSmartRef__":true,"id":758},{"__isSmartRef__":true,"id":652},{"__isSmartRef__":true,"id":762}],"scripts":[],"shape":{"__isSmartRef__":true,"id":857},"derivationIds":[null,"5D71EA8B-28E1-4E8C-9DC8-EF89E79DFD11"],"id":"0E8B49DA-15E7-410D-A4B4-E53AC13BE14D","eventHandler":{"__isSmartRef__":true,"id":858},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":3,"column":2,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":758},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652},{"__isSmartRef__":true,"id":762}],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":859},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,144.0)"},"758":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":759},"derivationIds":[null,"6167F050-0315-48C9-B754-417097F882E4"],"id":"6DE89BEB-5040-4943-9302-F3FC2876E017","eventHandler":{"__isSmartRef__":true,"id":760},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":757},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":761},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"759":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-6167f050-0315-48c9-b754-417097f882e4","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"760":{"morph":{"__isSmartRef__":true,"id":758},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"761":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"762":{"submorphs":[{"__isSmartRef__":true,"id":763}],"scripts":[],"id":"930C41D2-D679-4105-AA9F-B4C566B3FADC","shape":{"__isSmartRef__":true,"id":785},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Thing1","partsBinMetaInfo":{"__isSmartRef__":true,"id":676},"eventHandler":{"__isSmartRef__":true,"id":786},"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","051EC56C-9DC3-4BB4-9211-0E9292B9801C"],"partTests":{"__isSmartRef__":true,"id":787},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":757},"thing":{"__isSmartRef__":true,"id":763},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":757}],"owner":{"__isSmartRef__":true,"id":757},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":792},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"763":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":764},"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","46D41B52-FBAE-40A8-BD95-ED0CDBE774AC"],"id":"4DE017D5-DE20-4702-8770-E5703722731D","eventHandler":{"__isSmartRef__":true,"id":765},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"StoneThing1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":766},"moved":true,"isThing":true,"_ClipMode":"visible","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":762},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":777},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1.1,7.0)"},"764":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/stone.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(46.9,41.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"765":{"morph":{"__isSmartRef__":true,"id":763},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"766":{"partName":"StoneThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A not movable small stone","changes":[{"__isSmartRef__":true,"id":767},{"__isSmartRef__":true,"id":769},{"__isSmartRef__":true,"id":771},{"__isSmartRef__":true,"id":773},{"__isSmartRef__":true,"id":775}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"767":{"date":{"__isSmartRef__":true,"id":768},"author":"tessi","message":"","id":"35E2FCB1-4523-4C38-BF2F-23AF31A6C151"},"768":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:51 GMT+0200 (Central Europe Daylight Time)"},"769":{"date":{"__isSmartRef__":true,"id":770},"author":"tessi","message":"","id":"D1D6F65B-D24E-4293-8C81-48CBAFEF3099"},"770":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:45:34 GMT+0200 (Central Europe Daylight Time)"},"771":{"date":{"__isSmartRef__":true,"id":772},"author":"tessi","message":"","id":"36F7E7BC-32AC-43F2-80B4-1E7A9DCD17B5"},"772":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:15:05 GMT+0200 (Central Europe Daylight Time)"},"773":{"date":{"__isSmartRef__":true,"id":774},"author":"timfelgentreff","message":"no comment","id":"5D1A1DB1-5B9B-495C-B68E-542540FCF595"},"774":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:08:23 GMT+0200 (Central Europe Daylight Time)"},"775":{"date":{"__isSmartRef__":true,"id":776},"author":"timfelgentreff","message":"no comment","id":"1CA65555-3218-4D9F-A68E-950B51C9D7B8"},"776":{"isSerializedDate":true,"string":"Thu May 03 2012 14:03:04 GMT+0200 (Central Europe Daylight Time)"},"777":{"dropOn":{"__isSmartRef__":true,"id":778}},"778":{"varMapping":{"__isSmartRef__":true,"id":779},"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":784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"779":{"this":{"__isSmartRef__":true,"id":763},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":780}},"780":{"$super":{"__isSmartRef__":true,"id":781}},"781":{"varMapping":{"__isSmartRef__":true,"id":782},"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":783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"782":{"obj":{"__isSmartRef__":true,"id":763},"name":"dropOn"},"783":{},"784":{},"785":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"786":{"morph":{"__isSmartRef__":true,"id":762},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"787":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":788}},"788":{"test01IsMorph":{"__isSmartRef__":true,"id":789}},"789":{"varMapping":{"__isSmartRef__":true,"id":790},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"790":{"this":{"__isSmartRef__":true,"id":787}},"791":{},"792":{"setDevStyle":{"__isSmartRef__":true,"id":793},"setNormalStyle":{"__isSmartRef__":true,"id":797},"become":{"__isSmartRef__":true,"id":801},"onMouseDown":{"__isSmartRef__":true,"id":805},"toolbox":{"__isSmartRef__":true,"id":813},"zIndex":{"__isSmartRef__":true,"id":817},"becomeRandomThing":{"__isSmartRef__":true,"id":821},"reset":{"__isSmartRef__":true,"id":825},"registerAsObstacle":{"__isSmartRef__":true,"id":829},"deregisterAsObstacle":{"__isSmartRef__":true,"id":833},"tileSize":{"__isSmartRef__":true,"id":837},"dropOn":{"__isSmartRef__":true,"id":841},"map":{"__isSmartRef__":true,"id":849},"game":{"__isSmartRef__":true,"id":853}},"793":{"varMapping":{"__isSmartRef__":true,"id":794},"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":795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"794":{"this":{"__isSmartRef__":true,"id":762}},"795":{"timestamp":{"__isSmartRef__":true,"id":796},"user":"timfelgentreff","tags":[]},"796":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (Central Europe Daylight Time)"},"797":{"varMapping":{"__isSmartRef__":true,"id":798},"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":799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"798":{"this":{"__isSmartRef__":true,"id":762}},"799":{"timestamp":{"__isSmartRef__":true,"id":800},"user":"tessi","tags":[]},"800":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (Central Europe Daylight Time)"},"801":{"varMapping":{"__isSmartRef__":true,"id":802},"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":803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"802":{"this":{"__isSmartRef__":true,"id":762}},"803":{"timestamp":{"__isSmartRef__":true,"id":804},"user":"timfelgentreff","tags":[]},"804":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (Central Europe Daylight Time)"},"805":{"varMapping":{"__isSmartRef__":true,"id":806},"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":811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"806":{"this":{"__isSmartRef__":true,"id":762},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":807}},"807":{"$super":{"__isSmartRef__":true,"id":808}},"808":{"varMapping":{"__isSmartRef__":true,"id":809},"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":810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"809":{"obj":{"__isSmartRef__":true,"id":762},"name":"onMouseDown"},"810":{},"811":{"timestamp":{"__isSmartRef__":true,"id":812},"user":"tessi","tags":[]},"812":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (Central Europe Daylight Time)"},"813":{"varMapping":{"__isSmartRef__":true,"id":814},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"814":{"this":{"__isSmartRef__":true,"id":762}},"815":{"timestamp":{"__isSmartRef__":true,"id":816},"user":"tessi","tags":[]},"816":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (Central Europe Daylight Time)"},"817":{"varMapping":{"__isSmartRef__":true,"id":818},"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":819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"818":{"this":{"__isSmartRef__":true,"id":762}},"819":{"timestamp":{"__isSmartRef__":true,"id":820},"user":"timfelgentreff","tags":[]},"820":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (Central Europe Daylight Time)"},"821":{"varMapping":{"__isSmartRef__":true,"id":822},"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":823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"822":{"this":{"__isSmartRef__":true,"id":762}},"823":{"timestamp":{"__isSmartRef__":true,"id":824},"user":"tessi","tags":[]},"824":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (Central Europe Daylight Time)"},"825":{"varMapping":{"__isSmartRef__":true,"id":826},"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":827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"826":{"this":{"__isSmartRef__":true,"id":762}},"827":{"timestamp":{"__isSmartRef__":true,"id":828},"user":"tessi","tags":[]},"828":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (Central Europe Daylight Time)"},"829":{"varMapping":{"__isSmartRef__":true,"id":830},"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":831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"830":{"this":{"__isSmartRef__":true,"id":762}},"831":{"timestamp":{"__isSmartRef__":true,"id":832},"user":"timfelgentreff","tags":[]},"832":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (Central Europe Daylight Time)"},"833":{"varMapping":{"__isSmartRef__":true,"id":834},"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":835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"834":{"this":{"__isSmartRef__":true,"id":762}},"835":{"timestamp":{"__isSmartRef__":true,"id":836},"user":"timfelgentreff","tags":[]},"836":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (Central Europe Daylight Time)"},"837":{"varMapping":{"__isSmartRef__":true,"id":838},"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":839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"838":{"this":{"__isSmartRef__":true,"id":762}},"839":{"timestamp":{"__isSmartRef__":true,"id":840},"user":"timfelgentreff","tags":[]},"840":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (Central Europe Daylight Time)"},"841":{"varMapping":{"__isSmartRef__":true,"id":842},"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":847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"842":{"this":{"__isSmartRef__":true,"id":762},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":843}},"843":{"$super":{"__isSmartRef__":true,"id":844}},"844":{"varMapping":{"__isSmartRef__":true,"id":845},"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":846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"845":{"obj":{"__isSmartRef__":true,"id":762},"name":"dropOn"},"846":{},"847":{"timestamp":{"__isSmartRef__":true,"id":848},"user":"timfelgentreff","tags":[]},"848":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (Central Europe Daylight Time)"},"849":{"varMapping":{"__isSmartRef__":true,"id":850},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"850":{"this":{"__isSmartRef__":true,"id":762}},"851":{"timestamp":{"__isSmartRef__":true,"id":852},"user":"tessi","tags":[]},"852":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (Central Europe Daylight Time)"},"853":{"varMapping":{"__isSmartRef__":true,"id":854},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"854":{"this":{"__isSmartRef__":true,"id":762}},"855":{"timestamp":{"__isSmartRef__":true,"id":856},"user":"tessi","tags":[]},"856":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (Central Europe Daylight Time)"},"857":{"_NodeClass":["morph","box"],"_NodeId":"morph-5d71ea8b-28e1-4e8c-9dc8-ef89e79dfd11","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"858":{"morph":{"__isSmartRef__":true,"id":757},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"859":{"setDevStyle":{"__isSmartRef__":true,"id":860},"setNormalStyle":{"__isSmartRef__":true,"id":980},"tileSize":{"__isSmartRef__":true,"id":983},"become":{"__isSmartRef__":true,"id":986},"onMouseDown":{"__isSmartRef__":true,"id":989},"setGridPosition":{"__isSmartRef__":true,"id":996},"toolbox":{"__isSmartRef__":true,"id":999},"distanceTo":{"__isSmartRef__":true,"id":1002},"tileWasDropped":{"__isSmartRef__":true,"id":1005},"isObstacle":{"__isSmartRef__":true,"id":1008},"neighboursInDirection":{"__isSmartRef__":true,"id":1011},"neighbours":{"__isSmartRef__":true,"id":1014},"zIndex":{"__isSmartRef__":true,"id":1017},"obstacles":{"__isSmartRef__":true,"id":1020},"addObstacle":{"__isSmartRef__":true,"id":1023},"removeObstacle":{"__isSmartRef__":true,"id":1026},"isTile":{"__isSmartRef__":true,"id":1029},"neighbourAt":{"__isSmartRef__":true,"id":1032},"map":{"__isSmartRef__":true,"id":1035},"game":{"__isSmartRef__":true,"id":1038},"reset":{"__isSmartRef__":true,"id":1041},"shallowCopy":{"__isSmartRef__":true,"id":1044},"characters":{"__isSmartRef__":true,"id":1047},"enterTile":{"__isSmartRef__":true,"id":1050},"leaveTile":{"__isSmartRef__":true,"id":1053},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1056}},"860":{"varMapping":{"__isSmartRef__":true,"id":861},"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":862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"861":{"this":{"__isSmartRef__":true,"id":757}},"862":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"863":{"isSerializedDate":true,"string":"Mon May 07 2012 18:57:47 GMT+0200 (Central Europe Daylight Time)"},"864":{"varMapping":{"__isSmartRef__":true,"id":865},"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":979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"865":{"this":{"__isSmartRef__":true,"id":866}},"866":{"submorphs":[],"scripts":[],"id":"0B56F48F-9375-47D5-827B-CB980ED836D4","shape":{"__isSmartRef__":true,"id":867},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Tile1","partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"eventHandler":{"__isSmartRef__":true,"id":868},"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":869},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","__obstacles":[],"row":5,"column":1,"terrain":null,"grabbingEnabled":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0120783653693808,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":874},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(61.0,14.0)"},"867":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(204,0,0)","_Padding":"lively.rect(0,0,0,0)"},"868":{"morph":{"__isSmartRef__":true,"id":866},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"869":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":870}},"870":{"test01IsMorph":{"__isSmartRef__":true,"id":871}},"871":{"varMapping":{"__isSmartRef__":true,"id":872},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"872":{"this":{"__isSmartRef__":true,"id":869}},"873":{},"874":{"setDevStyle":{"__isSmartRef__":true,"id":864},"setNormalStyle":{"__isSmartRef__":true,"id":875},"tileSize":{"__isSmartRef__":true,"id":879},"become":{"__isSmartRef__":true,"id":883},"onMouseDown":{"__isSmartRef__":true,"id":887},"setGridPosition":{"__isSmartRef__":true,"id":895},"toolbox":{"__isSmartRef__":true,"id":899},"distanceTo":{"__isSmartRef__":true,"id":903},"tileWasDropped":{"__isSmartRef__":true,"id":907},"isObstacle":{"__isSmartRef__":true,"id":911},"neighboursInDirection":{"__isSmartRef__":true,"id":915},"neighbours":{"__isSmartRef__":true,"id":919},"zIndex":{"__isSmartRef__":true,"id":923},"obstacles":{"__isSmartRef__":true,"id":927},"addObstacle":{"__isSmartRef__":true,"id":931},"removeObstacle":{"__isSmartRef__":true,"id":935},"isTile":{"__isSmartRef__":true,"id":939},"neighbourAt":{"__isSmartRef__":true,"id":943},"map":{"__isSmartRef__":true,"id":947},"game":{"__isSmartRef__":true,"id":951},"reset":{"__isSmartRef__":true,"id":955},"shallowCopy":{"__isSmartRef__":true,"id":959},"characters":{"__isSmartRef__":true,"id":963},"enterTile":{"__isSmartRef__":true,"id":967},"leaveTile":{"__isSmartRef__":true,"id":971},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":975}},"875":{"varMapping":{"__isSmartRef__":true,"id":876},"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":877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"876":{"this":{"__isSmartRef__":true,"id":866}},"877":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[]},"878":{"isSerializedDate":true,"string":"Mon May 07 2012 18:58:21 GMT+0200 (Central Europe Daylight Time)"},"879":{"varMapping":{"__isSmartRef__":true,"id":880},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"880":{"this":{"__isSmartRef__":true,"id":866}},"881":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[]},"882":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:04:53 GMT+0200 (Central Europe Daylight Time)"},"883":{"varMapping":{"__isSmartRef__":true,"id":884},"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":885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"884":{"this":{"__isSmartRef__":true,"id":866}},"885":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[]},"886":{"isSerializedDate":true,"string":"Fri May 04 2012 13:31:11 GMT+0200 (Central Europe Daylight Time)"},"887":{"varMapping":{"__isSmartRef__":true,"id":888},"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":893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"888":{"this":{"__isSmartRef__":true,"id":866},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":889}},"889":{"$super":{"__isSmartRef__":true,"id":890}},"890":{"varMapping":{"__isSmartRef__":true,"id":891},"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":892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"891":{"obj":{"__isSmartRef__":true,"id":866},"name":"onMouseDown"},"892":{},"893":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[]},"894":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:14 GMT+0200 (Central Europe Daylight Time)"},"895":{"varMapping":{"__isSmartRef__":true,"id":896},"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":897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"896":{"this":{"__isSmartRef__":true,"id":866}},"897":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[]},"898":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:23:15 GMT+0200 (Central Europe Daylight Time)"},"899":{"varMapping":{"__isSmartRef__":true,"id":900},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"900":{"this":{"__isSmartRef__":true,"id":866}},"901":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[]},"902":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:15:20 GMT+0200 (Central Europe Daylight Time)"},"903":{"varMapping":{"__isSmartRef__":true,"id":904},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"904":{"this":{"__isSmartRef__":true,"id":866}},"905":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[]},"906":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:02 GMT+0200 (Central Europe Daylight Time)"},"907":{"varMapping":{"__isSmartRef__":true,"id":908},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"908":{"this":{"__isSmartRef__":true,"id":866}},"909":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[]},"910":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:52:54 GMT+0200 (Central Europe Daylight Time)"},"911":{"varMapping":{"__isSmartRef__":true,"id":912},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"912":{"this":{"__isSmartRef__":true,"id":866}},"913":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[]},"914":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:19:43 GMT+0200 (Central Europe Daylight Time)"},"915":{"varMapping":{"__isSmartRef__":true,"id":916},"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":917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"916":{"this":{"__isSmartRef__":true,"id":866}},"917":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[]},"918":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:24 GMT+0200 (Central Europe Daylight Time)"},"919":{"varMapping":{"__isSmartRef__":true,"id":920},"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":921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"920":{"this":{"__isSmartRef__":true,"id":866}},"921":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[]},"922":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:34 GMT+0200 (Central Europe Daylight Time)"},"923":{"varMapping":{"__isSmartRef__":true,"id":924},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"924":{"this":{"__isSmartRef__":true,"id":866}},"925":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[]},"926":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:54:56 GMT+0200 (Central Europe Daylight Time)"},"927":{"varMapping":{"__isSmartRef__":true,"id":928},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"928":{"this":{"__isSmartRef__":true,"id":866}},"929":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[]},"930":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:53:52 GMT+0200 (Central Europe Daylight Time)"},"931":{"varMapping":{"__isSmartRef__":true,"id":932},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"932":{"this":{"__isSmartRef__":true,"id":866}},"933":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[]},"934":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:17 GMT+0200 (Central Europe Daylight Time)"},"935":{"varMapping":{"__isSmartRef__":true,"id":936},"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":937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"936":{"this":{"__isSmartRef__":true,"id":866}},"937":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[]},"938":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:54:03 GMT+0200 (Central Europe Daylight Time)"},"939":{"varMapping":{"__isSmartRef__":true,"id":940},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"940":{"this":{"__isSmartRef__":true,"id":866}},"941":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[]},"942":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:09:57 GMT+0200 (Central Europe Daylight Time)"},"943":{"varMapping":{"__isSmartRef__":true,"id":944},"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":945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"944":{"this":{"__isSmartRef__":true,"id":866}},"945":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[]},"946":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:55 GMT+0200 (Central Europe Daylight Time)"},"947":{"varMapping":{"__isSmartRef__":true,"id":948},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"948":{"this":{"__isSmartRef__":true,"id":866}},"949":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[]},"950":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:37 GMT+0200 (Central Europe Daylight Time)"},"951":{"varMapping":{"__isSmartRef__":true,"id":952},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"952":{"this":{"__isSmartRef__":true,"id":866}},"953":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[]},"954":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:57 GMT+0200 (Central Europe Daylight Time)"},"955":{"varMapping":{"__isSmartRef__":true,"id":956},"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":957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"956":{"this":{"__isSmartRef__":true,"id":866}},"957":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[]},"958":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:06 GMT+0200 (Central Europe Daylight Time)"},"959":{"varMapping":{"__isSmartRef__":true,"id":960},"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":961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"960":{"this":{"__isSmartRef__":true,"id":866}},"961":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[]},"962":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:04 GMT+0200 (Central Europe Daylight Time)"},"963":{"varMapping":{"__isSmartRef__":true,"id":964},"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":965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"964":{"this":{"__isSmartRef__":true,"id":866}},"965":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[]},"966":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:31:13 GMT+0200 (Central Europe Daylight Time)"},"967":{"varMapping":{"__isSmartRef__":true,"id":968},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"968":{"this":{"__isSmartRef__":true,"id":866}},"969":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[]},"970":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:25:25 GMT+0200 (Central Europe Daylight Time)"},"971":{"varMapping":{"__isSmartRef__":true,"id":972},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"972":{"this":{"__isSmartRef__":true,"id":866}},"973":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[]},"974":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:28:36 GMT+0200 (Central Europe Daylight Time)"},"975":{"varMapping":{"__isSmartRef__":true,"id":976},"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":977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"976":{"this":{"__isSmartRef__":true,"id":866}},"977":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[]},"978":{"isSerializedDate":true,"string":"Thu May 03 2012 13:28:31 GMT+0200 (Central Europe Daylight Time)"},"979":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[]},"980":{"varMapping":{"__isSmartRef__":true,"id":981},"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":982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"981":{"this":{"__isSmartRef__":true,"id":757}},"982":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"983":{"varMapping":{"__isSmartRef__":true,"id":984},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"984":{"this":{"__isSmartRef__":true,"id":757}},"985":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"986":{"varMapping":{"__isSmartRef__":true,"id":987},"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":988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"987":{"this":{"__isSmartRef__":true,"id":757}},"988":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"989":{"varMapping":{"__isSmartRef__":true,"id":990},"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":995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"990":{"this":{"__isSmartRef__":true,"id":757},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":991}},"991":{"$super":{"__isSmartRef__":true,"id":992}},"992":{"varMapping":{"__isSmartRef__":true,"id":993},"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":994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"993":{"obj":{"__isSmartRef__":true,"id":757},"name":"onMouseDown"},"994":{},"995":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"996":{"varMapping":{"__isSmartRef__":true,"id":997},"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":998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"997":{"this":{"__isSmartRef__":true,"id":757}},"998":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"999":{"varMapping":{"__isSmartRef__":true,"id":1000},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1000":{"this":{"__isSmartRef__":true,"id":757}},"1001":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"1002":{"varMapping":{"__isSmartRef__":true,"id":1003},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1003":{"this":{"__isSmartRef__":true,"id":757}},"1004":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"1005":{"varMapping":{"__isSmartRef__":true,"id":1006},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1006":{"this":{"__isSmartRef__":true,"id":757}},"1007":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"1008":{"varMapping":{"__isSmartRef__":true,"id":1009},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1009":{"this":{"__isSmartRef__":true,"id":757}},"1010":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1011":{"varMapping":{"__isSmartRef__":true,"id":1012},"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":1013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1012":{"this":{"__isSmartRef__":true,"id":757}},"1013":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1014":{"varMapping":{"__isSmartRef__":true,"id":1015},"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":1016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1015":{"this":{"__isSmartRef__":true,"id":757}},"1016":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1017":{"varMapping":{"__isSmartRef__":true,"id":1018},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1018":{"this":{"__isSmartRef__":true,"id":757}},"1019":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1020":{"varMapping":{"__isSmartRef__":true,"id":1021},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1021":{"this":{"__isSmartRef__":true,"id":757}},"1022":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"1023":{"varMapping":{"__isSmartRef__":true,"id":1024},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1024":{"this":{"__isSmartRef__":true,"id":757}},"1025":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1026":{"varMapping":{"__isSmartRef__":true,"id":1027},"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":1028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1027":{"this":{"__isSmartRef__":true,"id":757}},"1028":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1029":{"varMapping":{"__isSmartRef__":true,"id":1030},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1030":{"this":{"__isSmartRef__":true,"id":757}},"1031":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1032":{"varMapping":{"__isSmartRef__":true,"id":1033},"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":1034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1033":{"this":{"__isSmartRef__":true,"id":757}},"1034":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1035":{"varMapping":{"__isSmartRef__":true,"id":1036},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1036":{"this":{"__isSmartRef__":true,"id":757}},"1037":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1038":{"varMapping":{"__isSmartRef__":true,"id":1039},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1039":{"this":{"__isSmartRef__":true,"id":757}},"1040":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1041":{"varMapping":{"__isSmartRef__":true,"id":1042},"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":1043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1042":{"this":{"__isSmartRef__":true,"id":757}},"1043":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1044":{"varMapping":{"__isSmartRef__":true,"id":1045},"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":1046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1045":{"this":{"__isSmartRef__":true,"id":757}},"1046":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1047":{"varMapping":{"__isSmartRef__":true,"id":1048},"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":1049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1048":{"this":{"__isSmartRef__":true,"id":757}},"1049":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1050":{"varMapping":{"__isSmartRef__":true,"id":1051},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1051":{"this":{"__isSmartRef__":true,"id":757}},"1052":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1053":{"varMapping":{"__isSmartRef__":true,"id":1054},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1054":{"this":{"__isSmartRef__":true,"id":757}},"1055":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1056":{"varMapping":{"__isSmartRef__":true,"id":1057},"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":1058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1057":{"this":{"__isSmartRef__":true,"id":757}},"1058":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1059":{"submorphs":[{"__isSmartRef__":true,"id":1060}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1064},"derivationIds":[null,"69B4A2B5-1BD1-49D6-9573-E3F5457DAB14"],"id":"60B7F992-4D19-425C-90E0-54B9A8CA2E29","eventHandler":{"__isSmartRef__":true,"id":1065},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":2,"column":2,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1060},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[{"__isSmartRef__":true,"id":652}],"cachedNeightbours":[{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":1246},{"__isSmartRef__":true,"id":1336},{"__isSmartRef__":true,"id":4337},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":2721}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4427},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,96.0)"},"1060":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1061},"derivationIds":[null,"30AD2154-5239-4D26-B90A-941D6CCEBD9F"],"id":"2E4F4CD0-2CE1-4ECB-B174-88772EF62145","eventHandler":{"__isSmartRef__":true,"id":1062},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1059},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1063},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1061":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-30ad2154-5239-4d26-b90a-941d6ccebd9f","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1062":{"morph":{"__isSmartRef__":true,"id":1060},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1063":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1064":{"_NodeClass":["morph","box"],"_NodeId":"morph-69b4a2b5-1bd1-49d6-9573-e3f5457dab14","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1065":{"morph":{"__isSmartRef__":true,"id":1059},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1066":{"submorphs":[{"__isSmartRef__":true,"id":1067}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1071},"derivationIds":[null,"CFFFE6E8-2197-4F21-8648-230426BF4B72"],"id":"3DB26304-E14B-4E7B-8274-59FC3E1CA7A6","eventHandler":{"__isSmartRef__":true,"id":1072},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":1,"column":1,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1067},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1073},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,48.0)"},"1067":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1068},"derivationIds":[null,"1A37AE90-E291-4DB9-8316-A8CE0D6D34A6"],"id":"206A44B1-84B2-4B76-B680-46416ACEB1BC","eventHandler":{"__isSmartRef__":true,"id":1069},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1066},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1070},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1068":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-1a37ae90-e291-4db9-8316-a8ce0d6d34a6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1069":{"morph":{"__isSmartRef__":true,"id":1067},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1070":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1071":{"_NodeClass":["morph","box"],"_NodeId":"morph-cfffe6e8-2197-4f21-8648-230426bf4b72","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1072":{"morph":{"__isSmartRef__":true,"id":1066},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1073":{"setDevStyle":{"__isSmartRef__":true,"id":1074},"setNormalStyle":{"__isSmartRef__":true,"id":1077},"tileSize":{"__isSmartRef__":true,"id":1080},"become":{"__isSmartRef__":true,"id":1083},"onMouseDown":{"__isSmartRef__":true,"id":1086},"setGridPosition":{"__isSmartRef__":true,"id":1093},"toolbox":{"__isSmartRef__":true,"id":1096},"distanceTo":{"__isSmartRef__":true,"id":1099},"tileWasDropped":{"__isSmartRef__":true,"id":1102},"isObstacle":{"__isSmartRef__":true,"id":1105},"neighboursInDirection":{"__isSmartRef__":true,"id":1108},"neighbours":{"__isSmartRef__":true,"id":1111},"zIndex":{"__isSmartRef__":true,"id":1114},"obstacles":{"__isSmartRef__":true,"id":1117},"addObstacle":{"__isSmartRef__":true,"id":1120},"removeObstacle":{"__isSmartRef__":true,"id":1123},"isTile":{"__isSmartRef__":true,"id":1126},"neighbourAt":{"__isSmartRef__":true,"id":1129},"map":{"__isSmartRef__":true,"id":1132},"game":{"__isSmartRef__":true,"id":1135},"reset":{"__isSmartRef__":true,"id":1138},"shallowCopy":{"__isSmartRef__":true,"id":1141},"characters":{"__isSmartRef__":true,"id":1144},"enterTile":{"__isSmartRef__":true,"id":1147},"leaveTile":{"__isSmartRef__":true,"id":1150},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1153}},"1074":{"varMapping":{"__isSmartRef__":true,"id":1075},"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":1076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1075":{"this":{"__isSmartRef__":true,"id":1066}},"1076":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"1077":{"varMapping":{"__isSmartRef__":true,"id":1078},"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":1079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1078":{"this":{"__isSmartRef__":true,"id":1066}},"1079":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"1080":{"varMapping":{"__isSmartRef__":true,"id":1081},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1081":{"this":{"__isSmartRef__":true,"id":1066}},"1082":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"1083":{"varMapping":{"__isSmartRef__":true,"id":1084},"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":1085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1084":{"this":{"__isSmartRef__":true,"id":1066}},"1085":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"1086":{"varMapping":{"__isSmartRef__":true,"id":1087},"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":1092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1087":{"this":{"__isSmartRef__":true,"id":1066},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1088}},"1088":{"$super":{"__isSmartRef__":true,"id":1089}},"1089":{"varMapping":{"__isSmartRef__":true,"id":1090},"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":1091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1090":{"obj":{"__isSmartRef__":true,"id":1066},"name":"onMouseDown"},"1091":{},"1092":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"1093":{"varMapping":{"__isSmartRef__":true,"id":1094},"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":1095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1094":{"this":{"__isSmartRef__":true,"id":1066}},"1095":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"1096":{"varMapping":{"__isSmartRef__":true,"id":1097},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1097":{"this":{"__isSmartRef__":true,"id":1066}},"1098":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"1099":{"varMapping":{"__isSmartRef__":true,"id":1100},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1100":{"this":{"__isSmartRef__":true,"id":1066}},"1101":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"1102":{"varMapping":{"__isSmartRef__":true,"id":1103},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1103":{"this":{"__isSmartRef__":true,"id":1066}},"1104":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"1105":{"varMapping":{"__isSmartRef__":true,"id":1106},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1106":{"this":{"__isSmartRef__":true,"id":1066}},"1107":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1108":{"varMapping":{"__isSmartRef__":true,"id":1109},"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":1110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1109":{"this":{"__isSmartRef__":true,"id":1066}},"1110":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1111":{"varMapping":{"__isSmartRef__":true,"id":1112},"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":1113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1112":{"this":{"__isSmartRef__":true,"id":1066}},"1113":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1114":{"varMapping":{"__isSmartRef__":true,"id":1115},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1115":{"this":{"__isSmartRef__":true,"id":1066}},"1116":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1117":{"varMapping":{"__isSmartRef__":true,"id":1118},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1118":{"this":{"__isSmartRef__":true,"id":1066}},"1119":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"1120":{"varMapping":{"__isSmartRef__":true,"id":1121},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1121":{"this":{"__isSmartRef__":true,"id":1066}},"1122":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1123":{"varMapping":{"__isSmartRef__":true,"id":1124},"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":1125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1124":{"this":{"__isSmartRef__":true,"id":1066}},"1125":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1126":{"varMapping":{"__isSmartRef__":true,"id":1127},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1127":{"this":{"__isSmartRef__":true,"id":1066}},"1128":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1129":{"varMapping":{"__isSmartRef__":true,"id":1130},"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":1131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1130":{"this":{"__isSmartRef__":true,"id":1066}},"1131":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1132":{"varMapping":{"__isSmartRef__":true,"id":1133},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1133":{"this":{"__isSmartRef__":true,"id":1066}},"1134":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1135":{"varMapping":{"__isSmartRef__":true,"id":1136},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1136":{"this":{"__isSmartRef__":true,"id":1066}},"1137":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1138":{"varMapping":{"__isSmartRef__":true,"id":1139},"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":1140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1139":{"this":{"__isSmartRef__":true,"id":1066}},"1140":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1141":{"varMapping":{"__isSmartRef__":true,"id":1142},"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":1143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1142":{"this":{"__isSmartRef__":true,"id":1066}},"1143":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1144":{"varMapping":{"__isSmartRef__":true,"id":1145},"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":1146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1145":{"this":{"__isSmartRef__":true,"id":1066}},"1146":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1147":{"varMapping":{"__isSmartRef__":true,"id":1148},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1148":{"this":{"__isSmartRef__":true,"id":1066}},"1149":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1150":{"varMapping":{"__isSmartRef__":true,"id":1151},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1151":{"this":{"__isSmartRef__":true,"id":1066}},"1152":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1153":{"varMapping":{"__isSmartRef__":true,"id":1154},"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":1155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1154":{"this":{"__isSmartRef__":true,"id":1066}},"1155":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1156":{"submorphs":[{"__isSmartRef__":true,"id":1157}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1161},"derivationIds":[null,"BB078203-0F42-43A1-86F4-F5F0377FEE89"],"id":"F3DD25A7-C172-4C61-B38C-1F0D888D4BE1","eventHandler":{"__isSmartRef__":true,"id":1162},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":1,"column":2,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1157},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,48.0)"},"1157":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1158},"derivationIds":[null,"F664E809-E169-4725-BA87-FBBACF347BA1"],"id":"E4D7A80D-2F2F-486C-B67C-26AEABC8C894","eventHandler":{"__isSmartRef__":true,"id":1159},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1156},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1160},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1158":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-f664e809-e169-4725-ba87-fbbacf347ba1","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1159":{"morph":{"__isSmartRef__":true,"id":1157},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1160":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1161":{"_NodeClass":["morph","box"],"_NodeId":"morph-bb078203-0f42-43a1-86f4-f5f0377fee89","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1162":{"morph":{"__isSmartRef__":true,"id":1156},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1163":{"setDevStyle":{"__isSmartRef__":true,"id":1164},"setNormalStyle":{"__isSmartRef__":true,"id":1167},"tileSize":{"__isSmartRef__":true,"id":1170},"become":{"__isSmartRef__":true,"id":1173},"onMouseDown":{"__isSmartRef__":true,"id":1176},"setGridPosition":{"__isSmartRef__":true,"id":1183},"toolbox":{"__isSmartRef__":true,"id":1186},"distanceTo":{"__isSmartRef__":true,"id":1189},"tileWasDropped":{"__isSmartRef__":true,"id":1192},"isObstacle":{"__isSmartRef__":true,"id":1195},"neighboursInDirection":{"__isSmartRef__":true,"id":1198},"neighbours":{"__isSmartRef__":true,"id":1201},"zIndex":{"__isSmartRef__":true,"id":1204},"obstacles":{"__isSmartRef__":true,"id":1207},"addObstacle":{"__isSmartRef__":true,"id":1210},"removeObstacle":{"__isSmartRef__":true,"id":1213},"isTile":{"__isSmartRef__":true,"id":1216},"neighbourAt":{"__isSmartRef__":true,"id":1219},"map":{"__isSmartRef__":true,"id":1222},"game":{"__isSmartRef__":true,"id":1225},"reset":{"__isSmartRef__":true,"id":1228},"shallowCopy":{"__isSmartRef__":true,"id":1231},"characters":{"__isSmartRef__":true,"id":1234},"enterTile":{"__isSmartRef__":true,"id":1237},"leaveTile":{"__isSmartRef__":true,"id":1240},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1243}},"1164":{"varMapping":{"__isSmartRef__":true,"id":1165},"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":1166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1165":{"this":{"__isSmartRef__":true,"id":1156}},"1166":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"1167":{"varMapping":{"__isSmartRef__":true,"id":1168},"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":1169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1168":{"this":{"__isSmartRef__":true,"id":1156}},"1169":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"1170":{"varMapping":{"__isSmartRef__":true,"id":1171},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1171":{"this":{"__isSmartRef__":true,"id":1156}},"1172":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"1173":{"varMapping":{"__isSmartRef__":true,"id":1174},"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":1175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1174":{"this":{"__isSmartRef__":true,"id":1156}},"1175":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"1176":{"varMapping":{"__isSmartRef__":true,"id":1177},"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":1182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1177":{"this":{"__isSmartRef__":true,"id":1156},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1178}},"1178":{"$super":{"__isSmartRef__":true,"id":1179}},"1179":{"varMapping":{"__isSmartRef__":true,"id":1180},"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":1181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1180":{"obj":{"__isSmartRef__":true,"id":1156},"name":"onMouseDown"},"1181":{},"1182":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"1183":{"varMapping":{"__isSmartRef__":true,"id":1184},"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":1185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1184":{"this":{"__isSmartRef__":true,"id":1156}},"1185":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"1186":{"varMapping":{"__isSmartRef__":true,"id":1187},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1187":{"this":{"__isSmartRef__":true,"id":1156}},"1188":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"1189":{"varMapping":{"__isSmartRef__":true,"id":1190},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1190":{"this":{"__isSmartRef__":true,"id":1156}},"1191":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"1192":{"varMapping":{"__isSmartRef__":true,"id":1193},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1193":{"this":{"__isSmartRef__":true,"id":1156}},"1194":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"1195":{"varMapping":{"__isSmartRef__":true,"id":1196},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1196":{"this":{"__isSmartRef__":true,"id":1156}},"1197":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1198":{"varMapping":{"__isSmartRef__":true,"id":1199},"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":1200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1199":{"this":{"__isSmartRef__":true,"id":1156}},"1200":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1201":{"varMapping":{"__isSmartRef__":true,"id":1202},"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":1203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1202":{"this":{"__isSmartRef__":true,"id":1156}},"1203":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1204":{"varMapping":{"__isSmartRef__":true,"id":1205},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1205":{"this":{"__isSmartRef__":true,"id":1156}},"1206":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1207":{"varMapping":{"__isSmartRef__":true,"id":1208},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1208":{"this":{"__isSmartRef__":true,"id":1156}},"1209":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"1210":{"varMapping":{"__isSmartRef__":true,"id":1211},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1211":{"this":{"__isSmartRef__":true,"id":1156}},"1212":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1213":{"varMapping":{"__isSmartRef__":true,"id":1214},"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":1215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1214":{"this":{"__isSmartRef__":true,"id":1156}},"1215":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1216":{"varMapping":{"__isSmartRef__":true,"id":1217},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1217":{"this":{"__isSmartRef__":true,"id":1156}},"1218":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1219":{"varMapping":{"__isSmartRef__":true,"id":1220},"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":1221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1220":{"this":{"__isSmartRef__":true,"id":1156}},"1221":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1222":{"varMapping":{"__isSmartRef__":true,"id":1223},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1223":{"this":{"__isSmartRef__":true,"id":1156}},"1224":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1225":{"varMapping":{"__isSmartRef__":true,"id":1226},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1226":{"this":{"__isSmartRef__":true,"id":1156}},"1227":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1228":{"varMapping":{"__isSmartRef__":true,"id":1229},"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":1230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1229":{"this":{"__isSmartRef__":true,"id":1156}},"1230":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1231":{"varMapping":{"__isSmartRef__":true,"id":1232},"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":1233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1232":{"this":{"__isSmartRef__":true,"id":1156}},"1233":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1234":{"varMapping":{"__isSmartRef__":true,"id":1235},"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":1236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1235":{"this":{"__isSmartRef__":true,"id":1156}},"1236":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1237":{"varMapping":{"__isSmartRef__":true,"id":1238},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1238":{"this":{"__isSmartRef__":true,"id":1156}},"1239":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1240":{"varMapping":{"__isSmartRef__":true,"id":1241},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1241":{"this":{"__isSmartRef__":true,"id":1156}},"1242":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1243":{"varMapping":{"__isSmartRef__":true,"id":1244},"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":1245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1244":{"this":{"__isSmartRef__":true,"id":1156}},"1245":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1246":{"submorphs":[{"__isSmartRef__":true,"id":1247}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1251},"derivationIds":[null,"F93FC47D-D2ED-4865-87BC-14EC868006F2"],"id":"5C927EE0-CA25-4823-A2DB-C72A7CFA9969","eventHandler":{"__isSmartRef__":true,"id":1252},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":2,"column":1,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1247},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1253},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,96.0)"},"1247":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1248},"derivationIds":[null,"BF8EF628-F328-484E-8719-B1B8066DE663"],"id":"738BA30E-F536-4484-9625-B0EFB9E16749","eventHandler":{"__isSmartRef__":true,"id":1249},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1246},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1250},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1248":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-bf8ef628-f328-484e-8719-b1b8066de663","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1249":{"morph":{"__isSmartRef__":true,"id":1247},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1250":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1251":{"_NodeClass":["morph","box"],"_NodeId":"morph-f93fc47d-d2ed-4865-87bc-14ec868006f2","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1252":{"morph":{"__isSmartRef__":true,"id":1246},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1253":{"setDevStyle":{"__isSmartRef__":true,"id":1254},"setNormalStyle":{"__isSmartRef__":true,"id":1257},"tileSize":{"__isSmartRef__":true,"id":1260},"become":{"__isSmartRef__":true,"id":1263},"onMouseDown":{"__isSmartRef__":true,"id":1266},"setGridPosition":{"__isSmartRef__":true,"id":1273},"toolbox":{"__isSmartRef__":true,"id":1276},"distanceTo":{"__isSmartRef__":true,"id":1279},"tileWasDropped":{"__isSmartRef__":true,"id":1282},"isObstacle":{"__isSmartRef__":true,"id":1285},"neighboursInDirection":{"__isSmartRef__":true,"id":1288},"neighbours":{"__isSmartRef__":true,"id":1291},"zIndex":{"__isSmartRef__":true,"id":1294},"obstacles":{"__isSmartRef__":true,"id":1297},"addObstacle":{"__isSmartRef__":true,"id":1300},"removeObstacle":{"__isSmartRef__":true,"id":1303},"isTile":{"__isSmartRef__":true,"id":1306},"neighbourAt":{"__isSmartRef__":true,"id":1309},"map":{"__isSmartRef__":true,"id":1312},"game":{"__isSmartRef__":true,"id":1315},"reset":{"__isSmartRef__":true,"id":1318},"shallowCopy":{"__isSmartRef__":true,"id":1321},"characters":{"__isSmartRef__":true,"id":1324},"enterTile":{"__isSmartRef__":true,"id":1327},"leaveTile":{"__isSmartRef__":true,"id":1330},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1333}},"1254":{"varMapping":{"__isSmartRef__":true,"id":1255},"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":1256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1255":{"this":{"__isSmartRef__":true,"id":1246}},"1256":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"1257":{"varMapping":{"__isSmartRef__":true,"id":1258},"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":1259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1258":{"this":{"__isSmartRef__":true,"id":1246}},"1259":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"1260":{"varMapping":{"__isSmartRef__":true,"id":1261},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1261":{"this":{"__isSmartRef__":true,"id":1246}},"1262":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"1263":{"varMapping":{"__isSmartRef__":true,"id":1264},"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":1265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1264":{"this":{"__isSmartRef__":true,"id":1246}},"1265":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"1266":{"varMapping":{"__isSmartRef__":true,"id":1267},"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":1272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1267":{"this":{"__isSmartRef__":true,"id":1246},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1268}},"1268":{"$super":{"__isSmartRef__":true,"id":1269}},"1269":{"varMapping":{"__isSmartRef__":true,"id":1270},"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":1271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1270":{"obj":{"__isSmartRef__":true,"id":1246},"name":"onMouseDown"},"1271":{},"1272":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"1273":{"varMapping":{"__isSmartRef__":true,"id":1274},"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":1275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1274":{"this":{"__isSmartRef__":true,"id":1246}},"1275":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"1276":{"varMapping":{"__isSmartRef__":true,"id":1277},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1277":{"this":{"__isSmartRef__":true,"id":1246}},"1278":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"1279":{"varMapping":{"__isSmartRef__":true,"id":1280},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1280":{"this":{"__isSmartRef__":true,"id":1246}},"1281":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"1282":{"varMapping":{"__isSmartRef__":true,"id":1283},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1283":{"this":{"__isSmartRef__":true,"id":1246}},"1284":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"1285":{"varMapping":{"__isSmartRef__":true,"id":1286},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1286":{"this":{"__isSmartRef__":true,"id":1246}},"1287":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1288":{"varMapping":{"__isSmartRef__":true,"id":1289},"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":1290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1289":{"this":{"__isSmartRef__":true,"id":1246}},"1290":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1291":{"varMapping":{"__isSmartRef__":true,"id":1292},"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":1293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1292":{"this":{"__isSmartRef__":true,"id":1246}},"1293":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1294":{"varMapping":{"__isSmartRef__":true,"id":1295},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1295":{"this":{"__isSmartRef__":true,"id":1246}},"1296":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1297":{"varMapping":{"__isSmartRef__":true,"id":1298},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1298":{"this":{"__isSmartRef__":true,"id":1246}},"1299":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"1300":{"varMapping":{"__isSmartRef__":true,"id":1301},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1301":{"this":{"__isSmartRef__":true,"id":1246}},"1302":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1303":{"varMapping":{"__isSmartRef__":true,"id":1304},"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":1305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1304":{"this":{"__isSmartRef__":true,"id":1246}},"1305":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1306":{"varMapping":{"__isSmartRef__":true,"id":1307},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1307":{"this":{"__isSmartRef__":true,"id":1246}},"1308":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1309":{"varMapping":{"__isSmartRef__":true,"id":1310},"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":1311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1310":{"this":{"__isSmartRef__":true,"id":1246}},"1311":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1312":{"varMapping":{"__isSmartRef__":true,"id":1313},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1313":{"this":{"__isSmartRef__":true,"id":1246}},"1314":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1315":{"varMapping":{"__isSmartRef__":true,"id":1316},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1316":{"this":{"__isSmartRef__":true,"id":1246}},"1317":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1318":{"varMapping":{"__isSmartRef__":true,"id":1319},"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":1320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1319":{"this":{"__isSmartRef__":true,"id":1246}},"1320":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1321":{"varMapping":{"__isSmartRef__":true,"id":1322},"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":1323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1322":{"this":{"__isSmartRef__":true,"id":1246}},"1323":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1324":{"varMapping":{"__isSmartRef__":true,"id":1325},"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":1326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1325":{"this":{"__isSmartRef__":true,"id":1246}},"1326":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1327":{"varMapping":{"__isSmartRef__":true,"id":1328},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1328":{"this":{"__isSmartRef__":true,"id":1246}},"1329":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1330":{"varMapping":{"__isSmartRef__":true,"id":1331},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1331":{"this":{"__isSmartRef__":true,"id":1246}},"1332":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1333":{"varMapping":{"__isSmartRef__":true,"id":1334},"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":1335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1334":{"this":{"__isSmartRef__":true,"id":1246}},"1335":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1336":{"submorphs":[{"__isSmartRef__":true,"id":1337}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1341},"derivationIds":[null,"6CEAB00E-DE20-40DC-A28C-6D53DFB960D7"],"id":"B97B28BD-F25F-4054-865C-65364C942648","eventHandler":{"__isSmartRef__":true,"id":1342},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":2,"column":3,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1337},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":1343},{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":2624},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":2721},{"__isSmartRef__":true,"id":2728}],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4254},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,96.0)"},"1337":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1338},"derivationIds":[null,"DED3192E-B20E-4E02-99F4-74EE5976832E"],"id":"8F89B71D-517C-40FC-B91E-C90C2AB35BC1","eventHandler":{"__isSmartRef__":true,"id":1339},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1336},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1340},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1338":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-ded3192e-b20e-4e02-99f4-74ee5976832e","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1339":{"morph":{"__isSmartRef__":true,"id":1337},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1340":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1341":{"_NodeClass":["morph","box"],"_NodeId":"morph-6ceab00e-de20-40dc-a28c-6d53dfb960d7","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1342":{"morph":{"__isSmartRef__":true,"id":1336},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1343":{"submorphs":[{"__isSmartRef__":true,"id":1344}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1348},"derivationIds":[null,"ECFDAC44-2745-46CE-9CCD-2E7D549D70D9"],"id":"98CBB98F-BD14-4E0E-9521-AC2C69673DA9","eventHandler":{"__isSmartRef__":true,"id":1349},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":1,"column":4,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1344},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1350},{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1454},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":2368},{"__isSmartRef__":true,"id":1336},{"__isSmartRef__":true,"id":2624},{"__isSmartRef__":true,"id":2631}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4171},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,48.0)"},"1344":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1345},"derivationIds":[null,"D78998B4-05BD-444C-95FB-A3562F4C2C07"],"id":"70A9A574-7C8A-4303-94F8-061E1579BFBF","eventHandler":{"__isSmartRef__":true,"id":1346},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1343},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1347},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1345":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-d78998b4-05bd-444c-95fb-a3562f4c2c07","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1346":{"morph":{"__isSmartRef__":true,"id":1344},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1347":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1348":{"_NodeClass":["morph","box"],"_NodeId":"morph-ecfdac44-2745-46ce-9ccd-2e7d549d70d9","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1349":{"morph":{"__isSmartRef__":true,"id":1343},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1350":{"submorphs":[{"__isSmartRef__":true,"id":1351}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1355},"derivationIds":[null,"5AC8DA69-7FE6-4F30-8C22-FC66ADDC33F9"],"id":"78DE54D7-90DA-429F-802B-05EAD6DF72DF","eventHandler":{"__isSmartRef__":true,"id":1356},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":0,"column":3,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1351},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":1343}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2541},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,0.0)"},"1351":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1352},"derivationIds":[null,"12EE9F6C-4EB9-4039-8FA9-8762418DD044"],"id":"71208C5E-E5D0-43D8-B483-C38180EB4040","eventHandler":{"__isSmartRef__":true,"id":1353},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1350},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1354},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1352":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-12ee9f6c-4eb9-4039-8fa9-8762418dd044","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1353":{"morph":{"__isSmartRef__":true,"id":1351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1354":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1355":{"_NodeClass":["morph","box"],"_NodeId":"morph-5ac8da69-7fe6-4f30-8c22-fc66addc33f9","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1356":{"morph":{"__isSmartRef__":true,"id":1350},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1357":{"submorphs":[{"__isSmartRef__":true,"id":1358}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1362},"derivationIds":[null,"3C653211-4300-4407-B93A-ED220E2B15FD"],"id":"66DC1DA3-57F4-47F4-AEF2-34C89B5A469B","eventHandler":{"__isSmartRef__":true,"id":1363},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":0,"column":2,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1358},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1364},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,0.0)"},"1358":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1359},"derivationIds":[null,"8302677C-7681-4357-B123-9C003D80E84D"],"id":"89C44A45-97D8-4C29-9FA6-929037D781DC","eventHandler":{"__isSmartRef__":true,"id":1360},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1357},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1361},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1359":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-8302677c-7681-4357-b123-9c003d80e84d","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1360":{"morph":{"__isSmartRef__":true,"id":1358},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1361":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1362":{"_NodeClass":["morph","box"],"_NodeId":"morph-3c653211-4300-4407-b93a-ed220e2b15fd","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1363":{"morph":{"__isSmartRef__":true,"id":1357},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1364":{"setDevStyle":{"__isSmartRef__":true,"id":1365},"setNormalStyle":{"__isSmartRef__":true,"id":1368},"tileSize":{"__isSmartRef__":true,"id":1371},"become":{"__isSmartRef__":true,"id":1374},"onMouseDown":{"__isSmartRef__":true,"id":1377},"setGridPosition":{"__isSmartRef__":true,"id":1384},"toolbox":{"__isSmartRef__":true,"id":1387},"distanceTo":{"__isSmartRef__":true,"id":1390},"tileWasDropped":{"__isSmartRef__":true,"id":1393},"isObstacle":{"__isSmartRef__":true,"id":1396},"neighboursInDirection":{"__isSmartRef__":true,"id":1399},"neighbours":{"__isSmartRef__":true,"id":1402},"zIndex":{"__isSmartRef__":true,"id":1405},"obstacles":{"__isSmartRef__":true,"id":1408},"addObstacle":{"__isSmartRef__":true,"id":1411},"removeObstacle":{"__isSmartRef__":true,"id":1414},"isTile":{"__isSmartRef__":true,"id":1417},"neighbourAt":{"__isSmartRef__":true,"id":1420},"map":{"__isSmartRef__":true,"id":1423},"game":{"__isSmartRef__":true,"id":1426},"reset":{"__isSmartRef__":true,"id":1429},"shallowCopy":{"__isSmartRef__":true,"id":1432},"characters":{"__isSmartRef__":true,"id":1435},"enterTile":{"__isSmartRef__":true,"id":1438},"leaveTile":{"__isSmartRef__":true,"id":1441},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1444}},"1365":{"varMapping":{"__isSmartRef__":true,"id":1366},"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":1367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1366":{"this":{"__isSmartRef__":true,"id":1357}},"1367":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"1368":{"varMapping":{"__isSmartRef__":true,"id":1369},"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":1370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1369":{"this":{"__isSmartRef__":true,"id":1357}},"1370":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"1371":{"varMapping":{"__isSmartRef__":true,"id":1372},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1372":{"this":{"__isSmartRef__":true,"id":1357}},"1373":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"1374":{"varMapping":{"__isSmartRef__":true,"id":1375},"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":1376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1375":{"this":{"__isSmartRef__":true,"id":1357}},"1376":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"1377":{"varMapping":{"__isSmartRef__":true,"id":1378},"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":1383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1378":{"this":{"__isSmartRef__":true,"id":1357},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1379}},"1379":{"$super":{"__isSmartRef__":true,"id":1380}},"1380":{"varMapping":{"__isSmartRef__":true,"id":1381},"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":1382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1381":{"obj":{"__isSmartRef__":true,"id":1357},"name":"onMouseDown"},"1382":{},"1383":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"1384":{"varMapping":{"__isSmartRef__":true,"id":1385},"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":1386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1385":{"this":{"__isSmartRef__":true,"id":1357}},"1386":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"1387":{"varMapping":{"__isSmartRef__":true,"id":1388},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1388":{"this":{"__isSmartRef__":true,"id":1357}},"1389":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"1390":{"varMapping":{"__isSmartRef__":true,"id":1391},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1391":{"this":{"__isSmartRef__":true,"id":1357}},"1392":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"1393":{"varMapping":{"__isSmartRef__":true,"id":1394},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1394":{"this":{"__isSmartRef__":true,"id":1357}},"1395":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"1396":{"varMapping":{"__isSmartRef__":true,"id":1397},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1397":{"this":{"__isSmartRef__":true,"id":1357}},"1398":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1399":{"varMapping":{"__isSmartRef__":true,"id":1400},"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":1401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1400":{"this":{"__isSmartRef__":true,"id":1357}},"1401":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1402":{"varMapping":{"__isSmartRef__":true,"id":1403},"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":1404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1403":{"this":{"__isSmartRef__":true,"id":1357}},"1404":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1405":{"varMapping":{"__isSmartRef__":true,"id":1406},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1406":{"this":{"__isSmartRef__":true,"id":1357}},"1407":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1408":{"varMapping":{"__isSmartRef__":true,"id":1409},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1409":{"this":{"__isSmartRef__":true,"id":1357}},"1410":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"1411":{"varMapping":{"__isSmartRef__":true,"id":1412},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1412":{"this":{"__isSmartRef__":true,"id":1357}},"1413":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1414":{"varMapping":{"__isSmartRef__":true,"id":1415},"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":1416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1415":{"this":{"__isSmartRef__":true,"id":1357}},"1416":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1417":{"varMapping":{"__isSmartRef__":true,"id":1418},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1418":{"this":{"__isSmartRef__":true,"id":1357}},"1419":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1420":{"varMapping":{"__isSmartRef__":true,"id":1421},"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":1422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1421":{"this":{"__isSmartRef__":true,"id":1357}},"1422":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1423":{"varMapping":{"__isSmartRef__":true,"id":1424},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1424":{"this":{"__isSmartRef__":true,"id":1357}},"1425":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1426":{"varMapping":{"__isSmartRef__":true,"id":1427},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1427":{"this":{"__isSmartRef__":true,"id":1357}},"1428":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1429":{"varMapping":{"__isSmartRef__":true,"id":1430},"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":1431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1430":{"this":{"__isSmartRef__":true,"id":1357}},"1431":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1432":{"varMapping":{"__isSmartRef__":true,"id":1433},"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":1434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1433":{"this":{"__isSmartRef__":true,"id":1357}},"1434":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1435":{"varMapping":{"__isSmartRef__":true,"id":1436},"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":1437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1436":{"this":{"__isSmartRef__":true,"id":1357}},"1437":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1438":{"varMapping":{"__isSmartRef__":true,"id":1439},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1439":{"this":{"__isSmartRef__":true,"id":1357}},"1440":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1441":{"varMapping":{"__isSmartRef__":true,"id":1442},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1442":{"this":{"__isSmartRef__":true,"id":1357}},"1443":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1444":{"varMapping":{"__isSmartRef__":true,"id":1445},"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":1446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1445":{"this":{"__isSmartRef__":true,"id":1357}},"1446":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1447":{"submorphs":[{"__isSmartRef__":true,"id":1448}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1452},"derivationIds":[null,"B04F2680-BA94-4094-9A59-497A9EA1B1C1"],"id":"1DE0F0B7-CE7D-4C52-AB4B-E2AE1C13A3C0","eventHandler":{"__isSmartRef__":true,"id":1453},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":0,"column":4,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1448},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1350},{"__isSmartRef__":true,"id":1454},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":1343},{"__isSmartRef__":true,"id":2368}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2458},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,0.0)"},"1448":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1449},"derivationIds":[null,"62A7337D-3A84-4285-8F8A-591110C14DFF"],"id":"D48E0C72-5A8F-471A-BE1E-5D1D33BB12EE","eventHandler":{"__isSmartRef__":true,"id":1450},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1447},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1451},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1449":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-62a7337d-3a84-4285-8f8a-591110c14dff","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1450":{"morph":{"__isSmartRef__":true,"id":1448},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1451":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1452":{"_NodeClass":["morph","box"],"_NodeId":"morph-b04f2680-ba94-4094-9a59-497a9ea1b1c1","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1453":{"morph":{"__isSmartRef__":true,"id":1447},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1454":{"submorphs":[{"__isSmartRef__":true,"id":1455}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1459},"derivationIds":[null,"AC091E63-A5ED-4E0E-BA1E-C0173AA8FC8B"],"id":"0D75A3D9-D291-4EC7-BDA1-0BB02FB41918","eventHandler":{"__isSmartRef__":true,"id":1460},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":0,"column":5,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":1455},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[{"__isSmartRef__":true,"id":1461}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2285},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,0.0)"},"1455":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1456},"derivationIds":[null,"C9836B3D-9080-4A37-A696-3E999682D9D6"],"id":"5B2E38D9-0953-40C3-8DF4-158C98EF9739","eventHandler":{"__isSmartRef__":true,"id":1457},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1454},"showsHalos":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1458},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1456":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-c9836b3d-9080-4a37-a696-3e999682d9d6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"1457":{"morph":{"__isSmartRef__":true,"id":1455},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1458":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"1459":{"_NodeClass":["morph","box"],"_NodeId":"morph-ac091e63-a5ed-4e0e-ba1e-c0173aa8fc8b","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1460":{"morph":{"__isSmartRef__":true,"id":1454},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1461":{"submorphs":[{"__isSmartRef__":true,"id":1462},{"__isSmartRef__":true,"id":1510},{"__isSmartRef__":true,"id":1570}],"scripts":[{"__isSmartRef__":true,"id":1589},{"__isSmartRef__":true,"id":1591}],"shape":{"__isSmartRef__":true,"id":1592},"derivationIds":[null,"55B3D416-2247-4EDE-9674-F2C4D50E543F"],"id":"29FA8970-E1A5-4F71-8601-811CFFEBF2F6","eventHandler":{"__isSmartRef__":true,"id":1593},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1594},"lifeBar":{"__isSmartRef__":true,"id":1462},"deathAnimation":{"__isSmartRef__":true,"id":1510},"owner":{"__isSmartRef__":true,"id":644},"character":{"__isSmartRef__":true,"id":1570},"animateScript":{"__isSmartRef__":true,"id":1589},"lastSpeedTimestamp":1340705333313,"walkScript":{"__isSmartRef__":true,"id":1591},"isBusy":true,"showsHalos":false,"__serializedExpressions__":["_Position","direction"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1813},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,0.0)","direction":"lively.pt(0.0,1.0)"},"1462":{"submorphs":[],"scripts":[],"id":"A629E9C5-2C99-41CD-886E-F781F281B4B9","shape":{"__isSmartRef__":true,"id":1463},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LifeBar1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1464},"eventHandler":{"__isSmartRef__":true,"id":1479},"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","8872CA7B-AEBD-45E8-8D7A-8C16B7073561","9A24B61E-6D88-4A9D-86F1-D14A0B0DA4E2"],"partTests":{"__isSmartRef__":true,"id":1480},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","character":{"__isSmartRef__":true,"id":1461},"owner":{"__isSmartRef__":true,"id":1461},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1485},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,-13.0)"},"1463":{"_BorderWidth":1,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,8.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(151,255,0)","_Padding":"lively.rect(0,0,0,0)"},"1464":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":1465},{"__isSmartRef__":true,"id":1467},{"__isSmartRef__":true,"id":1469},{"__isSmartRef__":true,"id":1471},{"__isSmartRef__":true,"id":1473},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1477}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1465":{"date":{"__isSmartRef__":true,"id":1466},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1466":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"1467":{"date":{"__isSmartRef__":true,"id":1468},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1468":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"1469":{"date":{"__isSmartRef__":true,"id":1470},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1470":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"1471":{"date":{"__isSmartRef__":true,"id":1472},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1472":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"1473":{"date":{"__isSmartRef__":true,"id":1474},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"1474":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"1475":{"date":{"__isSmartRef__":true,"id":1476},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"1476":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"1477":{"date":{"__isSmartRef__":true,"id":1478},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"1478":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (Central Europe Daylight Time)"},"1479":{"morph":{"__isSmartRef__":true,"id":1462},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1480":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1481}},"1481":{"test01IsMorph":{"__isSmartRef__":true,"id":1482}},"1482":{"varMapping":{"__isSmartRef__":true,"id":1483},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1483":{"this":{"__isSmartRef__":true,"id":1480}},"1484":{},"1485":{"setColorForWidth":{"__isSmartRef__":true,"id":1486},"reset":{"__isSmartRef__":true,"id":1490},"hit":{"__isSmartRef__":true,"id":1494},"extent":{"__isSmartRef__":true,"id":1498},"isDead":{"__isSmartRef__":true,"id":1502},"lifeLoss":{"__isSmartRef__":true,"id":1506},"heal":{"__isSmartRef__":true,"id":1490}},"1486":{"varMapping":{"__isSmartRef__":true,"id":1487},"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":1488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1487":{"this":{"__isSmartRef__":true,"id":1462}},"1488":{"timestamp":{"__isSmartRef__":true,"id":1489},"user":"timfelgentreff","tags":[]},"1489":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (Central Europe Daylight Time)"},"1490":{"varMapping":{"__isSmartRef__":true,"id":1491},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":1492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1491":{"this":{"__isSmartRef__":true,"id":1462}},"1492":{"timestamp":{"__isSmartRef__":true,"id":1493},"user":"timfelgentreff","tags":[]},"1493":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (Central Europe Daylight Time)"},"1494":{"varMapping":{"__isSmartRef__":true,"id":1495},"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":1496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1495":{"this":{"__isSmartRef__":true,"id":1462}},"1496":{"timestamp":{"__isSmartRef__":true,"id":1497},"user":"timfelgentreff","tags":[]},"1497":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (Central Europe Daylight Time)"},"1498":{"varMapping":{"__isSmartRef__":true,"id":1499},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":1500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1499":{"this":{"__isSmartRef__":true,"id":1462}},"1500":{"timestamp":{"__isSmartRef__":true,"id":1501},"user":"timfelgentreff","tags":[]},"1501":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (Central Europe Daylight Time)"},"1502":{"varMapping":{"__isSmartRef__":true,"id":1503},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":1504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1503":{"this":{"__isSmartRef__":true,"id":1462}},"1504":{"timestamp":{"__isSmartRef__":true,"id":1505},"user":"timfelgentreff","tags":[]},"1505":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (Central Europe Daylight Time)"},"1506":{"varMapping":{"__isSmartRef__":true,"id":1507},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":1508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1507":{"this":{"__isSmartRef__":true,"id":1462}},"1508":{"timestamp":{"__isSmartRef__":true,"id":1509},"user":"timfelgentreff","tags":[]},"1509":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (Central Europe Daylight Time)"},"1510":{"submorphs":[{"__isSmartRef__":true,"id":1511}],"scripts":[],"id":"875FC07B-14B5-4580-82C2-306BB5A18E67","shape":{"__isSmartRef__":true,"id":1534},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"DeathAnimation1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1535},"eventHandler":{"__isSmartRef__":true,"id":1548},"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","DC6AF031-4E21-4076-ABC3-9D13F29725A5","8E5118A7-B35F-46CB-9C7C-DB8D1B645CA2"],"partTests":{"__isSmartRef__":true,"id":1549},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":1511},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","character":{"__isSmartRef__":true,"id":1461},"owner":{"__isSmartRef__":true,"id":1461},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1554},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"1511":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1512},"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","DD557BF7-D160-41F2-92B9-E07260DA4032","C8699DF5-EA6E-495E-BAED-038997928D92"],"id":"0EF27DBE-7DA6-4697-AB0B-711550364C01","eventHandler":{"__isSmartRef__":true,"id":1513},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1514},"moved":true,"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":1510},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1529},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"1512":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"1513":{"morph":{"__isSmartRef__":true,"id":1511},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1514":{"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":1515},{"__isSmartRef__":true,"id":1517},{"__isSmartRef__":true,"id":1519},{"__isSmartRef__":true,"id":1521},{"__isSmartRef__":true,"id":1523},{"__isSmartRef__":true,"id":1525},{"__isSmartRef__":true,"id":1527}],"migrationLevel":4,"revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1515":{"date":{"__isSmartRef__":true,"id":1516},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"1516":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"1517":{"date":{"__isSmartRef__":true,"id":1518},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"1518":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"1519":{"date":{"__isSmartRef__":true,"id":1520},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"1520":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"1521":{"date":{"__isSmartRef__":true,"id":1522},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"1522":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"1523":{"date":{"__isSmartRef__":true,"id":1524},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"1524":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"1525":{"date":{"__isSmartRef__":true,"id":1526},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"1526":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"1527":{"date":{"__isSmartRef__":true,"id":1528},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"1528":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"1529":{"soliloquize":{"__isSmartRef__":true,"id":1530}},"1530":{"varMapping":{"__isSmartRef__":true,"id":1531},"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":1532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1531":{"this":{"__isSmartRef__":true,"id":1511}},"1532":{"timestamp":{"__isSmartRef__":true,"id":1533},"user":"lauritz","tags":[]},"1533":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"1534":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1535":{"partsSpaceName":"PartsBin/Basic","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":1536},{"__isSmartRef__":true,"id":1538},{"__isSmartRef__":true,"id":1540},{"__isSmartRef__":true,"id":1542},{"__isSmartRef__":true,"id":1544},{"__isSmartRef__":true,"id":1546}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1536":{"date":{"__isSmartRef__":true,"id":1537},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1537":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"1538":{"date":{"__isSmartRef__":true,"id":1539},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1539":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"1540":{"date":{"__isSmartRef__":true,"id":1541},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1541":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"1542":{"date":{"__isSmartRef__":true,"id":1543},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1543":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"1544":{"date":{"__isSmartRef__":true,"id":1545},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"1545":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"1546":{"date":{"__isSmartRef__":true,"id":1547},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"1547":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"1548":{"morph":{"__isSmartRef__":true,"id":1510},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1549":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1550}},"1550":{"test01IsMorph":{"__isSmartRef__":true,"id":1551}},"1551":{"varMapping":{"__isSmartRef__":true,"id":1552},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1552":{"this":{"__isSmartRef__":true,"id":1549}},"1553":{},"1554":{"die":{"__isSmartRef__":true,"id":1555},"reset":{"__isSmartRef__":true,"id":1558},"nextImage":{"__isSmartRef__":true,"id":1562},"start":{"__isSmartRef__":true,"id":1566}},"1555":{"varMapping":{"__isSmartRef__":true,"id":1556},"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":1557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1556":{"this":{"__isSmartRef__":true,"id":1510}},"1557":{},"1558":{"varMapping":{"__isSmartRef__":true,"id":1559},"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":1560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1559":{"this":{"__isSmartRef__":true,"id":1510}},"1560":{"timestamp":{"__isSmartRef__":true,"id":1561},"user":"timfelgentreff","tags":[]},"1561":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (Central Europe Daylight Time)"},"1562":{"varMapping":{"__isSmartRef__":true,"id":1563},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":1564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1563":{"this":{"__isSmartRef__":true,"id":1510}},"1564":{"timestamp":{"__isSmartRef__":true,"id":1565},"user":"timfelgentreff","tags":[]},"1565":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (Central Europe Daylight Time)"},"1566":{"varMapping":{"__isSmartRef__":true,"id":1567},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":1568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1567":{"this":{"__isSmartRef__":true,"id":1510}},"1568":{"timestamp":{"__isSmartRef__":true,"id":1569},"user":"timfelgentreff","tags":[]},"1569":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (Central Europe Daylight Time)"},"1570":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1571},"derivationIds":[null,"09D9B212-F744-4AE7-B38B-4A5C5288371F","6C6681FE-F923-46F9-AEB9-07333BDBD26B","7B0BC5EF-AA0D-46A3-9483-622C7B35B43F"],"id":"A7DD2ABA-7AFF-428F-8579-E0D4980555F9","eventHandler":{"__isSmartRef__":true,"id":1572},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"name":"Player1","isBeingDragged":false,"showsHalos":false,"#startLetters":"","prevScroll":[0,0],"partsBinMetaInfo":{"__isSmartRef__":true,"id":1573},"moved":true,"isPlayer":true,"owner":{"__isSmartRef__":true,"id":1461},"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1580},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(6.0,-5.0)"},"1571":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/player_south.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(43.2,72.0)","_Padding":"lively.rect(0,0,0,0)"},"1572":{"morph":{"__isSmartRef__":true,"id":1570},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1573":{"partName":"Player","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A player character, which can face different directions","changes":[{"__isSmartRef__":true,"id":1574},{"__isSmartRef__":true,"id":1576},{"__isSmartRef__":true,"id":1578}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1574":{"date":{"__isSmartRef__":true,"id":1575},"author":"tessi","message":"no comment","id":"04C3B971-E7A7-48D8-9BB4-D2D0C01F4357"},"1575":{"isSerializedDate":true,"string":"Fri May 04 2012 17:00:59 GMT+0200 (Central Europe Daylight Time)"},"1576":{"date":{"__isSmartRef__":true,"id":1577},"author":"timfelgentreff","message":"avoid resetting image all the time","id":"828C5757-34C9-4ED5-BF71-136B71BD18F9"},"1577":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:22 GMT+0200 (Central Europe Daylight Time)"},"1578":{"date":{"__isSmartRef__":true,"id":1579},"author":"timfelgentreff","message":"no comment","id":"AB6EC246-0E78-43F0-A551-17F34378328F"},"1579":{"isSerializedDate":true,"string":"Fri May 04 2012 17:50:59 GMT+0200 (Central Europe Daylight Time)"},"1580":{"mediaURL":{"__isSmartRef__":true,"id":1581},"face":{"__isSmartRef__":true,"id":1585}},"1581":{"varMapping":{"__isSmartRef__":true,"id":1582},"source":"function mediaURL() {\n return \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media\"\n}","funcProperties":{"__isSmartRef__":true,"id":1583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1582":{"this":{"__isSmartRef__":true,"id":1570}},"1583":{"timestamp":{"__isSmartRef__":true,"id":1584},"user":"tessi","tags":[]},"1584":{"isSerializedDate":true,"string":"Fri May 04 2012 16:56:03 GMT+0200 (Central Europe Daylight Time)"},"1585":{"varMapping":{"__isSmartRef__":true,"id":1586},"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":1587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1586":{"this":{"__isSmartRef__":true,"id":1570}},"1587":{"timestamp":{"__isSmartRef__":true,"id":1588},"user":"timfelgentreff","tags":[]},"1588":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:09 GMT+0200 (Central Europe Daylight Time)"},"1589":{"target":{"__isSmartRef__":true,"id":1461},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":1590}],"stopped":false,"tickTime":3000,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"1590":{},"1591":{"target":{"__isSmartRef__":true,"id":1461},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":1454}]],"stopped":true,"tickTime":10,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"1592":{"_NodeClass":["morph","box"],"_NodeId":"morph-55b3d416-2247-4ede-9674-f2c4d50e543f","_BorderWidth":1,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1593":{"morph":{"__isSmartRef__":true,"id":1461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1594":{"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A character is a moving, talking unit/player/movable/NPC/villager","migrationLevel":4,"partName":"Character","changes":[{"__isSmartRef__":true,"id":1595},{"__isSmartRef__":true,"id":1597},{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":1601},{"__isSmartRef__":true,"id":1603},{"__isSmartRef__":true,"id":1605},{"__isSmartRef__":true,"id":1607},{"__isSmartRef__":true,"id":1609},{"__isSmartRef__":true,"id":1611},{"__isSmartRef__":true,"id":1613},{"__isSmartRef__":true,"id":1615},{"__isSmartRef__":true,"id":1617},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":1621},{"__isSmartRef__":true,"id":1623},{"__isSmartRef__":true,"id":1625},{"__isSmartRef__":true,"id":1627},{"__isSmartRef__":true,"id":1629},{"__isSmartRef__":true,"id":1631},{"__isSmartRef__":true,"id":1633},{"__isSmartRef__":true,"id":1635},{"__isSmartRef__":true,"id":1637},{"__isSmartRef__":true,"id":1639},{"__isSmartRef__":true,"id":1641},{"__isSmartRef__":true,"id":1643},{"__isSmartRef__":true,"id":1645},{"__isSmartRef__":true,"id":1647},{"__isSmartRef__":true,"id":1649},{"__isSmartRef__":true,"id":1651},{"__isSmartRef__":true,"id":1653},{"__isSmartRef__":true,"id":1655},{"__isSmartRef__":true,"id":1657},{"__isSmartRef__":true,"id":1659},{"__isSmartRef__":true,"id":1661},{"__isSmartRef__":true,"id":1663},{"__isSmartRef__":true,"id":1665},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1669},{"__isSmartRef__":true,"id":1671},{"__isSmartRef__":true,"id":1673},{"__isSmartRef__":true,"id":1675},{"__isSmartRef__":true,"id":1677},{"__isSmartRef__":true,"id":1679},{"__isSmartRef__":true,"id":1681},{"__isSmartRef__":true,"id":1683},{"__isSmartRef__":true,"id":1685},{"__isSmartRef__":true,"id":1687},{"__isSmartRef__":true,"id":1689},{"__isSmartRef__":true,"id":1691},{"__isSmartRef__":true,"id":1693},{"__isSmartRef__":true,"id":1695},{"__isSmartRef__":true,"id":1697},{"__isSmartRef__":true,"id":1699},{"__isSmartRef__":true,"id":1701},{"__isSmartRef__":true,"id":1703},{"__isSmartRef__":true,"id":1705},{"__isSmartRef__":true,"id":1707},{"__isSmartRef__":true,"id":1709},{"__isSmartRef__":true,"id":1711},{"__isSmartRef__":true,"id":1713},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1717},{"__isSmartRef__":true,"id":1719},{"__isSmartRef__":true,"id":1721},{"__isSmartRef__":true,"id":1723},{"__isSmartRef__":true,"id":1725},{"__isSmartRef__":true,"id":1727},{"__isSmartRef__":true,"id":1729},{"__isSmartRef__":true,"id":1731},{"__isSmartRef__":true,"id":1733},{"__isSmartRef__":true,"id":1735},{"__isSmartRef__":true,"id":1737},{"__isSmartRef__":true,"id":1739},{"__isSmartRef__":true,"id":1741},{"__isSmartRef__":true,"id":1743},{"__isSmartRef__":true,"id":1745},{"__isSmartRef__":true,"id":1747},{"__isSmartRef__":true,"id":1749},{"__isSmartRef__":true,"id":1751},{"__isSmartRef__":true,"id":1753},{"__isSmartRef__":true,"id":1755},{"__isSmartRef__":true,"id":1757},{"__isSmartRef__":true,"id":1759},{"__isSmartRef__":true,"id":1761},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1765},{"__isSmartRef__":true,"id":1767},{"__isSmartRef__":true,"id":1769},{"__isSmartRef__":true,"id":1771},{"__isSmartRef__":true,"id":1773},{"__isSmartRef__":true,"id":1775},{"__isSmartRef__":true,"id":1777},{"__isSmartRef__":true,"id":1779},{"__isSmartRef__":true,"id":1781},{"__isSmartRef__":true,"id":1783},{"__isSmartRef__":true,"id":1785},{"__isSmartRef__":true,"id":1787},{"__isSmartRef__":true,"id":1789},{"__isSmartRef__":true,"id":1791},{"__isSmartRef__":true,"id":1793},{"__isSmartRef__":true,"id":1795},{"__isSmartRef__":true,"id":1797},{"__isSmartRef__":true,"id":1799},{"__isSmartRef__":true,"id":1801},{"__isSmartRef__":true,"id":1803},{"__isSmartRef__":true,"id":1805},{"__isSmartRef__":true,"id":1807},{"__isSmartRef__":true,"id":1809},{"__isSmartRef__":true,"id":1811}],"requiredModules":["projects.WebDev2012.Telautim.js.chatbot"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1595":{"date":{"__isSmartRef__":true,"id":1596},"author":"lauritz","message":"fixed shuffling of answer possibilities in debates.","id":"1B6E19E3-2737-4598-A8E3-FEAAFC8BFF48"},"1596":{"isSerializedDate":true,"string":"Mon May 07 2012 19:20:25 GMT+0200 (Central Europe Daylight Time)"},"1597":{"date":{"__isSmartRef__":true,"id":1598},"author":"lauritz","message":"no comment","id":"AF6C3CC5-9EAB-4F84-A91F-F90E8EF1571C"},"1598":{"isSerializedDate":true,"string":"Mon May 07 2012 10:58:34 GMT+0200 (Central Europe Daylight Time)"},"1599":{"date":{"__isSmartRef__":true,"id":1600},"author":"timfelgentreff","message":"remove character for death animation","id":"679D5E2B-8559-414E-B9BE-3E7840EF084F"},"1600":{"isSerializedDate":true,"string":"Sat May 05 2012 13:06:37 GMT+0200 (Central Europe Daylight Time)"},"1601":{"date":{"__isSmartRef__":true,"id":1602},"author":"timfelgentreff","message":"little harder npc fights","id":"F28D1CA1-D307-4F2B-BF97-119E2A107B70"},"1602":{"isSerializedDate":true,"string":"Sat May 05 2012 13:04:37 GMT+0200 (Central Europe Daylight Time)"},"1603":{"date":{"__isSmartRef__":true,"id":1604},"author":"timfelgentreff","message":"make fights easier","id":"C707BCA9-92E4-43E6-95D4-22B840F322AE"},"1604":{"isSerializedDate":true,"string":"Sat May 05 2012 12:59:25 GMT+0200 (Central Europe Daylight Time)"},"1605":{"date":{"__isSmartRef__":true,"id":1606},"author":"timfelgentreff","message":"talk timeout in fights needs to be closer to text bubble timeout","id":"139B596D-D4BF-4A12-B177-BC7D3AA516D1"},"1606":{"isSerializedDate":true,"string":"Sat May 05 2012 12:58:15 GMT+0200 (Central Europe Daylight Time)"},"1607":{"date":{"__isSmartRef__":true,"id":1608},"author":"timfelgentreff","message":"remove menu after choosing","id":"98432B46-2F70-48EF-B357-56F419789F63"},"1608":{"isSerializedDate":true,"string":"Sat May 05 2012 12:54:26 GMT+0200 (Central Europe Daylight Time)"},"1609":{"date":{"__isSmartRef__":true,"id":1610},"author":"timfelgentreff","message":"add fighting, isDead and healing","id":"49162D76-8BAB-4488-9D81-6C5F3F9E9A7B"},"1610":{"isSerializedDate":true,"string":"Sat May 05 2012 12:38:51 GMT+0200 (Central Europe Daylight Time)"},"1611":{"date":{"__isSmartRef__":true,"id":1612},"author":"timfelgentreff","message":"support directions for the player animations","id":"69DE1485-AECF-45C1-9777-18ED9ADE260C"},"1612":{"isSerializedDate":true,"string":"Fri May 04 2012 17:37:43 GMT+0200 (Central Europe Daylight Time)"},"1613":{"date":{"__isSmartRef__":true,"id":1614},"author":"tessi","message":" normal border color is transparent","id":"F921DA1B-4626-4B18-953B-5E402B28F855"},"1614":{"isSerializedDate":true,"string":"Thu May 03 2012 15:26:05 GMT+0200 (Central Europe Daylight Time)"},"1615":{"date":{"__isSmartRef__":true,"id":1616},"author":"tessi","message":"have a chatbot","id":"358609CE-869C-4C32-8159-077252DCA5AF"},"1616":{"isSerializedDate":true,"string":"Thu May 03 2012 15:10:55 GMT+0200 (Central Europe Daylight Time)"},"1617":{"date":{"__isSmartRef__":true,"id":1618},"author":"tessi","message":"require module chatbot","id":"014ABA59-3301-4F2C-9D20-05859045AB5F"},"1618":{"isSerializedDate":true,"string":"Thu May 03 2012 15:00:31 GMT+0200 (Central Europe Daylight Time)"},"1619":{"date":{"__isSmartRef__":true,"id":1620},"author":"timfelgentreff","message":"implement walking for A*","id":"0F3AA4B2-39C6-4CBA-A410-72E9D6DD310A"},"1620":{"isSerializedDate":true,"string":"Thu May 03 2012 12:38:15 GMT+0200 (Central Europe Daylight Time)"},"1621":{"date":{"__isSmartRef__":true,"id":1622},"author":"lauritz","message":"no comment","id":"882374DC-58F6-413A-A909-04B4B9FC0213"},"1622":{"isSerializedDate":true,"string":"Wed May 02 2012 17:43:13 GMT+0200 (Central Europe Daylight Time)"},"1623":{"date":{"__isSmartRef__":true,"id":1624},"author":"lauritz","message":"yellow border color in dev mode, distinguishes character and tile","id":"CD0BE784-3A0A-4F31-BD29-A7B23BB4D110"},"1624":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:57:02 GMT+0200 (Central Europe Daylight Time)"},"1625":{"date":{"__isSmartRef__":true,"id":1626},"author":"tessi","message":"","id":"2AB48789-9884-4B49-BE6D-9F6B05F91FC1"},"1626":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:32:08 GMT+0200 (Central Europe Daylight Time)"},"1627":{"date":{"__isSmartRef__":true,"id":1628},"author":"tessi","message":"","id":"2756AB2C-8345-4A1A-9D5E-2A837C5BCF19"},"1628":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:27:05 GMT+0200 (Central Europe Daylight Time)"},"1629":{"date":{"__isSmartRef__":true,"id":1630},"author":"tessi","message":"fix setTimeout bug","id":"6A244DDE-DA87-4360-BE58-3D50E455AD3D"},"1630":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:23:14 GMT+0200 (Central Europe Daylight Time)"},"1631":{"date":{"__isSmartRef__":true,"id":1632},"author":"timfelgentreff","message":"no comment","id":"06241D99-F4AF-4997-BEF5-A05CAB5516FA"},"1632":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:54:14 GMT+0200 (Central Europe Daylight Time)"},"1633":{"date":{"__isSmartRef__":true,"id":1634},"author":"tessi","message":"isBusy = false when starting a conversation failed","id":"B91EF496-BC58-49B4-AA5D-B0296829A331"},"1634":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:38:18 GMT+0200 (Central Europe Daylight Time)"},"1635":{"date":{"__isSmartRef__":true,"id":1636},"author":"tessi","message":"have a default-goodbye in answer() and proxy answer-call to character-type if possible","id":"E7051C47-72C5-4F41-A7EE-5D843B84CD5C"},"1636":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:33:56 GMT+0200 (Central Europe Daylight Time)"},"1637":{"date":{"__isSmartRef__":true,"id":1638},"author":"tessi","message":"conversation","id":"92D475C5-8AFA-4704-B31A-E0323A2F80CA"},"1638":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:29:27 GMT+0200 (Central Europe Daylight Time)"},"1639":{"date":{"__isSmartRef__":true,"id":1640},"author":"tessi","message":"typo","id":"651358CA-816D-45A4-A6D4-EDDE6445D105"},"1640":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:30:15 GMT+0200 (Central Europe Daylight Time)"},"1641":{"date":{"__isSmartRef__":true,"id":1642},"author":"tessi","message":"do not take a callback anymore for walkUntilReached","id":"5E146087-30CB-4C83-9B6F-0805908CFD24"},"1642":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:26:11 GMT+0200 (Central Europe Daylight Time)"},"1643":{"date":{"__isSmartRef__":true,"id":1644},"author":"tessi","message":"character now leaves and enters a tile when walking","id":"86E09CBB-9697-4065-B4D7-38130EA26F03"},"1644":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:04 GMT+0200 (Central Europe Daylight Time)"},"1645":{"date":{"__isSmartRef__":true,"id":1646},"author":"lauritz","message":"added shadow copy to characters as well","id":"D0B45A60-90FD-405B-8410-02E39C2766FB"},"1646":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:26:12 GMT+0200 (Central Europe Daylight Time)"},"1647":{"date":{"__isSmartRef__":true,"id":1648},"author":"tessi","message":"do not setup when comitting a character","id":"998DCFDD-7C21-486F-8873-EB500F5D828C"},"1648":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:40:44 GMT+0200 (Central Europe Daylight Time)"},"1649":{"date":{"__isSmartRef__":true,"id":1650},"author":"tessi","message":"reset isBusy flag when resetting","id":"1C10FA19-01A5-4A0F-9660-E714888E1632"},"1650":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:16:55 GMT+0200 (Central Europe Daylight Time)"},"1651":{"date":{"__isSmartRef__":true,"id":1652},"author":"tessi","message":"only do something every 3 seconds","id":"380054EE-6F1F-4DCC-BBE1-0A3F3C041652"},"1652":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:49:26 GMT+0200 (Central Europe Daylight Time)"},"1653":{"date":{"__isSmartRef__":true,"id":1654},"author":"tessi","message":"remove textBubble on reset","id":"F1B5D5ED-7465-4842-8AE8-0D2D5EFEC89D"},"1654":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:17 GMT+0200 (Central Europe Daylight Time)"},"1655":{"date":{"__isSmartRef__":true,"id":1656},"author":"tessi","message":"did a reset","id":"D90F8A53-5943-4780-A68C-03A9795959BD"},"1656":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:28:31 GMT+0200 (Central Europe Daylight Time)"},"1657":{"date":{"__isSmartRef__":true,"id":1658},"author":"tessi","message":"do not soliloquize too often","id":"C7DF35C3-3829-4869-973A-BF8329278BDD"},"1658":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:31:17 GMT+0200 (Central Europe Daylight Time)"},"1659":{"date":{"__isSmartRef__":true,"id":1660},"author":"tessi","message":"add animation loop","id":"05FA5AFA-66B9-4E5E-A2AE-D0F798FE2F8C"},"1660":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:22:56 GMT+0200 (Central Europe Daylight Time)"},"1661":{"date":{"__isSmartRef__":true,"id":1662},"author":"tessi","message":"a character may not soliloquize (talk to himself)","id":"094BB96A-4E2B-4839-A378-B59C9CECF2B4"},"1662":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:36:08 GMT+0200 (Central Europe Daylight Time)"},"1663":{"date":{"__isSmartRef__":true,"id":1664},"author":"tessi","message":"do a copy() when getting the text bubble","id":"F94DDE8C-9992-4552-82AF-40B62EC980C7"},"1664":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:25:58 GMT+0200 (Central Europe Daylight Time)"},"1665":{"date":{"__isSmartRef__":true,"id":1666},"author":"tessi","message":"Added functionality to say something - this.say(\"Foo!\")","id":"D3310A2C-9375-4910-8AD0-1624086A18C5"},"1666":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:21:54 GMT+0200 (Central Europe Daylight Time)"},"1667":{"date":{"__isSmartRef__":true,"id":1668},"author":"tessi","message":"cached character names list in becomeRandomCharacter","id":"F24125F0-9BEE-4CB9-8919-4184B4237A23"},"1668":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:06:32 GMT+0200 (Central Europe Daylight Time)"},"1669":{"date":{"__isSmartRef__":true,"id":1670},"author":"tessi","message":"Do not throw error on left click if the character is not within a game","id":"8B76A606-75E7-44F9-81B3-4A7D32710930"},"1670":{"isSerializedDate":true,"string":"Sat Apr 21 2012 11:53:06 GMT+0200 (Central Europe Daylight Time)"},"1671":{"date":{"__isSmartRef__":true,"id":1672},"author":"timfelgentreff","message":"","id":"F897DF97-32A2-4CE7-9A35-53212D4A26E3"},"1672":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:03:29 GMT+0200 (Central Europe Daylight Time)"},"1673":{"date":{"__isSmartRef__":true,"id":1674},"author":"timfelgentreff","message":"","id":"A38CB8F1-BDF4-452A-A4D3-860ADFB0C56B"},"1674":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:03:05 GMT+0200 (Central Europe Daylight Time)"},"1675":{"date":{"__isSmartRef__":true,"id":1676},"author":"timfelgentreff","message":"","id":"7EF9C9F0-6D1A-4EEC-A4C7-E8413604B1F8"},"1676":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:20:32 GMT+0200 (Central Europe Daylight Time)"},"1677":{"date":{"__isSmartRef__":true,"id":1678},"author":"timfelgentreff","message":"","id":"48990527-46C3-4754-B62F-86A06C3683E4"},"1678":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:15:33 GMT+0200 (Central Europe Daylight Time)"},"1679":{"date":{"__isSmartRef__":true,"id":1680},"author":"timfelgentreff","message":"","id":"A801296C-B767-4752-9C39-B91FC2CB09D1"},"1680":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:14:30 GMT+0200 (Central Europe Daylight Time)"},"1681":{"date":{"__isSmartRef__":true,"id":1682},"author":"timfelgentreff","message":"","id":"110ED1B9-D63C-4832-A17C-48410A99EBE8"},"1682":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:06:44 GMT+0200 (Central Europe Daylight Time)"},"1683":{"date":{"__isSmartRef__":true,"id":1684},"author":"timfelgentreff","message":"","id":"FB4CEBF9-0379-4033-A173-5297EFC0B5BE"},"1684":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:44:05 GMT+0200 (Central Europe Daylight Time)"},"1685":{"date":{"__isSmartRef__":true,"id":1686},"author":"timfelgentreff","message":"","id":"268C27C2-3DAB-4D17-AB4F-8319341CBE51"},"1686":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:14:35 GMT+0200 (Central Europe Daylight Time)"},"1687":{"date":{"__isSmartRef__":true,"id":1688},"author":"timfelgentreff","message":"","id":"EA0606B9-830C-4424-9950-55893DCE4622"},"1688":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:03:33 GMT+0200 (Central Europe Daylight Time)"},"1689":{"date":{"__isSmartRef__":true,"id":1690},"author":"timfelgentreff","message":"","id":"77F93C94-EAD5-4F89-AA8A-E4102AAEC3CB"},"1690":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:23:21 GMT+0200 (Central Europe Daylight Time)"},"1691":{"date":{"__isSmartRef__":true,"id":1692},"author":"timfelgentreff","message":"","id":"4F98DE4B-29D4-46EF-8F3F-277038AE57A2"},"1692":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:03:58 GMT+0200 (Central Europe Daylight Time)"},"1693":{"date":{"__isSmartRef__":true,"id":1694},"author":"timfelgentreff","message":"","id":"B5F2B437-806A-447F-B407-7C5FFCE479B0"},"1694":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:02 GMT+0200 (Central Europe Daylight Time)"},"1695":{"date":{"__isSmartRef__":true,"id":1696},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1696":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"1697":{"date":{"__isSmartRef__":true,"id":1698},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1698":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"1699":{"date":{"__isSmartRef__":true,"id":1700},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1700":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"1701":{"date":{"__isSmartRef__":true,"id":1702},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1702":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"1703":{"date":{"__isSmartRef__":true,"id":1704},"author":"timfelgentreff","message":"","id":"6B60055B-55B1-4E2A-AD9C-FA5408E28AB7"},"1704":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:29:52 GMT+0200 (Central Europe Daylight Time)"},"1705":{"date":{"__isSmartRef__":true,"id":1706},"author":"timfelgentreff","message":"","id":"85BC7627-55A6-4E30-B13F-1227C9196849"},"1706":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:17:51 GMT+0200 (Central Europe Daylight Time)"},"1707":{"date":{"__isSmartRef__":true,"id":1708},"author":"timfelgentreff","message":"","id":"0FED5A50-603F-474D-BAB3-3D252B7C0D12"},"1708":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:24:02 GMT+0200 (Central Europe Daylight Time)"},"1709":{"date":{"__isSmartRef__":true,"id":1710},"author":"timfelgentreff","message":"","id":"158C6E00-18B6-4CB2-9E5F-D99927550506"},"1710":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:11:41 GMT+0200 (Central Europe Daylight Time)"},"1711":{"date":{"__isSmartRef__":true,"id":1712},"author":"timfelgentreff","message":"","id":"D5B99567-984F-4ED8-86EF-7314F0876EF1"},"1712":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:20:46 GMT+0200 (Central Europe Daylight Time)"},"1713":{"date":{"__isSmartRef__":true,"id":1714},"author":"timfelgentreff","message":"","id":"74ECE854-1AF0-4527-8FAD-52DA991B5F48"},"1714":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:28:31 GMT+0200 (Central Europe Daylight Time)"},"1715":{"date":{"__isSmartRef__":true,"id":1716},"author":"timfelgentreff","message":"","id":"F0A0187B-50D8-410C-BA09-0AE944E5BAC2"},"1716":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:29:41 GMT+0200 (Central Europe Daylight Time)"},"1717":{"date":{"__isSmartRef__":true,"id":1718},"author":"timfelgentreff","message":"","id":"84662911-A76F-443A-A285-71B3ECEEF099"},"1718":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:37:03 GMT+0200 (Central Europe Daylight Time)"},"1719":{"date":{"__isSmartRef__":true,"id":1720},"author":"timfelgentreff","message":"","id":"5193293E-D9DE-406D-AD6A-589A904409FE"},"1720":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:54:23 GMT+0200 (Central Europe Daylight Time)"},"1721":{"date":{"__isSmartRef__":true,"id":1722},"author":"timfelgentreff","message":"","id":"42D19C5A-8D17-4352-B10F-D69925A338CF"},"1722":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:07:22 GMT+0200 (Central Europe Daylight Time)"},"1723":{"date":{"__isSmartRef__":true,"id":1724},"author":"timfelgentreff","message":"","id":"7A79A18C-B093-44EA-8522-7A3D2013F7F9"},"1724":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:12:47 GMT+0200 (Central Europe Daylight Time)"},"1725":{"date":{"__isSmartRef__":true,"id":1726},"author":"timfelgentreff","message":"","id":"BB97EFD5-248F-4B83-A177-F68CC9FE7744"},"1726":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:10:09 GMT+0200 (Central Europe Daylight Time)"},"1727":{"date":{"__isSmartRef__":true,"id":1728},"author":"timfelgentreff","message":"","id":"29A66B5D-C073-40D0-B445-4B92C0315243"},"1728":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:11:14 GMT+0200 (Central Europe Daylight Time)"},"1729":{"date":{"__isSmartRef__":true,"id":1730},"author":"timfelgentreff","message":"","id":"45A004C9-FD27-4FDD-8910-03240CEDBB33"},"1730":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:13:43 GMT+0200 (Central Europe Daylight Time)"},"1731":{"date":{"__isSmartRef__":true,"id":1732},"author":"timfelgentreff","message":"","id":"4D440D8C-20BF-4088-A05C-48ADE0376E9C"},"1732":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:33:42 GMT+0200 (Central Europe Daylight Time)"},"1733":{"date":{"__isSmartRef__":true,"id":1734},"author":"timfelgentreff","message":"","id":"F496AFC6-959F-4EC9-AED3-0CACA9686C50"},"1734":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:50:45 GMT+0200 (Central Europe Daylight Time)"},"1735":{"date":{"__isSmartRef__":true,"id":1736},"author":"timfelgentreff","message":"game loop implemented","id":"5F56A7B0-C894-4B53-99EA-23CA74E07649"},"1736":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:19:13 GMT+0200 (Central Europe Daylight Time)"},"1737":{"date":{"__isSmartRef__":true,"id":1738},"author":"timfelgentreff","message":"","id":"8B2931F8-644C-441D-8ED0-1055AC1A8466"},"1738":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:09:54 GMT+0200 (Central Europe Daylight Time)"},"1739":{"date":{"__isSmartRef__":true,"id":1740},"author":"timfelgentreff","message":"use convenience method to get all the character names from the Game","id":"64A0DAD1-6DCA-4A5E-A1C4-1245B5142904"},"1740":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:25:05 GMT+0200 (Central Europe Daylight Time)"},"1741":{"date":{"__isSmartRef__":true,"id":1742},"author":"tessi","message":"do not talk if aString is undefined or null","id":"6CC7D989-E7E7-455A-9548-6E11E062868C"},"1742":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:42:15 GMT+0200 (Central Europe Daylight Time)"},"1743":{"date":{"__isSmartRef__":true,"id":1744},"author":"tessi","message":"fixed bug: error when aString and textBubble was both undefined","id":"B7C5702A-5A72-4B4E-8495-6C7091FB90E7"},"1744":{"isSerializedDate":true,"string":"Mon Apr 23 2012 16:08:46 GMT+0200 (Central Europe Daylight Time)"},"1745":{"date":{"__isSmartRef__":true,"id":1746},"author":"tessi","message":"reset() sets devStyle; replace get() calls with map() and game()","id":"632B5695-D5F1-4549-A4C4-57118B5CC18C"},"1746":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:23:43 GMT+0200 (Central Europe Daylight Time)"},"1747":{"date":{"__isSmartRef__":true,"id":1748},"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"},"1748":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:08:44 GMT+0200 (Central Europe Daylight Time)"},"1749":{"date":{"__isSmartRef__":true,"id":1750},"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"},"1750":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:09:04 GMT+0200 (Central Europe Daylight Time)"},"1751":{"date":{"__isSmartRef__":true,"id":1752},"author":"tessi","message":"fix currentTile() calculation","id":"5DFDC67F-C2B3-446A-B98F-9D783D86AE67"},"1752":{"isSerializedDate":true,"string":"Wed Apr 25 2012 15:20:10 GMT+0200 (Central Europe Daylight Time)"},"1753":{"date":{"__isSmartRef__":true,"id":1754},"author":"tessi","message":"remove coder from character wooooo!","id":"CC460BFD-5714-4136-9D71-C27CB357B03D"},"1754":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:26:11 GMT+0200 (Central Europe Daylight Time)"},"1755":{"date":{"__isSmartRef__":true,"id":1756},"author":"tessi","message":"fix reset()","id":"25318C72-069B-4982-80C1-3D6BB62CAEEB"},"1756":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:35:54 GMT+0200 (Central Europe Daylight Time)"},"1757":{"date":{"__isSmartRef__":true,"id":1758},"author":"tessi","message":"WIP: startConversation","id":"CDE4457D-E565-4B2B-B9A2-11B469420208"},"1758":{"isSerializedDate":true,"string":"Wed Apr 25 2012 17:08:28 GMT+0200 (Central Europe Daylight Time)"},"1759":{"date":{"__isSmartRef__":true,"id":1760},"author":"tessi","message":"removed todo on getting tile characters","id":"E53A3851-D321-46AB-BAEC-00F6DB517896"},"1760":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:23:53 GMT+0200 (Central Europe Daylight Time)"},"1761":{"date":{"__isSmartRef__":true,"id":1762},"author":"tessi","message":"removed todo on getting tile characters","id":"481343BD-AEE2-4403-8C34-F8ED283FB915"},"1762":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:23:54 GMT+0200 (Central Europe Daylight Time)"},"1763":{"date":{"__isSmartRef__":true,"id":1764},"author":"lauritz","message":"no comment","id":"312F87FF-9A4A-4537-94FC-17A675B8F1D0"},"1764":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:00:17 GMT+0200 (Central Europe Daylight Time)"},"1765":{"date":{"__isSmartRef__":true,"id":1766},"author":"timfelgentreff","message":"no comment","id":"A9AE4A60-C66D-40B6-BAAF-1D9D71F84B6E"},"1766":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:53:18 GMT+0200 (Central Europe Daylight Time)"},"1767":{"date":{"__isSmartRef__":true,"id":1768},"author":"timfelgentreff","message":"no comment","id":"39F64661-30D8-4C21-8955-3577D7999A1E"},"1768":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:14:46 GMT+0200 (Central Europe Daylight Time)"},"1769":{"date":{"__isSmartRef__":true,"id":1770},"author":"tessi","message":"","id":"86997E8C-1851-4003-AF70-3637C964F4C2"},"1770":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:40:38 GMT+0200 (Central Europe Daylight Time)"},"1771":{"date":{"__isSmartRef__":true,"id":1772},"author":"tessi","message":"do not try to start a conversation with busy characters anymore","id":"FC5A962A-B4F5-4952-9DA3-93178498B650"},"1772":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:45:52 GMT+0200 (Central Europe Daylight Time)"},"1773":{"date":{"__isSmartRef__":true,"id":1774},"author":"timfelgentreff","message":"add A* algorithm","id":"2463589C-B2A5-49C5-B4AC-61C44963498C"},"1774":{"isSerializedDate":true,"string":"Thu May 03 2012 12:16:42 GMT+0200 (Central Europe Daylight Time)"},"1775":{"date":{"__isSmartRef__":true,"id":1776},"author":"timfelgentreff","message":"start including A* as the walking script","id":"0CE0539A-F853-4368-B65C-FBF9FA1374F6"},"1776":{"isSerializedDate":true,"string":"Thu May 03 2012 12:22:29 GMT+0200 (Central Europe Daylight Time)"},"1777":{"date":{"__isSmartRef__":true,"id":1778},"author":"timfelgentreff","message":"avoid crashing chrome","id":"C08488EB-0F4F-4D1B-8158-4B4CECA13310"},"1778":{"isSerializedDate":true,"string":"Thu May 03 2012 12:39:24 GMT+0200 (Central Europe Daylight Time)"},"1779":{"date":{"__isSmartRef__":true,"id":1780},"author":"timfelgentreff","message":"update A*","id":"0ADDF3A6-9B36-4836-952A-034C8AFB76AE"},"1780":{"isSerializedDate":true,"string":"Thu May 03 2012 13:30:55 GMT+0200 (Central Europe Daylight Time)"},"1781":{"date":{"__isSmartRef__":true,"id":1782},"author":"tessi","message":"talk","id":"A54BE0A6-A721-4931-9C16-1B10721DB077"},"1782":{"isSerializedDate":true,"string":"Thu May 03 2012 15:07:51 GMT+0200 (Central Europe Daylight Time)"},"1783":{"date":{"__isSmartRef__":true,"id":1784},"author":"tessi","message":"cannot set color to null","id":"8282460E-42E5-474F-B4B1-779328A0CA12"},"1784":{"isSerializedDate":true,"string":"Thu May 03 2012 15:19:48 GMT+0200 (Central Europe Daylight Time)"},"1785":{"date":{"__isSmartRef__":true,"id":1786},"author":"timfelgentreff","message":"add lifebar and death animation","id":"56443440-08E1-4535-A501-313169B43CF6"},"1786":{"isSerializedDate":true,"string":"Fri May 04 2012 17:23:23 GMT+0200 (Central Europe Daylight Time)"},"1787":{"date":{"__isSmartRef__":true,"id":1788},"author":"timfelgentreff","message":"stopStepping after remove","id":"67474739-FF28-40D1-B14A-576A8BFFEFC6"},"1788":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:49 GMT+0200 (Central Europe Daylight Time)"},"1789":{"date":{"__isSmartRef__":true,"id":1790},"author":"timfelgentreff","message":"slower, more painful death","id":"69220053-3258-4538-84FA-5447CC65011C"},"1790":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:57 GMT+0200 (Central Europe Daylight Time)"},"1791":{"date":{"__isSmartRef__":true,"id":1792},"author":"timfelgentreff","message":"no comment","id":"A8214C7B-EBBB-4E93-A914-2794143B55BC"},"1792":{"isSerializedDate":true,"string":"Fri May 04 2012 17:45:57 GMT+0200 (Central Europe Daylight Time)"},"1793":{"date":{"__isSmartRef__":true,"id":1794},"author":"timfelgentreff","message":"no comment","id":"D908D0F4-3ED1-4F1D-AEB9-7CFC3B0C8BA5"},"1794":{"isSerializedDate":true,"string":"Fri May 04 2012 17:46:41 GMT+0200 (Central Europe Daylight Time)"},"1795":{"date":{"__isSmartRef__":true,"id":1796},"author":"timfelgentreff","message":"no comment","id":"A506CB13-6C0B-433F-8BE4-73FD6319265A"},"1796":{"isSerializedDate":true,"string":"Fri May 04 2012 17:48:35 GMT+0200 (Central Europe Daylight Time)"},"1797":{"date":{"__isSmartRef__":true,"id":1798},"author":"timfelgentreff","message":"know your fight phrases","id":"2A0FDBCF-F817-40F3-A5A3-B6029BC24B85"},"1798":{"isSerializedDate":true,"string":"Fri May 04 2012 18:00:37 GMT+0200 (Central Europe Daylight Time)"},"1799":{"date":{"__isSmartRef__":true,"id":1800},"author":"timfelgentreff","message":"fix misnomer","id":"6841DC46-81BA-485A-90FE-40C795FC925D"},"1800":{"isSerializedDate":true,"string":"Sat May 05 2012 12:42:00 GMT+0200 (Central Europe Daylight Time)"},"1801":{"date":{"__isSmartRef__":true,"id":1802},"author":"timfelgentreff","message":"no comment","id":"9909F62F-D862-408B-B763-7B126CAECB21"},"1802":{"isSerializedDate":true,"string":"Sat May 05 2012 12:46:46 GMT+0200 (Central Europe Daylight Time)"},"1803":{"date":{"__isSmartRef__":true,"id":1804},"author":"timfelgentreff","message":"no comment","id":"960441EB-D5D2-49ED-918C-C19ED11E90D5"},"1804":{"isSerializedDate":true,"string":"Sat May 05 2012 12:49:21 GMT+0200 (Central Europe Daylight Time)"},"1805":{"date":{"__isSmartRef__":true,"id":1806},"author":"timfelgentreff","message":"fix typo","id":"05779C1D-DB1E-4CB9-AA2C-6653533F10C8"},"1806":{"isSerializedDate":true,"string":"Sat May 05 2012 12:51:21 GMT+0200 (Central Europe Daylight Time)"},"1807":{"date":{"__isSmartRef__":true,"id":1808},"author":"lauritz","message":"no comment","id":"FE139E8C-ABF5-4D0C-97D5-C72CDDCF5321"},"1808":{"isSerializedDate":true,"string":"Mon May 07 2012 10:35:19 GMT+0200 (Central Europe Daylight Time)"},"1809":{"date":{"__isSmartRef__":true,"id":1810},"author":"lauritz","message":"faster fights","id":"0893EC15-CE3B-43C0-AAE5-B3D8EA6E5151"},"1810":{"isSerializedDate":true,"string":"Mon May 07 2012 11:47:58 GMT+0200 (Central Europe Daylight Time)"},"1811":{"date":{"__isSmartRef__":true,"id":1812},"author":"lauritz","message":"no comment","id":"E5CBCE4F-39BE-4ED3-AD3B-0D490420A83F"},"1812":{"isSerializedDate":true,"string":"Mon May 14 2012 16:09:42 GMT+0200 (Central Europe Daylight Time)"},"1813":{"setDevStyle":{"__isSmartRef__":true,"id":1814},"setNormalStyle":{"__isSmartRef__":true,"id":2132},"tileSize":{"__isSmartRef__":true,"id":2135},"become":{"__isSmartRef__":true,"id":2138},"walkUntilReached":{"__isSmartRef__":true,"id":2141},"onMouseDown":{"__isSmartRef__":true,"id":2144},"walkTo":{"__isSmartRef__":true,"id":2151},"currentTile":{"__isSmartRef__":true,"id":2154},"toolbox":{"__isSmartRef__":true,"id":2157},"setCurrentSpeed":{"__isSmartRef__":true,"id":2160},"getCurrentSpeed":{"__isSmartRef__":true,"id":2163},"isWalking":{"__isSmartRef__":true,"id":2166},"select":{"__isSmartRef__":true,"id":2169},"deselect":{"__isSmartRef__":true,"id":2172},"becomeRandomCharacter":{"__isSmartRef__":true,"id":2175},"reset":{"__isSmartRef__":true,"id":2178},"setDirectionToTile":{"__isSmartRef__":true,"id":2181},"getDirection":{"__isSmartRef__":true,"id":2184},"setDirection":{"__isSmartRef__":true,"id":2187},"setPosition":{"__isSmartRef__":true,"id":2190},"say":{"__isSmartRef__":true,"id":2197},"soliloquize":{"__isSmartRef__":true,"id":2200},"characterType":{"__isSmartRef__":true,"id":2203},"animate":{"__isSmartRef__":true,"id":2206},"doSomething":{"__isSmartRef__":true,"id":2209},"map":{"__isSmartRef__":true,"id":2212},"game":{"__isSmartRef__":true,"id":2215},"setup":{"__isSmartRef__":true,"id":2218},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":2221},"startConversation":{"__isSmartRef__":true,"id":2228},"startConversationWith":{"__isSmartRef__":true,"id":2231},"shallowCopy":{"__isSmartRef__":true,"id":2234},"conversation":{"__isSmartRef__":true,"id":2237},"answer":{"__isSmartRef__":true,"id":2240},"hideTextBubble":{"__isSmartRef__":true,"id":2243},"aStar":{"__isSmartRef__":true,"id":2246},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":2249},"aStarWalkPath":{"__isSmartRef__":true,"id":2252},"chatBot":{"__isSmartRef__":true,"id":2255},"getHit":{"__isSmartRef__":true,"id":2258},"becomePlayer":{"__isSmartRef__":true,"id":2261},"fight":{"__isSmartRef__":true,"id":2264},"fightPhrases":{"__isSmartRef__":true,"id":2267},"randomQuestions":{"__isSmartRef__":true,"id":2270},"randomAnswersFor":{"__isSmartRef__":true,"id":2273},"executeFightTurnAsking":{"__isSmartRef__":true,"id":2276},"heal":{"__isSmartRef__":true,"id":2279},"isDead":{"__isSmartRef__":true,"id":2282}},"1814":{"varMapping":{"__isSmartRef__":true,"id":1815},"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":1816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1815":{"this":{"__isSmartRef__":true,"id":1461}},"1816":{"timestamp":{"__isSmartRef__":true,"id":1817},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1818},"declaredObject":""},"1817":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:55:28 GMT+0200 (Central Europe Daylight Time)"},"1818":{"varMapping":{"__isSmartRef__":true,"id":1819},"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":2131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1819":{"this":{"__isSmartRef__":true,"id":1820}},"1820":{"submorphs":[{"__isSmartRef__":true,"id":1821},{"__isSmartRef__":true,"id":1869}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1929},"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":"332D6905-6FAF-4D2F-84D0-2B0627FDE4F6","eventHandler":{"__isSmartRef__":true,"id":1930},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1594},"character":null,"showsHalos":false,"lastSpeedTimestamp":1336043967089,"name":"Character1","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"deathAnimation":{"__isSmartRef__":true,"id":1869},"lifeBar":{"__isSmartRef__":true,"id":1821},"#startLetters":"","_Rotation":0,"_Scale":1.0120783653693808,"__serializedExpressions__":["_Position","direction"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1931},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","direction":"lively.pt(-1.0,0.0)"},"1821":{"submorphs":[],"scripts":[],"id":"8872CA7B-AEBD-45E8-8D7A-8C16B7073561","shape":{"__isSmartRef__":true,"id":1822},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LifeBar","partsBinMetaInfo":{"__isSmartRef__":true,"id":1823},"eventHandler":{"__isSmartRef__":true,"id":1838},"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":1839},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":1820},"isBeingDragged":false,"character":{"__isSmartRef__":true,"id":1820},"#startLetters":"","_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1844},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,-13.0)"},"1822":{"_BorderWidth":1,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,8.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(151,255,0)","_Padding":"lively.rect(0,0,0,0)"},"1823":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":1824},{"__isSmartRef__":true,"id":1826},{"__isSmartRef__":true,"id":1828},{"__isSmartRef__":true,"id":1830},{"__isSmartRef__":true,"id":1832},{"__isSmartRef__":true,"id":1834},{"__isSmartRef__":true,"id":1836}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1824":{"date":{"__isSmartRef__":true,"id":1825},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1825":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"1826":{"date":{"__isSmartRef__":true,"id":1827},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1827":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"1828":{"date":{"__isSmartRef__":true,"id":1829},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1829":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"1830":{"date":{"__isSmartRef__":true,"id":1831},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1831":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"1832":{"date":{"__isSmartRef__":true,"id":1833},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"1833":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"1834":{"date":{"__isSmartRef__":true,"id":1835},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"1835":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"1836":{"date":{"__isSmartRef__":true,"id":1837},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"1837":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (Central Europe Daylight Time)"},"1838":{"morph":{"__isSmartRef__":true,"id":1821},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1839":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1840}},"1840":{"test01IsMorph":{"__isSmartRef__":true,"id":1841}},"1841":{"varMapping":{"__isSmartRef__":true,"id":1842},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1842":{"this":{"__isSmartRef__":true,"id":1839}},"1843":{},"1844":{"setColorForWidth":{"__isSmartRef__":true,"id":1845},"reset":{"__isSmartRef__":true,"id":1849},"hit":{"__isSmartRef__":true,"id":1853},"extent":{"__isSmartRef__":true,"id":1857},"isDead":{"__isSmartRef__":true,"id":1861},"lifeLoss":{"__isSmartRef__":true,"id":1865},"heal":{"__isSmartRef__":true,"id":1849}},"1845":{"varMapping":{"__isSmartRef__":true,"id":1846},"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":1847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1846":{"this":{"__isSmartRef__":true,"id":1821}},"1847":{"timestamp":{"__isSmartRef__":true,"id":1848},"user":"timfelgentreff","tags":[]},"1848":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (Central Europe Daylight Time)"},"1849":{"varMapping":{"__isSmartRef__":true,"id":1850},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":1851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1850":{"this":{"__isSmartRef__":true,"id":1821}},"1851":{"timestamp":{"__isSmartRef__":true,"id":1852},"user":"timfelgentreff","tags":[]},"1852":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (Central Europe Daylight Time)"},"1853":{"varMapping":{"__isSmartRef__":true,"id":1854},"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":1855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1854":{"this":{"__isSmartRef__":true,"id":1821}},"1855":{"timestamp":{"__isSmartRef__":true,"id":1856},"user":"timfelgentreff","tags":[]},"1856":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (Central Europe Daylight Time)"},"1857":{"varMapping":{"__isSmartRef__":true,"id":1858},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":1859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1858":{"this":{"__isSmartRef__":true,"id":1821}},"1859":{"timestamp":{"__isSmartRef__":true,"id":1860},"user":"timfelgentreff","tags":[]},"1860":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (Central Europe Daylight Time)"},"1861":{"varMapping":{"__isSmartRef__":true,"id":1862},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":1863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1862":{"this":{"__isSmartRef__":true,"id":1821}},"1863":{"timestamp":{"__isSmartRef__":true,"id":1864},"user":"timfelgentreff","tags":[]},"1864":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (Central Europe Daylight Time)"},"1865":{"varMapping":{"__isSmartRef__":true,"id":1866},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":1867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1866":{"this":{"__isSmartRef__":true,"id":1821}},"1867":{"timestamp":{"__isSmartRef__":true,"id":1868},"user":"timfelgentreff","tags":[]},"1868":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (Central Europe Daylight Time)"},"1869":{"submorphs":[{"__isSmartRef__":true,"id":1870}],"scripts":[],"id":"DC6AF031-4E21-4076-ABC3-9D13F29725A5","shape":{"__isSmartRef__":true,"id":1893},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"DeathAnimation","partsBinMetaInfo":{"__isSmartRef__":true,"id":1894},"eventHandler":{"__isSmartRef__":true,"id":1907},"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":1908},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":1820},"isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":1870},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"character":{"__isSmartRef__":true,"id":1820},"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1913},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"1870":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1871},"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":"DD557BF7-D160-41F2-92B9-E07260DA4032","eventHandler":{"__isSmartRef__":true,"id":1872},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1873},"moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":1869},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1888},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"1871":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"1872":{"morph":{"__isSmartRef__":true,"id":1870},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1873":{"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":1874},{"__isSmartRef__":true,"id":1876},{"__isSmartRef__":true,"id":1878},{"__isSmartRef__":true,"id":1880},{"__isSmartRef__":true,"id":1882},{"__isSmartRef__":true,"id":1884},{"__isSmartRef__":true,"id":1886}],"migrationLevel":4,"revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1874":{"date":{"__isSmartRef__":true,"id":1875},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"1875":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"1876":{"date":{"__isSmartRef__":true,"id":1877},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"1877":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"1878":{"date":{"__isSmartRef__":true,"id":1879},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"1879":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"1880":{"date":{"__isSmartRef__":true,"id":1881},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"1881":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"1882":{"date":{"__isSmartRef__":true,"id":1883},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"1883":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"1884":{"date":{"__isSmartRef__":true,"id":1885},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"1885":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"1886":{"date":{"__isSmartRef__":true,"id":1887},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"1887":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"1888":{"soliloquize":{"__isSmartRef__":true,"id":1889}},"1889":{"varMapping":{"__isSmartRef__":true,"id":1890},"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":1891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1890":{"this":{"__isSmartRef__":true,"id":1870}},"1891":{"timestamp":{"__isSmartRef__":true,"id":1892},"user":"lauritz","tags":[]},"1892":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"1893":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1894":{"partsSpaceName":"PartsBin/Basic","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":1895},{"__isSmartRef__":true,"id":1897},{"__isSmartRef__":true,"id":1899},{"__isSmartRef__":true,"id":1901},{"__isSmartRef__":true,"id":1903},{"__isSmartRef__":true,"id":1905}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1895":{"date":{"__isSmartRef__":true,"id":1896},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1896":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"1897":{"date":{"__isSmartRef__":true,"id":1898},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1898":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"1899":{"date":{"__isSmartRef__":true,"id":1900},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1900":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"1901":{"date":{"__isSmartRef__":true,"id":1902},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1902":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"1903":{"date":{"__isSmartRef__":true,"id":1904},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"1904":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"1905":{"date":{"__isSmartRef__":true,"id":1906},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"1906":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"1907":{"morph":{"__isSmartRef__":true,"id":1869},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1908":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1909}},"1909":{"test01IsMorph":{"__isSmartRef__":true,"id":1910}},"1910":{"varMapping":{"__isSmartRef__":true,"id":1911},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1911":{"this":{"__isSmartRef__":true,"id":1908}},"1912":{},"1913":{"die":{"__isSmartRef__":true,"id":1914},"reset":{"__isSmartRef__":true,"id":1917},"nextImage":{"__isSmartRef__":true,"id":1921},"start":{"__isSmartRef__":true,"id":1925}},"1914":{"varMapping":{"__isSmartRef__":true,"id":1915},"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":1916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1915":{"this":{"__isSmartRef__":true,"id":1869}},"1916":{},"1917":{"varMapping":{"__isSmartRef__":true,"id":1918},"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":1919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1918":{"this":{"__isSmartRef__":true,"id":1869}},"1919":{"timestamp":{"__isSmartRef__":true,"id":1920},"user":"timfelgentreff","tags":[]},"1920":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (Central Europe Daylight Time)"},"1921":{"varMapping":{"__isSmartRef__":true,"id":1922},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":1923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1922":{"this":{"__isSmartRef__":true,"id":1869}},"1923":{"timestamp":{"__isSmartRef__":true,"id":1924},"user":"timfelgentreff","tags":[]},"1924":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (Central Europe Daylight Time)"},"1925":{"varMapping":{"__isSmartRef__":true,"id":1926},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":1927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1926":{"this":{"__isSmartRef__":true,"id":1869}},"1927":{"timestamp":{"__isSmartRef__":true,"id":1928},"user":"timfelgentreff","tags":[]},"1928":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (Central Europe Daylight Time)"},"1929":{"_BorderWidth":1,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(204,204,0)"},"1930":{"morph":{"__isSmartRef__":true,"id":1820},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1931":{"setDevStyle":{"__isSmartRef__":true,"id":1818},"setNormalStyle":{"__isSmartRef__":true,"id":1932},"tileSize":{"__isSmartRef__":true,"id":1936},"become":{"__isSmartRef__":true,"id":1940},"walkUntilReached":{"__isSmartRef__":true,"id":1943},"onMouseDown":{"__isSmartRef__":true,"id":1947},"walkTo":{"__isSmartRef__":true,"id":1955},"currentTile":{"__isSmartRef__":true,"id":1959},"toolbox":{"__isSmartRef__":true,"id":1963},"setCurrentSpeed":{"__isSmartRef__":true,"id":1967},"getCurrentSpeed":{"__isSmartRef__":true,"id":1971},"isWalking":{"__isSmartRef__":true,"id":1975},"select":{"__isSmartRef__":true,"id":1979},"deselect":{"__isSmartRef__":true,"id":1983},"becomeRandomCharacter":{"__isSmartRef__":true,"id":1987},"reset":{"__isSmartRef__":true,"id":1991},"setDirectionToTile":{"__isSmartRef__":true,"id":1995},"getDirection":{"__isSmartRef__":true,"id":1999},"setDirection":{"__isSmartRef__":true,"id":2003},"setPosition":{"__isSmartRef__":true,"id":2007},"say":{"__isSmartRef__":true,"id":2015},"soliloquize":{"__isSmartRef__":true,"id":2019},"characterType":{"__isSmartRef__":true,"id":2023},"animate":{"__isSmartRef__":true,"id":2027},"doSomething":{"__isSmartRef__":true,"id":2031},"map":{"__isSmartRef__":true,"id":2035},"game":{"__isSmartRef__":true,"id":2039},"setup":{"__isSmartRef__":true,"id":2043},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":2047},"startConversation":{"__isSmartRef__":true,"id":2055},"startConversationWith":{"__isSmartRef__":true,"id":2059},"shallowCopy":{"__isSmartRef__":true,"id":2063},"conversation":{"__isSmartRef__":true,"id":2067},"answer":{"__isSmartRef__":true,"id":2071},"hideTextBubble":{"__isSmartRef__":true,"id":2075},"aStar":{"__isSmartRef__":true,"id":2079},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":2083},"aStarWalkPath":{"__isSmartRef__":true,"id":2087},"chatBot":{"__isSmartRef__":true,"id":2091},"getHit":{"__isSmartRef__":true,"id":2095},"becomePlayer":{"__isSmartRef__":true,"id":2099},"fight":{"__isSmartRef__":true,"id":2103},"fightPhrases":{"__isSmartRef__":true,"id":2107},"randomQuestions":{"__isSmartRef__":true,"id":2111},"randomAnswersFor":{"__isSmartRef__":true,"id":2115},"executeFightTurnAsking":{"__isSmartRef__":true,"id":2119},"heal":{"__isSmartRef__":true,"id":2123},"isDead":{"__isSmartRef__":true,"id":2127}},"1932":{"varMapping":{"__isSmartRef__":true,"id":1933},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":1934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1933":{"this":{"__isSmartRef__":true,"id":1820}},"1934":{"timestamp":{"__isSmartRef__":true,"id":1935},"user":"tessi","tags":[]},"1935":{"isSerializedDate":true,"string":"Thu May 03 2012 15:25:50 GMT+0200 (Central Europe Daylight Time)"},"1936":{"varMapping":{"__isSmartRef__":true,"id":1937},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":1938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1937":{"this":{"__isSmartRef__":true,"id":1820}},"1938":{"timestamp":{"__isSmartRef__":true,"id":1939},"user":"undefined","tags":[]},"1939":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:42:19 GMT+0200 (Central Europe Daylight Time)"},"1940":{"varMapping":{"__isSmartRef__":true,"id":1941},"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":1942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1941":{"this":{"__isSmartRef__":true,"id":1820}},"1942":{},"1943":{"varMapping":{"__isSmartRef__":true,"id":1944},"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":1945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1944":{"this":{"__isSmartRef__":true,"id":1820}},"1945":{"timestamp":{"__isSmartRef__":true,"id":1946},"user":"timfelgentreff","tags":[]},"1946":{"isSerializedDate":true,"string":"Fri May 04 2012 17:37:13 GMT+0200 (Central Europe Daylight Time)"},"1947":{"varMapping":{"__isSmartRef__":true,"id":1948},"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":1953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1948":{"this":{"__isSmartRef__":true,"id":1820},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1949}},"1949":{"$super":{"__isSmartRef__":true,"id":1950}},"1950":{"varMapping":{"__isSmartRef__":true,"id":1951},"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":1952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1951":{"obj":{"__isSmartRef__":true,"id":1820},"name":"onMouseDown"},"1952":{},"1953":{"timestamp":{"__isSmartRef__":true,"id":1954},"user":"tessi","tags":[]},"1954":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:21:42 GMT+0200 (Central Europe Daylight Time)"},"1955":{"varMapping":{"__isSmartRef__":true,"id":1956},"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":1957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1956":{"this":{"__isSmartRef__":true,"id":1820}},"1957":{"timestamp":{"__isSmartRef__":true,"id":1958},"user":"timfelgentreff","tags":[]},"1958":{"isSerializedDate":true,"string":"Thu May 03 2012 12:42:41 GMT+0200 (Central Europe Daylight Time)"},"1959":{"varMapping":{"__isSmartRef__":true,"id":1960},"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":1961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1960":{"this":{"__isSmartRef__":true,"id":1820}},"1961":{"timestamp":{"__isSmartRef__":true,"id":1962},"user":"tessi","tags":[]},"1962":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:13:47 GMT+0200 (Central Europe Daylight Time)"},"1963":{"varMapping":{"__isSmartRef__":true,"id":1964},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1964":{"this":{"__isSmartRef__":true,"id":1820}},"1965":{"timestamp":{"__isSmartRef__":true,"id":1966},"user":"tessi","tags":[]},"1966":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:22:42 GMT+0200 (Central Europe Daylight Time)"},"1967":{"varMapping":{"__isSmartRef__":true,"id":1968},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":1969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1968":{"this":{"__isSmartRef__":true,"id":1820}},"1969":{"timestamp":{"__isSmartRef__":true,"id":1970},"user":"timfelgentreff","tags":[]},"1970":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:47:22 GMT+0200 (Central Europe Daylight Time)"},"1971":{"varMapping":{"__isSmartRef__":true,"id":1972},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":1973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1972":{"this":{"__isSmartRef__":true,"id":1820}},"1973":{"timestamp":{"__isSmartRef__":true,"id":1974},"user":"timfelgentreff","tags":[]},"1974":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:55:19 GMT+0200 (Central Europe Daylight Time)"},"1975":{"varMapping":{"__isSmartRef__":true,"id":1976},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":1977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1976":{"this":{"__isSmartRef__":true,"id":1820}},"1977":{"timestamp":{"__isSmartRef__":true,"id":1978},"user":"lauritz","tags":[]},"1978":{"isSerializedDate":true,"string":"Fri Apr 27 2012 14:07:33 GMT+0200 (Central Europe Daylight Time)"},"1979":{"varMapping":{"__isSmartRef__":true,"id":1980},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":1981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1980":{"this":{"__isSmartRef__":true,"id":1820}},"1981":{"timestamp":{"__isSmartRef__":true,"id":1982},"user":"tessi","tags":[]},"1982":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:21:57 GMT+0200 (Central Europe Daylight Time)"},"1983":{"varMapping":{"__isSmartRef__":true,"id":1984},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":1985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1984":{"this":{"__isSmartRef__":true,"id":1820}},"1985":{"timestamp":{"__isSmartRef__":true,"id":1986},"user":"tessi","tags":[]},"1986":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:20:46 GMT+0200 (Central Europe Daylight Time)"},"1987":{"varMapping":{"__isSmartRef__":true,"id":1988},"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":1989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1988":{"this":{"__isSmartRef__":true,"id":1820}},"1989":{"timestamp":{"__isSmartRef__":true,"id":1990},"user":"tessi","tags":[]},"1990":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:20:00 GMT+0200 (Central Europe Daylight Time)"},"1991":{"varMapping":{"__isSmartRef__":true,"id":1992},"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":1993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1992":{"this":{"__isSmartRef__":true,"id":1820}},"1993":{"timestamp":{"__isSmartRef__":true,"id":1994},"user":"timfelgentreff","tags":[]},"1994":{"isSerializedDate":true,"string":"Fri May 04 2012 17:22:56 GMT+0200 (Central Europe Daylight Time)"},"1995":{"varMapping":{"__isSmartRef__":true,"id":1996},"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":1997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1996":{"this":{"__isSmartRef__":true,"id":1820}},"1997":{"timestamp":{"__isSmartRef__":true,"id":1998},"user":"lauritz","tags":[]},"1998":{"isSerializedDate":true,"string":"Fri Apr 27 2012 14:07:33 GMT+0200 (Central Europe Daylight Time)"},"1999":{"varMapping":{"__isSmartRef__":true,"id":2000},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":2001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2000":{"this":{"__isSmartRef__":true,"id":1820}},"2001":{"timestamp":{"__isSmartRef__":true,"id":2002},"user":"timfelgentreff","tags":[]},"2002":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:50:04 GMT+0200 (Central Europe Daylight Time)"},"2003":{"varMapping":{"__isSmartRef__":true,"id":2004},"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":2005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2004":{"this":{"__isSmartRef__":true,"id":1820}},"2005":{"timestamp":{"__isSmartRef__":true,"id":2006},"user":"timfelgentreff","tags":[]},"2006":{"isSerializedDate":true,"string":"Fri May 04 2012 17:36:20 GMT+0200 (Central Europe Daylight Time)"},"2007":{"varMapping":{"__isSmartRef__":true,"id":2008},"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":2013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2008":{"this":{"__isSmartRef__":true,"id":1820},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2009}},"2009":{"$super":{"__isSmartRef__":true,"id":2010}},"2010":{"varMapping":{"__isSmartRef__":true,"id":2011},"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":2012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2011":{"obj":{"__isSmartRef__":true,"id":1820},"name":"setPosition"},"2012":{},"2013":{"timestamp":{"__isSmartRef__":true,"id":2014},"user":"undefined","tags":[]},"2014":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:54:50 GMT+0200 (Central Europe Daylight Time)"},"2015":{"varMapping":{"__isSmartRef__":true,"id":2016},"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":2017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2016":{"this":{"__isSmartRef__":true,"id":1820}},"2017":{"timestamp":{"__isSmartRef__":true,"id":2018},"user":"timfelgentreff","tags":[]},"2018":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:03:55 GMT+0200 (Central Europe Daylight Time)"},"2019":{"varMapping":{"__isSmartRef__":true,"id":2020},"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":2021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2020":{"this":{"__isSmartRef__":true,"id":1820}},"2021":{"timestamp":{"__isSmartRef__":true,"id":2022},"user":"tessi","tags":[]},"2022":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:21:54 GMT+0200 (Central Europe Daylight Time)"},"2023":{"varMapping":{"__isSmartRef__":true,"id":2024},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":2025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2024":{"this":{"__isSmartRef__":true,"id":1820}},"2025":{"timestamp":{"__isSmartRef__":true,"id":2026},"user":"timfelgentreff","tags":[]},"2026":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:00:25 GMT+0200 (Central Europe Daylight Time)"},"2027":{"varMapping":{"__isSmartRef__":true,"id":2028},"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":2029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2028":{"this":{"__isSmartRef__":true,"id":1820}},"2029":{"timestamp":{"__isSmartRef__":true,"id":2030},"user":"lauritz","tags":[]},"2030":{"isSerializedDate":true,"string":"Mon May 07 2012 11:01:40 GMT+0200 (Central Europe Daylight Time)"},"2031":{"varMapping":{"__isSmartRef__":true,"id":2032},"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":2033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2032":{"this":{"__isSmartRef__":true,"id":1820}},"2033":{"timestamp":{"__isSmartRef__":true,"id":2034},"user":"timfelgentreff","tags":[]},"2034":{"isSerializedDate":true,"string":"Fri May 04 2012 17:51:09 GMT+0200 (Central Europe Daylight Time)"},"2035":{"varMapping":{"__isSmartRef__":true,"id":2036},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":2037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2036":{"this":{"__isSmartRef__":true,"id":1820}},"2037":{"timestamp":{"__isSmartRef__":true,"id":2038},"user":"lauritz","tags":[]},"2038":{"isSerializedDate":true,"string":"Wed May 02 2012 17:43:01 GMT+0200 (Central Europe Daylight Time)"},"2039":{"varMapping":{"__isSmartRef__":true,"id":2040},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":2041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2040":{"this":{"__isSmartRef__":true,"id":1820}},"2041":{"timestamp":{"__isSmartRef__":true,"id":2042},"user":"undefined","tags":[]},"2042":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:32:54 GMT+0200 (Central Europe Daylight Time)"},"2043":{"varMapping":{"__isSmartRef__":true,"id":2044},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":2045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2044":{"this":{"__isSmartRef__":true,"id":1820}},"2045":{"timestamp":{"__isSmartRef__":true,"id":2046},"user":"undefined","tags":[]},"2046":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:40:06 GMT+0200 (Central Europe Daylight Time)"},"2047":{"varMapping":{"__isSmartRef__":true,"id":2048},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2048":{"this":{"__isSmartRef__":true,"id":1820},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2049}},"2049":{"$super":{"__isSmartRef__":true,"id":2050}},"2050":{"varMapping":{"__isSmartRef__":true,"id":2051},"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":2052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2051":{"obj":{"__isSmartRef__":true,"id":1820},"name":"copyToPartsBinWithUserRequest"},"2052":{},"2053":{"timestamp":{"__isSmartRef__":true,"id":2054},"user":"tessi","tags":[]},"2054":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:40:19 GMT+0200 (Central Europe Daylight Time)"},"2055":{"varMapping":{"__isSmartRef__":true,"id":2056},"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":2057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2056":{"this":{"__isSmartRef__":true,"id":1820}},"2057":{"timestamp":{"__isSmartRef__":true,"id":2058},"user":"lauritz","tags":[]},"2058":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:59:27 GMT+0200 (Central Europe Daylight Time)"},"2059":{"varMapping":{"__isSmartRef__":true,"id":2060},"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":2061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2060":{"this":{"__isSmartRef__":true,"id":1820}},"2061":{"timestamp":{"__isSmartRef__":true,"id":2062},"user":"lauritz","tags":[]},"2062":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:57:47 GMT+0200 (Central Europe Daylight Time)"},"2063":{"varMapping":{"__isSmartRef__":true,"id":2064},"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":2065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2064":{"this":{"__isSmartRef__":true,"id":1820}},"2065":{"timestamp":{"__isSmartRef__":true,"id":2066},"user":"timfelgentreff","tags":[]},"2066":{"isSerializedDate":true,"string":"Fri May 04 2012 17:48:29 GMT+0200 (Central Europe Daylight Time)"},"2067":{"varMapping":{"__isSmartRef__":true,"id":2068},"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":2069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2068":{"this":{"__isSmartRef__":true,"id":1820}},"2069":{"timestamp":{"__isSmartRef__":true,"id":2070},"user":"lauritz","tags":[]},"2070":{"isSerializedDate":true,"string":"Fri Apr 27 2012 14:50:04 GMT+0200 (Central Europe Daylight Time)"},"2071":{"varMapping":{"__isSmartRef__":true,"id":2072},"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":2073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2072":{"this":{"__isSmartRef__":true,"id":1820}},"2073":{"timestamp":{"__isSmartRef__":true,"id":2074},"user":"tessi","tags":[]},"2074":{"isSerializedDate":true,"string":"Thu May 03 2012 15:09:16 GMT+0200 (Central Europe Daylight Time)"},"2075":{"varMapping":{"__isSmartRef__":true,"id":2076},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2076":{"this":{"__isSmartRef__":true,"id":1820}},"2077":{"timestamp":{"__isSmartRef__":true,"id":2078},"user":"tessi","tags":[]},"2078":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:16:32 GMT+0200 (Central Europe Daylight Time)"},"2079":{"varMapping":{"__isSmartRef__":true,"id":2080},"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":2081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2080":{"this":{"__isSmartRef__":true,"id":1820}},"2081":{"timestamp":{"__isSmartRef__":true,"id":2082},"user":"timfelgentreff","tags":["pathfinding"]},"2082":{"isSerializedDate":true,"string":"Thu May 03 2012 13:29:11 GMT+0200 (Central Europe Daylight Time)"},"2083":{"varMapping":{"__isSmartRef__":true,"id":2084},"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":2085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2084":{"this":{"__isSmartRef__":true,"id":1820}},"2085":{"timestamp":{"__isSmartRef__":true,"id":2086},"user":"timfelgentreff","tags":["pathfinding"]},"2086":{"isSerializedDate":true,"string":"Thu May 03 2012 13:17:11 GMT+0200 (Central Europe Daylight Time)"},"2087":{"varMapping":{"__isSmartRef__":true,"id":2088},"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":2089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2088":{"this":{"__isSmartRef__":true,"id":1820}},"2089":{"timestamp":{"__isSmartRef__":true,"id":2090},"user":"lauritz","tags":[]},"2090":{"isSerializedDate":true,"string":"Sat May 05 2012 19:26:02 GMT+0200 (Central Europe Daylight Time)"},"2091":{"varMapping":{"__isSmartRef__":true,"id":2092},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":2093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2092":{"this":{"__isSmartRef__":true,"id":1820}},"2093":{"timestamp":{"__isSmartRef__":true,"id":2094},"user":"tessi","tags":[]},"2094":{"isSerializedDate":true,"string":"Thu May 03 2012 15:10:15 GMT+0200 (Central Europe Daylight Time)"},"2095":{"varMapping":{"__isSmartRef__":true,"id":2096},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":2097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2096":{"this":{"__isSmartRef__":true,"id":1820}},"2097":{"timestamp":{"__isSmartRef__":true,"id":2098},"user":"timfelgentreff","tags":[]},"2098":{"isSerializedDate":true,"string":"Fri May 04 2012 17:17:49 GMT+0200 (Central Europe Daylight Time)"},"2099":{"varMapping":{"__isSmartRef__":true,"id":2100},"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":2101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2100":{"this":{"__isSmartRef__":true,"id":1820}},"2101":{"timestamp":{"__isSmartRef__":true,"id":2102},"user":"timfelgentreff","tags":[]},"2102":{"isSerializedDate":true,"string":"Fri May 04 2012 17:46:36 GMT+0200 (Central Europe Daylight Time)"},"2103":{"varMapping":{"__isSmartRef__":true,"id":2104},"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":2105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2104":{"this":{"__isSmartRef__":true,"id":1820}},"2105":{"timestamp":{"__isSmartRef__":true,"id":2106},"user":"timfelgentreff","tags":[]},"2106":{"isSerializedDate":true,"string":"Sat May 05 2012 12:46:40 GMT+0200 (Central Europe Daylight Time)"},"2107":{"varMapping":{"__isSmartRef__":true,"id":2108},"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":2109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2108":{"this":{"__isSmartRef__":true,"id":1820}},"2109":{"timestamp":{"__isSmartRef__":true,"id":2110},"user":"timfelgentreff","tags":[]},"2110":{"isSerializedDate":true,"string":"Fri May 04 2012 17:54:30 GMT+0200 (Central Europe Daylight Time)"},"2111":{"varMapping":{"__isSmartRef__":true,"id":2112},"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":2113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2112":{"this":{"__isSmartRef__":true,"id":1820}},"2113":{"timestamp":{"__isSmartRef__":true,"id":2114},"user":"timfelgentreff","tags":[]},"2114":{"isSerializedDate":true,"string":"Fri May 04 2012 17:56:30 GMT+0200 (Central Europe Daylight Time)"},"2115":{"varMapping":{"__isSmartRef__":true,"id":2116},"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":2117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2116":{"this":{"__isSmartRef__":true,"id":1820}},"2117":{"timestamp":{"__isSmartRef__":true,"id":2118},"user":"lauritz","tags":[]},"2118":{"isSerializedDate":true,"string":"Mon May 07 2012 19:18:12 GMT+0200 (Central Europe Daylight Time)"},"2119":{"varMapping":{"__isSmartRef__":true,"id":2120},"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":2121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2120":{"this":{"__isSmartRef__":true,"id":1820}},"2121":{"timestamp":{"__isSmartRef__":true,"id":2122},"user":"lauritz","tags":[]},"2122":{"isSerializedDate":true,"string":"Mon May 07 2012 11:47:46 GMT+0200 (Central Europe Daylight Time)"},"2123":{"varMapping":{"__isSmartRef__":true,"id":2124},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":2125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2124":{"this":{"__isSmartRef__":true,"id":1820}},"2125":{"timestamp":{"__isSmartRef__":true,"id":2126},"user":"timfelgentreff","tags":[]},"2126":{"isSerializedDate":true,"string":"Sat May 05 2012 12:38:05 GMT+0200 (Central Europe Daylight Time)"},"2127":{"varMapping":{"__isSmartRef__":true,"id":2128},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":2129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2128":{"this":{"__isSmartRef__":true,"id":1820}},"2129":{"timestamp":{"__isSmartRef__":true,"id":2130},"user":"timfelgentreff","tags":[]},"2130":{"isSerializedDate":true,"string":"Sat May 05 2012 12:38:28 GMT+0200 (Central Europe Daylight Time)"},"2131":{"timestamp":{"__isSmartRef__":true,"id":1817},"user":"lauritz","tags":[]},"2132":{"varMapping":{"__isSmartRef__":true,"id":2133},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":2134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2133":{"this":{"__isSmartRef__":true,"id":1461}},"2134":{"timestamp":{"__isSmartRef__":true,"id":1935},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1932},"declaredObject":""},"2135":{"varMapping":{"__isSmartRef__":true,"id":2136},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":2137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2136":{"this":{"__isSmartRef__":true,"id":1461}},"2137":{"timestamp":{"__isSmartRef__":true,"id":1939},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1936},"declaredObject":""},"2138":{"varMapping":{"__isSmartRef__":true,"id":2139},"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":2140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2139":{"this":{"__isSmartRef__":true,"id":1461}},"2140":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1940},"declaredObject":""},"2141":{"varMapping":{"__isSmartRef__":true,"id":2142},"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":2143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2142":{"this":{"__isSmartRef__":true,"id":1461}},"2143":{"timestamp":{"__isSmartRef__":true,"id":1946},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1943},"declaredObject":""},"2144":{"varMapping":{"__isSmartRef__":true,"id":2145},"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":2150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2145":{"this":{"__isSmartRef__":true,"id":1461},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2146}},"2146":{"$super":{"__isSmartRef__":true,"id":2147}},"2147":{"varMapping":{"__isSmartRef__":true,"id":2148},"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":2149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2148":{"obj":{"__isSmartRef__":true,"id":1461},"name":"onMouseDown"},"2149":{},"2150":{"timestamp":{"__isSmartRef__":true,"id":1954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1947},"declaredObject":""},"2151":{"varMapping":{"__isSmartRef__":true,"id":2152},"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":2153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2152":{"this":{"__isSmartRef__":true,"id":1461}},"2153":{"timestamp":{"__isSmartRef__":true,"id":1958},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1955},"declaredObject":""},"2154":{"varMapping":{"__isSmartRef__":true,"id":2155},"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":2156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2155":{"this":{"__isSmartRef__":true,"id":1461}},"2156":{"timestamp":{"__isSmartRef__":true,"id":1962},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1959},"declaredObject":""},"2157":{"varMapping":{"__isSmartRef__":true,"id":2158},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2158":{"this":{"__isSmartRef__":true,"id":1461}},"2159":{"timestamp":{"__isSmartRef__":true,"id":1966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1963},"declaredObject":""},"2160":{"varMapping":{"__isSmartRef__":true,"id":2161},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":2162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2161":{"this":{"__isSmartRef__":true,"id":1461}},"2162":{"timestamp":{"__isSmartRef__":true,"id":1970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1967},"declaredObject":""},"2163":{"varMapping":{"__isSmartRef__":true,"id":2164},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":2165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2164":{"this":{"__isSmartRef__":true,"id":1461}},"2165":{"timestamp":{"__isSmartRef__":true,"id":1974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1971},"declaredObject":""},"2166":{"varMapping":{"__isSmartRef__":true,"id":2167},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":2168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2167":{"this":{"__isSmartRef__":true,"id":1461}},"2168":{"timestamp":{"__isSmartRef__":true,"id":1978},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1975},"declaredObject":""},"2169":{"varMapping":{"__isSmartRef__":true,"id":2170},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":2171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2170":{"this":{"__isSmartRef__":true,"id":1461}},"2171":{"timestamp":{"__isSmartRef__":true,"id":1982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1979},"declaredObject":""},"2172":{"varMapping":{"__isSmartRef__":true,"id":2173},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":2174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2173":{"this":{"__isSmartRef__":true,"id":1461}},"2174":{"timestamp":{"__isSmartRef__":true,"id":1986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1983},"declaredObject":""},"2175":{"varMapping":{"__isSmartRef__":true,"id":2176},"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":2177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2176":{"this":{"__isSmartRef__":true,"id":1461}},"2177":{"timestamp":{"__isSmartRef__":true,"id":1990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1987},"declaredObject":""},"2178":{"varMapping":{"__isSmartRef__":true,"id":2179},"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":2180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2179":{"this":{"__isSmartRef__":true,"id":1461}},"2180":{"timestamp":{"__isSmartRef__":true,"id":1994},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1991},"declaredObject":""},"2181":{"varMapping":{"__isSmartRef__":true,"id":2182},"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":2183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2182":{"this":{"__isSmartRef__":true,"id":1461}},"2183":{"timestamp":{"__isSmartRef__":true,"id":1998},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1995},"declaredObject":""},"2184":{"varMapping":{"__isSmartRef__":true,"id":2185},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":2186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2185":{"this":{"__isSmartRef__":true,"id":1461}},"2186":{"timestamp":{"__isSmartRef__":true,"id":2002},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1999},"declaredObject":""},"2187":{"varMapping":{"__isSmartRef__":true,"id":2188},"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":2189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2188":{"this":{"__isSmartRef__":true,"id":1461}},"2189":{"timestamp":{"__isSmartRef__":true,"id":2006},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2003},"declaredObject":""},"2190":{"varMapping":{"__isSmartRef__":true,"id":2191},"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":2196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2191":{"this":{"__isSmartRef__":true,"id":1461},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2192}},"2192":{"$super":{"__isSmartRef__":true,"id":2193}},"2193":{"varMapping":{"__isSmartRef__":true,"id":2194},"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":2195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2194":{"obj":{"__isSmartRef__":true,"id":1461},"name":"setPosition"},"2195":{},"2196":{"timestamp":{"__isSmartRef__":true,"id":2014},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2007},"declaredObject":""},"2197":{"varMapping":{"__isSmartRef__":true,"id":2198},"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":2199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2198":{"this":{"__isSmartRef__":true,"id":1461}},"2199":{"timestamp":{"__isSmartRef__":true,"id":2018},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2015},"declaredObject":""},"2200":{"varMapping":{"__isSmartRef__":true,"id":2201},"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":2202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2201":{"this":{"__isSmartRef__":true,"id":1461}},"2202":{"timestamp":{"__isSmartRef__":true,"id":2022},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2019},"declaredObject":""},"2203":{"varMapping":{"__isSmartRef__":true,"id":2204},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":2205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2204":{"this":{"__isSmartRef__":true,"id":1461}},"2205":{"timestamp":{"__isSmartRef__":true,"id":2026},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2023},"declaredObject":""},"2206":{"varMapping":{"__isSmartRef__":true,"id":2207},"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":2208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2207":{"this":{"__isSmartRef__":true,"id":1461}},"2208":{"timestamp":{"__isSmartRef__":true,"id":2030},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2027},"declaredObject":""},"2209":{"varMapping":{"__isSmartRef__":true,"id":2210},"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":2211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2210":{"this":{"__isSmartRef__":true,"id":1461}},"2211":{"timestamp":{"__isSmartRef__":true,"id":2034},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2031},"declaredObject":""},"2212":{"varMapping":{"__isSmartRef__":true,"id":2213},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":2214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2213":{"this":{"__isSmartRef__":true,"id":1461}},"2214":{"timestamp":{"__isSmartRef__":true,"id":2038},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2035},"declaredObject":""},"2215":{"varMapping":{"__isSmartRef__":true,"id":2216},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":2217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2216":{"this":{"__isSmartRef__":true,"id":1461}},"2217":{"timestamp":{"__isSmartRef__":true,"id":2042},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2039},"declaredObject":""},"2218":{"varMapping":{"__isSmartRef__":true,"id":2219},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":2220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2219":{"this":{"__isSmartRef__":true,"id":1461}},"2220":{"timestamp":{"__isSmartRef__":true,"id":2046},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2043},"declaredObject":""},"2221":{"varMapping":{"__isSmartRef__":true,"id":2222},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2222":{"this":{"__isSmartRef__":true,"id":1461},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2223}},"2223":{"$super":{"__isSmartRef__":true,"id":2224}},"2224":{"varMapping":{"__isSmartRef__":true,"id":2225},"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":2226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2225":{"obj":{"__isSmartRef__":true,"id":1461},"name":"copyToPartsBinWithUserRequest"},"2226":{},"2227":{"timestamp":{"__isSmartRef__":true,"id":2054},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2047},"declaredObject":""},"2228":{"varMapping":{"__isSmartRef__":true,"id":2229},"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":2230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2229":{"this":{"__isSmartRef__":true,"id":1461}},"2230":{"timestamp":{"__isSmartRef__":true,"id":2058},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2055},"declaredObject":""},"2231":{"varMapping":{"__isSmartRef__":true,"id":2232},"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":2233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2232":{"this":{"__isSmartRef__":true,"id":1461}},"2233":{"timestamp":{"__isSmartRef__":true,"id":2062},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2059},"declaredObject":""},"2234":{"varMapping":{"__isSmartRef__":true,"id":2235},"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":2236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2235":{"this":{"__isSmartRef__":true,"id":1461}},"2236":{"timestamp":{"__isSmartRef__":true,"id":2066},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2063},"declaredObject":""},"2237":{"varMapping":{"__isSmartRef__":true,"id":2238},"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":2239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2238":{"this":{"__isSmartRef__":true,"id":1461}},"2239":{"timestamp":{"__isSmartRef__":true,"id":2070},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2067},"declaredObject":""},"2240":{"varMapping":{"__isSmartRef__":true,"id":2241},"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":2242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2241":{"this":{"__isSmartRef__":true,"id":1461}},"2242":{"timestamp":{"__isSmartRef__":true,"id":2074},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2071},"declaredObject":""},"2243":{"varMapping":{"__isSmartRef__":true,"id":2244},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2244":{"this":{"__isSmartRef__":true,"id":1461}},"2245":{"timestamp":{"__isSmartRef__":true,"id":2078},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2075},"declaredObject":""},"2246":{"varMapping":{"__isSmartRef__":true,"id":2247},"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":2248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2247":{"this":{"__isSmartRef__":true,"id":1461}},"2248":{"timestamp":{"__isSmartRef__":true,"id":2082},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2079},"declaredObject":""},"2249":{"varMapping":{"__isSmartRef__":true,"id":2250},"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":2251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2250":{"this":{"__isSmartRef__":true,"id":1461}},"2251":{"timestamp":{"__isSmartRef__":true,"id":2086},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2083},"declaredObject":""},"2252":{"varMapping":{"__isSmartRef__":true,"id":2253},"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":2254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2253":{"this":{"__isSmartRef__":true,"id":1461}},"2254":{"timestamp":{"__isSmartRef__":true,"id":2090},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2087},"declaredObject":""},"2255":{"varMapping":{"__isSmartRef__":true,"id":2256},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":2257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2256":{"this":{"__isSmartRef__":true,"id":1461}},"2257":{"timestamp":{"__isSmartRef__":true,"id":2094},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2091},"declaredObject":""},"2258":{"varMapping":{"__isSmartRef__":true,"id":2259},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":2260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2259":{"this":{"__isSmartRef__":true,"id":1461}},"2260":{"timestamp":{"__isSmartRef__":true,"id":2098},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2095},"declaredObject":""},"2261":{"varMapping":{"__isSmartRef__":true,"id":2262},"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":2263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2262":{"this":{"__isSmartRef__":true,"id":1461}},"2263":{"timestamp":{"__isSmartRef__":true,"id":2102},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2099},"declaredObject":""},"2264":{"varMapping":{"__isSmartRef__":true,"id":2265},"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":2266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2265":{"this":{"__isSmartRef__":true,"id":1461}},"2266":{"timestamp":{"__isSmartRef__":true,"id":2106},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2103},"declaredObject":""},"2267":{"varMapping":{"__isSmartRef__":true,"id":2268},"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":2269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2268":{"this":{"__isSmartRef__":true,"id":1461}},"2269":{"timestamp":{"__isSmartRef__":true,"id":2110},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2107},"declaredObject":""},"2270":{"varMapping":{"__isSmartRef__":true,"id":2271},"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":2272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2271":{"this":{"__isSmartRef__":true,"id":1461}},"2272":{"timestamp":{"__isSmartRef__":true,"id":2114},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2111},"declaredObject":""},"2273":{"varMapping":{"__isSmartRef__":true,"id":2274},"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":2275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2274":{"this":{"__isSmartRef__":true,"id":1461}},"2275":{"timestamp":{"__isSmartRef__":true,"id":2118},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2115},"declaredObject":""},"2276":{"varMapping":{"__isSmartRef__":true,"id":2277},"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":2278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2277":{"this":{"__isSmartRef__":true,"id":1461}},"2278":{"timestamp":{"__isSmartRef__":true,"id":2122},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2119},"declaredObject":""},"2279":{"varMapping":{"__isSmartRef__":true,"id":2280},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":2281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2280":{"this":{"__isSmartRef__":true,"id":1461}},"2281":{"timestamp":{"__isSmartRef__":true,"id":2126},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2123},"declaredObject":""},"2282":{"varMapping":{"__isSmartRef__":true,"id":2283},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":2284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2283":{"this":{"__isSmartRef__":true,"id":1461}},"2284":{"timestamp":{"__isSmartRef__":true,"id":2130},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2127},"declaredObject":""},"2285":{"setDevStyle":{"__isSmartRef__":true,"id":2286},"setNormalStyle":{"__isSmartRef__":true,"id":2289},"tileSize":{"__isSmartRef__":true,"id":2292},"become":{"__isSmartRef__":true,"id":2295},"onMouseDown":{"__isSmartRef__":true,"id":2298},"setGridPosition":{"__isSmartRef__":true,"id":2305},"toolbox":{"__isSmartRef__":true,"id":2308},"distanceTo":{"__isSmartRef__":true,"id":2311},"tileWasDropped":{"__isSmartRef__":true,"id":2314},"isObstacle":{"__isSmartRef__":true,"id":2317},"neighboursInDirection":{"__isSmartRef__":true,"id":2320},"neighbours":{"__isSmartRef__":true,"id":2323},"zIndex":{"__isSmartRef__":true,"id":2326},"obstacles":{"__isSmartRef__":true,"id":2329},"addObstacle":{"__isSmartRef__":true,"id":2332},"removeObstacle":{"__isSmartRef__":true,"id":2335},"isTile":{"__isSmartRef__":true,"id":2338},"neighbourAt":{"__isSmartRef__":true,"id":2341},"map":{"__isSmartRef__":true,"id":2344},"game":{"__isSmartRef__":true,"id":2347},"reset":{"__isSmartRef__":true,"id":2350},"shallowCopy":{"__isSmartRef__":true,"id":2353},"characters":{"__isSmartRef__":true,"id":2356},"enterTile":{"__isSmartRef__":true,"id":2359},"leaveTile":{"__isSmartRef__":true,"id":2362},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2365}},"2286":{"varMapping":{"__isSmartRef__":true,"id":2287},"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":2288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2287":{"this":{"__isSmartRef__":true,"id":1454}},"2288":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"2289":{"varMapping":{"__isSmartRef__":true,"id":2290},"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":2291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2290":{"this":{"__isSmartRef__":true,"id":1454}},"2291":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"2292":{"varMapping":{"__isSmartRef__":true,"id":2293},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":2294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2293":{"this":{"__isSmartRef__":true,"id":1454}},"2294":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"2295":{"varMapping":{"__isSmartRef__":true,"id":2296},"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":2297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2296":{"this":{"__isSmartRef__":true,"id":1454}},"2297":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"2298":{"varMapping":{"__isSmartRef__":true,"id":2299},"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":2304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2299":{"this":{"__isSmartRef__":true,"id":1454},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2300}},"2300":{"$super":{"__isSmartRef__":true,"id":2301}},"2301":{"varMapping":{"__isSmartRef__":true,"id":2302},"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":2303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2302":{"obj":{"__isSmartRef__":true,"id":1454},"name":"onMouseDown"},"2303":{},"2304":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"2305":{"varMapping":{"__isSmartRef__":true,"id":2306},"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":2307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2306":{"this":{"__isSmartRef__":true,"id":1454}},"2307":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"2308":{"varMapping":{"__isSmartRef__":true,"id":2309},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2309":{"this":{"__isSmartRef__":true,"id":1454}},"2310":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"2311":{"varMapping":{"__isSmartRef__":true,"id":2312},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":2313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2312":{"this":{"__isSmartRef__":true,"id":1454}},"2313":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"2314":{"varMapping":{"__isSmartRef__":true,"id":2315},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":2316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2315":{"this":{"__isSmartRef__":true,"id":1454}},"2316":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"2317":{"varMapping":{"__isSmartRef__":true,"id":2318},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":2319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2318":{"this":{"__isSmartRef__":true,"id":1454}},"2319":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"2320":{"varMapping":{"__isSmartRef__":true,"id":2321},"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":2322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2321":{"this":{"__isSmartRef__":true,"id":1454}},"2322":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"2323":{"varMapping":{"__isSmartRef__":true,"id":2324},"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":2325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2324":{"this":{"__isSmartRef__":true,"id":1454}},"2325":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"2326":{"varMapping":{"__isSmartRef__":true,"id":2327},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2327":{"this":{"__isSmartRef__":true,"id":1454}},"2328":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"2329":{"varMapping":{"__isSmartRef__":true,"id":2330},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2330":{"this":{"__isSmartRef__":true,"id":1454}},"2331":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"2332":{"varMapping":{"__isSmartRef__":true,"id":2333},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2333":{"this":{"__isSmartRef__":true,"id":1454}},"2334":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"2335":{"varMapping":{"__isSmartRef__":true,"id":2336},"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":2337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2336":{"this":{"__isSmartRef__":true,"id":1454}},"2337":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"2338":{"varMapping":{"__isSmartRef__":true,"id":2339},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2339":{"this":{"__isSmartRef__":true,"id":1454}},"2340":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"2341":{"varMapping":{"__isSmartRef__":true,"id":2342},"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":2343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2342":{"this":{"__isSmartRef__":true,"id":1454}},"2343":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"2344":{"varMapping":{"__isSmartRef__":true,"id":2345},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2345":{"this":{"__isSmartRef__":true,"id":1454}},"2346":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2347":{"varMapping":{"__isSmartRef__":true,"id":2348},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2348":{"this":{"__isSmartRef__":true,"id":1454}},"2349":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2350":{"varMapping":{"__isSmartRef__":true,"id":2351},"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":2352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2351":{"this":{"__isSmartRef__":true,"id":1454}},"2352":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"2353":{"varMapping":{"__isSmartRef__":true,"id":2354},"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":2355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2354":{"this":{"__isSmartRef__":true,"id":1454}},"2355":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2356":{"varMapping":{"__isSmartRef__":true,"id":2357},"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":2358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2357":{"this":{"__isSmartRef__":true,"id":1454}},"2358":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2359":{"varMapping":{"__isSmartRef__":true,"id":2360},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2360":{"this":{"__isSmartRef__":true,"id":1454}},"2361":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2362":{"varMapping":{"__isSmartRef__":true,"id":2363},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2363":{"this":{"__isSmartRef__":true,"id":1454}},"2364":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2365":{"varMapping":{"__isSmartRef__":true,"id":2366},"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":2367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2366":{"this":{"__isSmartRef__":true,"id":1454}},"2367":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2368":{"submorphs":[{"__isSmartRef__":true,"id":2369}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2373},"derivationIds":[null,"58AA89A9-E24E-414D-B950-8B98215F1AA1"],"id":"75A4895D-0B81-4020-9A9B-968A39ED045D","eventHandler":{"__isSmartRef__":true,"id":2374},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":1,"column":5,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":2369},"grabbingEnabled":false,"__obstacles":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2375},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,48.0)"},"2369":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2370},"derivationIds":[null,"8CB7298C-A0CA-43FB-93C4-CD024987F3F5"],"id":"8A86F0E6-EDEE-4586-8E56-521C0A6F84CF","eventHandler":{"__isSmartRef__":true,"id":2371},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2368},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2372},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"2370":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-8cb7298c-a0ca-43fb-93c4-cd024987f3f5","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"2371":{"morph":{"__isSmartRef__":true,"id":2369},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2372":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"2373":{"_NodeClass":["morph","box"],"_NodeId":"morph-58aa89a9-e24e-414d-b950-8b98215f1aa1","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2374":{"morph":{"__isSmartRef__":true,"id":2368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2375":{"setDevStyle":{"__isSmartRef__":true,"id":2376},"setNormalStyle":{"__isSmartRef__":true,"id":2379},"tileSize":{"__isSmartRef__":true,"id":2382},"become":{"__isSmartRef__":true,"id":2385},"onMouseDown":{"__isSmartRef__":true,"id":2388},"setGridPosition":{"__isSmartRef__":true,"id":2395},"toolbox":{"__isSmartRef__":true,"id":2398},"distanceTo":{"__isSmartRef__":true,"id":2401},"tileWasDropped":{"__isSmartRef__":true,"id":2404},"isObstacle":{"__isSmartRef__":true,"id":2407},"neighboursInDirection":{"__isSmartRef__":true,"id":2410},"neighbours":{"__isSmartRef__":true,"id":2413},"zIndex":{"__isSmartRef__":true,"id":2416},"obstacles":{"__isSmartRef__":true,"id":2419},"addObstacle":{"__isSmartRef__":true,"id":2422},"removeObstacle":{"__isSmartRef__":true,"id":2425},"isTile":{"__isSmartRef__":true,"id":2428},"neighbourAt":{"__isSmartRef__":true,"id":2431},"map":{"__isSmartRef__":true,"id":2434},"game":{"__isSmartRef__":true,"id":2437},"reset":{"__isSmartRef__":true,"id":2440},"shallowCopy":{"__isSmartRef__":true,"id":2443},"characters":{"__isSmartRef__":true,"id":2446},"enterTile":{"__isSmartRef__":true,"id":2449},"leaveTile":{"__isSmartRef__":true,"id":2452},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2455}},"2376":{"varMapping":{"__isSmartRef__":true,"id":2377},"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":2378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2377":{"this":{"__isSmartRef__":true,"id":2368}},"2378":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"2379":{"varMapping":{"__isSmartRef__":true,"id":2380},"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":2381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2380":{"this":{"__isSmartRef__":true,"id":2368}},"2381":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"2382":{"varMapping":{"__isSmartRef__":true,"id":2383},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":2384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2383":{"this":{"__isSmartRef__":true,"id":2368}},"2384":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"2385":{"varMapping":{"__isSmartRef__":true,"id":2386},"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":2387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2386":{"this":{"__isSmartRef__":true,"id":2368}},"2387":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"2388":{"varMapping":{"__isSmartRef__":true,"id":2389},"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":2394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2389":{"this":{"__isSmartRef__":true,"id":2368},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2390}},"2390":{"$super":{"__isSmartRef__":true,"id":2391}},"2391":{"varMapping":{"__isSmartRef__":true,"id":2392},"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":2393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2392":{"obj":{"__isSmartRef__":true,"id":2368},"name":"onMouseDown"},"2393":{},"2394":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"2395":{"varMapping":{"__isSmartRef__":true,"id":2396},"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":2397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2396":{"this":{"__isSmartRef__":true,"id":2368}},"2397":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"2398":{"varMapping":{"__isSmartRef__":true,"id":2399},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2399":{"this":{"__isSmartRef__":true,"id":2368}},"2400":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"2401":{"varMapping":{"__isSmartRef__":true,"id":2402},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":2403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2402":{"this":{"__isSmartRef__":true,"id":2368}},"2403":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"2404":{"varMapping":{"__isSmartRef__":true,"id":2405},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":2406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2405":{"this":{"__isSmartRef__":true,"id":2368}},"2406":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"2407":{"varMapping":{"__isSmartRef__":true,"id":2408},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":2409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2408":{"this":{"__isSmartRef__":true,"id":2368}},"2409":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"2410":{"varMapping":{"__isSmartRef__":true,"id":2411},"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":2412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2411":{"this":{"__isSmartRef__":true,"id":2368}},"2412":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"2413":{"varMapping":{"__isSmartRef__":true,"id":2414},"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":2415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2414":{"this":{"__isSmartRef__":true,"id":2368}},"2415":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"2416":{"varMapping":{"__isSmartRef__":true,"id":2417},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2417":{"this":{"__isSmartRef__":true,"id":2368}},"2418":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"2419":{"varMapping":{"__isSmartRef__":true,"id":2420},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2420":{"this":{"__isSmartRef__":true,"id":2368}},"2421":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"2422":{"varMapping":{"__isSmartRef__":true,"id":2423},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2423":{"this":{"__isSmartRef__":true,"id":2368}},"2424":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"2425":{"varMapping":{"__isSmartRef__":true,"id":2426},"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":2427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2426":{"this":{"__isSmartRef__":true,"id":2368}},"2427":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"2428":{"varMapping":{"__isSmartRef__":true,"id":2429},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2429":{"this":{"__isSmartRef__":true,"id":2368}},"2430":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"2431":{"varMapping":{"__isSmartRef__":true,"id":2432},"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":2433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2432":{"this":{"__isSmartRef__":true,"id":2368}},"2433":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"2434":{"varMapping":{"__isSmartRef__":true,"id":2435},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2435":{"this":{"__isSmartRef__":true,"id":2368}},"2436":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2437":{"varMapping":{"__isSmartRef__":true,"id":2438},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2438":{"this":{"__isSmartRef__":true,"id":2368}},"2439":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2440":{"varMapping":{"__isSmartRef__":true,"id":2441},"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":2442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2441":{"this":{"__isSmartRef__":true,"id":2368}},"2442":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"2443":{"varMapping":{"__isSmartRef__":true,"id":2444},"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":2445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2444":{"this":{"__isSmartRef__":true,"id":2368}},"2445":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2446":{"varMapping":{"__isSmartRef__":true,"id":2447},"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":2448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2447":{"this":{"__isSmartRef__":true,"id":2368}},"2448":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2449":{"varMapping":{"__isSmartRef__":true,"id":2450},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2450":{"this":{"__isSmartRef__":true,"id":2368}},"2451":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2452":{"varMapping":{"__isSmartRef__":true,"id":2453},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2453":{"this":{"__isSmartRef__":true,"id":2368}},"2454":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2455":{"varMapping":{"__isSmartRef__":true,"id":2456},"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":2457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2456":{"this":{"__isSmartRef__":true,"id":2368}},"2457":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2458":{"setDevStyle":{"__isSmartRef__":true,"id":2459},"setNormalStyle":{"__isSmartRef__":true,"id":2462},"tileSize":{"__isSmartRef__":true,"id":2465},"become":{"__isSmartRef__":true,"id":2468},"onMouseDown":{"__isSmartRef__":true,"id":2471},"setGridPosition":{"__isSmartRef__":true,"id":2478},"toolbox":{"__isSmartRef__":true,"id":2481},"distanceTo":{"__isSmartRef__":true,"id":2484},"tileWasDropped":{"__isSmartRef__":true,"id":2487},"isObstacle":{"__isSmartRef__":true,"id":2490},"neighboursInDirection":{"__isSmartRef__":true,"id":2493},"neighbours":{"__isSmartRef__":true,"id":2496},"zIndex":{"__isSmartRef__":true,"id":2499},"obstacles":{"__isSmartRef__":true,"id":2502},"addObstacle":{"__isSmartRef__":true,"id":2505},"removeObstacle":{"__isSmartRef__":true,"id":2508},"isTile":{"__isSmartRef__":true,"id":2511},"neighbourAt":{"__isSmartRef__":true,"id":2514},"map":{"__isSmartRef__":true,"id":2517},"game":{"__isSmartRef__":true,"id":2520},"reset":{"__isSmartRef__":true,"id":2523},"shallowCopy":{"__isSmartRef__":true,"id":2526},"characters":{"__isSmartRef__":true,"id":2529},"enterTile":{"__isSmartRef__":true,"id":2532},"leaveTile":{"__isSmartRef__":true,"id":2535},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2538}},"2459":{"varMapping":{"__isSmartRef__":true,"id":2460},"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":2461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2460":{"this":{"__isSmartRef__":true,"id":1447}},"2461":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"2462":{"varMapping":{"__isSmartRef__":true,"id":2463},"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":2464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2463":{"this":{"__isSmartRef__":true,"id":1447}},"2464":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"2465":{"varMapping":{"__isSmartRef__":true,"id":2466},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":2467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2466":{"this":{"__isSmartRef__":true,"id":1447}},"2467":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"2468":{"varMapping":{"__isSmartRef__":true,"id":2469},"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":2470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2469":{"this":{"__isSmartRef__":true,"id":1447}},"2470":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"2471":{"varMapping":{"__isSmartRef__":true,"id":2472},"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":2477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2472":{"this":{"__isSmartRef__":true,"id":1447},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2473}},"2473":{"$super":{"__isSmartRef__":true,"id":2474}},"2474":{"varMapping":{"__isSmartRef__":true,"id":2475},"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":2476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2475":{"obj":{"__isSmartRef__":true,"id":1447},"name":"onMouseDown"},"2476":{},"2477":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"2478":{"varMapping":{"__isSmartRef__":true,"id":2479},"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":2480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2479":{"this":{"__isSmartRef__":true,"id":1447}},"2480":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"2481":{"varMapping":{"__isSmartRef__":true,"id":2482},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2482":{"this":{"__isSmartRef__":true,"id":1447}},"2483":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"2484":{"varMapping":{"__isSmartRef__":true,"id":2485},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":2486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2485":{"this":{"__isSmartRef__":true,"id":1447}},"2486":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"2487":{"varMapping":{"__isSmartRef__":true,"id":2488},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":2489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2488":{"this":{"__isSmartRef__":true,"id":1447}},"2489":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"2490":{"varMapping":{"__isSmartRef__":true,"id":2491},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":2492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2491":{"this":{"__isSmartRef__":true,"id":1447}},"2492":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"2493":{"varMapping":{"__isSmartRef__":true,"id":2494},"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":2495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2494":{"this":{"__isSmartRef__":true,"id":1447}},"2495":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"2496":{"varMapping":{"__isSmartRef__":true,"id":2497},"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":2498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2497":{"this":{"__isSmartRef__":true,"id":1447}},"2498":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"2499":{"varMapping":{"__isSmartRef__":true,"id":2500},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2500":{"this":{"__isSmartRef__":true,"id":1447}},"2501":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"2502":{"varMapping":{"__isSmartRef__":true,"id":2503},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2503":{"this":{"__isSmartRef__":true,"id":1447}},"2504":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"2505":{"varMapping":{"__isSmartRef__":true,"id":2506},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2506":{"this":{"__isSmartRef__":true,"id":1447}},"2507":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"2508":{"varMapping":{"__isSmartRef__":true,"id":2509},"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":2510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2509":{"this":{"__isSmartRef__":true,"id":1447}},"2510":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"2511":{"varMapping":{"__isSmartRef__":true,"id":2512},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2512":{"this":{"__isSmartRef__":true,"id":1447}},"2513":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"2514":{"varMapping":{"__isSmartRef__":true,"id":2515},"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":2516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2515":{"this":{"__isSmartRef__":true,"id":1447}},"2516":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"2517":{"varMapping":{"__isSmartRef__":true,"id":2518},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2518":{"this":{"__isSmartRef__":true,"id":1447}},"2519":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2520":{"varMapping":{"__isSmartRef__":true,"id":2521},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2521":{"this":{"__isSmartRef__":true,"id":1447}},"2522":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2523":{"varMapping":{"__isSmartRef__":true,"id":2524},"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":2525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2524":{"this":{"__isSmartRef__":true,"id":1447}},"2525":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"2526":{"varMapping":{"__isSmartRef__":true,"id":2527},"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":2528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2527":{"this":{"__isSmartRef__":true,"id":1447}},"2528":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2529":{"varMapping":{"__isSmartRef__":true,"id":2530},"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":2531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2530":{"this":{"__isSmartRef__":true,"id":1447}},"2531":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2532":{"varMapping":{"__isSmartRef__":true,"id":2533},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2533":{"this":{"__isSmartRef__":true,"id":1447}},"2534":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2535":{"varMapping":{"__isSmartRef__":true,"id":2536},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2536":{"this":{"__isSmartRef__":true,"id":1447}},"2537":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2538":{"varMapping":{"__isSmartRef__":true,"id":2539},"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":2540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2539":{"this":{"__isSmartRef__":true,"id":1447}},"2540":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2541":{"setDevStyle":{"__isSmartRef__":true,"id":2542},"setNormalStyle":{"__isSmartRef__":true,"id":2545},"tileSize":{"__isSmartRef__":true,"id":2548},"become":{"__isSmartRef__":true,"id":2551},"onMouseDown":{"__isSmartRef__":true,"id":2554},"setGridPosition":{"__isSmartRef__":true,"id":2561},"toolbox":{"__isSmartRef__":true,"id":2564},"distanceTo":{"__isSmartRef__":true,"id":2567},"tileWasDropped":{"__isSmartRef__":true,"id":2570},"isObstacle":{"__isSmartRef__":true,"id":2573},"neighboursInDirection":{"__isSmartRef__":true,"id":2576},"neighbours":{"__isSmartRef__":true,"id":2579},"zIndex":{"__isSmartRef__":true,"id":2582},"obstacles":{"__isSmartRef__":true,"id":2585},"addObstacle":{"__isSmartRef__":true,"id":2588},"removeObstacle":{"__isSmartRef__":true,"id":2591},"isTile":{"__isSmartRef__":true,"id":2594},"neighbourAt":{"__isSmartRef__":true,"id":2597},"map":{"__isSmartRef__":true,"id":2600},"game":{"__isSmartRef__":true,"id":2603},"reset":{"__isSmartRef__":true,"id":2606},"shallowCopy":{"__isSmartRef__":true,"id":2609},"characters":{"__isSmartRef__":true,"id":2612},"enterTile":{"__isSmartRef__":true,"id":2615},"leaveTile":{"__isSmartRef__":true,"id":2618},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2621}},"2542":{"varMapping":{"__isSmartRef__":true,"id":2543},"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":2544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2543":{"this":{"__isSmartRef__":true,"id":1350}},"2544":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"2545":{"varMapping":{"__isSmartRef__":true,"id":2546},"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":2547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2546":{"this":{"__isSmartRef__":true,"id":1350}},"2547":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"2548":{"varMapping":{"__isSmartRef__":true,"id":2549},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":2550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2549":{"this":{"__isSmartRef__":true,"id":1350}},"2550":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"2551":{"varMapping":{"__isSmartRef__":true,"id":2552},"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":2553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2552":{"this":{"__isSmartRef__":true,"id":1350}},"2553":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"2554":{"varMapping":{"__isSmartRef__":true,"id":2555},"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":2560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2555":{"this":{"__isSmartRef__":true,"id":1350},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2556}},"2556":{"$super":{"__isSmartRef__":true,"id":2557}},"2557":{"varMapping":{"__isSmartRef__":true,"id":2558},"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":2559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2558":{"obj":{"__isSmartRef__":true,"id":1350},"name":"onMouseDown"},"2559":{},"2560":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"2561":{"varMapping":{"__isSmartRef__":true,"id":2562},"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":2563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2562":{"this":{"__isSmartRef__":true,"id":1350}},"2563":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"2564":{"varMapping":{"__isSmartRef__":true,"id":2565},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2565":{"this":{"__isSmartRef__":true,"id":1350}},"2566":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"2567":{"varMapping":{"__isSmartRef__":true,"id":2568},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":2569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2568":{"this":{"__isSmartRef__":true,"id":1350}},"2569":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"2570":{"varMapping":{"__isSmartRef__":true,"id":2571},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":2572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2571":{"this":{"__isSmartRef__":true,"id":1350}},"2572":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"2573":{"varMapping":{"__isSmartRef__":true,"id":2574},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":2575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2574":{"this":{"__isSmartRef__":true,"id":1350}},"2575":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"2576":{"varMapping":{"__isSmartRef__":true,"id":2577},"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":2578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2577":{"this":{"__isSmartRef__":true,"id":1350}},"2578":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"2579":{"varMapping":{"__isSmartRef__":true,"id":2580},"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":2581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2580":{"this":{"__isSmartRef__":true,"id":1350}},"2581":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"2582":{"varMapping":{"__isSmartRef__":true,"id":2583},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2583":{"this":{"__isSmartRef__":true,"id":1350}},"2584":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"2585":{"varMapping":{"__isSmartRef__":true,"id":2586},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2586":{"this":{"__isSmartRef__":true,"id":1350}},"2587":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"2588":{"varMapping":{"__isSmartRef__":true,"id":2589},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2589":{"this":{"__isSmartRef__":true,"id":1350}},"2590":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"2591":{"varMapping":{"__isSmartRef__":true,"id":2592},"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":2593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2592":{"this":{"__isSmartRef__":true,"id":1350}},"2593":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"2594":{"varMapping":{"__isSmartRef__":true,"id":2595},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2595":{"this":{"__isSmartRef__":true,"id":1350}},"2596":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"2597":{"varMapping":{"__isSmartRef__":true,"id":2598},"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":2599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2598":{"this":{"__isSmartRef__":true,"id":1350}},"2599":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"2600":{"varMapping":{"__isSmartRef__":true,"id":2601},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2601":{"this":{"__isSmartRef__":true,"id":1350}},"2602":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2603":{"varMapping":{"__isSmartRef__":true,"id":2604},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2604":{"this":{"__isSmartRef__":true,"id":1350}},"2605":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2606":{"varMapping":{"__isSmartRef__":true,"id":2607},"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":2608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2607":{"this":{"__isSmartRef__":true,"id":1350}},"2608":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"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},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2610":{"this":{"__isSmartRef__":true,"id":1350}},"2611":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2612":{"varMapping":{"__isSmartRef__":true,"id":2613},"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":2614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2613":{"this":{"__isSmartRef__":true,"id":1350}},"2614":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2615":{"varMapping":{"__isSmartRef__":true,"id":2616},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2616":{"this":{"__isSmartRef__":true,"id":1350}},"2617":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2618":{"varMapping":{"__isSmartRef__":true,"id":2619},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2619":{"this":{"__isSmartRef__":true,"id":1350}},"2620":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2621":{"varMapping":{"__isSmartRef__":true,"id":2622},"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":2623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2622":{"this":{"__isSmartRef__":true,"id":1350}},"2623":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2624":{"submorphs":[{"__isSmartRef__":true,"id":2625}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2629},"derivationIds":[null,"162EC5B1-6824-415F-A049-31C985299213"],"id":"118CD229-EB01-4688-BB4F-9678C1B67B73","eventHandler":{"__isSmartRef__":true,"id":2630},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":2,"column":4,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":2625},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":1343},{"__isSmartRef__":true,"id":2368},{"__isSmartRef__":true,"id":1336},{"__isSmartRef__":true,"id":2631},{"__isSmartRef__":true,"id":2721},{"__isSmartRef__":true,"id":2728},{"__isSmartRef__":true,"id":2832}],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4088},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,96.0)"},"2625":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2626},"derivationIds":[null,"20DA3DCC-0B43-40E1-A96C-58BB93FFE86B"],"id":"6BF4D617-2E92-44A2-844F-A1E6BB9CF12B","eventHandler":{"__isSmartRef__":true,"id":2627},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2624},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2628},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"2626":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-20da3dcc-0b43-40e1-a96c-58bb93ffe86b","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"2627":{"morph":{"__isSmartRef__":true,"id":2625},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2628":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"2629":{"_NodeClass":["morph","box"],"_NodeId":"morph-162ec5b1-6824-415f-a049-31c985299213","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2630":{"morph":{"__isSmartRef__":true,"id":2624},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2631":{"submorphs":[{"__isSmartRef__":true,"id":2632}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2636},"derivationIds":[null,"B4DC1CD9-F9E0-4F4E-A5D8-471FD72B8A2E"],"id":"E32E2141-755E-40B7-898D-AABAB268FF42","eventHandler":{"__isSmartRef__":true,"id":2637},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":2,"column":5,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":2632},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2638},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,96.0)"},"2632":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2633},"derivationIds":[null,"193A10E9-0AD3-4754-A60A-CA6B03AF2EE8"],"id":"D8C346AC-CB61-4ED8-AE7A-299996DA7309","eventHandler":{"__isSmartRef__":true,"id":2634},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2631},"showsHalos":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2635},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"2633":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-193a10e9-0ad3-4754-a60a-ca6b03af2ee8","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"2634":{"morph":{"__isSmartRef__":true,"id":2632},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2635":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"2636":{"_NodeClass":["morph","box"],"_NodeId":"morph-b4dc1cd9-f9e0-4f4e-a5d8-471fd72b8a2e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2637":{"morph":{"__isSmartRef__":true,"id":2631},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2638":{"setDevStyle":{"__isSmartRef__":true,"id":2639},"setNormalStyle":{"__isSmartRef__":true,"id":2642},"tileSize":{"__isSmartRef__":true,"id":2645},"become":{"__isSmartRef__":true,"id":2648},"onMouseDown":{"__isSmartRef__":true,"id":2651},"setGridPosition":{"__isSmartRef__":true,"id":2658},"toolbox":{"__isSmartRef__":true,"id":2661},"distanceTo":{"__isSmartRef__":true,"id":2664},"tileWasDropped":{"__isSmartRef__":true,"id":2667},"isObstacle":{"__isSmartRef__":true,"id":2670},"neighboursInDirection":{"__isSmartRef__":true,"id":2673},"neighbours":{"__isSmartRef__":true,"id":2676},"zIndex":{"__isSmartRef__":true,"id":2679},"obstacles":{"__isSmartRef__":true,"id":2682},"addObstacle":{"__isSmartRef__":true,"id":2685},"removeObstacle":{"__isSmartRef__":true,"id":2688},"isTile":{"__isSmartRef__":true,"id":2691},"neighbourAt":{"__isSmartRef__":true,"id":2694},"map":{"__isSmartRef__":true,"id":2697},"game":{"__isSmartRef__":true,"id":2700},"reset":{"__isSmartRef__":true,"id":2703},"shallowCopy":{"__isSmartRef__":true,"id":2706},"characters":{"__isSmartRef__":true,"id":2709},"enterTile":{"__isSmartRef__":true,"id":2712},"leaveTile":{"__isSmartRef__":true,"id":2715},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2718}},"2639":{"varMapping":{"__isSmartRef__":true,"id":2640},"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":2641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2640":{"this":{"__isSmartRef__":true,"id":2631}},"2641":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"2642":{"varMapping":{"__isSmartRef__":true,"id":2643},"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":2644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2643":{"this":{"__isSmartRef__":true,"id":2631}},"2644":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"2645":{"varMapping":{"__isSmartRef__":true,"id":2646},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":2647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2646":{"this":{"__isSmartRef__":true,"id":2631}},"2647":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"2648":{"varMapping":{"__isSmartRef__":true,"id":2649},"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":2650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2649":{"this":{"__isSmartRef__":true,"id":2631}},"2650":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"2651":{"varMapping":{"__isSmartRef__":true,"id":2652},"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":2657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2652":{"this":{"__isSmartRef__":true,"id":2631},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2653}},"2653":{"$super":{"__isSmartRef__":true,"id":2654}},"2654":{"varMapping":{"__isSmartRef__":true,"id":2655},"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":2656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2655":{"obj":{"__isSmartRef__":true,"id":2631},"name":"onMouseDown"},"2656":{},"2657":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"2658":{"varMapping":{"__isSmartRef__":true,"id":2659},"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":2660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2659":{"this":{"__isSmartRef__":true,"id":2631}},"2660":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"2661":{"varMapping":{"__isSmartRef__":true,"id":2662},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2662":{"this":{"__isSmartRef__":true,"id":2631}},"2663":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"2664":{"varMapping":{"__isSmartRef__":true,"id":2665},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":2666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2665":{"this":{"__isSmartRef__":true,"id":2631}},"2666":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"2667":{"varMapping":{"__isSmartRef__":true,"id":2668},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":2669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2668":{"this":{"__isSmartRef__":true,"id":2631}},"2669":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"2670":{"varMapping":{"__isSmartRef__":true,"id":2671},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":2672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2671":{"this":{"__isSmartRef__":true,"id":2631}},"2672":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"2673":{"varMapping":{"__isSmartRef__":true,"id":2674},"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":2675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2674":{"this":{"__isSmartRef__":true,"id":2631}},"2675":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"2676":{"varMapping":{"__isSmartRef__":true,"id":2677},"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":2678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2677":{"this":{"__isSmartRef__":true,"id":2631}},"2678":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"2679":{"varMapping":{"__isSmartRef__":true,"id":2680},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2680":{"this":{"__isSmartRef__":true,"id":2631}},"2681":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"2682":{"varMapping":{"__isSmartRef__":true,"id":2683},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2683":{"this":{"__isSmartRef__":true,"id":2631}},"2684":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"2685":{"varMapping":{"__isSmartRef__":true,"id":2686},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2686":{"this":{"__isSmartRef__":true,"id":2631}},"2687":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"2688":{"varMapping":{"__isSmartRef__":true,"id":2689},"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":2690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2689":{"this":{"__isSmartRef__":true,"id":2631}},"2690":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"2691":{"varMapping":{"__isSmartRef__":true,"id":2692},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2692":{"this":{"__isSmartRef__":true,"id":2631}},"2693":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"2694":{"varMapping":{"__isSmartRef__":true,"id":2695},"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":2696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2695":{"this":{"__isSmartRef__":true,"id":2631}},"2696":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"2697":{"varMapping":{"__isSmartRef__":true,"id":2698},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2698":{"this":{"__isSmartRef__":true,"id":2631}},"2699":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2700":{"varMapping":{"__isSmartRef__":true,"id":2701},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2701":{"this":{"__isSmartRef__":true,"id":2631}},"2702":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2703":{"varMapping":{"__isSmartRef__":true,"id":2704},"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":2705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2704":{"this":{"__isSmartRef__":true,"id":2631}},"2705":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"2706":{"varMapping":{"__isSmartRef__":true,"id":2707},"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":2708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2707":{"this":{"__isSmartRef__":true,"id":2631}},"2708":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2709":{"varMapping":{"__isSmartRef__":true,"id":2710},"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":2711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2710":{"this":{"__isSmartRef__":true,"id":2631}},"2711":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2712":{"varMapping":{"__isSmartRef__":true,"id":2713},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2713":{"this":{"__isSmartRef__":true,"id":2631}},"2714":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2715":{"varMapping":{"__isSmartRef__":true,"id":2716},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2716":{"this":{"__isSmartRef__":true,"id":2631}},"2717":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2718":{"varMapping":{"__isSmartRef__":true,"id":2719},"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":2720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2719":{"this":{"__isSmartRef__":true,"id":2631}},"2720":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2721":{"submorphs":[{"__isSmartRef__":true,"id":2722}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2726},"derivationIds":[null,"48F80A97-CEA2-4604-8E8A-AEA318171A54"],"id":"C1ECE50B-6BAE-402C-A6D0-AA86FAB181EB","eventHandler":{"__isSmartRef__":true,"id":2727},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":3,"column":3,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":2722},"grabbingEnabled":false,"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":1336},{"__isSmartRef__":true,"id":2624},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":2728},{"__isSmartRef__":true,"id":3915},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":2839}],"__obstacles":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4005},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,144.0)"},"2722":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2723},"derivationIds":[null,"DB81C968-0FE6-4FB6-8958-082E53D1F10A"],"id":"A9C9D2FD-E0BB-4C3D-B0F1-3F0A5A2F22B5","eventHandler":{"__isSmartRef__":true,"id":2724},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2721},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2725},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"2723":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-db81c968-0fe6-4fb6-8958-082e53d1f10a","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"2724":{"morph":{"__isSmartRef__":true,"id":2722},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2725":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"2726":{"_NodeClass":["morph","box"],"_NodeId":"morph-48f80a97-cea2-4604-8e8a-aea318171a54","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2727":{"morph":{"__isSmartRef__":true,"id":2721},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2728":{"submorphs":[{"__isSmartRef__":true,"id":2729},{"__isSmartRef__":true,"id":2733}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2830},"derivationIds":[null,"F07A5D73-0896-4A4E-B120-207D269CB038"],"id":"AC40DDD5-432A-4866-BE9E-DD022EA86F8D","eventHandler":{"__isSmartRef__":true,"id":2831},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":3,"column":4,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":2729},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[{"__isSmartRef__":true,"id":2733}],"cachedNeightbours":[{"__isSmartRef__":true,"id":1336},{"__isSmartRef__":true,"id":2624},{"__isSmartRef__":true,"id":2631},{"__isSmartRef__":true,"id":2721},{"__isSmartRef__":true,"id":2832},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":2839},{"__isSmartRef__":true,"id":3306}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3832},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,144.0)"},"2729":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2730},"derivationIds":[null,"A7B39F35-394B-42B4-B426-7F1D09E4144C"],"id":"5D386372-60B2-449C-921A-A733E4E9497A","eventHandler":{"__isSmartRef__":true,"id":2731},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2728},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2732},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"2730":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-a7b39f35-394b-42b4-b426-7f1d09e4144c","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"2731":{"morph":{"__isSmartRef__":true,"id":2729},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2732":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"2733":{"submorphs":[{"__isSmartRef__":true,"id":2734}],"scripts":[],"id":"AD7FFE5F-7DA7-437E-9E52-1B722E21111C","shape":{"__isSmartRef__":true,"id":2758},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Thing3","partsBinMetaInfo":{"__isSmartRef__":true,"id":676},"eventHandler":{"__isSmartRef__":true,"id":2759},"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","767C55A4-E504-468E-A905-9A0DFA7E711C"],"partTests":{"__isSmartRef__":true,"id":2760},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":2728},"thing":{"__isSmartRef__":true,"id":2734},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":2728}],"owner":{"__isSmartRef__":true,"id":2728},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2765},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"2734":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2735},"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","DCB90C4A-F28A-45C7-B4C0-3900FE64326F"],"id":"5584456A-D839-4A71-AD27-6C667DA92EF6","eventHandler":{"__isSmartRef__":true,"id":2736},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"WoodstackThing1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2737},"moved":true,"isThing":true,"_ClipMode":"visible","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2733},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2750},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(8.0,4.0)"},"2735":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/woodstack.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,44.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2736":{"morph":{"__isSmartRef__":true,"id":2734},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2737":{"partName":"WoodstackThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A not movable pile of wood","changes":[{"__isSmartRef__":true,"id":2738},{"__isSmartRef__":true,"id":2740},{"__isSmartRef__":true,"id":2742},{"__isSmartRef__":true,"id":2744},{"__isSmartRef__":true,"id":2746},{"__isSmartRef__":true,"id":2748}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2738":{"date":{"__isSmartRef__":true,"id":2739},"author":"timfelgentreff","message":"no comment","id":"1A0C6AA2-1339-4430-9D90-041573EBACD1"},"2739":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:08:05 GMT+0200 (Central Europe Daylight Time)"},"2740":{"date":{"__isSmartRef__":true,"id":2741},"author":"tessi","message":"","id":"05265F01-D0D8-4994-B47D-5CEA345DB6E1"},"2741":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:50:38 GMT+0200 (Central Europe Daylight Time)"},"2742":{"date":{"__isSmartRef__":true,"id":2743},"author":"tessi","message":"","id":"929ADB98-2EB3-4DDD-A80B-03F2D63F1F37"},"2743":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:44:01 GMT+0200 (Central Europe Daylight Time)"},"2744":{"date":{"__isSmartRef__":true,"id":2745},"author":"tessi","message":"","id":"8DD457D2-AEDF-49EB-B709-175D70D13811"},"2745":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:15:10 GMT+0200 (Central Europe Daylight Time)"},"2746":{"date":{"__isSmartRef__":true,"id":2747},"author":"timfelgentreff","message":"resize","id":"25C768D6-D9E6-408C-9EC3-DA5E2F40EE31"},"2747":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:32:41 GMT+0200 (Central Europe Daylight Time)"},"2748":{"date":{"__isSmartRef__":true,"id":2749},"author":"timfelgentreff","message":"no comment","id":"12F3271A-3B3E-4552-8F58-D624397EBE9C"},"2749":{"isSerializedDate":true,"string":"Thu May 03 2012 14:03:40 GMT+0200 (Central Europe Daylight Time)"},"2750":{"dropOn":{"__isSmartRef__":true,"id":2751}},"2751":{"varMapping":{"__isSmartRef__":true,"id":2752},"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":2757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2752":{"this":{"__isSmartRef__":true,"id":2734},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2753}},"2753":{"$super":{"__isSmartRef__":true,"id":2754}},"2754":{"varMapping":{"__isSmartRef__":true,"id":2755},"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":2756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2755":{"obj":{"__isSmartRef__":true,"id":2734},"name":"dropOn"},"2756":{},"2757":{},"2758":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2759":{"morph":{"__isSmartRef__":true,"id":2733},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2760":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2761}},"2761":{"test01IsMorph":{"__isSmartRef__":true,"id":2762}},"2762":{"varMapping":{"__isSmartRef__":true,"id":2763},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2763":{"this":{"__isSmartRef__":true,"id":2760}},"2764":{},"2765":{"setDevStyle":{"__isSmartRef__":true,"id":2766},"setNormalStyle":{"__isSmartRef__":true,"id":2770},"become":{"__isSmartRef__":true,"id":2774},"onMouseDown":{"__isSmartRef__":true,"id":2778},"toolbox":{"__isSmartRef__":true,"id":2786},"zIndex":{"__isSmartRef__":true,"id":2790},"becomeRandomThing":{"__isSmartRef__":true,"id":2794},"reset":{"__isSmartRef__":true,"id":2798},"registerAsObstacle":{"__isSmartRef__":true,"id":2802},"deregisterAsObstacle":{"__isSmartRef__":true,"id":2806},"tileSize":{"__isSmartRef__":true,"id":2810},"dropOn":{"__isSmartRef__":true,"id":2814},"map":{"__isSmartRef__":true,"id":2822},"game":{"__isSmartRef__":true,"id":2826}},"2766":{"varMapping":{"__isSmartRef__":true,"id":2767},"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":2768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2767":{"this":{"__isSmartRef__":true,"id":2733}},"2768":{"timestamp":{"__isSmartRef__":true,"id":2769},"user":"timfelgentreff","tags":[]},"2769":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (Central Europe Daylight Time)"},"2770":{"varMapping":{"__isSmartRef__":true,"id":2771},"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":2772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2771":{"this":{"__isSmartRef__":true,"id":2733}},"2772":{"timestamp":{"__isSmartRef__":true,"id":2773},"user":"tessi","tags":[]},"2773":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (Central Europe Daylight Time)"},"2774":{"varMapping":{"__isSmartRef__":true,"id":2775},"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":2776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2775":{"this":{"__isSmartRef__":true,"id":2733}},"2776":{"timestamp":{"__isSmartRef__":true,"id":2777},"user":"timfelgentreff","tags":[]},"2777":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (Central Europe Daylight Time)"},"2778":{"varMapping":{"__isSmartRef__":true,"id":2779},"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":2784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2779":{"this":{"__isSmartRef__":true,"id":2733},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2780}},"2780":{"$super":{"__isSmartRef__":true,"id":2781}},"2781":{"varMapping":{"__isSmartRef__":true,"id":2782},"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":2783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2782":{"obj":{"__isSmartRef__":true,"id":2733},"name":"onMouseDown"},"2783":{},"2784":{"timestamp":{"__isSmartRef__":true,"id":2785},"user":"tessi","tags":[]},"2785":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (Central Europe Daylight Time)"},"2786":{"varMapping":{"__isSmartRef__":true,"id":2787},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2787":{"this":{"__isSmartRef__":true,"id":2733}},"2788":{"timestamp":{"__isSmartRef__":true,"id":2789},"user":"tessi","tags":[]},"2789":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (Central Europe Daylight Time)"},"2790":{"varMapping":{"__isSmartRef__":true,"id":2791},"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":2792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2791":{"this":{"__isSmartRef__":true,"id":2733}},"2792":{"timestamp":{"__isSmartRef__":true,"id":2793},"user":"timfelgentreff","tags":[]},"2793":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (Central Europe Daylight Time)"},"2794":{"varMapping":{"__isSmartRef__":true,"id":2795},"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":2796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2795":{"this":{"__isSmartRef__":true,"id":2733}},"2796":{"timestamp":{"__isSmartRef__":true,"id":2797},"user":"tessi","tags":[]},"2797":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (Central Europe Daylight Time)"},"2798":{"varMapping":{"__isSmartRef__":true,"id":2799},"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":2800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2799":{"this":{"__isSmartRef__":true,"id":2733}},"2800":{"timestamp":{"__isSmartRef__":true,"id":2801},"user":"tessi","tags":[]},"2801":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (Central Europe Daylight Time)"},"2802":{"varMapping":{"__isSmartRef__":true,"id":2803},"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":2804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2803":{"this":{"__isSmartRef__":true,"id":2733}},"2804":{"timestamp":{"__isSmartRef__":true,"id":2805},"user":"timfelgentreff","tags":[]},"2805":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (Central Europe Daylight Time)"},"2806":{"varMapping":{"__isSmartRef__":true,"id":2807},"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":2808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2807":{"this":{"__isSmartRef__":true,"id":2733}},"2808":{"timestamp":{"__isSmartRef__":true,"id":2809},"user":"timfelgentreff","tags":[]},"2809":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (Central Europe Daylight Time)"},"2810":{"varMapping":{"__isSmartRef__":true,"id":2811},"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":2812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2811":{"this":{"__isSmartRef__":true,"id":2733}},"2812":{"timestamp":{"__isSmartRef__":true,"id":2813},"user":"timfelgentreff","tags":[]},"2813":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (Central Europe Daylight Time)"},"2814":{"varMapping":{"__isSmartRef__":true,"id":2815},"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":2820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2815":{"this":{"__isSmartRef__":true,"id":2733},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2816}},"2816":{"$super":{"__isSmartRef__":true,"id":2817}},"2817":{"varMapping":{"__isSmartRef__":true,"id":2818},"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":2819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2818":{"obj":{"__isSmartRef__":true,"id":2733},"name":"dropOn"},"2819":{},"2820":{"timestamp":{"__isSmartRef__":true,"id":2821},"user":"timfelgentreff","tags":[]},"2821":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (Central Europe Daylight Time)"},"2822":{"varMapping":{"__isSmartRef__":true,"id":2823},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":2824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2823":{"this":{"__isSmartRef__":true,"id":2733}},"2824":{"timestamp":{"__isSmartRef__":true,"id":2825},"user":"tessi","tags":[]},"2825":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (Central Europe Daylight Time)"},"2826":{"varMapping":{"__isSmartRef__":true,"id":2827},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":2828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2827":{"this":{"__isSmartRef__":true,"id":2733}},"2828":{"timestamp":{"__isSmartRef__":true,"id":2829},"user":"tessi","tags":[]},"2829":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (Central Europe Daylight Time)"},"2830":{"_NodeClass":["morph","box"],"_NodeId":"morph-f07a5d73-0896-4a4e-b120-207d269cb038","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2831":{"morph":{"__isSmartRef__":true,"id":2728},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2832":{"submorphs":[{"__isSmartRef__":true,"id":2833}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2837},"derivationIds":[null,"0D074CD0-248B-4633-AF4E-E81803B9F946"],"id":"64848E0B-A521-40EE-8AA7-2D704E86069E","eventHandler":{"__isSmartRef__":true,"id":2838},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":3,"column":5,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":2833},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2624},{"__isSmartRef__":true,"id":2631},{"__isSmartRef__":true,"id":2728},{"__isSmartRef__":true,"id":2839},{"__isSmartRef__":true,"id":3306}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3749},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,144.0)"},"2833":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2834},"derivationIds":[null,"86243C2A-9A79-4764-A31F-A0B3E58D4E8D"],"id":"5957DECA-9F4B-44A4-AB34-BCFBB15EDADA","eventHandler":{"__isSmartRef__":true,"id":2835},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2832},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2836},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"2834":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-86243c2a-9a79-4764-a31f-a0b3e58d4e8d","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"2835":{"morph":{"__isSmartRef__":true,"id":2833},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2836":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"2837":{"_NodeClass":["morph","box"],"_NodeId":"morph-0d074cd0-248b-4633-af4e-e81803b9f946","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2838":{"morph":{"__isSmartRef__":true,"id":2832},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2839":{"submorphs":[{"__isSmartRef__":true,"id":2840}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2844},"derivationIds":[null,"CEEAA006-5CA7-404F-9318-E9D9DBBF2A6D"],"id":"639DA47D-91CD-4882-814A-A19149D697EF","eventHandler":{"__isSmartRef__":true,"id":2845},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":4,"column":4,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":2840},"grabbingEnabled":false,"charactersStandingHere":[{"__isSmartRef__":true,"id":2846}],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2721},{"__isSmartRef__":true,"id":2728},{"__isSmartRef__":true,"id":2832},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":3306},{"__isSmartRef__":true,"id":3396},{"__isSmartRef__":true,"id":3486},{"__isSmartRef__":true,"id":3576}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3666},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,192.0)"},"2840":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2841},"derivationIds":[null,"38C77383-EF72-415C-8904-C549EC26C885"],"id":"4D67FC81-F1E7-469E-8A25-C6D3B70276C2","eventHandler":{"__isSmartRef__":true,"id":2842},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2839},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2843},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"2841":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-38c77383-ef72-415c-8904-c549ec26c885","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"2842":{"morph":{"__isSmartRef__":true,"id":2840},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2843":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"2844":{"_NodeClass":["morph","box"],"_NodeId":"morph-ceeaa006-5ca7-404f-9318-e9d9dbbf2a6d","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2845":{"morph":{"__isSmartRef__":true,"id":2839},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2846":{"submorphs":[{"__isSmartRef__":true,"id":2847},{"__isSmartRef__":true,"id":2895},{"__isSmartRef__":true,"id":2955}],"scripts":[{"__isSmartRef__":true,"id":2970},{"__isSmartRef__":true,"id":2972}],"shape":{"__isSmartRef__":true,"id":2973},"derivationIds":[null,"F1B5D902-BD3A-464B-B26E-92275834F9AB"],"id":"460F391C-2548-4118-AD10-21F66A2C3D9B","eventHandler":{"__isSmartRef__":true,"id":2974},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1594},"lifeBar":{"__isSmartRef__":true,"id":2847},"deathAnimation":{"__isSmartRef__":true,"id":2895},"owner":{"__isSmartRef__":true,"id":644},"character":{"__isSmartRef__":true,"id":2955},"animateScript":{"__isSmartRef__":true,"id":2970},"isBusy":false,"lastSpeedTimestamp":1340705400936,"walkScript":{"__isSmartRef__":true,"id":2972},"__serializedExpressions__":["_Position","direction"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2975},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,192.0)","direction":"lively.pt(0.0,1.0)"},"2847":{"submorphs":[],"scripts":[],"id":"2FD2C8E8-69B1-4C81-BC3D-DB9FBBC5D8D3","shape":{"__isSmartRef__":true,"id":2848},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LifeBar3","partsBinMetaInfo":{"__isSmartRef__":true,"id":2849},"eventHandler":{"__isSmartRef__":true,"id":2864},"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","8872CA7B-AEBD-45E8-8D7A-8C16B7073561","80DA36FA-D45D-40CB-8D5D-84D7286C44D7"],"partTests":{"__isSmartRef__":true,"id":2865},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","character":{"__isSmartRef__":true,"id":2846},"owner":{"__isSmartRef__":true,"id":2846},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2870},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,-13.0)"},"2848":{"_BorderWidth":1,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,8.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(151,255,0)","_Padding":"lively.rect(0,0,0,0)"},"2849":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2852},{"__isSmartRef__":true,"id":2854},{"__isSmartRef__":true,"id":2856},{"__isSmartRef__":true,"id":2858},{"__isSmartRef__":true,"id":2860},{"__isSmartRef__":true,"id":2862}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2850":{"date":{"__isSmartRef__":true,"id":2851},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2851":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"2852":{"date":{"__isSmartRef__":true,"id":2853},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2853":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"2854":{"date":{"__isSmartRef__":true,"id":2855},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2855":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"2856":{"date":{"__isSmartRef__":true,"id":2857},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2857":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"2858":{"date":{"__isSmartRef__":true,"id":2859},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"2859":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"2860":{"date":{"__isSmartRef__":true,"id":2861},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"2861":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"2862":{"date":{"__isSmartRef__":true,"id":2863},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"2863":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (Central Europe Daylight Time)"},"2864":{"morph":{"__isSmartRef__":true,"id":2847},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2865":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2866}},"2866":{"test01IsMorph":{"__isSmartRef__":true,"id":2867}},"2867":{"varMapping":{"__isSmartRef__":true,"id":2868},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2868":{"this":{"__isSmartRef__":true,"id":2865}},"2869":{},"2870":{"setColorForWidth":{"__isSmartRef__":true,"id":2871},"reset":{"__isSmartRef__":true,"id":2875},"hit":{"__isSmartRef__":true,"id":2879},"extent":{"__isSmartRef__":true,"id":2883},"isDead":{"__isSmartRef__":true,"id":2887},"lifeLoss":{"__isSmartRef__":true,"id":2891},"heal":{"__isSmartRef__":true,"id":2875}},"2871":{"varMapping":{"__isSmartRef__":true,"id":2872},"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":2873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2872":{"this":{"__isSmartRef__":true,"id":2847}},"2873":{"timestamp":{"__isSmartRef__":true,"id":2874},"user":"timfelgentreff","tags":[]},"2874":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (Central Europe Daylight Time)"},"2875":{"varMapping":{"__isSmartRef__":true,"id":2876},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":2877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2876":{"this":{"__isSmartRef__":true,"id":2847}},"2877":{"timestamp":{"__isSmartRef__":true,"id":2878},"user":"timfelgentreff","tags":[]},"2878":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (Central Europe Daylight Time)"},"2879":{"varMapping":{"__isSmartRef__":true,"id":2880},"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":2881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2880":{"this":{"__isSmartRef__":true,"id":2847}},"2881":{"timestamp":{"__isSmartRef__":true,"id":2882},"user":"timfelgentreff","tags":[]},"2882":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (Central Europe Daylight Time)"},"2883":{"varMapping":{"__isSmartRef__":true,"id":2884},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":2885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2884":{"this":{"__isSmartRef__":true,"id":2847}},"2885":{"timestamp":{"__isSmartRef__":true,"id":2886},"user":"timfelgentreff","tags":[]},"2886":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (Central Europe Daylight Time)"},"2887":{"varMapping":{"__isSmartRef__":true,"id":2888},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":2889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2888":{"this":{"__isSmartRef__":true,"id":2847}},"2889":{"timestamp":{"__isSmartRef__":true,"id":2890},"user":"timfelgentreff","tags":[]},"2890":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (Central Europe Daylight Time)"},"2891":{"varMapping":{"__isSmartRef__":true,"id":2892},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":2893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2892":{"this":{"__isSmartRef__":true,"id":2847}},"2893":{"timestamp":{"__isSmartRef__":true,"id":2894},"user":"timfelgentreff","tags":[]},"2894":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (Central Europe Daylight Time)"},"2895":{"submorphs":[{"__isSmartRef__":true,"id":2896}],"scripts":[],"id":"015252A2-C0BF-4E50-B4C8-447FE931D17F","shape":{"__isSmartRef__":true,"id":2919},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"DeathAnimation3","partsBinMetaInfo":{"__isSmartRef__":true,"id":2920},"eventHandler":{"__isSmartRef__":true,"id":2933},"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","DC6AF031-4E21-4076-ABC3-9D13F29725A5","F6ABEB9D-036E-4DD5-B9C9-C6A10D237758"],"partTests":{"__isSmartRef__":true,"id":2934},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":2896},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","character":{"__isSmartRef__":true,"id":2846},"owner":{"__isSmartRef__":true,"id":2846},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2939},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"2896":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2897},"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","DD557BF7-D160-41F2-92B9-E07260DA4032","699B03B1-F178-4C74-B26B-7782B4B91A31"],"id":"09D2337D-6869-48FA-BEFA-0E1A2B789E82","eventHandler":{"__isSmartRef__":true,"id":2898},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2899},"moved":true,"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":2895},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2914},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"2897":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"2898":{"morph":{"__isSmartRef__":true,"id":2896},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2899":{"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":2900},{"__isSmartRef__":true,"id":2902},{"__isSmartRef__":true,"id":2904},{"__isSmartRef__":true,"id":2906},{"__isSmartRef__":true,"id":2908},{"__isSmartRef__":true,"id":2910},{"__isSmartRef__":true,"id":2912}],"migrationLevel":4,"revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2900":{"date":{"__isSmartRef__":true,"id":2901},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"2901":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"2902":{"date":{"__isSmartRef__":true,"id":2903},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"2903":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"2904":{"date":{"__isSmartRef__":true,"id":2905},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"2905":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"2906":{"date":{"__isSmartRef__":true,"id":2907},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"2907":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"2908":{"date":{"__isSmartRef__":true,"id":2909},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"2909":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"2910":{"date":{"__isSmartRef__":true,"id":2911},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"2911":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"2912":{"date":{"__isSmartRef__":true,"id":2913},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"2913":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"2914":{"soliloquize":{"__isSmartRef__":true,"id":2915}},"2915":{"varMapping":{"__isSmartRef__":true,"id":2916},"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":2917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2916":{"this":{"__isSmartRef__":true,"id":2896}},"2917":{"timestamp":{"__isSmartRef__":true,"id":2918},"user":"lauritz","tags":[]},"2918":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"2919":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2920":{"partsSpaceName":"PartsBin/Basic","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":2921},{"__isSmartRef__":true,"id":2923},{"__isSmartRef__":true,"id":2925},{"__isSmartRef__":true,"id":2927},{"__isSmartRef__":true,"id":2929},{"__isSmartRef__":true,"id":2931}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2921":{"date":{"__isSmartRef__":true,"id":2922},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2922":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"2923":{"date":{"__isSmartRef__":true,"id":2924},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2924":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"2925":{"date":{"__isSmartRef__":true,"id":2926},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2926":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"2927":{"date":{"__isSmartRef__":true,"id":2928},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2928":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"2929":{"date":{"__isSmartRef__":true,"id":2930},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"2930":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"2931":{"date":{"__isSmartRef__":true,"id":2932},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"2932":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"2933":{"morph":{"__isSmartRef__":true,"id":2895},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2934":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2935}},"2935":{"test01IsMorph":{"__isSmartRef__":true,"id":2936}},"2936":{"varMapping":{"__isSmartRef__":true,"id":2937},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2937":{"this":{"__isSmartRef__":true,"id":2934}},"2938":{},"2939":{"die":{"__isSmartRef__":true,"id":2940},"reset":{"__isSmartRef__":true,"id":2943},"nextImage":{"__isSmartRef__":true,"id":2947},"start":{"__isSmartRef__":true,"id":2951}},"2940":{"varMapping":{"__isSmartRef__":true,"id":2941},"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":2942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2941":{"this":{"__isSmartRef__":true,"id":2895}},"2942":{},"2943":{"varMapping":{"__isSmartRef__":true,"id":2944},"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":2945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2944":{"this":{"__isSmartRef__":true,"id":2895}},"2945":{"timestamp":{"__isSmartRef__":true,"id":2946},"user":"timfelgentreff","tags":[]},"2946":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (Central Europe Daylight Time)"},"2947":{"varMapping":{"__isSmartRef__":true,"id":2948},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":2949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2948":{"this":{"__isSmartRef__":true,"id":2895}},"2949":{"timestamp":{"__isSmartRef__":true,"id":2950},"user":"timfelgentreff","tags":[]},"2950":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (Central Europe Daylight Time)"},"2951":{"varMapping":{"__isSmartRef__":true,"id":2952},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":2953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2952":{"this":{"__isSmartRef__":true,"id":2895}},"2953":{"timestamp":{"__isSmartRef__":true,"id":2954},"user":"timfelgentreff","tags":[]},"2954":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (Central Europe Daylight Time)"},"2955":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2956},"derivationIds":[null,"DDEAC478-2517-4549-94EE-CDDC72BCB67A","7C9FE591-7783-4A14-A4C6-3202BFD06CDB","1880E48F-8410-43CD-B356-0A1E07E68A4A","349E4A9E-4887-4104-A7BB-643540FE1CD8"],"id":"76C3A3B5-A470-47CE-ACA7-EB3F8C193FFB","eventHandler":{"__isSmartRef__":true,"id":2957},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"OctocatCharacter1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2958},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":2846},"eventsAreIgnored":true,"soloSentences":[null],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2965},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"2956":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/octocat.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"2957":{"morph":{"__isSmartRef__":true,"id":2955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2958":{"partName":"OctocatCharacter","requiredModules":[],"comment":"Look at me! I'm doing the octo dance!","changes":[{"__isSmartRef__":true,"id":2959},{"__isSmartRef__":true,"id":2961},{"__isSmartRef__":true,"id":2963}],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2959":{"date":{"__isSmartRef__":true,"id":2960},"author":"tessi","message":"","id":"F614B373-FE65-419F-AC36-21BCCE60AEE6"},"2960":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:36:27 GMT+0200 (Central Europe Daylight Time)"},"2961":{"date":{"__isSmartRef__":true,"id":2962},"author":"tessi","message":"","id":"977A2D23-B062-4F60-AB60-63CF3624D817"},"2962":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:33:30 GMT+0200 (Central Europe Daylight Time)"},"2963":{"date":{"__isSmartRef__":true,"id":2964},"author":"tessi","message":"octocat does not soliloquize (for now!?)","id":"0F039063-F9E3-4503-B1ED-C1C7C887679B"},"2964":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:04 GMT+0200 (Central Europe Daylight Time)"},"2965":{"soliloquize":{"__isSmartRef__":true,"id":2966}},"2966":{"varMapping":{"__isSmartRef__":true,"id":2967},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n undefined\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":2968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2967":{"this":{"__isSmartRef__":true,"id":2955}},"2968":{"timestamp":{"__isSmartRef__":true,"id":2969},"user":"tessi","tags":[]},"2969":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:38:40 GMT+0200 (Central Europe Daylight Time)"},"2970":{"target":{"__isSmartRef__":true,"id":2846},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":2971}],"stopped":false,"tickTime":3000,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"2971":{},"2972":{"target":{"__isSmartRef__":true,"id":2846},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":2839}]],"stopped":true,"tickTime":10,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"2973":{"_NodeClass":["morph","box"],"_NodeId":"morph-f1b5d902-bd3a-464b-b26e-92275834f9ab","_BorderWidth":1,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2974":{"morph":{"__isSmartRef__":true,"id":2846},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2975":{"setDevStyle":{"__isSmartRef__":true,"id":2976},"setNormalStyle":{"__isSmartRef__":true,"id":2979},"tileSize":{"__isSmartRef__":true,"id":2982},"become":{"__isSmartRef__":true,"id":2985},"walkUntilReached":{"__isSmartRef__":true,"id":2988},"onMouseDown":{"__isSmartRef__":true,"id":2991},"walkTo":{"__isSmartRef__":true,"id":2998},"currentTile":{"__isSmartRef__":true,"id":3001},"toolbox":{"__isSmartRef__":true,"id":3004},"setCurrentSpeed":{"__isSmartRef__":true,"id":3007},"getCurrentSpeed":{"__isSmartRef__":true,"id":3010},"isWalking":{"__isSmartRef__":true,"id":3013},"select":{"__isSmartRef__":true,"id":3016},"deselect":{"__isSmartRef__":true,"id":3019},"becomeRandomCharacter":{"__isSmartRef__":true,"id":3022},"reset":{"__isSmartRef__":true,"id":3025},"setDirectionToTile":{"__isSmartRef__":true,"id":3028},"getDirection":{"__isSmartRef__":true,"id":3031},"setDirection":{"__isSmartRef__":true,"id":3034},"setPosition":{"__isSmartRef__":true,"id":3037},"say":{"__isSmartRef__":true,"id":3044},"soliloquize":{"__isSmartRef__":true,"id":3047},"characterType":{"__isSmartRef__":true,"id":3050},"animate":{"__isSmartRef__":true,"id":3053},"doSomething":{"__isSmartRef__":true,"id":3056},"map":{"__isSmartRef__":true,"id":3059},"game":{"__isSmartRef__":true,"id":3062},"setup":{"__isSmartRef__":true,"id":3065},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":3068},"startConversation":{"__isSmartRef__":true,"id":3075},"startConversationWith":{"__isSmartRef__":true,"id":3078},"shallowCopy":{"__isSmartRef__":true,"id":3081},"conversation":{"__isSmartRef__":true,"id":3084},"answer":{"__isSmartRef__":true,"id":3087},"hideTextBubble":{"__isSmartRef__":true,"id":3090},"aStar":{"__isSmartRef__":true,"id":3093},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":3096},"aStarWalkPath":{"__isSmartRef__":true,"id":3099},"chatBot":{"__isSmartRef__":true,"id":3102},"getHit":{"__isSmartRef__":true,"id":3105},"becomePlayer":{"__isSmartRef__":true,"id":3108},"fight":{"__isSmartRef__":true,"id":3111},"fightPhrases":{"__isSmartRef__":true,"id":3114},"randomQuestions":{"__isSmartRef__":true,"id":3117},"randomAnswersFor":{"__isSmartRef__":true,"id":3120},"executeFightTurnAsking":{"__isSmartRef__":true,"id":3123},"heal":{"__isSmartRef__":true,"id":3126},"isDead":{"__isSmartRef__":true,"id":3129}},"2976":{"varMapping":{"__isSmartRef__":true,"id":2977},"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":2978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2977":{"this":{"__isSmartRef__":true,"id":2846}},"2978":{"timestamp":{"__isSmartRef__":true,"id":1817},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1818},"declaredObject":""},"2979":{"varMapping":{"__isSmartRef__":true,"id":2980},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":2981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2980":{"this":{"__isSmartRef__":true,"id":2846}},"2981":{"timestamp":{"__isSmartRef__":true,"id":1935},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1932},"declaredObject":""},"2982":{"varMapping":{"__isSmartRef__":true,"id":2983},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":2984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2983":{"this":{"__isSmartRef__":true,"id":2846}},"2984":{"timestamp":{"__isSmartRef__":true,"id":1939},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1936},"declaredObject":""},"2985":{"varMapping":{"__isSmartRef__":true,"id":2986},"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":2987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2986":{"this":{"__isSmartRef__":true,"id":2846}},"2987":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1940},"declaredObject":""},"2988":{"varMapping":{"__isSmartRef__":true,"id":2989},"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":2990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2989":{"this":{"__isSmartRef__":true,"id":2846}},"2990":{"timestamp":{"__isSmartRef__":true,"id":1946},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1943},"declaredObject":""},"2991":{"varMapping":{"__isSmartRef__":true,"id":2992},"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":2997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2992":{"this":{"__isSmartRef__":true,"id":2846},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2993}},"2993":{"$super":{"__isSmartRef__":true,"id":2994}},"2994":{"varMapping":{"__isSmartRef__":true,"id":2995},"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":2996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2995":{"obj":{"__isSmartRef__":true,"id":2846},"name":"onMouseDown"},"2996":{},"2997":{"timestamp":{"__isSmartRef__":true,"id":1954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1947},"declaredObject":""},"2998":{"varMapping":{"__isSmartRef__":true,"id":2999},"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":3000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2999":{"this":{"__isSmartRef__":true,"id":2846}},"3000":{"timestamp":{"__isSmartRef__":true,"id":1958},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1955},"declaredObject":""},"3001":{"varMapping":{"__isSmartRef__":true,"id":3002},"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":3003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3002":{"this":{"__isSmartRef__":true,"id":2846}},"3003":{"timestamp":{"__isSmartRef__":true,"id":1962},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1959},"declaredObject":""},"3004":{"varMapping":{"__isSmartRef__":true,"id":3005},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3005":{"this":{"__isSmartRef__":true,"id":2846}},"3006":{"timestamp":{"__isSmartRef__":true,"id":1966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1963},"declaredObject":""},"3007":{"varMapping":{"__isSmartRef__":true,"id":3008},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":3009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3008":{"this":{"__isSmartRef__":true,"id":2846}},"3009":{"timestamp":{"__isSmartRef__":true,"id":1970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1967},"declaredObject":""},"3010":{"varMapping":{"__isSmartRef__":true,"id":3011},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":3012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3011":{"this":{"__isSmartRef__":true,"id":2846}},"3012":{"timestamp":{"__isSmartRef__":true,"id":1974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1971},"declaredObject":""},"3013":{"varMapping":{"__isSmartRef__":true,"id":3014},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":3015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3014":{"this":{"__isSmartRef__":true,"id":2846}},"3015":{"timestamp":{"__isSmartRef__":true,"id":1978},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1975},"declaredObject":""},"3016":{"varMapping":{"__isSmartRef__":true,"id":3017},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":3018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3017":{"this":{"__isSmartRef__":true,"id":2846}},"3018":{"timestamp":{"__isSmartRef__":true,"id":1982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1979},"declaredObject":""},"3019":{"varMapping":{"__isSmartRef__":true,"id":3020},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":3021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3020":{"this":{"__isSmartRef__":true,"id":2846}},"3021":{"timestamp":{"__isSmartRef__":true,"id":1986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1983},"declaredObject":""},"3022":{"varMapping":{"__isSmartRef__":true,"id":3023},"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":3024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3023":{"this":{"__isSmartRef__":true,"id":2846}},"3024":{"timestamp":{"__isSmartRef__":true,"id":1990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1987},"declaredObject":""},"3025":{"varMapping":{"__isSmartRef__":true,"id":3026},"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":3027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3026":{"this":{"__isSmartRef__":true,"id":2846}},"3027":{"timestamp":{"__isSmartRef__":true,"id":1994},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1991},"declaredObject":""},"3028":{"varMapping":{"__isSmartRef__":true,"id":3029},"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":3030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3029":{"this":{"__isSmartRef__":true,"id":2846}},"3030":{"timestamp":{"__isSmartRef__":true,"id":1998},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1995},"declaredObject":""},"3031":{"varMapping":{"__isSmartRef__":true,"id":3032},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":3033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3032":{"this":{"__isSmartRef__":true,"id":2846}},"3033":{"timestamp":{"__isSmartRef__":true,"id":2002},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1999},"declaredObject":""},"3034":{"varMapping":{"__isSmartRef__":true,"id":3035},"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":3036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3035":{"this":{"__isSmartRef__":true,"id":2846}},"3036":{"timestamp":{"__isSmartRef__":true,"id":2006},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2003},"declaredObject":""},"3037":{"varMapping":{"__isSmartRef__":true,"id":3038},"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":3043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3038":{"this":{"__isSmartRef__":true,"id":2846},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3039}},"3039":{"$super":{"__isSmartRef__":true,"id":3040}},"3040":{"varMapping":{"__isSmartRef__":true,"id":3041},"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":3042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3041":{"obj":{"__isSmartRef__":true,"id":2846},"name":"setPosition"},"3042":{},"3043":{"timestamp":{"__isSmartRef__":true,"id":2014},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2007},"declaredObject":""},"3044":{"varMapping":{"__isSmartRef__":true,"id":3045},"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":3046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3045":{"this":{"__isSmartRef__":true,"id":2846}},"3046":{"timestamp":{"__isSmartRef__":true,"id":2018},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2015},"declaredObject":""},"3047":{"varMapping":{"__isSmartRef__":true,"id":3048},"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":3049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3048":{"this":{"__isSmartRef__":true,"id":2846}},"3049":{"timestamp":{"__isSmartRef__":true,"id":2022},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2019},"declaredObject":""},"3050":{"varMapping":{"__isSmartRef__":true,"id":3051},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":3052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3051":{"this":{"__isSmartRef__":true,"id":2846}},"3052":{"timestamp":{"__isSmartRef__":true,"id":2026},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2023},"declaredObject":""},"3053":{"varMapping":{"__isSmartRef__":true,"id":3054},"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":3055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3054":{"this":{"__isSmartRef__":true,"id":2846}},"3055":{"timestamp":{"__isSmartRef__":true,"id":2030},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2027},"declaredObject":""},"3056":{"varMapping":{"__isSmartRef__":true,"id":3057},"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":3058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3057":{"this":{"__isSmartRef__":true,"id":2846}},"3058":{"timestamp":{"__isSmartRef__":true,"id":2034},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2031},"declaredObject":""},"3059":{"varMapping":{"__isSmartRef__":true,"id":3060},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":3061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3060":{"this":{"__isSmartRef__":true,"id":2846}},"3061":{"timestamp":{"__isSmartRef__":true,"id":2038},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2035},"declaredObject":""},"3062":{"varMapping":{"__isSmartRef__":true,"id":3063},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":3064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3063":{"this":{"__isSmartRef__":true,"id":2846}},"3064":{"timestamp":{"__isSmartRef__":true,"id":2042},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2039},"declaredObject":""},"3065":{"varMapping":{"__isSmartRef__":true,"id":3066},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":3067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3066":{"this":{"__isSmartRef__":true,"id":2846}},"3067":{"timestamp":{"__isSmartRef__":true,"id":2046},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2043},"declaredObject":""},"3068":{"varMapping":{"__isSmartRef__":true,"id":3069},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":3074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3069":{"this":{"__isSmartRef__":true,"id":2846},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3070}},"3070":{"$super":{"__isSmartRef__":true,"id":3071}},"3071":{"varMapping":{"__isSmartRef__":true,"id":3072},"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":3073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3072":{"obj":{"__isSmartRef__":true,"id":2846},"name":"copyToPartsBinWithUserRequest"},"3073":{},"3074":{"timestamp":{"__isSmartRef__":true,"id":2054},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2047},"declaredObject":""},"3075":{"varMapping":{"__isSmartRef__":true,"id":3076},"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":3077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3076":{"this":{"__isSmartRef__":true,"id":2846}},"3077":{"timestamp":{"__isSmartRef__":true,"id":2058},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2055},"declaredObject":""},"3078":{"varMapping":{"__isSmartRef__":true,"id":3079},"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":3080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3079":{"this":{"__isSmartRef__":true,"id":2846}},"3080":{"timestamp":{"__isSmartRef__":true,"id":2062},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2059},"declaredObject":""},"3081":{"varMapping":{"__isSmartRef__":true,"id":3082},"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":3083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3082":{"this":{"__isSmartRef__":true,"id":2846}},"3083":{"timestamp":{"__isSmartRef__":true,"id":2066},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2063},"declaredObject":""},"3084":{"varMapping":{"__isSmartRef__":true,"id":3085},"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":3086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3085":{"this":{"__isSmartRef__":true,"id":2846}},"3086":{"timestamp":{"__isSmartRef__":true,"id":2070},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2067},"declaredObject":""},"3087":{"varMapping":{"__isSmartRef__":true,"id":3088},"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":3089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3088":{"this":{"__isSmartRef__":true,"id":2846}},"3089":{"timestamp":{"__isSmartRef__":true,"id":2074},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2071},"declaredObject":""},"3090":{"varMapping":{"__isSmartRef__":true,"id":3091},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3091":{"this":{"__isSmartRef__":true,"id":2846}},"3092":{"timestamp":{"__isSmartRef__":true,"id":2078},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2075},"declaredObject":""},"3093":{"varMapping":{"__isSmartRef__":true,"id":3094},"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":3095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3094":{"this":{"__isSmartRef__":true,"id":2846}},"3095":{"timestamp":{"__isSmartRef__":true,"id":2082},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2079},"declaredObject":""},"3096":{"varMapping":{"__isSmartRef__":true,"id":3097},"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":3098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3097":{"this":{"__isSmartRef__":true,"id":2846}},"3098":{"timestamp":{"__isSmartRef__":true,"id":2086},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2083},"declaredObject":""},"3099":{"varMapping":{"__isSmartRef__":true,"id":3100},"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":3101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3100":{"this":{"__isSmartRef__":true,"id":2846}},"3101":{"timestamp":{"__isSmartRef__":true,"id":2090},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2087},"declaredObject":""},"3102":{"varMapping":{"__isSmartRef__":true,"id":3103},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":3104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3103":{"this":{"__isSmartRef__":true,"id":2846}},"3104":{"timestamp":{"__isSmartRef__":true,"id":2094},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2091},"declaredObject":""},"3105":{"varMapping":{"__isSmartRef__":true,"id":3106},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":3107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3106":{"this":{"__isSmartRef__":true,"id":2846}},"3107":{"timestamp":{"__isSmartRef__":true,"id":2098},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2095},"declaredObject":""},"3108":{"varMapping":{"__isSmartRef__":true,"id":3109},"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":3110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3109":{"this":{"__isSmartRef__":true,"id":2846}},"3110":{"timestamp":{"__isSmartRef__":true,"id":2102},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2099},"declaredObject":""},"3111":{"varMapping":{"__isSmartRef__":true,"id":3112},"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":3113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3112":{"this":{"__isSmartRef__":true,"id":2846}},"3113":{"timestamp":{"__isSmartRef__":true,"id":2106},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2103},"declaredObject":""},"3114":{"varMapping":{"__isSmartRef__":true,"id":3115},"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":3116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3115":{"this":{"__isSmartRef__":true,"id":2846}},"3116":{"timestamp":{"__isSmartRef__":true,"id":2110},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2107},"declaredObject":""},"3117":{"varMapping":{"__isSmartRef__":true,"id":3118},"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":3119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3118":{"this":{"__isSmartRef__":true,"id":2846}},"3119":{"timestamp":{"__isSmartRef__":true,"id":2114},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2111},"declaredObject":""},"3120":{"varMapping":{"__isSmartRef__":true,"id":3121},"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":3122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3121":{"this":{"__isSmartRef__":true,"id":2846}},"3122":{"timestamp":{"__isSmartRef__":true,"id":2118},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2115},"declaredObject":""},"3123":{"varMapping":{"__isSmartRef__":true,"id":3124},"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":3125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3124":{"this":{"__isSmartRef__":true,"id":2846}},"3125":{"timestamp":{"__isSmartRef__":true,"id":2122},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2119},"declaredObject":""},"3126":{"varMapping":{"__isSmartRef__":true,"id":3127},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":3128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3127":{"this":{"__isSmartRef__":true,"id":2846}},"3128":{"timestamp":{"__isSmartRef__":true,"id":2126},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2123},"declaredObject":""},"3129":{"varMapping":{"__isSmartRef__":true,"id":3130},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":3131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3130":{"this":{"__isSmartRef__":true,"id":2846}},"3131":{"timestamp":{"__isSmartRef__":true,"id":2130},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2127},"declaredObject":""},"3132":{"submorphs":[{"__isSmartRef__":true,"id":3133},{"__isSmartRef__":true,"id":3137}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3221},"derivationIds":[null,"2089BBC8-FB40-4C96-8C37-8E75AD17311E"],"id":"F1B9D698-C941-44C4-912F-BFB0F4F7185C","eventHandler":{"__isSmartRef__":true,"id":3222},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":4,"column":3,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":3133},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":3137}],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3223},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,192.0)"},"3133":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3134},"derivationIds":[null,"4387AE06-96F3-4BEC-BA8B-60D37EDC40ED"],"id":"9E646C8F-BA01-4B9D-B3B8-54858AA5EFB0","eventHandler":{"__isSmartRef__":true,"id":3135},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3132},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3136},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"3134":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-4387ae06-96f3-4bec-ba8b-60d37edc40ed","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"3135":{"morph":{"__isSmartRef__":true,"id":3133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3136":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"3137":{"submorphs":[{"__isSmartRef__":true,"id":3138}],"scripts":[],"id":"B715FD41-CFB6-44DF-B02B-91B5B10B9577","shape":{"__isSmartRef__":true,"id":3149},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Thing2","partsBinMetaInfo":{"__isSmartRef__":true,"id":676},"eventHandler":{"__isSmartRef__":true,"id":3150},"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","79ADC58C-C525-4315-A12A-2B10617C4658"],"partTests":{"__isSmartRef__":true,"id":3151},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":3132},"thing":{"__isSmartRef__":true,"id":3138},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":3132}],"owner":{"__isSmartRef__":true,"id":3132},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3156},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"3138":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3139},"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","5C698B0E-588C-4CB4-9295-91AE8282BBAD"],"id":"C848EB85-D350-4D7D-ADC7-C183A5D1E346","eventHandler":{"__isSmartRef__":true,"id":3140},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"StoneThing3","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":766},"moved":true,"isThing":true,"_ClipMode":"visible","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3137},"_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3141},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1.1,7.0)"},"3139":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/stone.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(46.9,41.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3140":{"morph":{"__isSmartRef__":true,"id":3138},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3141":{"dropOn":{"__isSmartRef__":true,"id":3142}},"3142":{"varMapping":{"__isSmartRef__":true,"id":3143},"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":3148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3143":{"this":{"__isSmartRef__":true,"id":3138},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3144}},"3144":{"$super":{"__isSmartRef__":true,"id":3145}},"3145":{"varMapping":{"__isSmartRef__":true,"id":3146},"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":3147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3146":{"obj":{"__isSmartRef__":true,"id":3138},"name":"dropOn"},"3147":{},"3148":{},"3149":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"3150":{"morph":{"__isSmartRef__":true,"id":3137},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3151":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3152}},"3152":{"test01IsMorph":{"__isSmartRef__":true,"id":3153}},"3153":{"varMapping":{"__isSmartRef__":true,"id":3154},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3154":{"this":{"__isSmartRef__":true,"id":3151}},"3155":{},"3156":{"setDevStyle":{"__isSmartRef__":true,"id":3157},"setNormalStyle":{"__isSmartRef__":true,"id":3161},"become":{"__isSmartRef__":true,"id":3165},"onMouseDown":{"__isSmartRef__":true,"id":3169},"toolbox":{"__isSmartRef__":true,"id":3177},"zIndex":{"__isSmartRef__":true,"id":3181},"becomeRandomThing":{"__isSmartRef__":true,"id":3185},"reset":{"__isSmartRef__":true,"id":3189},"registerAsObstacle":{"__isSmartRef__":true,"id":3193},"deregisterAsObstacle":{"__isSmartRef__":true,"id":3197},"tileSize":{"__isSmartRef__":true,"id":3201},"dropOn":{"__isSmartRef__":true,"id":3205},"map":{"__isSmartRef__":true,"id":3213},"game":{"__isSmartRef__":true,"id":3217}},"3157":{"varMapping":{"__isSmartRef__":true,"id":3158},"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":3159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3158":{"this":{"__isSmartRef__":true,"id":3137}},"3159":{"timestamp":{"__isSmartRef__":true,"id":3160},"user":"timfelgentreff","tags":[]},"3160":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (Central Europe Daylight Time)"},"3161":{"varMapping":{"__isSmartRef__":true,"id":3162},"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":3163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3162":{"this":{"__isSmartRef__":true,"id":3137}},"3163":{"timestamp":{"__isSmartRef__":true,"id":3164},"user":"tessi","tags":[]},"3164":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (Central Europe Daylight Time)"},"3165":{"varMapping":{"__isSmartRef__":true,"id":3166},"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":3167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3166":{"this":{"__isSmartRef__":true,"id":3137}},"3167":{"timestamp":{"__isSmartRef__":true,"id":3168},"user":"timfelgentreff","tags":[]},"3168":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (Central Europe Daylight Time)"},"3169":{"varMapping":{"__isSmartRef__":true,"id":3170},"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":3175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3170":{"this":{"__isSmartRef__":true,"id":3137},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3171}},"3171":{"$super":{"__isSmartRef__":true,"id":3172}},"3172":{"varMapping":{"__isSmartRef__":true,"id":3173},"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":3174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3173":{"obj":{"__isSmartRef__":true,"id":3137},"name":"onMouseDown"},"3174":{},"3175":{"timestamp":{"__isSmartRef__":true,"id":3176},"user":"tessi","tags":[]},"3176":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (Central Europe Daylight Time)"},"3177":{"varMapping":{"__isSmartRef__":true,"id":3178},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3178":{"this":{"__isSmartRef__":true,"id":3137}},"3179":{"timestamp":{"__isSmartRef__":true,"id":3180},"user":"tessi","tags":[]},"3180":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (Central Europe Daylight Time)"},"3181":{"varMapping":{"__isSmartRef__":true,"id":3182},"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":3183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3182":{"this":{"__isSmartRef__":true,"id":3137}},"3183":{"timestamp":{"__isSmartRef__":true,"id":3184},"user":"timfelgentreff","tags":[]},"3184":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (Central Europe Daylight Time)"},"3185":{"varMapping":{"__isSmartRef__":true,"id":3186},"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":3187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3186":{"this":{"__isSmartRef__":true,"id":3137}},"3187":{"timestamp":{"__isSmartRef__":true,"id":3188},"user":"tessi","tags":[]},"3188":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (Central Europe Daylight Time)"},"3189":{"varMapping":{"__isSmartRef__":true,"id":3190},"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":3191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3190":{"this":{"__isSmartRef__":true,"id":3137}},"3191":{"timestamp":{"__isSmartRef__":true,"id":3192},"user":"tessi","tags":[]},"3192":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (Central Europe Daylight Time)"},"3193":{"varMapping":{"__isSmartRef__":true,"id":3194},"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":3195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3194":{"this":{"__isSmartRef__":true,"id":3137}},"3195":{"timestamp":{"__isSmartRef__":true,"id":3196},"user":"timfelgentreff","tags":[]},"3196":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (Central Europe Daylight Time)"},"3197":{"varMapping":{"__isSmartRef__":true,"id":3198},"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":3199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3198":{"this":{"__isSmartRef__":true,"id":3137}},"3199":{"timestamp":{"__isSmartRef__":true,"id":3200},"user":"timfelgentreff","tags":[]},"3200":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (Central Europe Daylight Time)"},"3201":{"varMapping":{"__isSmartRef__":true,"id":3202},"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":3203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3202":{"this":{"__isSmartRef__":true,"id":3137}},"3203":{"timestamp":{"__isSmartRef__":true,"id":3204},"user":"timfelgentreff","tags":[]},"3204":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (Central Europe Daylight Time)"},"3205":{"varMapping":{"__isSmartRef__":true,"id":3206},"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":3211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3206":{"this":{"__isSmartRef__":true,"id":3137},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3207}},"3207":{"$super":{"__isSmartRef__":true,"id":3208}},"3208":{"varMapping":{"__isSmartRef__":true,"id":3209},"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":3210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3209":{"obj":{"__isSmartRef__":true,"id":3137},"name":"dropOn"},"3210":{},"3211":{"timestamp":{"__isSmartRef__":true,"id":3212},"user":"timfelgentreff","tags":[]},"3212":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (Central Europe Daylight Time)"},"3213":{"varMapping":{"__isSmartRef__":true,"id":3214},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":3215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3214":{"this":{"__isSmartRef__":true,"id":3137}},"3215":{"timestamp":{"__isSmartRef__":true,"id":3216},"user":"tessi","tags":[]},"3216":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (Central Europe Daylight Time)"},"3217":{"varMapping":{"__isSmartRef__":true,"id":3218},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":3219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3218":{"this":{"__isSmartRef__":true,"id":3137}},"3219":{"timestamp":{"__isSmartRef__":true,"id":3220},"user":"tessi","tags":[]},"3220":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (Central Europe Daylight Time)"},"3221":{"_NodeClass":["morph","box"],"_NodeId":"morph-2089bbc8-fb40-4c96-8c37-8e75ad17311e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3222":{"morph":{"__isSmartRef__":true,"id":3132},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3223":{"setDevStyle":{"__isSmartRef__":true,"id":3224},"setNormalStyle":{"__isSmartRef__":true,"id":3227},"tileSize":{"__isSmartRef__":true,"id":3230},"become":{"__isSmartRef__":true,"id":3233},"onMouseDown":{"__isSmartRef__":true,"id":3236},"setGridPosition":{"__isSmartRef__":true,"id":3243},"toolbox":{"__isSmartRef__":true,"id":3246},"distanceTo":{"__isSmartRef__":true,"id":3249},"tileWasDropped":{"__isSmartRef__":true,"id":3252},"isObstacle":{"__isSmartRef__":true,"id":3255},"neighboursInDirection":{"__isSmartRef__":true,"id":3258},"neighbours":{"__isSmartRef__":true,"id":3261},"zIndex":{"__isSmartRef__":true,"id":3264},"obstacles":{"__isSmartRef__":true,"id":3267},"addObstacle":{"__isSmartRef__":true,"id":3270},"removeObstacle":{"__isSmartRef__":true,"id":3273},"isTile":{"__isSmartRef__":true,"id":3276},"neighbourAt":{"__isSmartRef__":true,"id":3279},"map":{"__isSmartRef__":true,"id":3282},"game":{"__isSmartRef__":true,"id":3285},"reset":{"__isSmartRef__":true,"id":3288},"shallowCopy":{"__isSmartRef__":true,"id":3291},"characters":{"__isSmartRef__":true,"id":3294},"enterTile":{"__isSmartRef__":true,"id":3297},"leaveTile":{"__isSmartRef__":true,"id":3300},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3303}},"3224":{"varMapping":{"__isSmartRef__":true,"id":3225},"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":3226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3225":{"this":{"__isSmartRef__":true,"id":3132}},"3226":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"3227":{"varMapping":{"__isSmartRef__":true,"id":3228},"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":3229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3228":{"this":{"__isSmartRef__":true,"id":3132}},"3229":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"3230":{"varMapping":{"__isSmartRef__":true,"id":3231},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3231":{"this":{"__isSmartRef__":true,"id":3132}},"3232":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"3233":{"varMapping":{"__isSmartRef__":true,"id":3234},"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":3235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3234":{"this":{"__isSmartRef__":true,"id":3132}},"3235":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"3236":{"varMapping":{"__isSmartRef__":true,"id":3237},"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":3242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3237":{"this":{"__isSmartRef__":true,"id":3132},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3238}},"3238":{"$super":{"__isSmartRef__":true,"id":3239}},"3239":{"varMapping":{"__isSmartRef__":true,"id":3240},"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":3241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3240":{"obj":{"__isSmartRef__":true,"id":3132},"name":"onMouseDown"},"3241":{},"3242":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"3243":{"varMapping":{"__isSmartRef__":true,"id":3244},"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":3245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3244":{"this":{"__isSmartRef__":true,"id":3132}},"3245":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"3246":{"varMapping":{"__isSmartRef__":true,"id":3247},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3247":{"this":{"__isSmartRef__":true,"id":3132}},"3248":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"3249":{"varMapping":{"__isSmartRef__":true,"id":3250},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3250":{"this":{"__isSmartRef__":true,"id":3132}},"3251":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"3252":{"varMapping":{"__isSmartRef__":true,"id":3253},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3253":{"this":{"__isSmartRef__":true,"id":3132}},"3254":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"3255":{"varMapping":{"__isSmartRef__":true,"id":3256},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3256":{"this":{"__isSmartRef__":true,"id":3132}},"3257":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3258":{"varMapping":{"__isSmartRef__":true,"id":3259},"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":3260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3259":{"this":{"__isSmartRef__":true,"id":3132}},"3260":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3261":{"varMapping":{"__isSmartRef__":true,"id":3262},"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":3263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3262":{"this":{"__isSmartRef__":true,"id":3132}},"3263":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3264":{"varMapping":{"__isSmartRef__":true,"id":3265},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3265":{"this":{"__isSmartRef__":true,"id":3132}},"3266":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3267":{"varMapping":{"__isSmartRef__":true,"id":3268},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3268":{"this":{"__isSmartRef__":true,"id":3132}},"3269":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"3270":{"varMapping":{"__isSmartRef__":true,"id":3271},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3271":{"this":{"__isSmartRef__":true,"id":3132}},"3272":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3273":{"varMapping":{"__isSmartRef__":true,"id":3274},"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":3275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3274":{"this":{"__isSmartRef__":true,"id":3132}},"3275":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3276":{"varMapping":{"__isSmartRef__":true,"id":3277},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3277":{"this":{"__isSmartRef__":true,"id":3132}},"3278":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3279":{"varMapping":{"__isSmartRef__":true,"id":3280},"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":3281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3280":{"this":{"__isSmartRef__":true,"id":3132}},"3281":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3282":{"varMapping":{"__isSmartRef__":true,"id":3283},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3283":{"this":{"__isSmartRef__":true,"id":3132}},"3284":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3285":{"varMapping":{"__isSmartRef__":true,"id":3286},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3286":{"this":{"__isSmartRef__":true,"id":3132}},"3287":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3288":{"varMapping":{"__isSmartRef__":true,"id":3289},"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":3290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3289":{"this":{"__isSmartRef__":true,"id":3132}},"3290":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3291":{"varMapping":{"__isSmartRef__":true,"id":3292},"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":3293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3292":{"this":{"__isSmartRef__":true,"id":3132}},"3293":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3294":{"varMapping":{"__isSmartRef__":true,"id":3295},"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":3296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3295":{"this":{"__isSmartRef__":true,"id":3132}},"3296":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3297":{"varMapping":{"__isSmartRef__":true,"id":3298},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3298":{"this":{"__isSmartRef__":true,"id":3132}},"3299":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3300":{"varMapping":{"__isSmartRef__":true,"id":3301},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3301":{"this":{"__isSmartRef__":true,"id":3132}},"3302":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3303":{"varMapping":{"__isSmartRef__":true,"id":3304},"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":3305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3304":{"this":{"__isSmartRef__":true,"id":3132}},"3305":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3306":{"submorphs":[{"__isSmartRef__":true,"id":3307}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3311},"derivationIds":[null,"F5BF35D3-CEC6-4BEB-986F-901AE54E29F0"],"id":"DFCA38D3-2103-46F9-A4B7-E131E83B5294","eventHandler":{"__isSmartRef__":true,"id":3312},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":4,"column":5,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":3307},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3313},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,192.0)"},"3307":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3308},"derivationIds":[null,"80D03B4C-3F3A-4AA6-A3B0-1951CBCFBEB6"],"id":"B05C9CAC-3D47-4242-909E-7F9E9BF2ED59","eventHandler":{"__isSmartRef__":true,"id":3309},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3306},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3310},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"3308":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-80d03b4c-3f3a-4aa6-a3b0-1951cbcfbeb6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"3309":{"morph":{"__isSmartRef__":true,"id":3307},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3310":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"3311":{"_NodeClass":["morph","box"],"_NodeId":"morph-f5bf35d3-cec6-4beb-986f-901ae54e29f0","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3312":{"morph":{"__isSmartRef__":true,"id":3306},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3313":{"setDevStyle":{"__isSmartRef__":true,"id":3314},"setNormalStyle":{"__isSmartRef__":true,"id":3317},"tileSize":{"__isSmartRef__":true,"id":3320},"become":{"__isSmartRef__":true,"id":3323},"onMouseDown":{"__isSmartRef__":true,"id":3326},"setGridPosition":{"__isSmartRef__":true,"id":3333},"toolbox":{"__isSmartRef__":true,"id":3336},"distanceTo":{"__isSmartRef__":true,"id":3339},"tileWasDropped":{"__isSmartRef__":true,"id":3342},"isObstacle":{"__isSmartRef__":true,"id":3345},"neighboursInDirection":{"__isSmartRef__":true,"id":3348},"neighbours":{"__isSmartRef__":true,"id":3351},"zIndex":{"__isSmartRef__":true,"id":3354},"obstacles":{"__isSmartRef__":true,"id":3357},"addObstacle":{"__isSmartRef__":true,"id":3360},"removeObstacle":{"__isSmartRef__":true,"id":3363},"isTile":{"__isSmartRef__":true,"id":3366},"neighbourAt":{"__isSmartRef__":true,"id":3369},"map":{"__isSmartRef__":true,"id":3372},"game":{"__isSmartRef__":true,"id":3375},"reset":{"__isSmartRef__":true,"id":3378},"shallowCopy":{"__isSmartRef__":true,"id":3381},"characters":{"__isSmartRef__":true,"id":3384},"enterTile":{"__isSmartRef__":true,"id":3387},"leaveTile":{"__isSmartRef__":true,"id":3390},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3393}},"3314":{"varMapping":{"__isSmartRef__":true,"id":3315},"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":3316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3315":{"this":{"__isSmartRef__":true,"id":3306}},"3316":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"3317":{"varMapping":{"__isSmartRef__":true,"id":3318},"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":3319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3318":{"this":{"__isSmartRef__":true,"id":3306}},"3319":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"3320":{"varMapping":{"__isSmartRef__":true,"id":3321},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3321":{"this":{"__isSmartRef__":true,"id":3306}},"3322":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"3323":{"varMapping":{"__isSmartRef__":true,"id":3324},"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":3325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3324":{"this":{"__isSmartRef__":true,"id":3306}},"3325":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"3326":{"varMapping":{"__isSmartRef__":true,"id":3327},"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":3332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3327":{"this":{"__isSmartRef__":true,"id":3306},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3328}},"3328":{"$super":{"__isSmartRef__":true,"id":3329}},"3329":{"varMapping":{"__isSmartRef__":true,"id":3330},"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":3331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3330":{"obj":{"__isSmartRef__":true,"id":3306},"name":"onMouseDown"},"3331":{},"3332":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"3333":{"varMapping":{"__isSmartRef__":true,"id":3334},"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":3335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3334":{"this":{"__isSmartRef__":true,"id":3306}},"3335":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"3336":{"varMapping":{"__isSmartRef__":true,"id":3337},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3337":{"this":{"__isSmartRef__":true,"id":3306}},"3338":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"3339":{"varMapping":{"__isSmartRef__":true,"id":3340},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3340":{"this":{"__isSmartRef__":true,"id":3306}},"3341":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"3342":{"varMapping":{"__isSmartRef__":true,"id":3343},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3343":{"this":{"__isSmartRef__":true,"id":3306}},"3344":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"3345":{"varMapping":{"__isSmartRef__":true,"id":3346},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3346":{"this":{"__isSmartRef__":true,"id":3306}},"3347":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3348":{"varMapping":{"__isSmartRef__":true,"id":3349},"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":3350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3349":{"this":{"__isSmartRef__":true,"id":3306}},"3350":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3351":{"varMapping":{"__isSmartRef__":true,"id":3352},"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":3353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3352":{"this":{"__isSmartRef__":true,"id":3306}},"3353":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3354":{"varMapping":{"__isSmartRef__":true,"id":3355},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3355":{"this":{"__isSmartRef__":true,"id":3306}},"3356":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3357":{"varMapping":{"__isSmartRef__":true,"id":3358},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3358":{"this":{"__isSmartRef__":true,"id":3306}},"3359":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"3360":{"varMapping":{"__isSmartRef__":true,"id":3361},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3361":{"this":{"__isSmartRef__":true,"id":3306}},"3362":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3363":{"varMapping":{"__isSmartRef__":true,"id":3364},"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":3365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3364":{"this":{"__isSmartRef__":true,"id":3306}},"3365":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3366":{"varMapping":{"__isSmartRef__":true,"id":3367},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3367":{"this":{"__isSmartRef__":true,"id":3306}},"3368":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3369":{"varMapping":{"__isSmartRef__":true,"id":3370},"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":3371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3370":{"this":{"__isSmartRef__":true,"id":3306}},"3371":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3372":{"varMapping":{"__isSmartRef__":true,"id":3373},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3373":{"this":{"__isSmartRef__":true,"id":3306}},"3374":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3375":{"varMapping":{"__isSmartRef__":true,"id":3376},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3376":{"this":{"__isSmartRef__":true,"id":3306}},"3377":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3378":{"varMapping":{"__isSmartRef__":true,"id":3379},"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":3380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3379":{"this":{"__isSmartRef__":true,"id":3306}},"3380":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3381":{"varMapping":{"__isSmartRef__":true,"id":3382},"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":3383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3382":{"this":{"__isSmartRef__":true,"id":3306}},"3383":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3384":{"varMapping":{"__isSmartRef__":true,"id":3385},"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":3386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3385":{"this":{"__isSmartRef__":true,"id":3306}},"3386":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3387":{"varMapping":{"__isSmartRef__":true,"id":3388},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3388":{"this":{"__isSmartRef__":true,"id":3306}},"3389":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3390":{"varMapping":{"__isSmartRef__":true,"id":3391},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3391":{"this":{"__isSmartRef__":true,"id":3306}},"3392":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3393":{"varMapping":{"__isSmartRef__":true,"id":3394},"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":3395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3394":{"this":{"__isSmartRef__":true,"id":3306}},"3395":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3396":{"submorphs":[{"__isSmartRef__":true,"id":3397}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3401},"derivationIds":[null,"271D351F-4A32-4D08-AF7F-F663904235BE"],"id":"0E9192A7-FF5C-4E51-B39C-FCA5A774A2CD","eventHandler":{"__isSmartRef__":true,"id":3402},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":5,"column":3,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":3397},"grabbingEnabled":false,"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3403},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,240.0)"},"3397":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3398},"derivationIds":[null,"0FB03603-8614-4AE3-ABA1-9A41C9446C0F"],"id":"72CA327C-A5B2-4F8A-84CA-85DBCC2D20A3","eventHandler":{"__isSmartRef__":true,"id":3399},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3396},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3400},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"3398":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-0fb03603-8614-4ae3-aba1-9a41c9446c0f","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"3399":{"morph":{"__isSmartRef__":true,"id":3397},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3400":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"3401":{"_NodeClass":["morph","box"],"_NodeId":"morph-271d351f-4a32-4d08-af7f-f663904235be","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3402":{"morph":{"__isSmartRef__":true,"id":3396},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3403":{"setDevStyle":{"__isSmartRef__":true,"id":3404},"setNormalStyle":{"__isSmartRef__":true,"id":3407},"tileSize":{"__isSmartRef__":true,"id":3410},"become":{"__isSmartRef__":true,"id":3413},"onMouseDown":{"__isSmartRef__":true,"id":3416},"setGridPosition":{"__isSmartRef__":true,"id":3423},"toolbox":{"__isSmartRef__":true,"id":3426},"distanceTo":{"__isSmartRef__":true,"id":3429},"tileWasDropped":{"__isSmartRef__":true,"id":3432},"isObstacle":{"__isSmartRef__":true,"id":3435},"neighboursInDirection":{"__isSmartRef__":true,"id":3438},"neighbours":{"__isSmartRef__":true,"id":3441},"zIndex":{"__isSmartRef__":true,"id":3444},"obstacles":{"__isSmartRef__":true,"id":3447},"addObstacle":{"__isSmartRef__":true,"id":3450},"removeObstacle":{"__isSmartRef__":true,"id":3453},"isTile":{"__isSmartRef__":true,"id":3456},"neighbourAt":{"__isSmartRef__":true,"id":3459},"map":{"__isSmartRef__":true,"id":3462},"game":{"__isSmartRef__":true,"id":3465},"reset":{"__isSmartRef__":true,"id":3468},"shallowCopy":{"__isSmartRef__":true,"id":3471},"characters":{"__isSmartRef__":true,"id":3474},"enterTile":{"__isSmartRef__":true,"id":3477},"leaveTile":{"__isSmartRef__":true,"id":3480},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3483}},"3404":{"varMapping":{"__isSmartRef__":true,"id":3405},"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":3406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3405":{"this":{"__isSmartRef__":true,"id":3396}},"3406":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"3407":{"varMapping":{"__isSmartRef__":true,"id":3408},"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":3409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3408":{"this":{"__isSmartRef__":true,"id":3396}},"3409":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"3410":{"varMapping":{"__isSmartRef__":true,"id":3411},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3411":{"this":{"__isSmartRef__":true,"id":3396}},"3412":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"3413":{"varMapping":{"__isSmartRef__":true,"id":3414},"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":3415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3414":{"this":{"__isSmartRef__":true,"id":3396}},"3415":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"3416":{"varMapping":{"__isSmartRef__":true,"id":3417},"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":3422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3417":{"this":{"__isSmartRef__":true,"id":3396},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3418}},"3418":{"$super":{"__isSmartRef__":true,"id":3419}},"3419":{"varMapping":{"__isSmartRef__":true,"id":3420},"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":3421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3420":{"obj":{"__isSmartRef__":true,"id":3396},"name":"onMouseDown"},"3421":{},"3422":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"3423":{"varMapping":{"__isSmartRef__":true,"id":3424},"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":3425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3424":{"this":{"__isSmartRef__":true,"id":3396}},"3425":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"3426":{"varMapping":{"__isSmartRef__":true,"id":3427},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3427":{"this":{"__isSmartRef__":true,"id":3396}},"3428":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"3429":{"varMapping":{"__isSmartRef__":true,"id":3430},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3430":{"this":{"__isSmartRef__":true,"id":3396}},"3431":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"3432":{"varMapping":{"__isSmartRef__":true,"id":3433},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3433":{"this":{"__isSmartRef__":true,"id":3396}},"3434":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"3435":{"varMapping":{"__isSmartRef__":true,"id":3436},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3436":{"this":{"__isSmartRef__":true,"id":3396}},"3437":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3438":{"varMapping":{"__isSmartRef__":true,"id":3439},"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":3440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3439":{"this":{"__isSmartRef__":true,"id":3396}},"3440":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3441":{"varMapping":{"__isSmartRef__":true,"id":3442},"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":3443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3442":{"this":{"__isSmartRef__":true,"id":3396}},"3443":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3444":{"varMapping":{"__isSmartRef__":true,"id":3445},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3445":{"this":{"__isSmartRef__":true,"id":3396}},"3446":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3447":{"varMapping":{"__isSmartRef__":true,"id":3448},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3448":{"this":{"__isSmartRef__":true,"id":3396}},"3449":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"3450":{"varMapping":{"__isSmartRef__":true,"id":3451},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3451":{"this":{"__isSmartRef__":true,"id":3396}},"3452":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3453":{"varMapping":{"__isSmartRef__":true,"id":3454},"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":3455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3454":{"this":{"__isSmartRef__":true,"id":3396}},"3455":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3456":{"varMapping":{"__isSmartRef__":true,"id":3457},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3457":{"this":{"__isSmartRef__":true,"id":3396}},"3458":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3459":{"varMapping":{"__isSmartRef__":true,"id":3460},"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":3461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3460":{"this":{"__isSmartRef__":true,"id":3396}},"3461":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3462":{"varMapping":{"__isSmartRef__":true,"id":3463},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3463":{"this":{"__isSmartRef__":true,"id":3396}},"3464":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3465":{"varMapping":{"__isSmartRef__":true,"id":3466},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3466":{"this":{"__isSmartRef__":true,"id":3396}},"3467":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3468":{"varMapping":{"__isSmartRef__":true,"id":3469},"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":3470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3469":{"this":{"__isSmartRef__":true,"id":3396}},"3470":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3471":{"varMapping":{"__isSmartRef__":true,"id":3472},"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":3473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3472":{"this":{"__isSmartRef__":true,"id":3396}},"3473":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3474":{"varMapping":{"__isSmartRef__":true,"id":3475},"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":3476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3475":{"this":{"__isSmartRef__":true,"id":3396}},"3476":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3477":{"varMapping":{"__isSmartRef__":true,"id":3478},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3478":{"this":{"__isSmartRef__":true,"id":3396}},"3479":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3480":{"varMapping":{"__isSmartRef__":true,"id":3481},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3481":{"this":{"__isSmartRef__":true,"id":3396}},"3482":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3483":{"varMapping":{"__isSmartRef__":true,"id":3484},"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":3485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3484":{"this":{"__isSmartRef__":true,"id":3396}},"3485":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3486":{"submorphs":[{"__isSmartRef__":true,"id":3487}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3491},"derivationIds":[null,"DD56AD78-7B1B-430B-836F-5647FD5EF79E"],"id":"695D24BE-2549-4826-8FB3-1F94771FBD12","eventHandler":{"__isSmartRef__":true,"id":3492},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":5,"column":4,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":3487},"grabbingEnabled":false,"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3493},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,240.0)"},"3487":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3488},"derivationIds":[null,"FE60FC7F-AAAC-400B-82E7-539897164DAC"],"id":"D162C651-29AE-4D3E-A09D-5D6F1470C598","eventHandler":{"__isSmartRef__":true,"id":3489},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3486},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3490},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"3488":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-fe60fc7f-aaac-400b-82e7-539897164dac","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"3489":{"morph":{"__isSmartRef__":true,"id":3487},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3490":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"3491":{"_NodeClass":["morph","box"],"_NodeId":"morph-dd56ad78-7b1b-430b-836f-5647fd5ef79e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3492":{"morph":{"__isSmartRef__":true,"id":3486},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3493":{"setDevStyle":{"__isSmartRef__":true,"id":3494},"setNormalStyle":{"__isSmartRef__":true,"id":3497},"tileSize":{"__isSmartRef__":true,"id":3500},"become":{"__isSmartRef__":true,"id":3503},"onMouseDown":{"__isSmartRef__":true,"id":3506},"setGridPosition":{"__isSmartRef__":true,"id":3513},"toolbox":{"__isSmartRef__":true,"id":3516},"distanceTo":{"__isSmartRef__":true,"id":3519},"tileWasDropped":{"__isSmartRef__":true,"id":3522},"isObstacle":{"__isSmartRef__":true,"id":3525},"neighboursInDirection":{"__isSmartRef__":true,"id":3528},"neighbours":{"__isSmartRef__":true,"id":3531},"zIndex":{"__isSmartRef__":true,"id":3534},"obstacles":{"__isSmartRef__":true,"id":3537},"addObstacle":{"__isSmartRef__":true,"id":3540},"removeObstacle":{"__isSmartRef__":true,"id":3543},"isTile":{"__isSmartRef__":true,"id":3546},"neighbourAt":{"__isSmartRef__":true,"id":3549},"map":{"__isSmartRef__":true,"id":3552},"game":{"__isSmartRef__":true,"id":3555},"reset":{"__isSmartRef__":true,"id":3558},"shallowCopy":{"__isSmartRef__":true,"id":3561},"characters":{"__isSmartRef__":true,"id":3564},"enterTile":{"__isSmartRef__":true,"id":3567},"leaveTile":{"__isSmartRef__":true,"id":3570},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3573}},"3494":{"varMapping":{"__isSmartRef__":true,"id":3495},"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":3496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3495":{"this":{"__isSmartRef__":true,"id":3486}},"3496":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"3497":{"varMapping":{"__isSmartRef__":true,"id":3498},"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":3499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3498":{"this":{"__isSmartRef__":true,"id":3486}},"3499":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"3500":{"varMapping":{"__isSmartRef__":true,"id":3501},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3501":{"this":{"__isSmartRef__":true,"id":3486}},"3502":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"3503":{"varMapping":{"__isSmartRef__":true,"id":3504},"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":3505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3504":{"this":{"__isSmartRef__":true,"id":3486}},"3505":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"3506":{"varMapping":{"__isSmartRef__":true,"id":3507},"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":3512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3507":{"this":{"__isSmartRef__":true,"id":3486},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3508}},"3508":{"$super":{"__isSmartRef__":true,"id":3509}},"3509":{"varMapping":{"__isSmartRef__":true,"id":3510},"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":3511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3510":{"obj":{"__isSmartRef__":true,"id":3486},"name":"onMouseDown"},"3511":{},"3512":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"3513":{"varMapping":{"__isSmartRef__":true,"id":3514},"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":3515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3514":{"this":{"__isSmartRef__":true,"id":3486}},"3515":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"3516":{"varMapping":{"__isSmartRef__":true,"id":3517},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3517":{"this":{"__isSmartRef__":true,"id":3486}},"3518":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"3519":{"varMapping":{"__isSmartRef__":true,"id":3520},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3520":{"this":{"__isSmartRef__":true,"id":3486}},"3521":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"3522":{"varMapping":{"__isSmartRef__":true,"id":3523},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3523":{"this":{"__isSmartRef__":true,"id":3486}},"3524":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"3525":{"varMapping":{"__isSmartRef__":true,"id":3526},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3526":{"this":{"__isSmartRef__":true,"id":3486}},"3527":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3528":{"varMapping":{"__isSmartRef__":true,"id":3529},"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":3530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3529":{"this":{"__isSmartRef__":true,"id":3486}},"3530":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3531":{"varMapping":{"__isSmartRef__":true,"id":3532},"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":3533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3532":{"this":{"__isSmartRef__":true,"id":3486}},"3533":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3534":{"varMapping":{"__isSmartRef__":true,"id":3535},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3535":{"this":{"__isSmartRef__":true,"id":3486}},"3536":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3537":{"varMapping":{"__isSmartRef__":true,"id":3538},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3538":{"this":{"__isSmartRef__":true,"id":3486}},"3539":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"3540":{"varMapping":{"__isSmartRef__":true,"id":3541},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3541":{"this":{"__isSmartRef__":true,"id":3486}},"3542":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3543":{"varMapping":{"__isSmartRef__":true,"id":3544},"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":3545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3544":{"this":{"__isSmartRef__":true,"id":3486}},"3545":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3546":{"varMapping":{"__isSmartRef__":true,"id":3547},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3547":{"this":{"__isSmartRef__":true,"id":3486}},"3548":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3549":{"varMapping":{"__isSmartRef__":true,"id":3550},"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":3551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3550":{"this":{"__isSmartRef__":true,"id":3486}},"3551":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3552":{"varMapping":{"__isSmartRef__":true,"id":3553},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3553":{"this":{"__isSmartRef__":true,"id":3486}},"3554":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3555":{"varMapping":{"__isSmartRef__":true,"id":3556},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3556":{"this":{"__isSmartRef__":true,"id":3486}},"3557":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3558":{"varMapping":{"__isSmartRef__":true,"id":3559},"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":3560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3559":{"this":{"__isSmartRef__":true,"id":3486}},"3560":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3561":{"varMapping":{"__isSmartRef__":true,"id":3562},"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":3563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3562":{"this":{"__isSmartRef__":true,"id":3486}},"3563":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3564":{"varMapping":{"__isSmartRef__":true,"id":3565},"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":3566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3565":{"this":{"__isSmartRef__":true,"id":3486}},"3566":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3567":{"varMapping":{"__isSmartRef__":true,"id":3568},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3568":{"this":{"__isSmartRef__":true,"id":3486}},"3569":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3570":{"varMapping":{"__isSmartRef__":true,"id":3571},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3571":{"this":{"__isSmartRef__":true,"id":3486}},"3572":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3573":{"varMapping":{"__isSmartRef__":true,"id":3574},"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":3575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3574":{"this":{"__isSmartRef__":true,"id":3486}},"3575":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3576":{"submorphs":[{"__isSmartRef__":true,"id":3577}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3581},"derivationIds":[null,"C24388F4-916F-425F-B9BF-37EF2C5BDEFB"],"id":"4296E98C-D800-4E8C-A698-765E826F8194","eventHandler":{"__isSmartRef__":true,"id":3582},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":5,"column":5,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":3577},"grabbingEnabled":false,"charactersStandingHere":[],"prevScroll":[0,0],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3583},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,240.0)"},"3577":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3578},"derivationIds":[null,"48A3F842-7F95-44B3-98C1-EEFC8CD9A6D4"],"id":"45D40B80-BA24-4EC7-BC41-2BE23536CC31","eventHandler":{"__isSmartRef__":true,"id":3579},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3576},"prevScroll":[0,0],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3580},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"3578":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-48a3f842-7f95-44b3-98c1-eefc8cd9a6d4","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"3579":{"morph":{"__isSmartRef__":true,"id":3577},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3580":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"3581":{"_NodeClass":["morph","box"],"_NodeId":"morph-c24388f4-916f-425f-b9bf-37ef2c5bdefb","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3582":{"morph":{"__isSmartRef__":true,"id":3576},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3583":{"setDevStyle":{"__isSmartRef__":true,"id":3584},"setNormalStyle":{"__isSmartRef__":true,"id":3587},"tileSize":{"__isSmartRef__":true,"id":3590},"become":{"__isSmartRef__":true,"id":3593},"onMouseDown":{"__isSmartRef__":true,"id":3596},"setGridPosition":{"__isSmartRef__":true,"id":3603},"toolbox":{"__isSmartRef__":true,"id":3606},"distanceTo":{"__isSmartRef__":true,"id":3609},"tileWasDropped":{"__isSmartRef__":true,"id":3612},"isObstacle":{"__isSmartRef__":true,"id":3615},"neighboursInDirection":{"__isSmartRef__":true,"id":3618},"neighbours":{"__isSmartRef__":true,"id":3621},"zIndex":{"__isSmartRef__":true,"id":3624},"obstacles":{"__isSmartRef__":true,"id":3627},"addObstacle":{"__isSmartRef__":true,"id":3630},"removeObstacle":{"__isSmartRef__":true,"id":3633},"isTile":{"__isSmartRef__":true,"id":3636},"neighbourAt":{"__isSmartRef__":true,"id":3639},"map":{"__isSmartRef__":true,"id":3642},"game":{"__isSmartRef__":true,"id":3645},"reset":{"__isSmartRef__":true,"id":3648},"shallowCopy":{"__isSmartRef__":true,"id":3651},"characters":{"__isSmartRef__":true,"id":3654},"enterTile":{"__isSmartRef__":true,"id":3657},"leaveTile":{"__isSmartRef__":true,"id":3660},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3663}},"3584":{"varMapping":{"__isSmartRef__":true,"id":3585},"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":3586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3585":{"this":{"__isSmartRef__":true,"id":3576}},"3586":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"3587":{"varMapping":{"__isSmartRef__":true,"id":3588},"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":3589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3588":{"this":{"__isSmartRef__":true,"id":3576}},"3589":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"3590":{"varMapping":{"__isSmartRef__":true,"id":3591},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3591":{"this":{"__isSmartRef__":true,"id":3576}},"3592":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"3593":{"varMapping":{"__isSmartRef__":true,"id":3594},"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":3595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3594":{"this":{"__isSmartRef__":true,"id":3576}},"3595":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"3596":{"varMapping":{"__isSmartRef__":true,"id":3597},"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":3602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3597":{"this":{"__isSmartRef__":true,"id":3576},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3598}},"3598":{"$super":{"__isSmartRef__":true,"id":3599}},"3599":{"varMapping":{"__isSmartRef__":true,"id":3600},"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":3601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3600":{"obj":{"__isSmartRef__":true,"id":3576},"name":"onMouseDown"},"3601":{},"3602":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"3603":{"varMapping":{"__isSmartRef__":true,"id":3604},"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":3605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3604":{"this":{"__isSmartRef__":true,"id":3576}},"3605":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"3606":{"varMapping":{"__isSmartRef__":true,"id":3607},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3607":{"this":{"__isSmartRef__":true,"id":3576}},"3608":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"3609":{"varMapping":{"__isSmartRef__":true,"id":3610},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3610":{"this":{"__isSmartRef__":true,"id":3576}},"3611":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"3612":{"varMapping":{"__isSmartRef__":true,"id":3613},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3613":{"this":{"__isSmartRef__":true,"id":3576}},"3614":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"3615":{"varMapping":{"__isSmartRef__":true,"id":3616},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3616":{"this":{"__isSmartRef__":true,"id":3576}},"3617":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3618":{"varMapping":{"__isSmartRef__":true,"id":3619},"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":3620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3619":{"this":{"__isSmartRef__":true,"id":3576}},"3620":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3621":{"varMapping":{"__isSmartRef__":true,"id":3622},"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":3623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3622":{"this":{"__isSmartRef__":true,"id":3576}},"3623":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3624":{"varMapping":{"__isSmartRef__":true,"id":3625},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3625":{"this":{"__isSmartRef__":true,"id":3576}},"3626":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3627":{"varMapping":{"__isSmartRef__":true,"id":3628},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3628":{"this":{"__isSmartRef__":true,"id":3576}},"3629":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"3630":{"varMapping":{"__isSmartRef__":true,"id":3631},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3631":{"this":{"__isSmartRef__":true,"id":3576}},"3632":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3633":{"varMapping":{"__isSmartRef__":true,"id":3634},"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":3635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3634":{"this":{"__isSmartRef__":true,"id":3576}},"3635":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3636":{"varMapping":{"__isSmartRef__":true,"id":3637},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3637":{"this":{"__isSmartRef__":true,"id":3576}},"3638":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3639":{"varMapping":{"__isSmartRef__":true,"id":3640},"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":3641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3640":{"this":{"__isSmartRef__":true,"id":3576}},"3641":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3642":{"varMapping":{"__isSmartRef__":true,"id":3643},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3643":{"this":{"__isSmartRef__":true,"id":3576}},"3644":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3645":{"varMapping":{"__isSmartRef__":true,"id":3646},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3646":{"this":{"__isSmartRef__":true,"id":3576}},"3647":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3648":{"varMapping":{"__isSmartRef__":true,"id":3649},"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":3650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3649":{"this":{"__isSmartRef__":true,"id":3576}},"3650":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3651":{"varMapping":{"__isSmartRef__":true,"id":3652},"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":3653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3652":{"this":{"__isSmartRef__":true,"id":3576}},"3653":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3654":{"varMapping":{"__isSmartRef__":true,"id":3655},"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":3656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3655":{"this":{"__isSmartRef__":true,"id":3576}},"3656":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3657":{"varMapping":{"__isSmartRef__":true,"id":3658},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3658":{"this":{"__isSmartRef__":true,"id":3576}},"3659":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3660":{"varMapping":{"__isSmartRef__":true,"id":3661},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3661":{"this":{"__isSmartRef__":true,"id":3576}},"3662":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3663":{"varMapping":{"__isSmartRef__":true,"id":3664},"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":3665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3664":{"this":{"__isSmartRef__":true,"id":3576}},"3665":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3666":{"setDevStyle":{"__isSmartRef__":true,"id":3667},"setNormalStyle":{"__isSmartRef__":true,"id":3670},"tileSize":{"__isSmartRef__":true,"id":3673},"become":{"__isSmartRef__":true,"id":3676},"onMouseDown":{"__isSmartRef__":true,"id":3679},"setGridPosition":{"__isSmartRef__":true,"id":3686},"toolbox":{"__isSmartRef__":true,"id":3689},"distanceTo":{"__isSmartRef__":true,"id":3692},"tileWasDropped":{"__isSmartRef__":true,"id":3695},"isObstacle":{"__isSmartRef__":true,"id":3698},"neighboursInDirection":{"__isSmartRef__":true,"id":3701},"neighbours":{"__isSmartRef__":true,"id":3704},"zIndex":{"__isSmartRef__":true,"id":3707},"obstacles":{"__isSmartRef__":true,"id":3710},"addObstacle":{"__isSmartRef__":true,"id":3713},"removeObstacle":{"__isSmartRef__":true,"id":3716},"isTile":{"__isSmartRef__":true,"id":3719},"neighbourAt":{"__isSmartRef__":true,"id":3722},"map":{"__isSmartRef__":true,"id":3725},"game":{"__isSmartRef__":true,"id":3728},"reset":{"__isSmartRef__":true,"id":3731},"shallowCopy":{"__isSmartRef__":true,"id":3734},"characters":{"__isSmartRef__":true,"id":3737},"enterTile":{"__isSmartRef__":true,"id":3740},"leaveTile":{"__isSmartRef__":true,"id":3743},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3746}},"3667":{"varMapping":{"__isSmartRef__":true,"id":3668},"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":3669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3668":{"this":{"__isSmartRef__":true,"id":2839}},"3669":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"3670":{"varMapping":{"__isSmartRef__":true,"id":3671},"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":3672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3671":{"this":{"__isSmartRef__":true,"id":2839}},"3672":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"3673":{"varMapping":{"__isSmartRef__":true,"id":3674},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3674":{"this":{"__isSmartRef__":true,"id":2839}},"3675":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"3676":{"varMapping":{"__isSmartRef__":true,"id":3677},"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":3678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3677":{"this":{"__isSmartRef__":true,"id":2839}},"3678":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"3679":{"varMapping":{"__isSmartRef__":true,"id":3680},"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":3685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3680":{"this":{"__isSmartRef__":true,"id":2839},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3681}},"3681":{"$super":{"__isSmartRef__":true,"id":3682}},"3682":{"varMapping":{"__isSmartRef__":true,"id":3683},"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":3684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3683":{"obj":{"__isSmartRef__":true,"id":2839},"name":"onMouseDown"},"3684":{},"3685":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"3686":{"varMapping":{"__isSmartRef__":true,"id":3687},"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":3688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3687":{"this":{"__isSmartRef__":true,"id":2839}},"3688":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"3689":{"varMapping":{"__isSmartRef__":true,"id":3690},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3690":{"this":{"__isSmartRef__":true,"id":2839}},"3691":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"3692":{"varMapping":{"__isSmartRef__":true,"id":3693},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3693":{"this":{"__isSmartRef__":true,"id":2839}},"3694":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"3695":{"varMapping":{"__isSmartRef__":true,"id":3696},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3696":{"this":{"__isSmartRef__":true,"id":2839}},"3697":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"3698":{"varMapping":{"__isSmartRef__":true,"id":3699},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3699":{"this":{"__isSmartRef__":true,"id":2839}},"3700":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3701":{"varMapping":{"__isSmartRef__":true,"id":3702},"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":3703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3702":{"this":{"__isSmartRef__":true,"id":2839}},"3703":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3704":{"varMapping":{"__isSmartRef__":true,"id":3705},"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":3706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3705":{"this":{"__isSmartRef__":true,"id":2839}},"3706":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3707":{"varMapping":{"__isSmartRef__":true,"id":3708},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3708":{"this":{"__isSmartRef__":true,"id":2839}},"3709":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3710":{"varMapping":{"__isSmartRef__":true,"id":3711},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3711":{"this":{"__isSmartRef__":true,"id":2839}},"3712":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"3713":{"varMapping":{"__isSmartRef__":true,"id":3714},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3714":{"this":{"__isSmartRef__":true,"id":2839}},"3715":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3716":{"varMapping":{"__isSmartRef__":true,"id":3717},"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":3718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3717":{"this":{"__isSmartRef__":true,"id":2839}},"3718":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3719":{"varMapping":{"__isSmartRef__":true,"id":3720},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3720":{"this":{"__isSmartRef__":true,"id":2839}},"3721":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3722":{"varMapping":{"__isSmartRef__":true,"id":3723},"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":3724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3723":{"this":{"__isSmartRef__":true,"id":2839}},"3724":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3725":{"varMapping":{"__isSmartRef__":true,"id":3726},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3726":{"this":{"__isSmartRef__":true,"id":2839}},"3727":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3728":{"varMapping":{"__isSmartRef__":true,"id":3729},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3729":{"this":{"__isSmartRef__":true,"id":2839}},"3730":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3731":{"varMapping":{"__isSmartRef__":true,"id":3732},"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":3733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3732":{"this":{"__isSmartRef__":true,"id":2839}},"3733":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3734":{"varMapping":{"__isSmartRef__":true,"id":3735},"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":3736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3735":{"this":{"__isSmartRef__":true,"id":2839}},"3736":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3737":{"varMapping":{"__isSmartRef__":true,"id":3738},"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":3739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3738":{"this":{"__isSmartRef__":true,"id":2839}},"3739":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3740":{"varMapping":{"__isSmartRef__":true,"id":3741},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3741":{"this":{"__isSmartRef__":true,"id":2839}},"3742":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3743":{"varMapping":{"__isSmartRef__":true,"id":3744},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3744":{"this":{"__isSmartRef__":true,"id":2839}},"3745":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3746":{"varMapping":{"__isSmartRef__":true,"id":3747},"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":3748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3747":{"this":{"__isSmartRef__":true,"id":2839}},"3748":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3749":{"setDevStyle":{"__isSmartRef__":true,"id":3750},"setNormalStyle":{"__isSmartRef__":true,"id":3753},"tileSize":{"__isSmartRef__":true,"id":3756},"become":{"__isSmartRef__":true,"id":3759},"onMouseDown":{"__isSmartRef__":true,"id":3762},"setGridPosition":{"__isSmartRef__":true,"id":3769},"toolbox":{"__isSmartRef__":true,"id":3772},"distanceTo":{"__isSmartRef__":true,"id":3775},"tileWasDropped":{"__isSmartRef__":true,"id":3778},"isObstacle":{"__isSmartRef__":true,"id":3781},"neighboursInDirection":{"__isSmartRef__":true,"id":3784},"neighbours":{"__isSmartRef__":true,"id":3787},"zIndex":{"__isSmartRef__":true,"id":3790},"obstacles":{"__isSmartRef__":true,"id":3793},"addObstacle":{"__isSmartRef__":true,"id":3796},"removeObstacle":{"__isSmartRef__":true,"id":3799},"isTile":{"__isSmartRef__":true,"id":3802},"neighbourAt":{"__isSmartRef__":true,"id":3805},"map":{"__isSmartRef__":true,"id":3808},"game":{"__isSmartRef__":true,"id":3811},"reset":{"__isSmartRef__":true,"id":3814},"shallowCopy":{"__isSmartRef__":true,"id":3817},"characters":{"__isSmartRef__":true,"id":3820},"enterTile":{"__isSmartRef__":true,"id":3823},"leaveTile":{"__isSmartRef__":true,"id":3826},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3829}},"3750":{"varMapping":{"__isSmartRef__":true,"id":3751},"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":3752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3751":{"this":{"__isSmartRef__":true,"id":2832}},"3752":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"3753":{"varMapping":{"__isSmartRef__":true,"id":3754},"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":3755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3754":{"this":{"__isSmartRef__":true,"id":2832}},"3755":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"3756":{"varMapping":{"__isSmartRef__":true,"id":3757},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3757":{"this":{"__isSmartRef__":true,"id":2832}},"3758":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"3759":{"varMapping":{"__isSmartRef__":true,"id":3760},"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":3761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3760":{"this":{"__isSmartRef__":true,"id":2832}},"3761":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"3762":{"varMapping":{"__isSmartRef__":true,"id":3763},"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":3768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3763":{"this":{"__isSmartRef__":true,"id":2832},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3764}},"3764":{"$super":{"__isSmartRef__":true,"id":3765}},"3765":{"varMapping":{"__isSmartRef__":true,"id":3766},"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":3767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3766":{"obj":{"__isSmartRef__":true,"id":2832},"name":"onMouseDown"},"3767":{},"3768":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"3769":{"varMapping":{"__isSmartRef__":true,"id":3770},"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":3771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3770":{"this":{"__isSmartRef__":true,"id":2832}},"3771":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"3772":{"varMapping":{"__isSmartRef__":true,"id":3773},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3773":{"this":{"__isSmartRef__":true,"id":2832}},"3774":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"3775":{"varMapping":{"__isSmartRef__":true,"id":3776},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3776":{"this":{"__isSmartRef__":true,"id":2832}},"3777":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"3778":{"varMapping":{"__isSmartRef__":true,"id":3779},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3779":{"this":{"__isSmartRef__":true,"id":2832}},"3780":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"3781":{"varMapping":{"__isSmartRef__":true,"id":3782},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3782":{"this":{"__isSmartRef__":true,"id":2832}},"3783":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3784":{"varMapping":{"__isSmartRef__":true,"id":3785},"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":3786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3785":{"this":{"__isSmartRef__":true,"id":2832}},"3786":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3787":{"varMapping":{"__isSmartRef__":true,"id":3788},"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":3789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3788":{"this":{"__isSmartRef__":true,"id":2832}},"3789":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3790":{"varMapping":{"__isSmartRef__":true,"id":3791},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3791":{"this":{"__isSmartRef__":true,"id":2832}},"3792":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3793":{"varMapping":{"__isSmartRef__":true,"id":3794},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3794":{"this":{"__isSmartRef__":true,"id":2832}},"3795":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"3796":{"varMapping":{"__isSmartRef__":true,"id":3797},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3797":{"this":{"__isSmartRef__":true,"id":2832}},"3798":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3799":{"varMapping":{"__isSmartRef__":true,"id":3800},"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":3801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3800":{"this":{"__isSmartRef__":true,"id":2832}},"3801":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3802":{"varMapping":{"__isSmartRef__":true,"id":3803},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3803":{"this":{"__isSmartRef__":true,"id":2832}},"3804":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3805":{"varMapping":{"__isSmartRef__":true,"id":3806},"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":3807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3806":{"this":{"__isSmartRef__":true,"id":2832}},"3807":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3808":{"varMapping":{"__isSmartRef__":true,"id":3809},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3809":{"this":{"__isSmartRef__":true,"id":2832}},"3810":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3811":{"varMapping":{"__isSmartRef__":true,"id":3812},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3812":{"this":{"__isSmartRef__":true,"id":2832}},"3813":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3814":{"varMapping":{"__isSmartRef__":true,"id":3815},"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":3816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3815":{"this":{"__isSmartRef__":true,"id":2832}},"3816":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3817":{"varMapping":{"__isSmartRef__":true,"id":3818},"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":3819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3818":{"this":{"__isSmartRef__":true,"id":2832}},"3819":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3820":{"varMapping":{"__isSmartRef__":true,"id":3821},"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":3822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3821":{"this":{"__isSmartRef__":true,"id":2832}},"3822":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3823":{"varMapping":{"__isSmartRef__":true,"id":3824},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3824":{"this":{"__isSmartRef__":true,"id":2832}},"3825":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3826":{"varMapping":{"__isSmartRef__":true,"id":3827},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3827":{"this":{"__isSmartRef__":true,"id":2832}},"3828":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3829":{"varMapping":{"__isSmartRef__":true,"id":3830},"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":3831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3830":{"this":{"__isSmartRef__":true,"id":2832}},"3831":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3832":{"setDevStyle":{"__isSmartRef__":true,"id":3833},"setNormalStyle":{"__isSmartRef__":true,"id":3836},"tileSize":{"__isSmartRef__":true,"id":3839},"become":{"__isSmartRef__":true,"id":3842},"onMouseDown":{"__isSmartRef__":true,"id":3845},"setGridPosition":{"__isSmartRef__":true,"id":3852},"toolbox":{"__isSmartRef__":true,"id":3855},"distanceTo":{"__isSmartRef__":true,"id":3858},"tileWasDropped":{"__isSmartRef__":true,"id":3861},"isObstacle":{"__isSmartRef__":true,"id":3864},"neighboursInDirection":{"__isSmartRef__":true,"id":3867},"neighbours":{"__isSmartRef__":true,"id":3870},"zIndex":{"__isSmartRef__":true,"id":3873},"obstacles":{"__isSmartRef__":true,"id":3876},"addObstacle":{"__isSmartRef__":true,"id":3879},"removeObstacle":{"__isSmartRef__":true,"id":3882},"isTile":{"__isSmartRef__":true,"id":3885},"neighbourAt":{"__isSmartRef__":true,"id":3888},"map":{"__isSmartRef__":true,"id":3891},"game":{"__isSmartRef__":true,"id":3894},"reset":{"__isSmartRef__":true,"id":3897},"shallowCopy":{"__isSmartRef__":true,"id":3900},"characters":{"__isSmartRef__":true,"id":3903},"enterTile":{"__isSmartRef__":true,"id":3906},"leaveTile":{"__isSmartRef__":true,"id":3909},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3912}},"3833":{"varMapping":{"__isSmartRef__":true,"id":3834},"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":3835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3834":{"this":{"__isSmartRef__":true,"id":2728}},"3835":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"3836":{"varMapping":{"__isSmartRef__":true,"id":3837},"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":3838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3837":{"this":{"__isSmartRef__":true,"id":2728}},"3838":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"3839":{"varMapping":{"__isSmartRef__":true,"id":3840},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3840":{"this":{"__isSmartRef__":true,"id":2728}},"3841":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"3842":{"varMapping":{"__isSmartRef__":true,"id":3843},"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":3844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3843":{"this":{"__isSmartRef__":true,"id":2728}},"3844":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"3845":{"varMapping":{"__isSmartRef__":true,"id":3846},"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":3851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3846":{"this":{"__isSmartRef__":true,"id":2728},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3847}},"3847":{"$super":{"__isSmartRef__":true,"id":3848}},"3848":{"varMapping":{"__isSmartRef__":true,"id":3849},"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":3850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3849":{"obj":{"__isSmartRef__":true,"id":2728},"name":"onMouseDown"},"3850":{},"3851":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"3852":{"varMapping":{"__isSmartRef__":true,"id":3853},"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":3854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3853":{"this":{"__isSmartRef__":true,"id":2728}},"3854":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"3855":{"varMapping":{"__isSmartRef__":true,"id":3856},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3856":{"this":{"__isSmartRef__":true,"id":2728}},"3857":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"3858":{"varMapping":{"__isSmartRef__":true,"id":3859},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3859":{"this":{"__isSmartRef__":true,"id":2728}},"3860":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"3861":{"varMapping":{"__isSmartRef__":true,"id":3862},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3862":{"this":{"__isSmartRef__":true,"id":2728}},"3863":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"3864":{"varMapping":{"__isSmartRef__":true,"id":3865},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3865":{"this":{"__isSmartRef__":true,"id":2728}},"3866":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3867":{"varMapping":{"__isSmartRef__":true,"id":3868},"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":3869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3868":{"this":{"__isSmartRef__":true,"id":2728}},"3869":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3870":{"varMapping":{"__isSmartRef__":true,"id":3871},"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":3872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3871":{"this":{"__isSmartRef__":true,"id":2728}},"3872":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3873":{"varMapping":{"__isSmartRef__":true,"id":3874},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3874":{"this":{"__isSmartRef__":true,"id":2728}},"3875":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3876":{"varMapping":{"__isSmartRef__":true,"id":3877},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3877":{"this":{"__isSmartRef__":true,"id":2728}},"3878":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"3879":{"varMapping":{"__isSmartRef__":true,"id":3880},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3880":{"this":{"__isSmartRef__":true,"id":2728}},"3881":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3882":{"varMapping":{"__isSmartRef__":true,"id":3883},"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":3884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3883":{"this":{"__isSmartRef__":true,"id":2728}},"3884":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3885":{"varMapping":{"__isSmartRef__":true,"id":3886},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3886":{"this":{"__isSmartRef__":true,"id":2728}},"3887":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3888":{"varMapping":{"__isSmartRef__":true,"id":3889},"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":3890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3889":{"this":{"__isSmartRef__":true,"id":2728}},"3890":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3891":{"varMapping":{"__isSmartRef__":true,"id":3892},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3892":{"this":{"__isSmartRef__":true,"id":2728}},"3893":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3894":{"varMapping":{"__isSmartRef__":true,"id":3895},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3895":{"this":{"__isSmartRef__":true,"id":2728}},"3896":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3897":{"varMapping":{"__isSmartRef__":true,"id":3898},"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":3899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3898":{"this":{"__isSmartRef__":true,"id":2728}},"3899":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3900":{"varMapping":{"__isSmartRef__":true,"id":3901},"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":3902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3901":{"this":{"__isSmartRef__":true,"id":2728}},"3902":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3903":{"varMapping":{"__isSmartRef__":true,"id":3904},"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":3905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3904":{"this":{"__isSmartRef__":true,"id":2728}},"3905":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3906":{"varMapping":{"__isSmartRef__":true,"id":3907},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3907":{"this":{"__isSmartRef__":true,"id":2728}},"3908":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3909":{"varMapping":{"__isSmartRef__":true,"id":3910},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3910":{"this":{"__isSmartRef__":true,"id":2728}},"3911":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3912":{"varMapping":{"__isSmartRef__":true,"id":3913},"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":3914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3913":{"this":{"__isSmartRef__":true,"id":2728}},"3914":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3915":{"submorphs":[{"__isSmartRef__":true,"id":3916}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3920},"derivationIds":[null,"E62129EC-F95B-4B4A-AFC9-86192EF946C4"],"id":"F11F58ED-4A82-4F47-973C-F7AB58902422","eventHandler":{"__isSmartRef__":true,"id":3921},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":4,"column":2,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":3916},"grabbingEnabled":false,"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3922},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,192.0)"},"3916":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3917},"derivationIds":[null,"03976EA0-461C-4D28-8C1D-B3102C8E35D6"],"id":"4BA25054-D521-4E7E-AA9B-674F07EE614B","eventHandler":{"__isSmartRef__":true,"id":3918},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3915},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3919},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"3917":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-03976ea0-461c-4d28-8c1d-b3102c8e35d6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"3918":{"morph":{"__isSmartRef__":true,"id":3916},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3919":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"3920":{"_NodeClass":["morph","box"],"_NodeId":"morph-e62129ec-f95b-4b4a-afc9-86192ef946c4","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3921":{"morph":{"__isSmartRef__":true,"id":3915},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3922":{"setDevStyle":{"__isSmartRef__":true,"id":3923},"setNormalStyle":{"__isSmartRef__":true,"id":3926},"tileSize":{"__isSmartRef__":true,"id":3929},"become":{"__isSmartRef__":true,"id":3932},"onMouseDown":{"__isSmartRef__":true,"id":3935},"setGridPosition":{"__isSmartRef__":true,"id":3942},"toolbox":{"__isSmartRef__":true,"id":3945},"distanceTo":{"__isSmartRef__":true,"id":3948},"tileWasDropped":{"__isSmartRef__":true,"id":3951},"isObstacle":{"__isSmartRef__":true,"id":3954},"neighboursInDirection":{"__isSmartRef__":true,"id":3957},"neighbours":{"__isSmartRef__":true,"id":3960},"zIndex":{"__isSmartRef__":true,"id":3963},"obstacles":{"__isSmartRef__":true,"id":3966},"addObstacle":{"__isSmartRef__":true,"id":3969},"removeObstacle":{"__isSmartRef__":true,"id":3972},"isTile":{"__isSmartRef__":true,"id":3975},"neighbourAt":{"__isSmartRef__":true,"id":3978},"map":{"__isSmartRef__":true,"id":3981},"game":{"__isSmartRef__":true,"id":3984},"reset":{"__isSmartRef__":true,"id":3987},"shallowCopy":{"__isSmartRef__":true,"id":3990},"characters":{"__isSmartRef__":true,"id":3993},"enterTile":{"__isSmartRef__":true,"id":3996},"leaveTile":{"__isSmartRef__":true,"id":3999},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4002}},"3923":{"varMapping":{"__isSmartRef__":true,"id":3924},"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":3925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3924":{"this":{"__isSmartRef__":true,"id":3915}},"3925":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"3926":{"varMapping":{"__isSmartRef__":true,"id":3927},"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":3928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3927":{"this":{"__isSmartRef__":true,"id":3915}},"3928":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"3929":{"varMapping":{"__isSmartRef__":true,"id":3930},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3930":{"this":{"__isSmartRef__":true,"id":3915}},"3931":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"3932":{"varMapping":{"__isSmartRef__":true,"id":3933},"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":3934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3933":{"this":{"__isSmartRef__":true,"id":3915}},"3934":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"3935":{"varMapping":{"__isSmartRef__":true,"id":3936},"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":3941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3936":{"this":{"__isSmartRef__":true,"id":3915},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3937}},"3937":{"$super":{"__isSmartRef__":true,"id":3938}},"3938":{"varMapping":{"__isSmartRef__":true,"id":3939},"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":3940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3939":{"obj":{"__isSmartRef__":true,"id":3915},"name":"onMouseDown"},"3940":{},"3941":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"3942":{"varMapping":{"__isSmartRef__":true,"id":3943},"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":3944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3943":{"this":{"__isSmartRef__":true,"id":3915}},"3944":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"3945":{"varMapping":{"__isSmartRef__":true,"id":3946},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3946":{"this":{"__isSmartRef__":true,"id":3915}},"3947":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"3948":{"varMapping":{"__isSmartRef__":true,"id":3949},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3949":{"this":{"__isSmartRef__":true,"id":3915}},"3950":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"3951":{"varMapping":{"__isSmartRef__":true,"id":3952},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3952":{"this":{"__isSmartRef__":true,"id":3915}},"3953":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"3954":{"varMapping":{"__isSmartRef__":true,"id":3955},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3955":{"this":{"__isSmartRef__":true,"id":3915}},"3956":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3957":{"varMapping":{"__isSmartRef__":true,"id":3958},"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":3959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3958":{"this":{"__isSmartRef__":true,"id":3915}},"3959":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3960":{"varMapping":{"__isSmartRef__":true,"id":3961},"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":3962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3961":{"this":{"__isSmartRef__":true,"id":3915}},"3962":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3963":{"varMapping":{"__isSmartRef__":true,"id":3964},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3964":{"this":{"__isSmartRef__":true,"id":3915}},"3965":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3966":{"varMapping":{"__isSmartRef__":true,"id":3967},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3967":{"this":{"__isSmartRef__":true,"id":3915}},"3968":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"3969":{"varMapping":{"__isSmartRef__":true,"id":3970},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3970":{"this":{"__isSmartRef__":true,"id":3915}},"3971":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3972":{"varMapping":{"__isSmartRef__":true,"id":3973},"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":3974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3973":{"this":{"__isSmartRef__":true,"id":3915}},"3974":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3975":{"varMapping":{"__isSmartRef__":true,"id":3976},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3976":{"this":{"__isSmartRef__":true,"id":3915}},"3977":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3978":{"varMapping":{"__isSmartRef__":true,"id":3979},"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":3980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3979":{"this":{"__isSmartRef__":true,"id":3915}},"3980":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3981":{"varMapping":{"__isSmartRef__":true,"id":3982},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3982":{"this":{"__isSmartRef__":true,"id":3915}},"3983":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3984":{"varMapping":{"__isSmartRef__":true,"id":3985},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3985":{"this":{"__isSmartRef__":true,"id":3915}},"3986":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3987":{"varMapping":{"__isSmartRef__":true,"id":3988},"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":3989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3988":{"this":{"__isSmartRef__":true,"id":3915}},"3989":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3990":{"varMapping":{"__isSmartRef__":true,"id":3991},"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":3992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3991":{"this":{"__isSmartRef__":true,"id":3915}},"3992":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3993":{"varMapping":{"__isSmartRef__":true,"id":3994},"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":3995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3994":{"this":{"__isSmartRef__":true,"id":3915}},"3995":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3996":{"varMapping":{"__isSmartRef__":true,"id":3997},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3997":{"this":{"__isSmartRef__":true,"id":3915}},"3998":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3999":{"varMapping":{"__isSmartRef__":true,"id":4000},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4000":{"this":{"__isSmartRef__":true,"id":3915}},"4001":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4002":{"varMapping":{"__isSmartRef__":true,"id":4003},"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":4004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4003":{"this":{"__isSmartRef__":true,"id":3915}},"4004":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4005":{"setDevStyle":{"__isSmartRef__":true,"id":4006},"setNormalStyle":{"__isSmartRef__":true,"id":4009},"tileSize":{"__isSmartRef__":true,"id":4012},"become":{"__isSmartRef__":true,"id":4015},"onMouseDown":{"__isSmartRef__":true,"id":4018},"setGridPosition":{"__isSmartRef__":true,"id":4025},"toolbox":{"__isSmartRef__":true,"id":4028},"distanceTo":{"__isSmartRef__":true,"id":4031},"tileWasDropped":{"__isSmartRef__":true,"id":4034},"isObstacle":{"__isSmartRef__":true,"id":4037},"neighboursInDirection":{"__isSmartRef__":true,"id":4040},"neighbours":{"__isSmartRef__":true,"id":4043},"zIndex":{"__isSmartRef__":true,"id":4046},"obstacles":{"__isSmartRef__":true,"id":4049},"addObstacle":{"__isSmartRef__":true,"id":4052},"removeObstacle":{"__isSmartRef__":true,"id":4055},"isTile":{"__isSmartRef__":true,"id":4058},"neighbourAt":{"__isSmartRef__":true,"id":4061},"map":{"__isSmartRef__":true,"id":4064},"game":{"__isSmartRef__":true,"id":4067},"reset":{"__isSmartRef__":true,"id":4070},"shallowCopy":{"__isSmartRef__":true,"id":4073},"characters":{"__isSmartRef__":true,"id":4076},"enterTile":{"__isSmartRef__":true,"id":4079},"leaveTile":{"__isSmartRef__":true,"id":4082},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4085}},"4006":{"varMapping":{"__isSmartRef__":true,"id":4007},"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":4008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4007":{"this":{"__isSmartRef__":true,"id":2721}},"4008":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4009":{"varMapping":{"__isSmartRef__":true,"id":4010},"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":4011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4010":{"this":{"__isSmartRef__":true,"id":2721}},"4011":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4012":{"varMapping":{"__isSmartRef__":true,"id":4013},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4013":{"this":{"__isSmartRef__":true,"id":2721}},"4014":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4015":{"varMapping":{"__isSmartRef__":true,"id":4016},"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":4017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4016":{"this":{"__isSmartRef__":true,"id":2721}},"4017":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4018":{"varMapping":{"__isSmartRef__":true,"id":4019},"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":4024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4019":{"this":{"__isSmartRef__":true,"id":2721},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4020}},"4020":{"$super":{"__isSmartRef__":true,"id":4021}},"4021":{"varMapping":{"__isSmartRef__":true,"id":4022},"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":4023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4022":{"obj":{"__isSmartRef__":true,"id":2721},"name":"onMouseDown"},"4023":{},"4024":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4025":{"varMapping":{"__isSmartRef__":true,"id":4026},"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":4027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4026":{"this":{"__isSmartRef__":true,"id":2721}},"4027":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4028":{"varMapping":{"__isSmartRef__":true,"id":4029},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4029":{"this":{"__isSmartRef__":true,"id":2721}},"4030":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4031":{"varMapping":{"__isSmartRef__":true,"id":4032},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4032":{"this":{"__isSmartRef__":true,"id":2721}},"4033":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4034":{"varMapping":{"__isSmartRef__":true,"id":4035},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4035":{"this":{"__isSmartRef__":true,"id":2721}},"4036":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4037":{"varMapping":{"__isSmartRef__":true,"id":4038},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4038":{"this":{"__isSmartRef__":true,"id":2721}},"4039":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4040":{"varMapping":{"__isSmartRef__":true,"id":4041},"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":4042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4041":{"this":{"__isSmartRef__":true,"id":2721}},"4042":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4043":{"varMapping":{"__isSmartRef__":true,"id":4044},"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":4045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4044":{"this":{"__isSmartRef__":true,"id":2721}},"4045":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4046":{"varMapping":{"__isSmartRef__":true,"id":4047},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4047":{"this":{"__isSmartRef__":true,"id":2721}},"4048":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4049":{"varMapping":{"__isSmartRef__":true,"id":4050},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4050":{"this":{"__isSmartRef__":true,"id":2721}},"4051":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4052":{"varMapping":{"__isSmartRef__":true,"id":4053},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4053":{"this":{"__isSmartRef__":true,"id":2721}},"4054":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4055":{"varMapping":{"__isSmartRef__":true,"id":4056},"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":4057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4056":{"this":{"__isSmartRef__":true,"id":2721}},"4057":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4058":{"varMapping":{"__isSmartRef__":true,"id":4059},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4059":{"this":{"__isSmartRef__":true,"id":2721}},"4060":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4061":{"varMapping":{"__isSmartRef__":true,"id":4062},"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":4063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4062":{"this":{"__isSmartRef__":true,"id":2721}},"4063":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4064":{"varMapping":{"__isSmartRef__":true,"id":4065},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4065":{"this":{"__isSmartRef__":true,"id":2721}},"4066":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4067":{"varMapping":{"__isSmartRef__":true,"id":4068},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4068":{"this":{"__isSmartRef__":true,"id":2721}},"4069":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4070":{"varMapping":{"__isSmartRef__":true,"id":4071},"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":4072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4071":{"this":{"__isSmartRef__":true,"id":2721}},"4072":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4073":{"varMapping":{"__isSmartRef__":true,"id":4074},"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":4075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4074":{"this":{"__isSmartRef__":true,"id":2721}},"4075":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4076":{"varMapping":{"__isSmartRef__":true,"id":4077},"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":4078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4077":{"this":{"__isSmartRef__":true,"id":2721}},"4078":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4079":{"varMapping":{"__isSmartRef__":true,"id":4080},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4080":{"this":{"__isSmartRef__":true,"id":2721}},"4081":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4082":{"varMapping":{"__isSmartRef__":true,"id":4083},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4083":{"this":{"__isSmartRef__":true,"id":2721}},"4084":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4085":{"varMapping":{"__isSmartRef__":true,"id":4086},"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":4087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4086":{"this":{"__isSmartRef__":true,"id":2721}},"4087":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4088":{"setDevStyle":{"__isSmartRef__":true,"id":4089},"setNormalStyle":{"__isSmartRef__":true,"id":4092},"tileSize":{"__isSmartRef__":true,"id":4095},"become":{"__isSmartRef__":true,"id":4098},"onMouseDown":{"__isSmartRef__":true,"id":4101},"setGridPosition":{"__isSmartRef__":true,"id":4108},"toolbox":{"__isSmartRef__":true,"id":4111},"distanceTo":{"__isSmartRef__":true,"id":4114},"tileWasDropped":{"__isSmartRef__":true,"id":4117},"isObstacle":{"__isSmartRef__":true,"id":4120},"neighboursInDirection":{"__isSmartRef__":true,"id":4123},"neighbours":{"__isSmartRef__":true,"id":4126},"zIndex":{"__isSmartRef__":true,"id":4129},"obstacles":{"__isSmartRef__":true,"id":4132},"addObstacle":{"__isSmartRef__":true,"id":4135},"removeObstacle":{"__isSmartRef__":true,"id":4138},"isTile":{"__isSmartRef__":true,"id":4141},"neighbourAt":{"__isSmartRef__":true,"id":4144},"map":{"__isSmartRef__":true,"id":4147},"game":{"__isSmartRef__":true,"id":4150},"reset":{"__isSmartRef__":true,"id":4153},"shallowCopy":{"__isSmartRef__":true,"id":4156},"characters":{"__isSmartRef__":true,"id":4159},"enterTile":{"__isSmartRef__":true,"id":4162},"leaveTile":{"__isSmartRef__":true,"id":4165},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4168}},"4089":{"varMapping":{"__isSmartRef__":true,"id":4090},"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":4091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4090":{"this":{"__isSmartRef__":true,"id":2624}},"4091":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4092":{"varMapping":{"__isSmartRef__":true,"id":4093},"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":4094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4093":{"this":{"__isSmartRef__":true,"id":2624}},"4094":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4095":{"varMapping":{"__isSmartRef__":true,"id":4096},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4096":{"this":{"__isSmartRef__":true,"id":2624}},"4097":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4098":{"varMapping":{"__isSmartRef__":true,"id":4099},"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":4100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4099":{"this":{"__isSmartRef__":true,"id":2624}},"4100":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4101":{"varMapping":{"__isSmartRef__":true,"id":4102},"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":4107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4102":{"this":{"__isSmartRef__":true,"id":2624},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4103}},"4103":{"$super":{"__isSmartRef__":true,"id":4104}},"4104":{"varMapping":{"__isSmartRef__":true,"id":4105},"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":4106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4105":{"obj":{"__isSmartRef__":true,"id":2624},"name":"onMouseDown"},"4106":{},"4107":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4108":{"varMapping":{"__isSmartRef__":true,"id":4109},"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":4110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4109":{"this":{"__isSmartRef__":true,"id":2624}},"4110":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4111":{"varMapping":{"__isSmartRef__":true,"id":4112},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4112":{"this":{"__isSmartRef__":true,"id":2624}},"4113":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4114":{"varMapping":{"__isSmartRef__":true,"id":4115},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4115":{"this":{"__isSmartRef__":true,"id":2624}},"4116":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4117":{"varMapping":{"__isSmartRef__":true,"id":4118},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4118":{"this":{"__isSmartRef__":true,"id":2624}},"4119":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4120":{"varMapping":{"__isSmartRef__":true,"id":4121},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4121":{"this":{"__isSmartRef__":true,"id":2624}},"4122":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4123":{"varMapping":{"__isSmartRef__":true,"id":4124},"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":4125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4124":{"this":{"__isSmartRef__":true,"id":2624}},"4125":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4126":{"varMapping":{"__isSmartRef__":true,"id":4127},"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":4128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4127":{"this":{"__isSmartRef__":true,"id":2624}},"4128":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4129":{"varMapping":{"__isSmartRef__":true,"id":4130},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4130":{"this":{"__isSmartRef__":true,"id":2624}},"4131":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4132":{"varMapping":{"__isSmartRef__":true,"id":4133},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4133":{"this":{"__isSmartRef__":true,"id":2624}},"4134":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4135":{"varMapping":{"__isSmartRef__":true,"id":4136},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4136":{"this":{"__isSmartRef__":true,"id":2624}},"4137":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4138":{"varMapping":{"__isSmartRef__":true,"id":4139},"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":4140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4139":{"this":{"__isSmartRef__":true,"id":2624}},"4140":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4141":{"varMapping":{"__isSmartRef__":true,"id":4142},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4142":{"this":{"__isSmartRef__":true,"id":2624}},"4143":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4144":{"varMapping":{"__isSmartRef__":true,"id":4145},"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":4146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4145":{"this":{"__isSmartRef__":true,"id":2624}},"4146":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4147":{"varMapping":{"__isSmartRef__":true,"id":4148},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4148":{"this":{"__isSmartRef__":true,"id":2624}},"4149":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4150":{"varMapping":{"__isSmartRef__":true,"id":4151},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4151":{"this":{"__isSmartRef__":true,"id":2624}},"4152":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4153":{"varMapping":{"__isSmartRef__":true,"id":4154},"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":4155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4154":{"this":{"__isSmartRef__":true,"id":2624}},"4155":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4156":{"varMapping":{"__isSmartRef__":true,"id":4157},"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":4158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4157":{"this":{"__isSmartRef__":true,"id":2624}},"4158":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4159":{"varMapping":{"__isSmartRef__":true,"id":4160},"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":4161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4160":{"this":{"__isSmartRef__":true,"id":2624}},"4161":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4162":{"varMapping":{"__isSmartRef__":true,"id":4163},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4163":{"this":{"__isSmartRef__":true,"id":2624}},"4164":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4165":{"varMapping":{"__isSmartRef__":true,"id":4166},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4166":{"this":{"__isSmartRef__":true,"id":2624}},"4167":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4168":{"varMapping":{"__isSmartRef__":true,"id":4169},"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":4170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4169":{"this":{"__isSmartRef__":true,"id":2624}},"4170":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4171":{"setDevStyle":{"__isSmartRef__":true,"id":4172},"setNormalStyle":{"__isSmartRef__":true,"id":4175},"tileSize":{"__isSmartRef__":true,"id":4178},"become":{"__isSmartRef__":true,"id":4181},"onMouseDown":{"__isSmartRef__":true,"id":4184},"setGridPosition":{"__isSmartRef__":true,"id":4191},"toolbox":{"__isSmartRef__":true,"id":4194},"distanceTo":{"__isSmartRef__":true,"id":4197},"tileWasDropped":{"__isSmartRef__":true,"id":4200},"isObstacle":{"__isSmartRef__":true,"id":4203},"neighboursInDirection":{"__isSmartRef__":true,"id":4206},"neighbours":{"__isSmartRef__":true,"id":4209},"zIndex":{"__isSmartRef__":true,"id":4212},"obstacles":{"__isSmartRef__":true,"id":4215},"addObstacle":{"__isSmartRef__":true,"id":4218},"removeObstacle":{"__isSmartRef__":true,"id":4221},"isTile":{"__isSmartRef__":true,"id":4224},"neighbourAt":{"__isSmartRef__":true,"id":4227},"map":{"__isSmartRef__":true,"id":4230},"game":{"__isSmartRef__":true,"id":4233},"reset":{"__isSmartRef__":true,"id":4236},"shallowCopy":{"__isSmartRef__":true,"id":4239},"characters":{"__isSmartRef__":true,"id":4242},"enterTile":{"__isSmartRef__":true,"id":4245},"leaveTile":{"__isSmartRef__":true,"id":4248},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4251}},"4172":{"varMapping":{"__isSmartRef__":true,"id":4173},"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":4174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4173":{"this":{"__isSmartRef__":true,"id":1343}},"4174":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4175":{"varMapping":{"__isSmartRef__":true,"id":4176},"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":4177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4176":{"this":{"__isSmartRef__":true,"id":1343}},"4177":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4178":{"varMapping":{"__isSmartRef__":true,"id":4179},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4179":{"this":{"__isSmartRef__":true,"id":1343}},"4180":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4181":{"varMapping":{"__isSmartRef__":true,"id":4182},"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":4183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4182":{"this":{"__isSmartRef__":true,"id":1343}},"4183":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4184":{"varMapping":{"__isSmartRef__":true,"id":4185},"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":4190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4185":{"this":{"__isSmartRef__":true,"id":1343},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4186}},"4186":{"$super":{"__isSmartRef__":true,"id":4187}},"4187":{"varMapping":{"__isSmartRef__":true,"id":4188},"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":4189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4188":{"obj":{"__isSmartRef__":true,"id":1343},"name":"onMouseDown"},"4189":{},"4190":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4191":{"varMapping":{"__isSmartRef__":true,"id":4192},"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":4193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4192":{"this":{"__isSmartRef__":true,"id":1343}},"4193":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4194":{"varMapping":{"__isSmartRef__":true,"id":4195},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4195":{"this":{"__isSmartRef__":true,"id":1343}},"4196":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4197":{"varMapping":{"__isSmartRef__":true,"id":4198},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4198":{"this":{"__isSmartRef__":true,"id":1343}},"4199":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4200":{"varMapping":{"__isSmartRef__":true,"id":4201},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4201":{"this":{"__isSmartRef__":true,"id":1343}},"4202":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4203":{"varMapping":{"__isSmartRef__":true,"id":4204},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4204":{"this":{"__isSmartRef__":true,"id":1343}},"4205":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4206":{"varMapping":{"__isSmartRef__":true,"id":4207},"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":4208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4207":{"this":{"__isSmartRef__":true,"id":1343}},"4208":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4209":{"varMapping":{"__isSmartRef__":true,"id":4210},"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":4211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4210":{"this":{"__isSmartRef__":true,"id":1343}},"4211":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4212":{"varMapping":{"__isSmartRef__":true,"id":4213},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4213":{"this":{"__isSmartRef__":true,"id":1343}},"4214":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4215":{"varMapping":{"__isSmartRef__":true,"id":4216},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4216":{"this":{"__isSmartRef__":true,"id":1343}},"4217":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4218":{"varMapping":{"__isSmartRef__":true,"id":4219},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4219":{"this":{"__isSmartRef__":true,"id":1343}},"4220":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4221":{"varMapping":{"__isSmartRef__":true,"id":4222},"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":4223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4222":{"this":{"__isSmartRef__":true,"id":1343}},"4223":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4224":{"varMapping":{"__isSmartRef__":true,"id":4225},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4225":{"this":{"__isSmartRef__":true,"id":1343}},"4226":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4227":{"varMapping":{"__isSmartRef__":true,"id":4228},"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":4229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4228":{"this":{"__isSmartRef__":true,"id":1343}},"4229":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4230":{"varMapping":{"__isSmartRef__":true,"id":4231},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4231":{"this":{"__isSmartRef__":true,"id":1343}},"4232":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4233":{"varMapping":{"__isSmartRef__":true,"id":4234},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4234":{"this":{"__isSmartRef__":true,"id":1343}},"4235":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4236":{"varMapping":{"__isSmartRef__":true,"id":4237},"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":4238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4237":{"this":{"__isSmartRef__":true,"id":1343}},"4238":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4239":{"varMapping":{"__isSmartRef__":true,"id":4240},"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":4241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4240":{"this":{"__isSmartRef__":true,"id":1343}},"4241":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4242":{"varMapping":{"__isSmartRef__":true,"id":4243},"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":4244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4243":{"this":{"__isSmartRef__":true,"id":1343}},"4244":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4245":{"varMapping":{"__isSmartRef__":true,"id":4246},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4246":{"this":{"__isSmartRef__":true,"id":1343}},"4247":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4248":{"varMapping":{"__isSmartRef__":true,"id":4249},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4249":{"this":{"__isSmartRef__":true,"id":1343}},"4250":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4251":{"varMapping":{"__isSmartRef__":true,"id":4252},"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":4253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4252":{"this":{"__isSmartRef__":true,"id":1343}},"4253":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4254":{"setDevStyle":{"__isSmartRef__":true,"id":4255},"setNormalStyle":{"__isSmartRef__":true,"id":4258},"tileSize":{"__isSmartRef__":true,"id":4261},"become":{"__isSmartRef__":true,"id":4264},"onMouseDown":{"__isSmartRef__":true,"id":4267},"setGridPosition":{"__isSmartRef__":true,"id":4274},"toolbox":{"__isSmartRef__":true,"id":4277},"distanceTo":{"__isSmartRef__":true,"id":4280},"tileWasDropped":{"__isSmartRef__":true,"id":4283},"isObstacle":{"__isSmartRef__":true,"id":4286},"neighboursInDirection":{"__isSmartRef__":true,"id":4289},"neighbours":{"__isSmartRef__":true,"id":4292},"zIndex":{"__isSmartRef__":true,"id":4295},"obstacles":{"__isSmartRef__":true,"id":4298},"addObstacle":{"__isSmartRef__":true,"id":4301},"removeObstacle":{"__isSmartRef__":true,"id":4304},"isTile":{"__isSmartRef__":true,"id":4307},"neighbourAt":{"__isSmartRef__":true,"id":4310},"map":{"__isSmartRef__":true,"id":4313},"game":{"__isSmartRef__":true,"id":4316},"reset":{"__isSmartRef__":true,"id":4319},"shallowCopy":{"__isSmartRef__":true,"id":4322},"characters":{"__isSmartRef__":true,"id":4325},"enterTile":{"__isSmartRef__":true,"id":4328},"leaveTile":{"__isSmartRef__":true,"id":4331},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4334}},"4255":{"varMapping":{"__isSmartRef__":true,"id":4256},"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":4257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4256":{"this":{"__isSmartRef__":true,"id":1336}},"4257":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4258":{"varMapping":{"__isSmartRef__":true,"id":4259},"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":4260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4259":{"this":{"__isSmartRef__":true,"id":1336}},"4260":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4261":{"varMapping":{"__isSmartRef__":true,"id":4262},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4262":{"this":{"__isSmartRef__":true,"id":1336}},"4263":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4264":{"varMapping":{"__isSmartRef__":true,"id":4265},"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":4266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4265":{"this":{"__isSmartRef__":true,"id":1336}},"4266":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4267":{"varMapping":{"__isSmartRef__":true,"id":4268},"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":4273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4268":{"this":{"__isSmartRef__":true,"id":1336},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4269}},"4269":{"$super":{"__isSmartRef__":true,"id":4270}},"4270":{"varMapping":{"__isSmartRef__":true,"id":4271},"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":4272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4271":{"obj":{"__isSmartRef__":true,"id":1336},"name":"onMouseDown"},"4272":{},"4273":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4274":{"varMapping":{"__isSmartRef__":true,"id":4275},"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":4276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4275":{"this":{"__isSmartRef__":true,"id":1336}},"4276":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4277":{"varMapping":{"__isSmartRef__":true,"id":4278},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4278":{"this":{"__isSmartRef__":true,"id":1336}},"4279":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4280":{"varMapping":{"__isSmartRef__":true,"id":4281},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4281":{"this":{"__isSmartRef__":true,"id":1336}},"4282":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4283":{"varMapping":{"__isSmartRef__":true,"id":4284},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4284":{"this":{"__isSmartRef__":true,"id":1336}},"4285":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4286":{"varMapping":{"__isSmartRef__":true,"id":4287},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4287":{"this":{"__isSmartRef__":true,"id":1336}},"4288":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4289":{"varMapping":{"__isSmartRef__":true,"id":4290},"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":4291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4290":{"this":{"__isSmartRef__":true,"id":1336}},"4291":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4292":{"varMapping":{"__isSmartRef__":true,"id":4293},"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":4294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4293":{"this":{"__isSmartRef__":true,"id":1336}},"4294":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4295":{"varMapping":{"__isSmartRef__":true,"id":4296},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4296":{"this":{"__isSmartRef__":true,"id":1336}},"4297":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4298":{"varMapping":{"__isSmartRef__":true,"id":4299},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4299":{"this":{"__isSmartRef__":true,"id":1336}},"4300":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4301":{"varMapping":{"__isSmartRef__":true,"id":4302},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4302":{"this":{"__isSmartRef__":true,"id":1336}},"4303":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4304":{"varMapping":{"__isSmartRef__":true,"id":4305},"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":4306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4305":{"this":{"__isSmartRef__":true,"id":1336}},"4306":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4307":{"varMapping":{"__isSmartRef__":true,"id":4308},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4308":{"this":{"__isSmartRef__":true,"id":1336}},"4309":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4310":{"varMapping":{"__isSmartRef__":true,"id":4311},"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":4312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4311":{"this":{"__isSmartRef__":true,"id":1336}},"4312":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4313":{"varMapping":{"__isSmartRef__":true,"id":4314},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4314":{"this":{"__isSmartRef__":true,"id":1336}},"4315":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4316":{"varMapping":{"__isSmartRef__":true,"id":4317},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4317":{"this":{"__isSmartRef__":true,"id":1336}},"4318":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4319":{"varMapping":{"__isSmartRef__":true,"id":4320},"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":4321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4320":{"this":{"__isSmartRef__":true,"id":1336}},"4321":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4322":{"varMapping":{"__isSmartRef__":true,"id":4323},"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":4324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4323":{"this":{"__isSmartRef__":true,"id":1336}},"4324":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4325":{"varMapping":{"__isSmartRef__":true,"id":4326},"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":4327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4326":{"this":{"__isSmartRef__":true,"id":1336}},"4327":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4328":{"varMapping":{"__isSmartRef__":true,"id":4329},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4329":{"this":{"__isSmartRef__":true,"id":1336}},"4330":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4331":{"varMapping":{"__isSmartRef__":true,"id":4332},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4332":{"this":{"__isSmartRef__":true,"id":1336}},"4333":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4334":{"varMapping":{"__isSmartRef__":true,"id":4335},"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":4336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4335":{"this":{"__isSmartRef__":true,"id":1336}},"4336":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4337":{"submorphs":[{"__isSmartRef__":true,"id":4338}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4342},"derivationIds":[null,"7F043BA9-F459-4A6B-80F1-F282DB759CC3"],"id":"956BCCAF-03F4-4A67-8BEE-BF8A68C5FEAD","eventHandler":{"__isSmartRef__":true,"id":4343},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":3,"column":1,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":4338},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4344},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,144.0)"},"4338":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4339},"derivationIds":[null,"3F99B0ED-C8D9-46CD-9A50-A87BE9724BB6"],"id":"E13D2F39-CEB6-490D-AAF7-FD82A64F3D3F","eventHandler":{"__isSmartRef__":true,"id":4340},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4337},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4341},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"4339":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-3f99b0ed-c8d9-46cd-9a50-a87be9724bb6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"4340":{"morph":{"__isSmartRef__":true,"id":4338},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4341":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"4342":{"_NodeClass":["morph","box"],"_NodeId":"morph-7f043ba9-f459-4a6b-80f1-f282db759cc3","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4343":{"morph":{"__isSmartRef__":true,"id":4337},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4344":{"setDevStyle":{"__isSmartRef__":true,"id":4345},"setNormalStyle":{"__isSmartRef__":true,"id":4348},"tileSize":{"__isSmartRef__":true,"id":4351},"become":{"__isSmartRef__":true,"id":4354},"onMouseDown":{"__isSmartRef__":true,"id":4357},"setGridPosition":{"__isSmartRef__":true,"id":4364},"toolbox":{"__isSmartRef__":true,"id":4367},"distanceTo":{"__isSmartRef__":true,"id":4370},"tileWasDropped":{"__isSmartRef__":true,"id":4373},"isObstacle":{"__isSmartRef__":true,"id":4376},"neighboursInDirection":{"__isSmartRef__":true,"id":4379},"neighbours":{"__isSmartRef__":true,"id":4382},"zIndex":{"__isSmartRef__":true,"id":4385},"obstacles":{"__isSmartRef__":true,"id":4388},"addObstacle":{"__isSmartRef__":true,"id":4391},"removeObstacle":{"__isSmartRef__":true,"id":4394},"isTile":{"__isSmartRef__":true,"id":4397},"neighbourAt":{"__isSmartRef__":true,"id":4400},"map":{"__isSmartRef__":true,"id":4403},"game":{"__isSmartRef__":true,"id":4406},"reset":{"__isSmartRef__":true,"id":4409},"shallowCopy":{"__isSmartRef__":true,"id":4412},"characters":{"__isSmartRef__":true,"id":4415},"enterTile":{"__isSmartRef__":true,"id":4418},"leaveTile":{"__isSmartRef__":true,"id":4421},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4424}},"4345":{"varMapping":{"__isSmartRef__":true,"id":4346},"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":4347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4346":{"this":{"__isSmartRef__":true,"id":4337}},"4347":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4348":{"varMapping":{"__isSmartRef__":true,"id":4349},"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":4350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4349":{"this":{"__isSmartRef__":true,"id":4337}},"4350":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4351":{"varMapping":{"__isSmartRef__":true,"id":4352},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4352":{"this":{"__isSmartRef__":true,"id":4337}},"4353":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4354":{"varMapping":{"__isSmartRef__":true,"id":4355},"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":4356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4355":{"this":{"__isSmartRef__":true,"id":4337}},"4356":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4357":{"varMapping":{"__isSmartRef__":true,"id":4358},"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":4363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4358":{"this":{"__isSmartRef__":true,"id":4337},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4359}},"4359":{"$super":{"__isSmartRef__":true,"id":4360}},"4360":{"varMapping":{"__isSmartRef__":true,"id":4361},"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":4362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4361":{"obj":{"__isSmartRef__":true,"id":4337},"name":"onMouseDown"},"4362":{},"4363":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4364":{"varMapping":{"__isSmartRef__":true,"id":4365},"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":4366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4365":{"this":{"__isSmartRef__":true,"id":4337}},"4366":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4367":{"varMapping":{"__isSmartRef__":true,"id":4368},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4368":{"this":{"__isSmartRef__":true,"id":4337}},"4369":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4370":{"varMapping":{"__isSmartRef__":true,"id":4371},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4371":{"this":{"__isSmartRef__":true,"id":4337}},"4372":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4373":{"varMapping":{"__isSmartRef__":true,"id":4374},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4374":{"this":{"__isSmartRef__":true,"id":4337}},"4375":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4376":{"varMapping":{"__isSmartRef__":true,"id":4377},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4377":{"this":{"__isSmartRef__":true,"id":4337}},"4378":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4379":{"varMapping":{"__isSmartRef__":true,"id":4380},"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":4381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4380":{"this":{"__isSmartRef__":true,"id":4337}},"4381":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4382":{"varMapping":{"__isSmartRef__":true,"id":4383},"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":4384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4383":{"this":{"__isSmartRef__":true,"id":4337}},"4384":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4385":{"varMapping":{"__isSmartRef__":true,"id":4386},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4386":{"this":{"__isSmartRef__":true,"id":4337}},"4387":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4388":{"varMapping":{"__isSmartRef__":true,"id":4389},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4389":{"this":{"__isSmartRef__":true,"id":4337}},"4390":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4391":{"varMapping":{"__isSmartRef__":true,"id":4392},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4392":{"this":{"__isSmartRef__":true,"id":4337}},"4393":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4394":{"varMapping":{"__isSmartRef__":true,"id":4395},"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":4396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4395":{"this":{"__isSmartRef__":true,"id":4337}},"4396":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4397":{"varMapping":{"__isSmartRef__":true,"id":4398},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4398":{"this":{"__isSmartRef__":true,"id":4337}},"4399":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4400":{"varMapping":{"__isSmartRef__":true,"id":4401},"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":4402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4401":{"this":{"__isSmartRef__":true,"id":4337}},"4402":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4403":{"varMapping":{"__isSmartRef__":true,"id":4404},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4404":{"this":{"__isSmartRef__":true,"id":4337}},"4405":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4406":{"varMapping":{"__isSmartRef__":true,"id":4407},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4407":{"this":{"__isSmartRef__":true,"id":4337}},"4408":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4409":{"varMapping":{"__isSmartRef__":true,"id":4410},"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":4411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4410":{"this":{"__isSmartRef__":true,"id":4337}},"4411":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4412":{"varMapping":{"__isSmartRef__":true,"id":4413},"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":4414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4413":{"this":{"__isSmartRef__":true,"id":4337}},"4414":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4415":{"varMapping":{"__isSmartRef__":true,"id":4416},"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":4417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4416":{"this":{"__isSmartRef__":true,"id":4337}},"4417":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4418":{"varMapping":{"__isSmartRef__":true,"id":4419},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4419":{"this":{"__isSmartRef__":true,"id":4337}},"4420":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4421":{"varMapping":{"__isSmartRef__":true,"id":4422},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4422":{"this":{"__isSmartRef__":true,"id":4337}},"4423":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4424":{"varMapping":{"__isSmartRef__":true,"id":4425},"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":4426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4425":{"this":{"__isSmartRef__":true,"id":4337}},"4426":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4427":{"setDevStyle":{"__isSmartRef__":true,"id":4428},"setNormalStyle":{"__isSmartRef__":true,"id":4431},"tileSize":{"__isSmartRef__":true,"id":4434},"become":{"__isSmartRef__":true,"id":4437},"onMouseDown":{"__isSmartRef__":true,"id":4440},"setGridPosition":{"__isSmartRef__":true,"id":4447},"toolbox":{"__isSmartRef__":true,"id":4450},"distanceTo":{"__isSmartRef__":true,"id":4453},"tileWasDropped":{"__isSmartRef__":true,"id":4456},"isObstacle":{"__isSmartRef__":true,"id":4459},"neighboursInDirection":{"__isSmartRef__":true,"id":4462},"neighbours":{"__isSmartRef__":true,"id":4465},"zIndex":{"__isSmartRef__":true,"id":4468},"obstacles":{"__isSmartRef__":true,"id":4471},"addObstacle":{"__isSmartRef__":true,"id":4474},"removeObstacle":{"__isSmartRef__":true,"id":4477},"isTile":{"__isSmartRef__":true,"id":4480},"neighbourAt":{"__isSmartRef__":true,"id":4483},"map":{"__isSmartRef__":true,"id":4486},"game":{"__isSmartRef__":true,"id":4489},"reset":{"__isSmartRef__":true,"id":4492},"shallowCopy":{"__isSmartRef__":true,"id":4495},"characters":{"__isSmartRef__":true,"id":4498},"enterTile":{"__isSmartRef__":true,"id":4501},"leaveTile":{"__isSmartRef__":true,"id":4504},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4507}},"4428":{"varMapping":{"__isSmartRef__":true,"id":4429},"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":4430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4429":{"this":{"__isSmartRef__":true,"id":1059}},"4430":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4431":{"varMapping":{"__isSmartRef__":true,"id":4432},"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":4433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4432":{"this":{"__isSmartRef__":true,"id":1059}},"4433":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4434":{"varMapping":{"__isSmartRef__":true,"id":4435},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4435":{"this":{"__isSmartRef__":true,"id":1059}},"4436":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4437":{"varMapping":{"__isSmartRef__":true,"id":4438},"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":4439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4438":{"this":{"__isSmartRef__":true,"id":1059}},"4439":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4440":{"varMapping":{"__isSmartRef__":true,"id":4441},"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":4446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4441":{"this":{"__isSmartRef__":true,"id":1059},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4442}},"4442":{"$super":{"__isSmartRef__":true,"id":4443}},"4443":{"varMapping":{"__isSmartRef__":true,"id":4444},"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":4445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4444":{"obj":{"__isSmartRef__":true,"id":1059},"name":"onMouseDown"},"4445":{},"4446":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4447":{"varMapping":{"__isSmartRef__":true,"id":4448},"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":4449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4448":{"this":{"__isSmartRef__":true,"id":1059}},"4449":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4450":{"varMapping":{"__isSmartRef__":true,"id":4451},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4451":{"this":{"__isSmartRef__":true,"id":1059}},"4452":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4453":{"varMapping":{"__isSmartRef__":true,"id":4454},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4454":{"this":{"__isSmartRef__":true,"id":1059}},"4455":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4456":{"varMapping":{"__isSmartRef__":true,"id":4457},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4457":{"this":{"__isSmartRef__":true,"id":1059}},"4458":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4459":{"varMapping":{"__isSmartRef__":true,"id":4460},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4460":{"this":{"__isSmartRef__":true,"id":1059}},"4461":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4462":{"varMapping":{"__isSmartRef__":true,"id":4463},"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":4464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4463":{"this":{"__isSmartRef__":true,"id":1059}},"4464":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4465":{"varMapping":{"__isSmartRef__":true,"id":4466},"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":4467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4466":{"this":{"__isSmartRef__":true,"id":1059}},"4467":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4468":{"varMapping":{"__isSmartRef__":true,"id":4469},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4469":{"this":{"__isSmartRef__":true,"id":1059}},"4470":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4471":{"varMapping":{"__isSmartRef__":true,"id":4472},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4472":{"this":{"__isSmartRef__":true,"id":1059}},"4473":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4474":{"varMapping":{"__isSmartRef__":true,"id":4475},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4475":{"this":{"__isSmartRef__":true,"id":1059}},"4476":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4477":{"varMapping":{"__isSmartRef__":true,"id":4478},"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":4479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4478":{"this":{"__isSmartRef__":true,"id":1059}},"4479":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4480":{"varMapping":{"__isSmartRef__":true,"id":4481},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4481":{"this":{"__isSmartRef__":true,"id":1059}},"4482":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4483":{"varMapping":{"__isSmartRef__":true,"id":4484},"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":4485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4484":{"this":{"__isSmartRef__":true,"id":1059}},"4485":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4486":{"varMapping":{"__isSmartRef__":true,"id":4487},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4487":{"this":{"__isSmartRef__":true,"id":1059}},"4488":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4489":{"varMapping":{"__isSmartRef__":true,"id":4490},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4490":{"this":{"__isSmartRef__":true,"id":1059}},"4491":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4492":{"varMapping":{"__isSmartRef__":true,"id":4493},"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":4494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4493":{"this":{"__isSmartRef__":true,"id":1059}},"4494":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4495":{"varMapping":{"__isSmartRef__":true,"id":4496},"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":4497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4496":{"this":{"__isSmartRef__":true,"id":1059}},"4497":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4498":{"varMapping":{"__isSmartRef__":true,"id":4499},"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":4500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4499":{"this":{"__isSmartRef__":true,"id":1059}},"4500":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4501":{"varMapping":{"__isSmartRef__":true,"id":4502},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4502":{"this":{"__isSmartRef__":true,"id":1059}},"4503":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4504":{"varMapping":{"__isSmartRef__":true,"id":4505},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4505":{"this":{"__isSmartRef__":true,"id":1059}},"4506":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4507":{"varMapping":{"__isSmartRef__":true,"id":4508},"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":4509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4508":{"this":{"__isSmartRef__":true,"id":1059}},"4509":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4510":{"submorphs":[{"__isSmartRef__":true,"id":4511}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4515},"derivationIds":[null,"7032FC32-110F-4F97-A58E-336F5B79F7CC"],"id":"7671C5F0-BE85-48A4-8E21-EC49C1299B73","eventHandler":{"__isSmartRef__":true,"id":4516},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":0,"column":1,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":4511},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4517},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,0.0)"},"4511":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4512},"derivationIds":[null,"A59C2662-6C8F-4658-BAA1-F92BD68E81F6"],"id":"BC9B8F36-6306-4985-AD6A-EF0389F3E691","eventHandler":{"__isSmartRef__":true,"id":4513},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4510},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4514},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"4512":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-a59c2662-6c8f-4658-baa1-f92bd68e81f6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"4513":{"morph":{"__isSmartRef__":true,"id":4511},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4514":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"4515":{"_NodeClass":["morph","box"],"_NodeId":"morph-7032fc32-110f-4f97-a58e-336f5b79f7cc","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4516":{"morph":{"__isSmartRef__":true,"id":4510},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4517":{"setDevStyle":{"__isSmartRef__":true,"id":4518},"setNormalStyle":{"__isSmartRef__":true,"id":4521},"tileSize":{"__isSmartRef__":true,"id":4524},"become":{"__isSmartRef__":true,"id":4527},"onMouseDown":{"__isSmartRef__":true,"id":4530},"setGridPosition":{"__isSmartRef__":true,"id":4537},"toolbox":{"__isSmartRef__":true,"id":4540},"distanceTo":{"__isSmartRef__":true,"id":4543},"tileWasDropped":{"__isSmartRef__":true,"id":4546},"isObstacle":{"__isSmartRef__":true,"id":4549},"neighboursInDirection":{"__isSmartRef__":true,"id":4552},"neighbours":{"__isSmartRef__":true,"id":4555},"zIndex":{"__isSmartRef__":true,"id":4558},"obstacles":{"__isSmartRef__":true,"id":4561},"addObstacle":{"__isSmartRef__":true,"id":4564},"removeObstacle":{"__isSmartRef__":true,"id":4567},"isTile":{"__isSmartRef__":true,"id":4570},"neighbourAt":{"__isSmartRef__":true,"id":4573},"map":{"__isSmartRef__":true,"id":4576},"game":{"__isSmartRef__":true,"id":4579},"reset":{"__isSmartRef__":true,"id":4582},"shallowCopy":{"__isSmartRef__":true,"id":4585},"characters":{"__isSmartRef__":true,"id":4588},"enterTile":{"__isSmartRef__":true,"id":4591},"leaveTile":{"__isSmartRef__":true,"id":4594},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4597}},"4518":{"varMapping":{"__isSmartRef__":true,"id":4519},"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":4520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4519":{"this":{"__isSmartRef__":true,"id":4510}},"4520":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4521":{"varMapping":{"__isSmartRef__":true,"id":4522},"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":4523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4522":{"this":{"__isSmartRef__":true,"id":4510}},"4523":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4524":{"varMapping":{"__isSmartRef__":true,"id":4525},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4525":{"this":{"__isSmartRef__":true,"id":4510}},"4526":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4527":{"varMapping":{"__isSmartRef__":true,"id":4528},"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":4529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4528":{"this":{"__isSmartRef__":true,"id":4510}},"4529":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4530":{"varMapping":{"__isSmartRef__":true,"id":4531},"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":4536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4531":{"this":{"__isSmartRef__":true,"id":4510},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4532}},"4532":{"$super":{"__isSmartRef__":true,"id":4533}},"4533":{"varMapping":{"__isSmartRef__":true,"id":4534},"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":4535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4534":{"obj":{"__isSmartRef__":true,"id":4510},"name":"onMouseDown"},"4535":{},"4536":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4537":{"varMapping":{"__isSmartRef__":true,"id":4538},"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":4539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4538":{"this":{"__isSmartRef__":true,"id":4510}},"4539":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4540":{"varMapping":{"__isSmartRef__":true,"id":4541},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4541":{"this":{"__isSmartRef__":true,"id":4510}},"4542":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4543":{"varMapping":{"__isSmartRef__":true,"id":4544},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4544":{"this":{"__isSmartRef__":true,"id":4510}},"4545":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4546":{"varMapping":{"__isSmartRef__":true,"id":4547},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4547":{"this":{"__isSmartRef__":true,"id":4510}},"4548":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4549":{"varMapping":{"__isSmartRef__":true,"id":4550},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4550":{"this":{"__isSmartRef__":true,"id":4510}},"4551":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4552":{"varMapping":{"__isSmartRef__":true,"id":4553},"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":4554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4553":{"this":{"__isSmartRef__":true,"id":4510}},"4554":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4555":{"varMapping":{"__isSmartRef__":true,"id":4556},"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":4557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4556":{"this":{"__isSmartRef__":true,"id":4510}},"4557":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4558":{"varMapping":{"__isSmartRef__":true,"id":4559},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4559":{"this":{"__isSmartRef__":true,"id":4510}},"4560":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4561":{"varMapping":{"__isSmartRef__":true,"id":4562},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4562":{"this":{"__isSmartRef__":true,"id":4510}},"4563":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4564":{"varMapping":{"__isSmartRef__":true,"id":4565},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4565":{"this":{"__isSmartRef__":true,"id":4510}},"4566":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4567":{"varMapping":{"__isSmartRef__":true,"id":4568},"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":4569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4568":{"this":{"__isSmartRef__":true,"id":4510}},"4569":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4570":{"varMapping":{"__isSmartRef__":true,"id":4571},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4571":{"this":{"__isSmartRef__":true,"id":4510}},"4572":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4573":{"varMapping":{"__isSmartRef__":true,"id":4574},"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":4575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4574":{"this":{"__isSmartRef__":true,"id":4510}},"4575":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4576":{"varMapping":{"__isSmartRef__":true,"id":4577},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4577":{"this":{"__isSmartRef__":true,"id":4510}},"4578":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4579":{"varMapping":{"__isSmartRef__":true,"id":4580},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4580":{"this":{"__isSmartRef__":true,"id":4510}},"4581":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4582":{"varMapping":{"__isSmartRef__":true,"id":4583},"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":4584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4583":{"this":{"__isSmartRef__":true,"id":4510}},"4584":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4585":{"varMapping":{"__isSmartRef__":true,"id":4586},"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":4587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4586":{"this":{"__isSmartRef__":true,"id":4510}},"4587":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4588":{"varMapping":{"__isSmartRef__":true,"id":4589},"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":4590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4589":{"this":{"__isSmartRef__":true,"id":4510}},"4590":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4591":{"varMapping":{"__isSmartRef__":true,"id":4592},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4592":{"this":{"__isSmartRef__":true,"id":4510}},"4593":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4594":{"varMapping":{"__isSmartRef__":true,"id":4595},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4595":{"this":{"__isSmartRef__":true,"id":4510}},"4596":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4597":{"varMapping":{"__isSmartRef__":true,"id":4598},"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":4599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4598":{"this":{"__isSmartRef__":true,"id":4510}},"4599":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4600":{"submorphs":[{"__isSmartRef__":true,"id":4601}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4605},"derivationIds":[null,"4B747FCE-B749-4788-A259-0903C6A351F3"],"id":"BCCDBA72-CA43-422A-8B58-F99C899F0827","eventHandler":{"__isSmartRef__":true,"id":4606},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":3,"column":0,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":4601},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4607},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,144.0)"},"4601":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4602},"derivationIds":[null,"091874FD-A28F-4CF4-B1CE-CF2285E1D37C"],"id":"0064FB67-8C53-42EA-8B29-B42EB2D2A2CA","eventHandler":{"__isSmartRef__":true,"id":4603},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4600},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4604},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"4602":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-091874fd-a28f-4cf4-b1ce-cf2285e1d37c","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"4603":{"morph":{"__isSmartRef__":true,"id":4601},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4604":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"4605":{"_NodeClass":["morph","box"],"_NodeId":"morph-4b747fce-b749-4788-a259-0903c6a351f3","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4606":{"morph":{"__isSmartRef__":true,"id":4600},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4607":{"setDevStyle":{"__isSmartRef__":true,"id":4608},"setNormalStyle":{"__isSmartRef__":true,"id":4611},"tileSize":{"__isSmartRef__":true,"id":4614},"become":{"__isSmartRef__":true,"id":4617},"onMouseDown":{"__isSmartRef__":true,"id":4620},"setGridPosition":{"__isSmartRef__":true,"id":4627},"toolbox":{"__isSmartRef__":true,"id":4630},"distanceTo":{"__isSmartRef__":true,"id":4633},"tileWasDropped":{"__isSmartRef__":true,"id":4636},"isObstacle":{"__isSmartRef__":true,"id":4639},"neighboursInDirection":{"__isSmartRef__":true,"id":4642},"neighbours":{"__isSmartRef__":true,"id":4645},"zIndex":{"__isSmartRef__":true,"id":4648},"obstacles":{"__isSmartRef__":true,"id":4651},"addObstacle":{"__isSmartRef__":true,"id":4654},"removeObstacle":{"__isSmartRef__":true,"id":4657},"isTile":{"__isSmartRef__":true,"id":4660},"neighbourAt":{"__isSmartRef__":true,"id":4663},"map":{"__isSmartRef__":true,"id":4666},"game":{"__isSmartRef__":true,"id":4669},"reset":{"__isSmartRef__":true,"id":4672},"shallowCopy":{"__isSmartRef__":true,"id":4675},"characters":{"__isSmartRef__":true,"id":4678},"enterTile":{"__isSmartRef__":true,"id":4681},"leaveTile":{"__isSmartRef__":true,"id":4684},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4687}},"4608":{"varMapping":{"__isSmartRef__":true,"id":4609},"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":4610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4609":{"this":{"__isSmartRef__":true,"id":4600}},"4610":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4611":{"varMapping":{"__isSmartRef__":true,"id":4612},"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":4613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4612":{"this":{"__isSmartRef__":true,"id":4600}},"4613":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4614":{"varMapping":{"__isSmartRef__":true,"id":4615},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4615":{"this":{"__isSmartRef__":true,"id":4600}},"4616":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4617":{"varMapping":{"__isSmartRef__":true,"id":4618},"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":4619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4618":{"this":{"__isSmartRef__":true,"id":4600}},"4619":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4620":{"varMapping":{"__isSmartRef__":true,"id":4621},"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":4626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4621":{"this":{"__isSmartRef__":true,"id":4600},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4622}},"4622":{"$super":{"__isSmartRef__":true,"id":4623}},"4623":{"varMapping":{"__isSmartRef__":true,"id":4624},"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":4625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4624":{"obj":{"__isSmartRef__":true,"id":4600},"name":"onMouseDown"},"4625":{},"4626":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4627":{"varMapping":{"__isSmartRef__":true,"id":4628},"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":4629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4628":{"this":{"__isSmartRef__":true,"id":4600}},"4629":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4630":{"varMapping":{"__isSmartRef__":true,"id":4631},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4631":{"this":{"__isSmartRef__":true,"id":4600}},"4632":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4633":{"varMapping":{"__isSmartRef__":true,"id":4634},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4634":{"this":{"__isSmartRef__":true,"id":4600}},"4635":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4636":{"varMapping":{"__isSmartRef__":true,"id":4637},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4637":{"this":{"__isSmartRef__":true,"id":4600}},"4638":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4639":{"varMapping":{"__isSmartRef__":true,"id":4640},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4640":{"this":{"__isSmartRef__":true,"id":4600}},"4641":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4642":{"varMapping":{"__isSmartRef__":true,"id":4643},"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":4644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4643":{"this":{"__isSmartRef__":true,"id":4600}},"4644":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4645":{"varMapping":{"__isSmartRef__":true,"id":4646},"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":4647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4646":{"this":{"__isSmartRef__":true,"id":4600}},"4647":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4648":{"varMapping":{"__isSmartRef__":true,"id":4649},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4649":{"this":{"__isSmartRef__":true,"id":4600}},"4650":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4651":{"varMapping":{"__isSmartRef__":true,"id":4652},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4652":{"this":{"__isSmartRef__":true,"id":4600}},"4653":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4654":{"varMapping":{"__isSmartRef__":true,"id":4655},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4655":{"this":{"__isSmartRef__":true,"id":4600}},"4656":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4657":{"varMapping":{"__isSmartRef__":true,"id":4658},"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":4659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4658":{"this":{"__isSmartRef__":true,"id":4600}},"4659":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4660":{"varMapping":{"__isSmartRef__":true,"id":4661},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4661":{"this":{"__isSmartRef__":true,"id":4600}},"4662":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4663":{"varMapping":{"__isSmartRef__":true,"id":4664},"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":4665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4664":{"this":{"__isSmartRef__":true,"id":4600}},"4665":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4666":{"varMapping":{"__isSmartRef__":true,"id":4667},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4667":{"this":{"__isSmartRef__":true,"id":4600}},"4668":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4669":{"varMapping":{"__isSmartRef__":true,"id":4670},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4670":{"this":{"__isSmartRef__":true,"id":4600}},"4671":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4672":{"varMapping":{"__isSmartRef__":true,"id":4673},"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":4674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4673":{"this":{"__isSmartRef__":true,"id":4600}},"4674":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4675":{"varMapping":{"__isSmartRef__":true,"id":4676},"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":4677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4676":{"this":{"__isSmartRef__":true,"id":4600}},"4677":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4678":{"varMapping":{"__isSmartRef__":true,"id":4679},"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":4680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4679":{"this":{"__isSmartRef__":true,"id":4600}},"4680":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4681":{"varMapping":{"__isSmartRef__":true,"id":4682},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4682":{"this":{"__isSmartRef__":true,"id":4600}},"4683":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4684":{"varMapping":{"__isSmartRef__":true,"id":4685},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4685":{"this":{"__isSmartRef__":true,"id":4600}},"4686":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4687":{"varMapping":{"__isSmartRef__":true,"id":4688},"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":4689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4688":{"this":{"__isSmartRef__":true,"id":4600}},"4689":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4690":{"submorphs":[{"__isSmartRef__":true,"id":4691}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4695},"derivationIds":[null,"89860524-4F92-4B4A-BA44-391D422CCDE1"],"id":"15E41083-461A-42ED-BCC5-2CF4A74A1EF4","eventHandler":{"__isSmartRef__":true,"id":4696},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":2,"column":0,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":4691},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4697},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,96.0)"},"4691":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4692},"derivationIds":[null,"2F0FB357-5178-468B-972E-F87736E4A1F3"],"id":"7FB38C4D-2329-4454-A992-8B5FDFEB7735","eventHandler":{"__isSmartRef__":true,"id":4693},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4690},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4694},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"4692":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-2f0fb357-5178-468b-972e-f87736e4a1f3","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"4693":{"morph":{"__isSmartRef__":true,"id":4691},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4694":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"4695":{"_NodeClass":["morph","box"],"_NodeId":"morph-89860524-4f92-4b4a-ba44-391d422ccde1","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4696":{"morph":{"__isSmartRef__":true,"id":4690},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4697":{"setDevStyle":{"__isSmartRef__":true,"id":4698},"setNormalStyle":{"__isSmartRef__":true,"id":4701},"tileSize":{"__isSmartRef__":true,"id":4704},"become":{"__isSmartRef__":true,"id":4707},"onMouseDown":{"__isSmartRef__":true,"id":4710},"setGridPosition":{"__isSmartRef__":true,"id":4717},"toolbox":{"__isSmartRef__":true,"id":4720},"distanceTo":{"__isSmartRef__":true,"id":4723},"tileWasDropped":{"__isSmartRef__":true,"id":4726},"isObstacle":{"__isSmartRef__":true,"id":4729},"neighboursInDirection":{"__isSmartRef__":true,"id":4732},"neighbours":{"__isSmartRef__":true,"id":4735},"zIndex":{"__isSmartRef__":true,"id":4738},"obstacles":{"__isSmartRef__":true,"id":4741},"addObstacle":{"__isSmartRef__":true,"id":4744},"removeObstacle":{"__isSmartRef__":true,"id":4747},"isTile":{"__isSmartRef__":true,"id":4750},"neighbourAt":{"__isSmartRef__":true,"id":4753},"map":{"__isSmartRef__":true,"id":4756},"game":{"__isSmartRef__":true,"id":4759},"reset":{"__isSmartRef__":true,"id":4762},"shallowCopy":{"__isSmartRef__":true,"id":4765},"characters":{"__isSmartRef__":true,"id":4768},"enterTile":{"__isSmartRef__":true,"id":4771},"leaveTile":{"__isSmartRef__":true,"id":4774},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4777}},"4698":{"varMapping":{"__isSmartRef__":true,"id":4699},"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":4700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4699":{"this":{"__isSmartRef__":true,"id":4690}},"4700":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4701":{"varMapping":{"__isSmartRef__":true,"id":4702},"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":4703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4702":{"this":{"__isSmartRef__":true,"id":4690}},"4703":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4704":{"varMapping":{"__isSmartRef__":true,"id":4705},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4705":{"this":{"__isSmartRef__":true,"id":4690}},"4706":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4707":{"varMapping":{"__isSmartRef__":true,"id":4708},"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":4709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4708":{"this":{"__isSmartRef__":true,"id":4690}},"4709":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4710":{"varMapping":{"__isSmartRef__":true,"id":4711},"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":4716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4711":{"this":{"__isSmartRef__":true,"id":4690},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4712}},"4712":{"$super":{"__isSmartRef__":true,"id":4713}},"4713":{"varMapping":{"__isSmartRef__":true,"id":4714},"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":4715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4714":{"obj":{"__isSmartRef__":true,"id":4690},"name":"onMouseDown"},"4715":{},"4716":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4717":{"varMapping":{"__isSmartRef__":true,"id":4718},"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":4719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4718":{"this":{"__isSmartRef__":true,"id":4690}},"4719":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4720":{"varMapping":{"__isSmartRef__":true,"id":4721},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4721":{"this":{"__isSmartRef__":true,"id":4690}},"4722":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4723":{"varMapping":{"__isSmartRef__":true,"id":4724},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4724":{"this":{"__isSmartRef__":true,"id":4690}},"4725":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4726":{"varMapping":{"__isSmartRef__":true,"id":4727},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4727":{"this":{"__isSmartRef__":true,"id":4690}},"4728":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4729":{"varMapping":{"__isSmartRef__":true,"id":4730},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4730":{"this":{"__isSmartRef__":true,"id":4690}},"4731":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4732":{"varMapping":{"__isSmartRef__":true,"id":4733},"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":4734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4733":{"this":{"__isSmartRef__":true,"id":4690}},"4734":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4735":{"varMapping":{"__isSmartRef__":true,"id":4736},"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":4737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4736":{"this":{"__isSmartRef__":true,"id":4690}},"4737":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4738":{"varMapping":{"__isSmartRef__":true,"id":4739},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4739":{"this":{"__isSmartRef__":true,"id":4690}},"4740":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4741":{"varMapping":{"__isSmartRef__":true,"id":4742},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4742":{"this":{"__isSmartRef__":true,"id":4690}},"4743":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4744":{"varMapping":{"__isSmartRef__":true,"id":4745},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4745":{"this":{"__isSmartRef__":true,"id":4690}},"4746":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4747":{"varMapping":{"__isSmartRef__":true,"id":4748},"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":4749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4748":{"this":{"__isSmartRef__":true,"id":4690}},"4749":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4750":{"varMapping":{"__isSmartRef__":true,"id":4751},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4751":{"this":{"__isSmartRef__":true,"id":4690}},"4752":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4753":{"varMapping":{"__isSmartRef__":true,"id":4754},"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":4755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4754":{"this":{"__isSmartRef__":true,"id":4690}},"4755":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4756":{"varMapping":{"__isSmartRef__":true,"id":4757},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4757":{"this":{"__isSmartRef__":true,"id":4690}},"4758":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4759":{"varMapping":{"__isSmartRef__":true,"id":4760},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4760":{"this":{"__isSmartRef__":true,"id":4690}},"4761":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4762":{"varMapping":{"__isSmartRef__":true,"id":4763},"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":4764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4763":{"this":{"__isSmartRef__":true,"id":4690}},"4764":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4765":{"varMapping":{"__isSmartRef__":true,"id":4766},"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":4767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4766":{"this":{"__isSmartRef__":true,"id":4690}},"4767":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4768":{"varMapping":{"__isSmartRef__":true,"id":4769},"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":4770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4769":{"this":{"__isSmartRef__":true,"id":4690}},"4770":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4771":{"varMapping":{"__isSmartRef__":true,"id":4772},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4772":{"this":{"__isSmartRef__":true,"id":4690}},"4773":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4774":{"varMapping":{"__isSmartRef__":true,"id":4775},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4775":{"this":{"__isSmartRef__":true,"id":4690}},"4776":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4777":{"varMapping":{"__isSmartRef__":true,"id":4778},"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":4779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4778":{"this":{"__isSmartRef__":true,"id":4690}},"4779":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4780":{"submorphs":[{"__isSmartRef__":true,"id":4781}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4785},"derivationIds":[null,"0A972FB6-26A6-454A-BE8A-EC186A6D243D"],"id":"C61875BF-0D0F-4AAD-92C3-D2851FD7F2E0","eventHandler":{"__isSmartRef__":true,"id":4786},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":1,"column":0,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":4781},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":652}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4787},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,48.0)"},"4781":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4782},"derivationIds":[null,"08708C49-7FF3-44AE-8B3A-D9FC7341670D"],"id":"55B0302A-CC78-414D-987B-836E94604EEA","eventHandler":{"__isSmartRef__":true,"id":4783},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4780},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4784},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"4782":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-08708c49-7ff3-44ae-8b3a-d9fc7341670d","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"4783":{"morph":{"__isSmartRef__":true,"id":4781},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4784":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"4785":{"_NodeClass":["morph","box"],"_NodeId":"morph-0a972fb6-26a6-454a-be8a-ec186a6d243d","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"4786":{"morph":{"__isSmartRef__":true,"id":4780},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4787":{"setDevStyle":{"__isSmartRef__":true,"id":4788},"setNormalStyle":{"__isSmartRef__":true,"id":4791},"tileSize":{"__isSmartRef__":true,"id":4794},"become":{"__isSmartRef__":true,"id":4797},"onMouseDown":{"__isSmartRef__":true,"id":4800},"setGridPosition":{"__isSmartRef__":true,"id":4807},"toolbox":{"__isSmartRef__":true,"id":4810},"distanceTo":{"__isSmartRef__":true,"id":4813},"tileWasDropped":{"__isSmartRef__":true,"id":4816},"isObstacle":{"__isSmartRef__":true,"id":4819},"neighboursInDirection":{"__isSmartRef__":true,"id":4822},"neighbours":{"__isSmartRef__":true,"id":4825},"zIndex":{"__isSmartRef__":true,"id":4828},"obstacles":{"__isSmartRef__":true,"id":4831},"addObstacle":{"__isSmartRef__":true,"id":4834},"removeObstacle":{"__isSmartRef__":true,"id":4837},"isTile":{"__isSmartRef__":true,"id":4840},"neighbourAt":{"__isSmartRef__":true,"id":4843},"map":{"__isSmartRef__":true,"id":4846},"game":{"__isSmartRef__":true,"id":4849},"reset":{"__isSmartRef__":true,"id":4852},"shallowCopy":{"__isSmartRef__":true,"id":4855},"characters":{"__isSmartRef__":true,"id":4858},"enterTile":{"__isSmartRef__":true,"id":4861},"leaveTile":{"__isSmartRef__":true,"id":4864},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4867}},"4788":{"varMapping":{"__isSmartRef__":true,"id":4789},"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":4790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4789":{"this":{"__isSmartRef__":true,"id":4780}},"4790":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4791":{"varMapping":{"__isSmartRef__":true,"id":4792},"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":4793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4792":{"this":{"__isSmartRef__":true,"id":4780}},"4793":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4794":{"varMapping":{"__isSmartRef__":true,"id":4795},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4795":{"this":{"__isSmartRef__":true,"id":4780}},"4796":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4797":{"varMapping":{"__isSmartRef__":true,"id":4798},"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":4799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4798":{"this":{"__isSmartRef__":true,"id":4780}},"4799":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4800":{"varMapping":{"__isSmartRef__":true,"id":4801},"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":4806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4801":{"this":{"__isSmartRef__":true,"id":4780},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4802}},"4802":{"$super":{"__isSmartRef__":true,"id":4803}},"4803":{"varMapping":{"__isSmartRef__":true,"id":4804},"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":4805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4804":{"obj":{"__isSmartRef__":true,"id":4780},"name":"onMouseDown"},"4805":{},"4806":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4807":{"varMapping":{"__isSmartRef__":true,"id":4808},"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":4809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4808":{"this":{"__isSmartRef__":true,"id":4780}},"4809":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4810":{"varMapping":{"__isSmartRef__":true,"id":4811},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4811":{"this":{"__isSmartRef__":true,"id":4780}},"4812":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4813":{"varMapping":{"__isSmartRef__":true,"id":4814},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4814":{"this":{"__isSmartRef__":true,"id":4780}},"4815":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4816":{"varMapping":{"__isSmartRef__":true,"id":4817},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4817":{"this":{"__isSmartRef__":true,"id":4780}},"4818":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4819":{"varMapping":{"__isSmartRef__":true,"id":4820},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4820":{"this":{"__isSmartRef__":true,"id":4780}},"4821":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4822":{"varMapping":{"__isSmartRef__":true,"id":4823},"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":4824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4823":{"this":{"__isSmartRef__":true,"id":4780}},"4824":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4825":{"varMapping":{"__isSmartRef__":true,"id":4826},"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":4827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4826":{"this":{"__isSmartRef__":true,"id":4780}},"4827":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4828":{"varMapping":{"__isSmartRef__":true,"id":4829},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4829":{"this":{"__isSmartRef__":true,"id":4780}},"4830":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4831":{"varMapping":{"__isSmartRef__":true,"id":4832},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4832":{"this":{"__isSmartRef__":true,"id":4780}},"4833":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4834":{"varMapping":{"__isSmartRef__":true,"id":4835},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4835":{"this":{"__isSmartRef__":true,"id":4780}},"4836":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4837":{"varMapping":{"__isSmartRef__":true,"id":4838},"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":4839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4838":{"this":{"__isSmartRef__":true,"id":4780}},"4839":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4840":{"varMapping":{"__isSmartRef__":true,"id":4841},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4841":{"this":{"__isSmartRef__":true,"id":4780}},"4842":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4843":{"varMapping":{"__isSmartRef__":true,"id":4844},"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":4845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4844":{"this":{"__isSmartRef__":true,"id":4780}},"4845":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4846":{"varMapping":{"__isSmartRef__":true,"id":4847},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4847":{"this":{"__isSmartRef__":true,"id":4780}},"4848":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4849":{"varMapping":{"__isSmartRef__":true,"id":4850},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4850":{"this":{"__isSmartRef__":true,"id":4780}},"4851":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4852":{"varMapping":{"__isSmartRef__":true,"id":4853},"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":4854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4853":{"this":{"__isSmartRef__":true,"id":4780}},"4854":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4855":{"varMapping":{"__isSmartRef__":true,"id":4856},"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":4857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4856":{"this":{"__isSmartRef__":true,"id":4780}},"4857":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4858":{"varMapping":{"__isSmartRef__":true,"id":4859},"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":4860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4859":{"this":{"__isSmartRef__":true,"id":4780}},"4860":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4861":{"varMapping":{"__isSmartRef__":true,"id":4862},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4862":{"this":{"__isSmartRef__":true,"id":4780}},"4863":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4864":{"varMapping":{"__isSmartRef__":true,"id":4865},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4865":{"this":{"__isSmartRef__":true,"id":4780}},"4866":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4867":{"varMapping":{"__isSmartRef__":true,"id":4868},"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":4869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4868":{"this":{"__isSmartRef__":true,"id":4780}},"4869":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4870":{"setDevStyle":{"__isSmartRef__":true,"id":4871},"setNormalStyle":{"__isSmartRef__":true,"id":4875},"become":{"__isSmartRef__":true,"id":4879},"onMouseDown":{"__isSmartRef__":true,"id":4883},"toolbox":{"__isSmartRef__":true,"id":4891},"zIndex":{"__isSmartRef__":true,"id":4895},"becomeRandomThing":{"__isSmartRef__":true,"id":4899},"reset":{"__isSmartRef__":true,"id":4903},"registerAsObstacle":{"__isSmartRef__":true,"id":4907},"deregisterAsObstacle":{"__isSmartRef__":true,"id":4911},"tileSize":{"__isSmartRef__":true,"id":4915},"dropOn":{"__isSmartRef__":true,"id":4919},"map":{"__isSmartRef__":true,"id":4927},"game":{"__isSmartRef__":true,"id":4931}},"4871":{"varMapping":{"__isSmartRef__":true,"id":4872},"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":4873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4872":{"this":{"__isSmartRef__":true,"id":652}},"4873":{"timestamp":{"__isSmartRef__":true,"id":4874},"user":"timfelgentreff","tags":[]},"4874":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (Central Europe Daylight Time)"},"4875":{"varMapping":{"__isSmartRef__":true,"id":4876},"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":4877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4876":{"this":{"__isSmartRef__":true,"id":652}},"4877":{"timestamp":{"__isSmartRef__":true,"id":4878},"user":"tessi","tags":[]},"4878":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (Central Europe Daylight Time)"},"4879":{"varMapping":{"__isSmartRef__":true,"id":4880},"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":4881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4880":{"this":{"__isSmartRef__":true,"id":652}},"4881":{"timestamp":{"__isSmartRef__":true,"id":4882},"user":"timfelgentreff","tags":[]},"4882":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (Central Europe Daylight Time)"},"4883":{"varMapping":{"__isSmartRef__":true,"id":4884},"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":4889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4884":{"this":{"__isSmartRef__":true,"id":652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4885}},"4885":{"$super":{"__isSmartRef__":true,"id":4886}},"4886":{"varMapping":{"__isSmartRef__":true,"id":4887},"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":4888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4887":{"obj":{"__isSmartRef__":true,"id":652},"name":"onMouseDown"},"4888":{},"4889":{"timestamp":{"__isSmartRef__":true,"id":4890},"user":"tessi","tags":[]},"4890":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (Central Europe Daylight Time)"},"4891":{"varMapping":{"__isSmartRef__":true,"id":4892},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4892":{"this":{"__isSmartRef__":true,"id":652}},"4893":{"timestamp":{"__isSmartRef__":true,"id":4894},"user":"tessi","tags":[]},"4894":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (Central Europe Daylight Time)"},"4895":{"varMapping":{"__isSmartRef__":true,"id":4896},"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":4897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4896":{"this":{"__isSmartRef__":true,"id":652}},"4897":{"timestamp":{"__isSmartRef__":true,"id":4898},"user":"timfelgentreff","tags":[]},"4898":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (Central Europe Daylight Time)"},"4899":{"varMapping":{"__isSmartRef__":true,"id":4900},"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":4901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4900":{"this":{"__isSmartRef__":true,"id":652}},"4901":{"timestamp":{"__isSmartRef__":true,"id":4902},"user":"tessi","tags":[]},"4902":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (Central Europe Daylight Time)"},"4903":{"varMapping":{"__isSmartRef__":true,"id":4904},"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":4905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4904":{"this":{"__isSmartRef__":true,"id":652}},"4905":{"timestamp":{"__isSmartRef__":true,"id":4906},"user":"tessi","tags":[]},"4906":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (Central Europe Daylight Time)"},"4907":{"varMapping":{"__isSmartRef__":true,"id":4908},"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":4909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4908":{"this":{"__isSmartRef__":true,"id":652}},"4909":{"timestamp":{"__isSmartRef__":true,"id":4910},"user":"timfelgentreff","tags":[]},"4910":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (Central Europe Daylight Time)"},"4911":{"varMapping":{"__isSmartRef__":true,"id":4912},"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":4913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4912":{"this":{"__isSmartRef__":true,"id":652}},"4913":{"timestamp":{"__isSmartRef__":true,"id":4914},"user":"timfelgentreff","tags":[]},"4914":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (Central Europe Daylight Time)"},"4915":{"varMapping":{"__isSmartRef__":true,"id":4916},"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":4917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4916":{"this":{"__isSmartRef__":true,"id":652}},"4917":{"timestamp":{"__isSmartRef__":true,"id":4918},"user":"timfelgentreff","tags":[]},"4918":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (Central Europe Daylight Time)"},"4919":{"varMapping":{"__isSmartRef__":true,"id":4920},"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":4925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4920":{"this":{"__isSmartRef__":true,"id":652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4921}},"4921":{"$super":{"__isSmartRef__":true,"id":4922}},"4922":{"varMapping":{"__isSmartRef__":true,"id":4923},"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":4924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4923":{"obj":{"__isSmartRef__":true,"id":652},"name":"dropOn"},"4924":{},"4925":{"timestamp":{"__isSmartRef__":true,"id":4926},"user":"timfelgentreff","tags":[]},"4926":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (Central Europe Daylight Time)"},"4927":{"varMapping":{"__isSmartRef__":true,"id":4928},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":4929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4928":{"this":{"__isSmartRef__":true,"id":652}},"4929":{"timestamp":{"__isSmartRef__":true,"id":4930},"user":"tessi","tags":[]},"4930":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (Central Europe Daylight Time)"},"4931":{"varMapping":{"__isSmartRef__":true,"id":4932},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":4933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4932":{"this":{"__isSmartRef__":true,"id":652}},"4933":{"timestamp":{"__isSmartRef__":true,"id":4934},"user":"tessi","tags":[]},"4934":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (Central Europe Daylight Time)"},"4935":{"setDevStyle":{"__isSmartRef__":true,"id":4936},"setNormalStyle":{"__isSmartRef__":true,"id":4939},"tileSize":{"__isSmartRef__":true,"id":4942},"become":{"__isSmartRef__":true,"id":4945},"onMouseDown":{"__isSmartRef__":true,"id":4948},"setGridPosition":{"__isSmartRef__":true,"id":4955},"toolbox":{"__isSmartRef__":true,"id":4958},"distanceTo":{"__isSmartRef__":true,"id":4961},"tileWasDropped":{"__isSmartRef__":true,"id":4964},"isObstacle":{"__isSmartRef__":true,"id":4967},"neighboursInDirection":{"__isSmartRef__":true,"id":4970},"neighbours":{"__isSmartRef__":true,"id":4973},"zIndex":{"__isSmartRef__":true,"id":4976},"obstacles":{"__isSmartRef__":true,"id":4979},"addObstacle":{"__isSmartRef__":true,"id":4982},"removeObstacle":{"__isSmartRef__":true,"id":4985},"isTile":{"__isSmartRef__":true,"id":4988},"neighbourAt":{"__isSmartRef__":true,"id":4991},"map":{"__isSmartRef__":true,"id":4994},"game":{"__isSmartRef__":true,"id":4997},"reset":{"__isSmartRef__":true,"id":5000},"shallowCopy":{"__isSmartRef__":true,"id":5003},"characters":{"__isSmartRef__":true,"id":5006},"enterTile":{"__isSmartRef__":true,"id":5009},"leaveTile":{"__isSmartRef__":true,"id":5012},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5015}},"4936":{"varMapping":{"__isSmartRef__":true,"id":4937},"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":4938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4937":{"this":{"__isSmartRef__":true,"id":645}},"4938":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"4939":{"varMapping":{"__isSmartRef__":true,"id":4940},"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":4941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4940":{"this":{"__isSmartRef__":true,"id":645}},"4941":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"4942":{"varMapping":{"__isSmartRef__":true,"id":4943},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4943":{"this":{"__isSmartRef__":true,"id":645}},"4944":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"4945":{"varMapping":{"__isSmartRef__":true,"id":4946},"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":4947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4946":{"this":{"__isSmartRef__":true,"id":645}},"4947":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"4948":{"varMapping":{"__isSmartRef__":true,"id":4949},"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":4954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4949":{"this":{"__isSmartRef__":true,"id":645},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4950}},"4950":{"$super":{"__isSmartRef__":true,"id":4951}},"4951":{"varMapping":{"__isSmartRef__":true,"id":4952},"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":4953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4952":{"obj":{"__isSmartRef__":true,"id":645},"name":"onMouseDown"},"4953":{},"4954":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"4955":{"varMapping":{"__isSmartRef__":true,"id":4956},"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":4957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4956":{"this":{"__isSmartRef__":true,"id":645}},"4957":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"4958":{"varMapping":{"__isSmartRef__":true,"id":4959},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4959":{"this":{"__isSmartRef__":true,"id":645}},"4960":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"4961":{"varMapping":{"__isSmartRef__":true,"id":4962},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4962":{"this":{"__isSmartRef__":true,"id":645}},"4963":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"4964":{"varMapping":{"__isSmartRef__":true,"id":4965},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4965":{"this":{"__isSmartRef__":true,"id":645}},"4966":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"4967":{"varMapping":{"__isSmartRef__":true,"id":4968},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4968":{"this":{"__isSmartRef__":true,"id":645}},"4969":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4970":{"varMapping":{"__isSmartRef__":true,"id":4971},"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":4972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4971":{"this":{"__isSmartRef__":true,"id":645}},"4972":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4973":{"varMapping":{"__isSmartRef__":true,"id":4974},"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":4975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4974":{"this":{"__isSmartRef__":true,"id":645}},"4975":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4976":{"varMapping":{"__isSmartRef__":true,"id":4977},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4977":{"this":{"__isSmartRef__":true,"id":645}},"4978":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4979":{"varMapping":{"__isSmartRef__":true,"id":4980},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4980":{"this":{"__isSmartRef__":true,"id":645}},"4981":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"4982":{"varMapping":{"__isSmartRef__":true,"id":4983},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4983":{"this":{"__isSmartRef__":true,"id":645}},"4984":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4985":{"varMapping":{"__isSmartRef__":true,"id":4986},"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":4987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4986":{"this":{"__isSmartRef__":true,"id":645}},"4987":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4988":{"varMapping":{"__isSmartRef__":true,"id":4989},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4989":{"this":{"__isSmartRef__":true,"id":645}},"4990":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4991":{"varMapping":{"__isSmartRef__":true,"id":4992},"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":4993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4992":{"this":{"__isSmartRef__":true,"id":645}},"4993":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4994":{"varMapping":{"__isSmartRef__":true,"id":4995},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4995":{"this":{"__isSmartRef__":true,"id":645}},"4996":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4997":{"varMapping":{"__isSmartRef__":true,"id":4998},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4998":{"this":{"__isSmartRef__":true,"id":645}},"4999":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5000":{"varMapping":{"__isSmartRef__":true,"id":5001},"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":5002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5001":{"this":{"__isSmartRef__":true,"id":645}},"5002":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5003":{"varMapping":{"__isSmartRef__":true,"id":5004},"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":5005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5004":{"this":{"__isSmartRef__":true,"id":645}},"5005":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5006":{"varMapping":{"__isSmartRef__":true,"id":5007},"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":5008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5007":{"this":{"__isSmartRef__":true,"id":645}},"5008":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5009":{"varMapping":{"__isSmartRef__":true,"id":5010},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5010":{"this":{"__isSmartRef__":true,"id":645}},"5011":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5012":{"varMapping":{"__isSmartRef__":true,"id":5013},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5013":{"this":{"__isSmartRef__":true,"id":645}},"5014":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5015":{"varMapping":{"__isSmartRef__":true,"id":5016},"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":5017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5016":{"this":{"__isSmartRef__":true,"id":645}},"5017":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5018":{"submorphs":[{"__isSmartRef__":true,"id":5019}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5023},"derivationIds":[null,"DD2B6A8D-D8F7-4143-9758-B529FB1B0AF4"],"id":"FCDB7CEF-906C-4AE7-87C7-5AA55C258BCA","eventHandler":{"__isSmartRef__":true,"id":5024},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":4,"column":0,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":5019},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5025},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,192.0)"},"5019":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5020},"derivationIds":[null,"EA18FB51-2CD1-48AB-9BE3-BF3E79A89767"],"id":"002DA191-72F1-40D1-B8FF-533A81419D78","eventHandler":{"__isSmartRef__":true,"id":5021},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5018},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5022},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"5020":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-ea18fb51-2cd1-48ab-9be3-bf3e79a89767","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"5021":{"morph":{"__isSmartRef__":true,"id":5019},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5022":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"5023":{"_NodeClass":["morph","box"],"_NodeId":"morph-dd2b6a8d-d8f7-4143-9758-b529fb1b0af4","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5024":{"morph":{"__isSmartRef__":true,"id":5018},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5025":{"setDevStyle":{"__isSmartRef__":true,"id":5026},"setNormalStyle":{"__isSmartRef__":true,"id":5029},"tileSize":{"__isSmartRef__":true,"id":5032},"become":{"__isSmartRef__":true,"id":5035},"onMouseDown":{"__isSmartRef__":true,"id":5038},"setGridPosition":{"__isSmartRef__":true,"id":5045},"toolbox":{"__isSmartRef__":true,"id":5048},"distanceTo":{"__isSmartRef__":true,"id":5051},"tileWasDropped":{"__isSmartRef__":true,"id":5054},"isObstacle":{"__isSmartRef__":true,"id":5057},"neighboursInDirection":{"__isSmartRef__":true,"id":5060},"neighbours":{"__isSmartRef__":true,"id":5063},"zIndex":{"__isSmartRef__":true,"id":5066},"obstacles":{"__isSmartRef__":true,"id":5069},"addObstacle":{"__isSmartRef__":true,"id":5072},"removeObstacle":{"__isSmartRef__":true,"id":5075},"isTile":{"__isSmartRef__":true,"id":5078},"neighbourAt":{"__isSmartRef__":true,"id":5081},"map":{"__isSmartRef__":true,"id":5084},"game":{"__isSmartRef__":true,"id":5087},"reset":{"__isSmartRef__":true,"id":5090},"shallowCopy":{"__isSmartRef__":true,"id":5093},"characters":{"__isSmartRef__":true,"id":5096},"enterTile":{"__isSmartRef__":true,"id":5099},"leaveTile":{"__isSmartRef__":true,"id":5102},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5105}},"5026":{"varMapping":{"__isSmartRef__":true,"id":5027},"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":5028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5027":{"this":{"__isSmartRef__":true,"id":5018}},"5028":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"5029":{"varMapping":{"__isSmartRef__":true,"id":5030},"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":5031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5030":{"this":{"__isSmartRef__":true,"id":5018}},"5031":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"5032":{"varMapping":{"__isSmartRef__":true,"id":5033},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5033":{"this":{"__isSmartRef__":true,"id":5018}},"5034":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"5035":{"varMapping":{"__isSmartRef__":true,"id":5036},"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":5037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5036":{"this":{"__isSmartRef__":true,"id":5018}},"5037":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"5038":{"varMapping":{"__isSmartRef__":true,"id":5039},"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":5044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5039":{"this":{"__isSmartRef__":true,"id":5018},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5040}},"5040":{"$super":{"__isSmartRef__":true,"id":5041}},"5041":{"varMapping":{"__isSmartRef__":true,"id":5042},"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":5043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5042":{"obj":{"__isSmartRef__":true,"id":5018},"name":"onMouseDown"},"5043":{},"5044":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"5045":{"varMapping":{"__isSmartRef__":true,"id":5046},"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":5047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5046":{"this":{"__isSmartRef__":true,"id":5018}},"5047":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"5048":{"varMapping":{"__isSmartRef__":true,"id":5049},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5049":{"this":{"__isSmartRef__":true,"id":5018}},"5050":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"5051":{"varMapping":{"__isSmartRef__":true,"id":5052},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5052":{"this":{"__isSmartRef__":true,"id":5018}},"5053":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"5054":{"varMapping":{"__isSmartRef__":true,"id":5055},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5055":{"this":{"__isSmartRef__":true,"id":5018}},"5056":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"5057":{"varMapping":{"__isSmartRef__":true,"id":5058},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5058":{"this":{"__isSmartRef__":true,"id":5018}},"5059":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5060":{"varMapping":{"__isSmartRef__":true,"id":5061},"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":5062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5061":{"this":{"__isSmartRef__":true,"id":5018}},"5062":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5063":{"varMapping":{"__isSmartRef__":true,"id":5064},"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":5065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5064":{"this":{"__isSmartRef__":true,"id":5018}},"5065":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5066":{"varMapping":{"__isSmartRef__":true,"id":5067},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5067":{"this":{"__isSmartRef__":true,"id":5018}},"5068":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5069":{"varMapping":{"__isSmartRef__":true,"id":5070},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5070":{"this":{"__isSmartRef__":true,"id":5018}},"5071":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"5072":{"varMapping":{"__isSmartRef__":true,"id":5073},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5073":{"this":{"__isSmartRef__":true,"id":5018}},"5074":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5075":{"varMapping":{"__isSmartRef__":true,"id":5076},"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":5077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5076":{"this":{"__isSmartRef__":true,"id":5018}},"5077":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5078":{"varMapping":{"__isSmartRef__":true,"id":5079},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5079":{"this":{"__isSmartRef__":true,"id":5018}},"5080":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5081":{"varMapping":{"__isSmartRef__":true,"id":5082},"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":5083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5082":{"this":{"__isSmartRef__":true,"id":5018}},"5083":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5084":{"varMapping":{"__isSmartRef__":true,"id":5085},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5085":{"this":{"__isSmartRef__":true,"id":5018}},"5086":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5087":{"varMapping":{"__isSmartRef__":true,"id":5088},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5088":{"this":{"__isSmartRef__":true,"id":5018}},"5089":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5090":{"varMapping":{"__isSmartRef__":true,"id":5091},"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":5092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5091":{"this":{"__isSmartRef__":true,"id":5018}},"5092":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5093":{"varMapping":{"__isSmartRef__":true,"id":5094},"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":5095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5094":{"this":{"__isSmartRef__":true,"id":5018}},"5095":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5096":{"varMapping":{"__isSmartRef__":true,"id":5097},"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":5098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5097":{"this":{"__isSmartRef__":true,"id":5018}},"5098":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5099":{"varMapping":{"__isSmartRef__":true,"id":5100},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5100":{"this":{"__isSmartRef__":true,"id":5018}},"5101":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5102":{"varMapping":{"__isSmartRef__":true,"id":5103},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5103":{"this":{"__isSmartRef__":true,"id":5018}},"5104":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5105":{"varMapping":{"__isSmartRef__":true,"id":5106},"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":5107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5106":{"this":{"__isSmartRef__":true,"id":5018}},"5107":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5108":{"submorphs":[{"__isSmartRef__":true,"id":5109}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5113},"derivationIds":[null,"8C1F2452-E91E-477B-A2DD-EC8B2CC7C89B"],"id":"0A9F8E74-0954-4A34-893D-F7561D6B0340","eventHandler":{"__isSmartRef__":true,"id":5114},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":4,"column":1,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":5109},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5115},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,192.0)"},"5109":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5110},"derivationIds":[null,"7104391B-F01C-4C3C-BEE4-CAA9F98BCD2A"],"id":"C2C62E8E-297A-412D-A9E2-E11A910BA0CD","eventHandler":{"__isSmartRef__":true,"id":5111},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5108},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5112},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"5110":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-7104391b-f01c-4c3c-bee4-caa9f98bcd2a","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"5111":{"morph":{"__isSmartRef__":true,"id":5109},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5112":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"5113":{"_NodeClass":["morph","box"],"_NodeId":"morph-8c1f2452-e91e-477b-a2dd-ec8b2cc7c89b","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5114":{"morph":{"__isSmartRef__":true,"id":5108},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5115":{"setDevStyle":{"__isSmartRef__":true,"id":5116},"setNormalStyle":{"__isSmartRef__":true,"id":5119},"tileSize":{"__isSmartRef__":true,"id":5122},"become":{"__isSmartRef__":true,"id":5125},"onMouseDown":{"__isSmartRef__":true,"id":5128},"setGridPosition":{"__isSmartRef__":true,"id":5135},"toolbox":{"__isSmartRef__":true,"id":5138},"distanceTo":{"__isSmartRef__":true,"id":5141},"tileWasDropped":{"__isSmartRef__":true,"id":5144},"isObstacle":{"__isSmartRef__":true,"id":5147},"neighboursInDirection":{"__isSmartRef__":true,"id":5150},"neighbours":{"__isSmartRef__":true,"id":5153},"zIndex":{"__isSmartRef__":true,"id":5156},"obstacles":{"__isSmartRef__":true,"id":5159},"addObstacle":{"__isSmartRef__":true,"id":5162},"removeObstacle":{"__isSmartRef__":true,"id":5165},"isTile":{"__isSmartRef__":true,"id":5168},"neighbourAt":{"__isSmartRef__":true,"id":5171},"map":{"__isSmartRef__":true,"id":5174},"game":{"__isSmartRef__":true,"id":5177},"reset":{"__isSmartRef__":true,"id":5180},"shallowCopy":{"__isSmartRef__":true,"id":5183},"characters":{"__isSmartRef__":true,"id":5186},"enterTile":{"__isSmartRef__":true,"id":5189},"leaveTile":{"__isSmartRef__":true,"id":5192},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5195}},"5116":{"varMapping":{"__isSmartRef__":true,"id":5117},"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":5118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5117":{"this":{"__isSmartRef__":true,"id":5108}},"5118":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"5119":{"varMapping":{"__isSmartRef__":true,"id":5120},"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":5121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5120":{"this":{"__isSmartRef__":true,"id":5108}},"5121":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"5122":{"varMapping":{"__isSmartRef__":true,"id":5123},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5123":{"this":{"__isSmartRef__":true,"id":5108}},"5124":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"5125":{"varMapping":{"__isSmartRef__":true,"id":5126},"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":5127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5126":{"this":{"__isSmartRef__":true,"id":5108}},"5127":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"5128":{"varMapping":{"__isSmartRef__":true,"id":5129},"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":5134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5129":{"this":{"__isSmartRef__":true,"id":5108},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5130}},"5130":{"$super":{"__isSmartRef__":true,"id":5131}},"5131":{"varMapping":{"__isSmartRef__":true,"id":5132},"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":5133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5132":{"obj":{"__isSmartRef__":true,"id":5108},"name":"onMouseDown"},"5133":{},"5134":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"5135":{"varMapping":{"__isSmartRef__":true,"id":5136},"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":5137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5136":{"this":{"__isSmartRef__":true,"id":5108}},"5137":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"5138":{"varMapping":{"__isSmartRef__":true,"id":5139},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5139":{"this":{"__isSmartRef__":true,"id":5108}},"5140":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"5141":{"varMapping":{"__isSmartRef__":true,"id":5142},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5142":{"this":{"__isSmartRef__":true,"id":5108}},"5143":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"5144":{"varMapping":{"__isSmartRef__":true,"id":5145},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5145":{"this":{"__isSmartRef__":true,"id":5108}},"5146":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"5147":{"varMapping":{"__isSmartRef__":true,"id":5148},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5148":{"this":{"__isSmartRef__":true,"id":5108}},"5149":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5150":{"varMapping":{"__isSmartRef__":true,"id":5151},"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":5152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5151":{"this":{"__isSmartRef__":true,"id":5108}},"5152":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5153":{"varMapping":{"__isSmartRef__":true,"id":5154},"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":5155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5154":{"this":{"__isSmartRef__":true,"id":5108}},"5155":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5156":{"varMapping":{"__isSmartRef__":true,"id":5157},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5157":{"this":{"__isSmartRef__":true,"id":5108}},"5158":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5159":{"varMapping":{"__isSmartRef__":true,"id":5160},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5160":{"this":{"__isSmartRef__":true,"id":5108}},"5161":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"5162":{"varMapping":{"__isSmartRef__":true,"id":5163},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5163":{"this":{"__isSmartRef__":true,"id":5108}},"5164":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5165":{"varMapping":{"__isSmartRef__":true,"id":5166},"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":5167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5166":{"this":{"__isSmartRef__":true,"id":5108}},"5167":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5168":{"varMapping":{"__isSmartRef__":true,"id":5169},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5169":{"this":{"__isSmartRef__":true,"id":5108}},"5170":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5171":{"varMapping":{"__isSmartRef__":true,"id":5172},"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":5173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5172":{"this":{"__isSmartRef__":true,"id":5108}},"5173":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5174":{"varMapping":{"__isSmartRef__":true,"id":5175},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5175":{"this":{"__isSmartRef__":true,"id":5108}},"5176":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5177":{"varMapping":{"__isSmartRef__":true,"id":5178},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5178":{"this":{"__isSmartRef__":true,"id":5108}},"5179":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5180":{"varMapping":{"__isSmartRef__":true,"id":5181},"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":5182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5181":{"this":{"__isSmartRef__":true,"id":5108}},"5182":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5183":{"varMapping":{"__isSmartRef__":true,"id":5184},"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":5185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5184":{"this":{"__isSmartRef__":true,"id":5108}},"5185":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5186":{"varMapping":{"__isSmartRef__":true,"id":5187},"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":5188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5187":{"this":{"__isSmartRef__":true,"id":5108}},"5188":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5189":{"varMapping":{"__isSmartRef__":true,"id":5190},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5190":{"this":{"__isSmartRef__":true,"id":5108}},"5191":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5192":{"varMapping":{"__isSmartRef__":true,"id":5193},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5193":{"this":{"__isSmartRef__":true,"id":5108}},"5194":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5195":{"varMapping":{"__isSmartRef__":true,"id":5196},"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":5197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5196":{"this":{"__isSmartRef__":true,"id":5108}},"5197":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5198":{"submorphs":[{"__isSmartRef__":true,"id":5199}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5203},"derivationIds":[null,"B7470373-CF36-42ED-8954-C4D08B51F01E"],"id":"AECA330B-7A83-4689-A287-2745DD1FBC96","eventHandler":{"__isSmartRef__":true,"id":5204},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":5,"column":0,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":5199},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5205},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,240.0)"},"5199":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5200},"derivationIds":[null,"D4E4A114-C615-4B55-8213-678B56C1ADEE"],"id":"1BFEE2FC-BABF-4DEE-9FBB-DF31FFAEB544","eventHandler":{"__isSmartRef__":true,"id":5201},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5198},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5202},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"5200":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-d4e4a114-c615-4b55-8213-678b56c1adee","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"5201":{"morph":{"__isSmartRef__":true,"id":5199},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5202":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"5203":{"_NodeClass":["morph","box"],"_NodeId":"morph-b7470373-cf36-42ed-8954-c4d08b51f01e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5204":{"morph":{"__isSmartRef__":true,"id":5198},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5205":{"setDevStyle":{"__isSmartRef__":true,"id":5206},"setNormalStyle":{"__isSmartRef__":true,"id":5209},"tileSize":{"__isSmartRef__":true,"id":5212},"become":{"__isSmartRef__":true,"id":5215},"onMouseDown":{"__isSmartRef__":true,"id":5218},"setGridPosition":{"__isSmartRef__":true,"id":5225},"toolbox":{"__isSmartRef__":true,"id":5228},"distanceTo":{"__isSmartRef__":true,"id":5231},"tileWasDropped":{"__isSmartRef__":true,"id":5234},"isObstacle":{"__isSmartRef__":true,"id":5237},"neighboursInDirection":{"__isSmartRef__":true,"id":5240},"neighbours":{"__isSmartRef__":true,"id":5243},"zIndex":{"__isSmartRef__":true,"id":5246},"obstacles":{"__isSmartRef__":true,"id":5249},"addObstacle":{"__isSmartRef__":true,"id":5252},"removeObstacle":{"__isSmartRef__":true,"id":5255},"isTile":{"__isSmartRef__":true,"id":5258},"neighbourAt":{"__isSmartRef__":true,"id":5261},"map":{"__isSmartRef__":true,"id":5264},"game":{"__isSmartRef__":true,"id":5267},"reset":{"__isSmartRef__":true,"id":5270},"shallowCopy":{"__isSmartRef__":true,"id":5273},"characters":{"__isSmartRef__":true,"id":5276},"enterTile":{"__isSmartRef__":true,"id":5279},"leaveTile":{"__isSmartRef__":true,"id":5282},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5285}},"5206":{"varMapping":{"__isSmartRef__":true,"id":5207},"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":5208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5207":{"this":{"__isSmartRef__":true,"id":5198}},"5208":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"5209":{"varMapping":{"__isSmartRef__":true,"id":5210},"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":5211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5210":{"this":{"__isSmartRef__":true,"id":5198}},"5211":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"5212":{"varMapping":{"__isSmartRef__":true,"id":5213},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5213":{"this":{"__isSmartRef__":true,"id":5198}},"5214":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"5215":{"varMapping":{"__isSmartRef__":true,"id":5216},"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":5217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5216":{"this":{"__isSmartRef__":true,"id":5198}},"5217":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"5218":{"varMapping":{"__isSmartRef__":true,"id":5219},"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":5224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5219":{"this":{"__isSmartRef__":true,"id":5198},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5220}},"5220":{"$super":{"__isSmartRef__":true,"id":5221}},"5221":{"varMapping":{"__isSmartRef__":true,"id":5222},"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":5223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5222":{"obj":{"__isSmartRef__":true,"id":5198},"name":"onMouseDown"},"5223":{},"5224":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"5225":{"varMapping":{"__isSmartRef__":true,"id":5226},"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":5227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5226":{"this":{"__isSmartRef__":true,"id":5198}},"5227":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"5228":{"varMapping":{"__isSmartRef__":true,"id":5229},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5229":{"this":{"__isSmartRef__":true,"id":5198}},"5230":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"5231":{"varMapping":{"__isSmartRef__":true,"id":5232},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5232":{"this":{"__isSmartRef__":true,"id":5198}},"5233":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"5234":{"varMapping":{"__isSmartRef__":true,"id":5235},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5235":{"this":{"__isSmartRef__":true,"id":5198}},"5236":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"5237":{"varMapping":{"__isSmartRef__":true,"id":5238},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5238":{"this":{"__isSmartRef__":true,"id":5198}},"5239":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5240":{"varMapping":{"__isSmartRef__":true,"id":5241},"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":5242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5241":{"this":{"__isSmartRef__":true,"id":5198}},"5242":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5243":{"varMapping":{"__isSmartRef__":true,"id":5244},"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":5245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5244":{"this":{"__isSmartRef__":true,"id":5198}},"5245":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5246":{"varMapping":{"__isSmartRef__":true,"id":5247},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5247":{"this":{"__isSmartRef__":true,"id":5198}},"5248":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5249":{"varMapping":{"__isSmartRef__":true,"id":5250},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5250":{"this":{"__isSmartRef__":true,"id":5198}},"5251":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"5252":{"varMapping":{"__isSmartRef__":true,"id":5253},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5253":{"this":{"__isSmartRef__":true,"id":5198}},"5254":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5255":{"varMapping":{"__isSmartRef__":true,"id":5256},"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":5257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5256":{"this":{"__isSmartRef__":true,"id":5198}},"5257":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5258":{"varMapping":{"__isSmartRef__":true,"id":5259},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5259":{"this":{"__isSmartRef__":true,"id":5198}},"5260":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5261":{"varMapping":{"__isSmartRef__":true,"id":5262},"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":5263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5262":{"this":{"__isSmartRef__":true,"id":5198}},"5263":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5264":{"varMapping":{"__isSmartRef__":true,"id":5265},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5265":{"this":{"__isSmartRef__":true,"id":5198}},"5266":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5267":{"varMapping":{"__isSmartRef__":true,"id":5268},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5268":{"this":{"__isSmartRef__":true,"id":5198}},"5269":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5270":{"varMapping":{"__isSmartRef__":true,"id":5271},"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":5272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5271":{"this":{"__isSmartRef__":true,"id":5198}},"5272":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5273":{"varMapping":{"__isSmartRef__":true,"id":5274},"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":5275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5274":{"this":{"__isSmartRef__":true,"id":5198}},"5275":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5276":{"varMapping":{"__isSmartRef__":true,"id":5277},"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":5278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5277":{"this":{"__isSmartRef__":true,"id":5198}},"5278":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5279":{"varMapping":{"__isSmartRef__":true,"id":5280},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5280":{"this":{"__isSmartRef__":true,"id":5198}},"5281":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5282":{"varMapping":{"__isSmartRef__":true,"id":5283},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5283":{"this":{"__isSmartRef__":true,"id":5198}},"5284":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5285":{"varMapping":{"__isSmartRef__":true,"id":5286},"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":5287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5286":{"this":{"__isSmartRef__":true,"id":5198}},"5287":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5288":{"submorphs":[{"__isSmartRef__":true,"id":5289}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5325},"derivationIds":[null,"F8618DCD-7CF9-4000-A1EB-02D3F139548E"],"id":"DADF3B9D-40D9-4606-AF58-1ECE170265C6","eventHandler":{"__isSmartRef__":true,"id":5326},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":5,"column":1,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":5289},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5327},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,240.0)"},"5289":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5290},"derivationIds":[null,"90F1C1A2-00A6-425F-B026-386D01D7F1BC"],"id":"53DE9244-057D-41B1-BF69-B480A58F26B2","eventHandler":{"__isSmartRef__":true,"id":5291},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5288},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5292},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"5290":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_NodeClass":["morph","image"],"_NodeId":"morph-90f1c1a2-00a6-425f-b026-386d01d7f1bc","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"5291":{"morph":{"__isSmartRef__":true,"id":5289},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5292":{"dropOn":{"__isSmartRef__":true,"id":5293},"shallowCopy":{"__isSmartRef__":true,"id":5316}},"5293":{"varMapping":{"__isSmartRef__":true,"id":5294},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5294":{"this":{"__isSmartRef__":true,"id":5295},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5320}},"5295":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5296},"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":"BE9D707D-DC4A-4342-A611-C4451707C6C1","eventHandler":{"__isSmartRef__":true,"id":5297},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"FlowerGrassTile1","showsHalos":false,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"partsBinMetaInfo":{"__isSmartRef__":true,"id":5298},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1.0040100200350561,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5315},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"5296":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,16.0)","_Padding":"lively.rect(0,0,0,0)"},"5297":{"morph":{"__isSmartRef__":true,"id":5295},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5298":{"partName":"FlowerGrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"undefined","changes":[{"__isSmartRef__":true,"id":5299},{"__isSmartRef__":true,"id":5301},{"__isSmartRef__":true,"id":5303},{"__isSmartRef__":true,"id":5305},{"__isSmartRef__":true,"id":5307},{"__isSmartRef__":true,"id":5309},{"__isSmartRef__":true,"id":5311},{"__isSmartRef__":true,"id":5313}],"migrationLevel":4,"revisionOnLoad":159345,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5299":{"date":{"__isSmartRef__":true,"id":5300},"author":"tessi","message":"","id":"132E4BD9-EC26-4CCC-8CD5-D86C60CF385C"},"5300":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:47 GMT+0200 (Central Europe Daylight Time)"},"5301":{"date":{"__isSmartRef__":true,"id":5302},"author":"tessi","message":"","id":"D9AF3878-EAC4-433D-8258-DC80517AA6B1"},"5302":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:04 GMT+0200 (Central Europe Daylight Time)"},"5303":{"date":{"__isSmartRef__":true,"id":5304},"author":"timfelgentreff","message":"","id":"AFE5FD8B-7758-45D2-B21C-14607C3F0D5E"},"5304":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:31:45 GMT+0200 (Central Europe Daylight Time)"},"5305":{"date":{"__isSmartRef__":true,"id":5306},"author":"tessi","message":"","id":"43431C78-F979-4A3D-B949-CFB4CD123812"},"5306":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:35 GMT+0200 (Central Europe Daylight Time)"},"5307":{"date":{"__isSmartRef__":true,"id":5308},"author":"timfelgentreff","message":"no comment","id":"427F616A-557E-48DA-B2A3-9D312846BFA8"},"5308":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:06 GMT+0200 (Central Europe Daylight Time)"},"5309":{"date":{"__isSmartRef__":true,"id":5310},"author":"timfelgentreff","message":"no comment","id":"89D17F78-5164-40A2-8D18-6864377CAE04"},"5310":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:16 GMT+0200 (Central Europe Daylight Time)"},"5311":{"date":{"__isSmartRef__":true,"id":5312},"author":"timfelgentreff","message":"no comment","id":"02E3CCCD-E630-40A9-BB8B-8D4F60458311"},"5312":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:42 GMT+0200 (Central Europe Daylight Time)"},"5313":{"date":{"__isSmartRef__":true,"id":5314},"author":"tessi","message":"no comment","id":"4BC7DDF9-89A2-4A2A-8A37-97CECF82DF21"},"5314":{"isSerializedDate":true,"string":"Fri May 04 2012 17:02:08 GMT+0200 (Central Europe Daylight Time)"},"5315":{"dropOn":{"__isSmartRef__":true,"id":5293},"shallowCopy":{"__isSmartRef__":true,"id":5316}},"5316":{"varMapping":{"__isSmartRef__":true,"id":5317},"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":5318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5317":{"this":{"__isSmartRef__":true,"id":5295}},"5318":{"timestamp":{"__isSmartRef__":true,"id":5319},"user":"timfelgentreff","tags":[]},"5319":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:47 GMT+0200 (Central Europe Daylight Time)"},"5320":{"$super":{"__isSmartRef__":true,"id":5321}},"5321":{"varMapping":{"__isSmartRef__":true,"id":5322},"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":5323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5322":{"obj":{"__isSmartRef__":true,"id":5295},"name":"dropOn"},"5323":{},"5324":{},"5325":{"_NodeClass":["morph","box"],"_NodeId":"morph-f8618dcd-7cf9-4000-a1eb-02d3f139548e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5326":{"morph":{"__isSmartRef__":true,"id":5288},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5327":{"setDevStyle":{"__isSmartRef__":true,"id":5328},"setNormalStyle":{"__isSmartRef__":true,"id":5331},"tileSize":{"__isSmartRef__":true,"id":5334},"become":{"__isSmartRef__":true,"id":5337},"onMouseDown":{"__isSmartRef__":true,"id":5340},"setGridPosition":{"__isSmartRef__":true,"id":5347},"toolbox":{"__isSmartRef__":true,"id":5350},"distanceTo":{"__isSmartRef__":true,"id":5353},"tileWasDropped":{"__isSmartRef__":true,"id":5356},"isObstacle":{"__isSmartRef__":true,"id":5359},"neighboursInDirection":{"__isSmartRef__":true,"id":5362},"neighbours":{"__isSmartRef__":true,"id":5365},"zIndex":{"__isSmartRef__":true,"id":5368},"obstacles":{"__isSmartRef__":true,"id":5371},"addObstacle":{"__isSmartRef__":true,"id":5374},"removeObstacle":{"__isSmartRef__":true,"id":5377},"isTile":{"__isSmartRef__":true,"id":5380},"neighbourAt":{"__isSmartRef__":true,"id":5383},"map":{"__isSmartRef__":true,"id":5386},"game":{"__isSmartRef__":true,"id":5389},"reset":{"__isSmartRef__":true,"id":5392},"shallowCopy":{"__isSmartRef__":true,"id":5395},"characters":{"__isSmartRef__":true,"id":5398},"enterTile":{"__isSmartRef__":true,"id":5401},"leaveTile":{"__isSmartRef__":true,"id":5404},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5407}},"5328":{"varMapping":{"__isSmartRef__":true,"id":5329},"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":5330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5329":{"this":{"__isSmartRef__":true,"id":5288}},"5330":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"5331":{"varMapping":{"__isSmartRef__":true,"id":5332},"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":5333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5332":{"this":{"__isSmartRef__":true,"id":5288}},"5333":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"5334":{"varMapping":{"__isSmartRef__":true,"id":5335},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5335":{"this":{"__isSmartRef__":true,"id":5288}},"5336":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"5337":{"varMapping":{"__isSmartRef__":true,"id":5338},"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":5339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5338":{"this":{"__isSmartRef__":true,"id":5288}},"5339":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"5340":{"varMapping":{"__isSmartRef__":true,"id":5341},"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":5346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5341":{"this":{"__isSmartRef__":true,"id":5288},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5342}},"5342":{"$super":{"__isSmartRef__":true,"id":5343}},"5343":{"varMapping":{"__isSmartRef__":true,"id":5344},"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":5345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5344":{"obj":{"__isSmartRef__":true,"id":5288},"name":"onMouseDown"},"5345":{},"5346":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"5347":{"varMapping":{"__isSmartRef__":true,"id":5348},"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":5349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5348":{"this":{"__isSmartRef__":true,"id":5288}},"5349":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"5350":{"varMapping":{"__isSmartRef__":true,"id":5351},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5351":{"this":{"__isSmartRef__":true,"id":5288}},"5352":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"5353":{"varMapping":{"__isSmartRef__":true,"id":5354},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5354":{"this":{"__isSmartRef__":true,"id":5288}},"5355":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"5356":{"varMapping":{"__isSmartRef__":true,"id":5357},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5357":{"this":{"__isSmartRef__":true,"id":5288}},"5358":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"5359":{"varMapping":{"__isSmartRef__":true,"id":5360},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5360":{"this":{"__isSmartRef__":true,"id":5288}},"5361":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5362":{"varMapping":{"__isSmartRef__":true,"id":5363},"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":5364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5363":{"this":{"__isSmartRef__":true,"id":5288}},"5364":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5365":{"varMapping":{"__isSmartRef__":true,"id":5366},"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":5367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5366":{"this":{"__isSmartRef__":true,"id":5288}},"5367":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5368":{"varMapping":{"__isSmartRef__":true,"id":5369},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5369":{"this":{"__isSmartRef__":true,"id":5288}},"5370":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5371":{"varMapping":{"__isSmartRef__":true,"id":5372},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5372":{"this":{"__isSmartRef__":true,"id":5288}},"5373":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"5374":{"varMapping":{"__isSmartRef__":true,"id":5375},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5375":{"this":{"__isSmartRef__":true,"id":5288}},"5376":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5377":{"varMapping":{"__isSmartRef__":true,"id":5378},"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":5379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5378":{"this":{"__isSmartRef__":true,"id":5288}},"5379":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5380":{"varMapping":{"__isSmartRef__":true,"id":5381},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5381":{"this":{"__isSmartRef__":true,"id":5288}},"5382":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5383":{"varMapping":{"__isSmartRef__":true,"id":5384},"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":5385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5384":{"this":{"__isSmartRef__":true,"id":5288}},"5385":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5386":{"varMapping":{"__isSmartRef__":true,"id":5387},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5387":{"this":{"__isSmartRef__":true,"id":5288}},"5388":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5389":{"varMapping":{"__isSmartRef__":true,"id":5390},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5390":{"this":{"__isSmartRef__":true,"id":5288}},"5391":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5392":{"varMapping":{"__isSmartRef__":true,"id":5393},"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":5394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5393":{"this":{"__isSmartRef__":true,"id":5288}},"5394":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5395":{"varMapping":{"__isSmartRef__":true,"id":5396},"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":5397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5396":{"this":{"__isSmartRef__":true,"id":5288}},"5397":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5398":{"varMapping":{"__isSmartRef__":true,"id":5399},"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":5400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5399":{"this":{"__isSmartRef__":true,"id":5288}},"5400":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5401":{"varMapping":{"__isSmartRef__":true,"id":5402},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5402":{"this":{"__isSmartRef__":true,"id":5288}},"5403":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5404":{"varMapping":{"__isSmartRef__":true,"id":5405},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5405":{"this":{"__isSmartRef__":true,"id":5288}},"5406":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5407":{"varMapping":{"__isSmartRef__":true,"id":5408},"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":5409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5408":{"this":{"__isSmartRef__":true,"id":5288}},"5409":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5410":{"submorphs":[{"__isSmartRef__":true,"id":5411}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5415},"derivationIds":[null,"A99657C2-B3AD-46F3-A208-5E7E0106D708"],"id":"8E07986A-C453-45CE-A8E1-A4F740AE711C","eventHandler":{"__isSmartRef__":true,"id":5416},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":541},"row":5,"column":2,"owner":{"__isSmartRef__":true,"id":644},"terrain":{"__isSmartRef__":true,"id":5411},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5417},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,240.0)"},"5411":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5412},"derivationIds":[null,"2C0C7D56-0ACF-40E8-A20F-7301F7537BA8"],"id":"1681874F-D2F9-45DD-9E6B-00DBFD3AFE11","eventHandler":{"__isSmartRef__":true,"id":5413},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5410},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5414},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"5412":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-2c0c7d56-0acf-40e8-a20f-7301f7537ba8","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"5413":{"morph":{"__isSmartRef__":true,"id":5411},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5414":{"dropOn":{"__isSmartRef__":true,"id":501},"shallowCopy":{"__isSmartRef__":true,"id":530}},"5415":{"_NodeClass":["morph","box"],"_NodeId":"morph-a99657c2-b3ad-46f3-a208-5e7e0106d708","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5416":{"morph":{"__isSmartRef__":true,"id":5410},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5417":{"setDevStyle":{"__isSmartRef__":true,"id":5418},"setNormalStyle":{"__isSmartRef__":true,"id":5421},"tileSize":{"__isSmartRef__":true,"id":5424},"become":{"__isSmartRef__":true,"id":5427},"onMouseDown":{"__isSmartRef__":true,"id":5430},"setGridPosition":{"__isSmartRef__":true,"id":5437},"toolbox":{"__isSmartRef__":true,"id":5440},"distanceTo":{"__isSmartRef__":true,"id":5443},"tileWasDropped":{"__isSmartRef__":true,"id":5446},"isObstacle":{"__isSmartRef__":true,"id":5449},"neighboursInDirection":{"__isSmartRef__":true,"id":5452},"neighbours":{"__isSmartRef__":true,"id":5455},"zIndex":{"__isSmartRef__":true,"id":5458},"obstacles":{"__isSmartRef__":true,"id":5461},"addObstacle":{"__isSmartRef__":true,"id":5464},"removeObstacle":{"__isSmartRef__":true,"id":5467},"isTile":{"__isSmartRef__":true,"id":5470},"neighbourAt":{"__isSmartRef__":true,"id":5473},"map":{"__isSmartRef__":true,"id":5476},"game":{"__isSmartRef__":true,"id":5479},"reset":{"__isSmartRef__":true,"id":5482},"shallowCopy":{"__isSmartRef__":true,"id":5485},"characters":{"__isSmartRef__":true,"id":5488},"enterTile":{"__isSmartRef__":true,"id":5491},"leaveTile":{"__isSmartRef__":true,"id":5494},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5497}},"5418":{"varMapping":{"__isSmartRef__":true,"id":5419},"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":5420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5419":{"this":{"__isSmartRef__":true,"id":5410}},"5420":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"5421":{"varMapping":{"__isSmartRef__":true,"id":5422},"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":5423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5422":{"this":{"__isSmartRef__":true,"id":5410}},"5423":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"5424":{"varMapping":{"__isSmartRef__":true,"id":5425},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5425":{"this":{"__isSmartRef__":true,"id":5410}},"5426":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"5427":{"varMapping":{"__isSmartRef__":true,"id":5428},"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":5429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5428":{"this":{"__isSmartRef__":true,"id":5410}},"5429":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"5430":{"varMapping":{"__isSmartRef__":true,"id":5431},"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":5436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5431":{"this":{"__isSmartRef__":true,"id":5410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5432}},"5432":{"$super":{"__isSmartRef__":true,"id":5433}},"5433":{"varMapping":{"__isSmartRef__":true,"id":5434},"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":5435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5434":{"obj":{"__isSmartRef__":true,"id":5410},"name":"onMouseDown"},"5435":{},"5436":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"5437":{"varMapping":{"__isSmartRef__":true,"id":5438},"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":5439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5438":{"this":{"__isSmartRef__":true,"id":5410}},"5439":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"5440":{"varMapping":{"__isSmartRef__":true,"id":5441},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5441":{"this":{"__isSmartRef__":true,"id":5410}},"5442":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"5443":{"varMapping":{"__isSmartRef__":true,"id":5444},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5444":{"this":{"__isSmartRef__":true,"id":5410}},"5445":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"5446":{"varMapping":{"__isSmartRef__":true,"id":5447},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5447":{"this":{"__isSmartRef__":true,"id":5410}},"5448":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"5449":{"varMapping":{"__isSmartRef__":true,"id":5450},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5450":{"this":{"__isSmartRef__":true,"id":5410}},"5451":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5452":{"varMapping":{"__isSmartRef__":true,"id":5453},"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":5454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5453":{"this":{"__isSmartRef__":true,"id":5410}},"5454":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5455":{"varMapping":{"__isSmartRef__":true,"id":5456},"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":5457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5456":{"this":{"__isSmartRef__":true,"id":5410}},"5457":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5458":{"varMapping":{"__isSmartRef__":true,"id":5459},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5459":{"this":{"__isSmartRef__":true,"id":5410}},"5460":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5461":{"varMapping":{"__isSmartRef__":true,"id":5462},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5462":{"this":{"__isSmartRef__":true,"id":5410}},"5463":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"5464":{"varMapping":{"__isSmartRef__":true,"id":5465},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5465":{"this":{"__isSmartRef__":true,"id":5410}},"5466":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5467":{"varMapping":{"__isSmartRef__":true,"id":5468},"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":5469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5468":{"this":{"__isSmartRef__":true,"id":5410}},"5469":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5470":{"varMapping":{"__isSmartRef__":true,"id":5471},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5471":{"this":{"__isSmartRef__":true,"id":5410}},"5472":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5473":{"varMapping":{"__isSmartRef__":true,"id":5474},"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":5475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5474":{"this":{"__isSmartRef__":true,"id":5410}},"5475":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5476":{"varMapping":{"__isSmartRef__":true,"id":5477},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5477":{"this":{"__isSmartRef__":true,"id":5410}},"5478":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5479":{"varMapping":{"__isSmartRef__":true,"id":5480},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5480":{"this":{"__isSmartRef__":true,"id":5410}},"5481":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5482":{"varMapping":{"__isSmartRef__":true,"id":5483},"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":5484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5483":{"this":{"__isSmartRef__":true,"id":5410}},"5484":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5485":{"varMapping":{"__isSmartRef__":true,"id":5486},"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":5487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5486":{"this":{"__isSmartRef__":true,"id":5410}},"5487":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5488":{"varMapping":{"__isSmartRef__":true,"id":5489},"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":5490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5489":{"this":{"__isSmartRef__":true,"id":5410}},"5490":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5491":{"varMapping":{"__isSmartRef__":true,"id":5492},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5492":{"this":{"__isSmartRef__":true,"id":5410}},"5493":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5494":{"varMapping":{"__isSmartRef__":true,"id":5495},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5495":{"this":{"__isSmartRef__":true,"id":5410}},"5496":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5497":{"varMapping":{"__isSmartRef__":true,"id":5498},"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":5499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5498":{"this":{"__isSmartRef__":true,"id":5410}},"5499":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5500":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(288.0,288.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,248,250)","_Padding":"lively.rect(0,0,0,0)"},"5501":{"partsSpaceName":"PartsBin/Basic","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":5502},{"__isSmartRef__":true,"id":5504},{"__isSmartRef__":true,"id":5506},{"__isSmartRef__":true,"id":5508}],"revisionOnLoad":156095,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5502":{"date":{"__isSmartRef__":true,"id":5503},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5503":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"5504":{"date":{"__isSmartRef__":true,"id":5505},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5505":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"5506":{"date":{"__isSmartRef__":true,"id":5507},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5507":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"5508":{"date":{"__isSmartRef__":true,"id":5509},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5509":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"5510":{"morph":{"__isSmartRef__":true,"id":644},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5511":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5512}},"5512":{"test01IsMorph":{"__isSmartRef__":true,"id":5513}},"5513":{"varMapping":{"__isSmartRef__":true,"id":5514},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5514":{"this":{"__isSmartRef__":true,"id":5511}},"5515":{},"5516":{"submorphs":[{"__isSmartRef__":true,"id":644}],"scripts":[],"id":"E42E0C73-74A5-4D08-8B69-E6FB9CC317D8","shape":{"__isSmartRef__":true,"id":5517},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Game3","partsBinMetaInfo":{"__isSmartRef__":true,"id":5518},"eventHandler":{"__isSmartRef__":true,"id":5585},"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","3C494BB6-E824-479E-9941-059BED958605","71327180-6FA9-43DA-83FC-26C0F9488A1A","C9912A10-F616-40CA-9807-71E5F5B923F0"],"partTests":{"__isSmartRef__":true,"id":5586},"isBeingDragged":false,"prevScroll":[0,0],"moved":true,"selectedUnit":null,"_ClipMode":"visible","partNamesCache":{"__isSmartRef__":true,"id":5591},"partItemCache":{"__isSmartRef__":true,"id":5592},"owner":{"__isSmartRef__":true,"id":192},"_Rotation":0,"_Scale":1.3731331840667302,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5593},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(570.3,339.5)","distanceToDragEvent":"lively.pt(286.1,-12.0)"},"5517":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(290.6,288.9)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(189,190,192)","_Padding":"lively.rect(0,0,0,0)"},"5518":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"The map and playing field","migrationLevel":4,"partName":"Game","changes":[{"__isSmartRef__":true,"id":5519},{"__isSmartRef__":true,"id":5521},{"__isSmartRef__":true,"id":5523},{"__isSmartRef__":true,"id":5525},{"__isSmartRef__":true,"id":5527},{"__isSmartRef__":true,"id":5529},{"__isSmartRef__":true,"id":5531},{"__isSmartRef__":true,"id":5533},{"__isSmartRef__":true,"id":5535},{"__isSmartRef__":true,"id":5537},{"__isSmartRef__":true,"id":5539},{"__isSmartRef__":true,"id":5541},{"__isSmartRef__":true,"id":5543},{"__isSmartRef__":true,"id":5545},{"__isSmartRef__":true,"id":5547},{"__isSmartRef__":true,"id":5549},{"__isSmartRef__":true,"id":5551},{"__isSmartRef__":true,"id":5553},{"__isSmartRef__":true,"id":5555},{"__isSmartRef__":true,"id":5557},{"__isSmartRef__":true,"id":5559},{"__isSmartRef__":true,"id":5561},{"__isSmartRef__":true,"id":5563},{"__isSmartRef__":true,"id":5565},{"__isSmartRef__":true,"id":5567},{"__isSmartRef__":true,"id":5569},{"__isSmartRef__":true,"id":5571},{"__isSmartRef__":true,"id":5573},{"__isSmartRef__":true,"id":5575},{"__isSmartRef__":true,"id":5577},{"__isSmartRef__":true,"id":5579},{"__isSmartRef__":true,"id":5581},{"__isSmartRef__":true,"id":5583}],"revisionOnLoad":161139,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5519":{"date":{"__isSmartRef__":true,"id":5520},"author":"lauritz","message":"added close button for demos","id":"F393FAAD-3B17-491F-9163-20DC9B79151C"},"5520":{"isSerializedDate":true,"string":"Thu May 10 2012 13:09:46 GMT+0200 (Central Europe Daylight Time)"},"5521":{"date":{"__isSmartRef__":true,"id":5522},"author":"lauritz","message":"register characters at setup: let the fights begin!","id":"1CB8B3D0-A7FB-4673-8D71-D7FB4D423990"},"5522":{"isSerializedDate":true,"string":"Mon May 07 2012 11:37:01 GMT+0200 (Central Europe Daylight Time)"},"5523":{"date":{"__isSmartRef__":true,"id":5524},"author":"timfelgentreff","message":"build tiles rows-first, to fix zIndex of things","id":"6A13BB1F-4974-4E80-8BD3-76B74371CC74"},"5524":{"isSerializedDate":true,"string":"Fri May 04 2012 15:31:50 GMT+0200 (Central Europe Daylight Time)"},"5525":{"date":{"__isSmartRef__":true,"id":5526},"author":"timfelgentreff","message":"cache shallowCopy'able things","id":"645744AA-3EED-4686-99B2-ADEF3F3E34DC"},"5526":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:30:37 GMT+0200 (Central Europe Daylight Time)"},"5527":{"date":{"__isSmartRef__":true,"id":5528},"author":"tessi","message":"replace this.get(\"Game\") with this.game() calls","id":"4DD20E29-B711-4483-B963-CA6EEC46FFC1"},"5528":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:09:50 GMT+0200 (Central Europe Daylight Time)"},"5529":{"date":{"__isSmartRef__":true,"id":5530},"author":"timfelgentreff","message":"no comment","id":"5BD4709D-F345-48A8-B0A9-618209647AC0"},"5530":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:41:52 GMT+0200 (Central Europe Daylight Time)"},"5531":{"date":{"__isSmartRef__":true,"id":5532},"author":"timfelgentreff","message":"catch errors during setup","id":"D1EAF47B-BBBB-493B-BB78-CFE149FB951F"},"5532":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:32:35 GMT+0200 (Central Europe Daylight Time)"},"5533":{"date":{"__isSmartRef__":true,"id":5534},"author":"tessi","message":"animate","id":"8E4CF411-945C-4251-8FDB-35D3225B7CB3"},"5534":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:28:07 GMT+0200 (Central Europe Daylight Time)"},"5535":{"date":{"__isSmartRef__":true,"id":5536},"author":"tessi","message":"animate characters after they are placed on the map","id":"995FC3A0-7B17-472B-9796-435F68A99C41"},"5536":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:23:57 GMT+0200 (Central Europe Daylight Time)"},"5537":{"date":{"__isSmartRef__":true,"id":5538},"author":"timfelgentreff","message":"","id":"8A61D4CF-17A8-4B0E-AD01-3807E28FAD9E"},"5538":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:05:44 GMT+0200 (Central Europe Daylight Time)"},"5539":{"date":{"__isSmartRef__":true,"id":5540},"author":"timfelgentreff","message":"","id":"3B4FAF4F-0D7A-47F9-9247-47D6649688B6"},"5540":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:33:44 GMT+0200 (Central Europe Daylight Time)"},"5541":{"date":{"__isSmartRef__":true,"id":5542},"author":"timfelgentreff","message":"","id":"89954E3F-B4E1-49D9-9969-AB27CE0CBABD"},"5542":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:27:06 GMT+0200 (Central Europe Daylight Time)"},"5543":{"date":{"__isSmartRef__":true,"id":5544},"author":"timfelgentreff","message":"","id":"AE514D08-62FA-410B-9287-72917FA6B563"},"5544":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:26:55 GMT+0200 (Central Europe Daylight Time)"},"5545":{"date":{"__isSmartRef__":true,"id":5546},"author":"timfelgentreff","message":"","id":"DE3BE79D-EDA8-415F-9405-95CDD1774577"},"5546":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:14:52 GMT+0200 (Central Europe Daylight Time)"},"5547":{"date":{"__isSmartRef__":true,"id":5548},"author":"timfelgentreff","message":"","id":"3DF6DA7F-0492-4EC2-B626-E65ED2F0CDF2"},"5548":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:07:30 GMT+0200 (Central Europe Daylight Time)"},"5549":{"date":{"__isSmartRef__":true,"id":5550},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5550":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"5551":{"date":{"__isSmartRef__":true,"id":5552},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5552":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"5553":{"date":{"__isSmartRef__":true,"id":5554},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5554":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"5555":{"date":{"__isSmartRef__":true,"id":5556},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5556":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"5557":{"date":{"__isSmartRef__":true,"id":5558},"author":"timfelgentreff","message":"","id":"666459AF-F338-4900-A325-0A193313D463"},"5558":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:37:03 GMT+0200 (Central Europe Daylight Time)"},"5559":{"date":{"__isSmartRef__":true,"id":5560},"author":"timfelgentreff","message":"","id":"AE4850E0-F8B8-442E-9A28-2388D0500FC1"},"5560":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:07:33 GMT+0200 (Central Europe Daylight Time)"},"5561":{"date":{"__isSmartRef__":true,"id":5562},"author":"lauritz","message":"alias toolbox","id":"FECC8EA9-60A5-4B3B-A8C3-017FF0CEFE02"},"5562":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:16:41 GMT+0200 (Central Europe Daylight Time)"},"5563":{"date":{"__isSmartRef__":true,"id":5564},"author":"timfelgentreff","message":"","id":"10677F89-3177-4F33-9511-5BB0E21E2DEB"},"5564":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:11:07 GMT+0200 (Central Europe Daylight Time)"},"5565":{"date":{"__isSmartRef__":true,"id":5566},"author":"timfelgentreff","message":"","id":"A0C26B2F-3323-421E-94FB-E5E6180AD81C"},"5566":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:37 GMT+0200 (Central Europe Daylight Time)"},"5567":{"date":{"__isSmartRef__":true,"id":5568},"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"},"5568":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:24:39 GMT+0200 (Central Europe Daylight Time)"},"5569":{"date":{"__isSmartRef__":true,"id":5570},"author":"timfelgentreff","message":"add generation of things","id":"87868D79-001D-4B0E-A435-649B4906FEF0"},"5570":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:20:14 GMT+0200 (Central Europe Daylight Time)"},"5571":{"date":{"__isSmartRef__":true,"id":5572},"author":"timfelgentreff","message":"fix setup things","id":"5F7A588C-AB63-49EB-80E4-3083A569EBCD"},"5572":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:32:14 GMT+0200 (Central Europe Daylight Time)"},"5573":{"date":{"__isSmartRef__":true,"id":5574},"author":"tessi","message":"map now generates some flower tiles too","id":"C1AFA3CF-CD73-432A-AC79-144C9B5D433B"},"5574":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:58:01 GMT+0200 (Central Europe Daylight Time)"},"5575":{"date":{"__isSmartRef__":true,"id":5576},"author":"timfelgentreff","message":"use shallowCopy for tiles","id":"D4325DFA-12D5-4A97-BAE7-F6B2A0430EA5"},"5576":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:54:36 GMT+0200 (Central Europe Daylight Time)"},"5577":{"date":{"__isSmartRef__":true,"id":5578},"author":"timfelgentreff","message":"merge lauritz' changes","id":"51463A4E-AEC0-4BEC-AEFB-33478C31225F"},"5578":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:08:15 GMT+0200 (Central Europe Daylight Time)"},"5579":{"date":{"__isSmartRef__":true,"id":5580},"author":"timfelgentreff","message":"fix for non-shallowCopy toolbox items","id":"A6B99BEA-DE24-4559-B954-13A0EBC1E1DF"},"5580":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:13:35 GMT+0200 (Central Europe Daylight Time)"},"5581":{"date":{"__isSmartRef__":true,"id":5582},"author":"timfelgentreff","message":"add a player","id":"D427AD7F-610C-4DB0-8783-DC6652015178"},"5582":{"isSerializedDate":true,"string":"Fri May 04 2012 17:41:04 GMT+0200 (Central Europe Daylight Time)"},"5583":{"date":{"__isSmartRef__":true,"id":5584},"author":"lauritz","message":"normal-styled tiles at the beginning","id":"B7823FED-4B48-458E-9C42-0CE743ADCF93"},"5584":{"isSerializedDate":true,"string":"Mon May 07 2012 19:01:08 GMT+0200 (Central Europe Daylight Time)"},"5585":{"morph":{"__isSmartRef__":true,"id":5516},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5586":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5587}},"5587":{"test01IsMorph":{"__isSmartRef__":true,"id":5588}},"5588":{"varMapping":{"__isSmartRef__":true,"id":5589},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5589":{"this":{"__isSmartRef__":true,"id":5586}},"5590":{},"5591":{"Character":["Villagegirl","Scientist","Octocat","Ogre","Coder","Villager"],"Thing":["Fire","Stone","Woodstack","Tree","Parasol"]},"5592":{"Tile":{"__isSmartRef__":true,"id":866},"GrassTile":{"__isSmartRef__":true,"id":503},"FlowerGrassTile":{"__isSmartRef__":true,"id":5295},"Character":{"__isSmartRef__":true,"id":1820}},"5593":{"loadPartItem":{"__isSmartRef__":true,"id":5594},"getPartsBinCategory":{"__isSmartRef__":true,"id":5598},"toolbox":{"__isSmartRef__":true,"id":5602},"reset":{"__isSmartRef__":true,"id":5606},"zIndexForTiles":{"__isSmartRef__":true,"id":5610},"zIndexForThings":{"__isSmartRef__":true,"id":5614},"partNamesEndingWith":{"__isSmartRef__":true,"id":5618}},"5594":{"varMapping":{"__isSmartRef__":true,"id":5595},"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":5596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5595":{"this":{"__isSmartRef__":true,"id":5516}},"5596":{"timestamp":{"__isSmartRef__":true,"id":5597},"user":"timfelgentreff","tags":[]},"5597":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:51 GMT+0200 (Central Europe Daylight Time)"},"5598":{"varMapping":{"__isSmartRef__":true,"id":5599},"source":"function getPartsBinCategory() {\n return 'FreedomOfSpeech';\n}","funcProperties":{"__isSmartRef__":true,"id":5600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5599":{"this":{"__isSmartRef__":true,"id":5516}},"5600":{"timestamp":{"__isSmartRef__":true,"id":5601},"user":"lauritz","tags":[]},"5601":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:09:26 GMT+0200 (Central Europe Daylight Time)"},"5602":{"varMapping":{"__isSmartRef__":true,"id":5603},"source":"function toolbox(partName) {\n return this.loadPartItem(partName);\n}","funcProperties":{"__isSmartRef__":true,"id":5604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5603":{"this":{"__isSmartRef__":true,"id":5516}},"5604":{"timestamp":{"__isSmartRef__":true,"id":5605},"user":"lauritz","tags":[]},"5605":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:15:49 GMT+0200 (Central Europe Daylight Time)"},"5606":{"varMapping":{"__isSmartRef__":true,"id":5607},"source":"function reset() {\n this.partItemCache = {}\n this.selectedUnit = null\n}","funcProperties":{"__isSmartRef__":true,"id":5608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5607":{"this":{"__isSmartRef__":true,"id":5516}},"5608":{"timestamp":{"__isSmartRef__":true,"id":5609},"user":"timfelgentreff","tags":[]},"5609":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:08:04 GMT+0200 (Central Europe Daylight Time)"},"5610":{"varMapping":{"__isSmartRef__":true,"id":5611},"source":"function zIndexForTiles() {\n return 10;\n}","funcProperties":{"__isSmartRef__":true,"id":5612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5611":{"this":{"__isSmartRef__":true,"id":5516}},"5612":{"timestamp":{"__isSmartRef__":true,"id":5613},"user":"timfelgentreff","tags":[]},"5613":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:58:48 GMT+0200 (Central Europe Daylight Time)"},"5614":{"varMapping":{"__isSmartRef__":true,"id":5615},"source":"function zIndexForThings() {\n return this.zIndexForTiles + 10;\n}","funcProperties":{"__isSmartRef__":true,"id":5616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5615":{"this":{"__isSmartRef__":true,"id":5516}},"5616":{"timestamp":{"__isSmartRef__":true,"id":5617},"user":"timfelgentreff","tags":[]},"5617":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:07 GMT+0200 (Central Europe Daylight Time)"},"5618":{"varMapping":{"__isSmartRef__":true,"id":5619},"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":5620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5619":{"this":{"__isSmartRef__":true,"id":5516}},"5620":{"timestamp":{"__isSmartRef__":true,"id":5621},"user":"timfelgentreff","tags":[]},"5621":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:22:18 GMT+0200 (Central Europe Daylight Time)"},"5622":{"mapTileSize":{"__isSmartRef__":true,"id":5623},"mapExtent":{"__isSmartRef__":true,"id":5627},"toolbox":{"__isSmartRef__":true,"id":5631},"setup":{"__isSmartRef__":true,"id":5635},"emptyMap":{"__isSmartRef__":true,"id":5639},"reset":{"__isSmartRef__":true,"id":5643},"setDevStyle":{"__isSmartRef__":true,"id":5647},"setNormalStyle":{"__isSmartRef__":true,"id":5651},"tileSize":{"__isSmartRef__":true,"id":5655},"getTileForPosition":{"__isSmartRef__":true,"id":5659},"setupTiles":{"__isSmartRef__":true,"id":5663},"setupUnits":{"__isSmartRef__":true,"id":5667},"setupThings":{"__isSmartRef__":true,"id":5671},"game":{"__isSmartRef__":true,"id":5675}},"5623":{"varMapping":{"__isSmartRef__":true,"id":5624},"source":"function mapTileSize() {\n return pt(6, 6)\n}","funcProperties":{"__isSmartRef__":true,"id":5625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5624":{"this":{"__isSmartRef__":true,"id":644}},"5625":{"timestamp":{"__isSmartRef__":true,"id":5626},"user":"lauritz","tags":[]},"5626":{"isSerializedDate":true,"string":"Tue Jun 26 2012 11:13:59 GMT+0200 (Central Europe Daylight Time)"},"5627":{"varMapping":{"__isSmartRef__":true,"id":5628},"source":"function mapExtent() {\n return this.mapTileSize().scaleByPt(this.toolbox(\"Tile\").tileSize())\n}","funcProperties":{"__isSmartRef__":true,"id":5629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5628":{"this":{"__isSmartRef__":true,"id":644}},"5629":{"timestamp":{"__isSmartRef__":true,"id":5630},"user":"timfelgentreff","tags":[]},"5630":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:43:22 GMT+0200 (Central Europe Daylight Time)"},"5631":{"varMapping":{"__isSmartRef__":true,"id":5632},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5632":{"this":{"__isSmartRef__":true,"id":644}},"5633":{"timestamp":{"__isSmartRef__":true,"id":5634},"user":"tessi","tags":[]},"5634":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:08:47 GMT+0200 (Central Europe Daylight Time)"},"5635":{"varMapping":{"__isSmartRef__":true,"id":5636},"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":5637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5636":{"this":{"__isSmartRef__":true,"id":644}},"5637":{"timestamp":{"__isSmartRef__":true,"id":5638},"user":"lauritz","tags":[]},"5638":{"isSerializedDate":true,"string":"Mon May 07 2012 19:00:50 GMT+0200 (Central Europe Daylight Time)"},"5639":{"varMapping":{"__isSmartRef__":true,"id":5640},"source":"function emptyMap() {\n this.removeAllMorphs()\n this.game().reset()\n this.tiles = null\n}","funcProperties":{"__isSmartRef__":true,"id":5641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5640":{"this":{"__isSmartRef__":true,"id":644}},"5641":{"timestamp":{"__isSmartRef__":true,"id":5642},"user":"tessi","tags":[]},"5642":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:07:01 GMT+0200 (Central Europe Daylight Time)"},"5643":{"varMapping":{"__isSmartRef__":true,"id":5644},"source":"function reset() {\n this.emptyMap()\n this.setup()\n}","funcProperties":{"__isSmartRef__":true,"id":5645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5644":{"this":{"__isSmartRef__":true,"id":644}},"5645":{"timestamp":{"__isSmartRef__":true,"id":5646},"user":"timfelgentreff","tags":[]},"5646":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:33:22 GMT+0200 (Central Europe Daylight Time)"},"5647":{"varMapping":{"__isSmartRef__":true,"id":5648},"source":"function setDevStyle() {\n this.submorphs.invoke(\"setDevStyle\")\n}","funcProperties":{"__isSmartRef__":true,"id":5649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5648":{"this":{"__isSmartRef__":true,"id":644}},"5649":{"timestamp":{"__isSmartRef__":true,"id":5650},"user":"tessi","tags":[]},"5650":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:31:57 GMT+0200 (Central Europe Daylight Time)"},"5651":{"varMapping":{"__isSmartRef__":true,"id":5652},"source":"function setNormalStyle() {\n this.submorphs.invoke(\"setNormalStyle\")\n}","funcProperties":{"__isSmartRef__":true,"id":5653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5652":{"this":{"__isSmartRef__":true,"id":644}},"5653":{"timestamp":{"__isSmartRef__":true,"id":5654},"user":"tessi","tags":[]},"5654":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:32:13 GMT+0200 (Central Europe Daylight Time)"},"5655":{"varMapping":{"__isSmartRef__":true,"id":5656},"source":"function tileSize() {\n return this.toolbox(\"Tile\").tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":5657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5656":{"this":{"__isSmartRef__":true,"id":644}},"5657":{"timestamp":{"__isSmartRef__":true,"id":5658},"user":"timfelgentreff","tags":[]},"5658":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:43:55 GMT+0200 (Central Europe Daylight Time)"},"5659":{"varMapping":{"__isSmartRef__":true,"id":5660},"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":5661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5660":{"this":{"__isSmartRef__":true,"id":644}},"5661":{"timestamp":{"__isSmartRef__":true,"id":5662},"user":"timfelgentreff","tags":[]},"5662":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:04:22 GMT+0200 (Central Europe Daylight Time)"},"5663":{"varMapping":{"__isSmartRef__":true,"id":5664},"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":5665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5664":{"this":{"__isSmartRef__":true,"id":644}},"5665":{"timestamp":{"__isSmartRef__":true,"id":5666},"user":"timfelgentreff","tags":[]},"5666":{"isSerializedDate":true,"string":"Fri May 04 2012 15:31:00 GMT+0200 (Central Europe Daylight Time)"},"5667":{"varMapping":{"__isSmartRef__":true,"id":5668},"source":"function setupUnits() {\n var numberOfUnits = 2,\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":5669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5668":{"this":{"__isSmartRef__":true,"id":644}},"5669":{"timestamp":{"__isSmartRef__":true,"id":5670},"user":"lauritz","tags":[]},"5670":{"isSerializedDate":true,"string":"Tue Jun 26 2012 11:14:48 GMT+0200 (Central Europe Daylight Time)"},"5671":{"varMapping":{"__isSmartRef__":true,"id":5672},"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":5673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5672":{"this":{"__isSmartRef__":true,"id":644}},"5673":{"timestamp":{"__isSmartRef__":true,"id":5674},"user":"lauritz","tags":[]},"5674":{"isSerializedDate":true,"string":"Tue Jun 26 2012 11:14:42 GMT+0200 (Central Europe Daylight Time)"},"5675":{"varMapping":{"__isSmartRef__":true,"id":5676},"source":"function game() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5676":{"this":{"__isSmartRef__":true,"id":644}},"5677":{"timestamp":{"__isSmartRef__":true,"id":5678},"user":"tessi","tags":[]},"5678":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:08:01 GMT+0200 (Central Europe Daylight Time)"},"5679":{"setDevStyle":{"__isSmartRef__":true,"id":5680},"setNormalStyle":{"__isSmartRef__":true,"id":5683},"tileSize":{"__isSmartRef__":true,"id":5686},"become":{"__isSmartRef__":true,"id":5689},"onMouseDown":{"__isSmartRef__":true,"id":5692},"setGridPosition":{"__isSmartRef__":true,"id":5699},"toolbox":{"__isSmartRef__":true,"id":5702},"distanceTo":{"__isSmartRef__":true,"id":5705},"tileWasDropped":{"__isSmartRef__":true,"id":5708},"isObstacle":{"__isSmartRef__":true,"id":5711},"neighboursInDirection":{"__isSmartRef__":true,"id":5714},"neighbours":{"__isSmartRef__":true,"id":5717},"zIndex":{"__isSmartRef__":true,"id":5720},"obstacles":{"__isSmartRef__":true,"id":5723},"addObstacle":{"__isSmartRef__":true,"id":5726},"removeObstacle":{"__isSmartRef__":true,"id":5729},"isTile":{"__isSmartRef__":true,"id":5732},"neighbourAt":{"__isSmartRef__":true,"id":5735},"map":{"__isSmartRef__":true,"id":5738},"game":{"__isSmartRef__":true,"id":5741},"reset":{"__isSmartRef__":true,"id":5744},"shallowCopy":{"__isSmartRef__":true,"id":5747},"characters":{"__isSmartRef__":true,"id":5750},"enterTile":{"__isSmartRef__":true,"id":5753},"leaveTile":{"__isSmartRef__":true,"id":5756},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5759}},"5680":{"varMapping":{"__isSmartRef__":true,"id":5681},"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":5682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5681":{"this":{"__isSmartRef__":true,"id":496}},"5682":{"timestamp":{"__isSmartRef__":true,"id":863},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":864},"declaredObject":""},"5683":{"varMapping":{"__isSmartRef__":true,"id":5684},"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":5685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5684":{"this":{"__isSmartRef__":true,"id":496}},"5685":{"timestamp":{"__isSmartRef__":true,"id":878},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":875},"declaredObject":""},"5686":{"varMapping":{"__isSmartRef__":true,"id":5687},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5687":{"this":{"__isSmartRef__":true,"id":496}},"5688":{"timestamp":{"__isSmartRef__":true,"id":882},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":879},"declaredObject":""},"5689":{"varMapping":{"__isSmartRef__":true,"id":5690},"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":5691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5690":{"this":{"__isSmartRef__":true,"id":496}},"5691":{"timestamp":{"__isSmartRef__":true,"id":886},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":883},"declaredObject":""},"5692":{"varMapping":{"__isSmartRef__":true,"id":5693},"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":5698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5693":{"this":{"__isSmartRef__":true,"id":496},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5694}},"5694":{"$super":{"__isSmartRef__":true,"id":5695}},"5695":{"varMapping":{"__isSmartRef__":true,"id":5696},"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":5697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5696":{"obj":{"__isSmartRef__":true,"id":496},"name":"onMouseDown"},"5697":{},"5698":{"timestamp":{"__isSmartRef__":true,"id":894},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":887},"declaredObject":""},"5699":{"varMapping":{"__isSmartRef__":true,"id":5700},"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":5701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5700":{"this":{"__isSmartRef__":true,"id":496}},"5701":{"timestamp":{"__isSmartRef__":true,"id":898},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":895},"declaredObject":""},"5702":{"varMapping":{"__isSmartRef__":true,"id":5703},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5703":{"this":{"__isSmartRef__":true,"id":496}},"5704":{"timestamp":{"__isSmartRef__":true,"id":902},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":899},"declaredObject":""},"5705":{"varMapping":{"__isSmartRef__":true,"id":5706},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5706":{"this":{"__isSmartRef__":true,"id":496}},"5707":{"timestamp":{"__isSmartRef__":true,"id":906},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":903},"declaredObject":""},"5708":{"varMapping":{"__isSmartRef__":true,"id":5709},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5709":{"this":{"__isSmartRef__":true,"id":496}},"5710":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":907},"declaredObject":""},"5711":{"varMapping":{"__isSmartRef__":true,"id":5712},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5712":{"this":{"__isSmartRef__":true,"id":496}},"5713":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5714":{"varMapping":{"__isSmartRef__":true,"id":5715},"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":5716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5715":{"this":{"__isSmartRef__":true,"id":496}},"5716":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5717":{"varMapping":{"__isSmartRef__":true,"id":5718},"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":5719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5718":{"this":{"__isSmartRef__":true,"id":496}},"5719":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5720":{"varMapping":{"__isSmartRef__":true,"id":5721},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5721":{"this":{"__isSmartRef__":true,"id":496}},"5722":{"timestamp":{"__isSmartRef__":true,"id":926},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5723":{"varMapping":{"__isSmartRef__":true,"id":5724},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5724":{"this":{"__isSmartRef__":true,"id":496}},"5725":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":927},"declaredObject":""},"5726":{"varMapping":{"__isSmartRef__":true,"id":5727},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5727":{"this":{"__isSmartRef__":true,"id":496}},"5728":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5729":{"varMapping":{"__isSmartRef__":true,"id":5730},"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":5731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5730":{"this":{"__isSmartRef__":true,"id":496}},"5731":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5732":{"varMapping":{"__isSmartRef__":true,"id":5733},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5733":{"this":{"__isSmartRef__":true,"id":496}},"5734":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5735":{"varMapping":{"__isSmartRef__":true,"id":5736},"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":5737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5736":{"this":{"__isSmartRef__":true,"id":496}},"5737":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5738":{"varMapping":{"__isSmartRef__":true,"id":5739},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5739":{"this":{"__isSmartRef__":true,"id":496}},"5740":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5741":{"varMapping":{"__isSmartRef__":true,"id":5742},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5742":{"this":{"__isSmartRef__":true,"id":496}},"5743":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5744":{"varMapping":{"__isSmartRef__":true,"id":5745},"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":5746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5745":{"this":{"__isSmartRef__":true,"id":496}},"5746":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5747":{"varMapping":{"__isSmartRef__":true,"id":5748},"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":5749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5748":{"this":{"__isSmartRef__":true,"id":496}},"5749":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5750":{"varMapping":{"__isSmartRef__":true,"id":5751},"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":5752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5751":{"this":{"__isSmartRef__":true,"id":496}},"5752":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5753":{"varMapping":{"__isSmartRef__":true,"id":5754},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5754":{"this":{"__isSmartRef__":true,"id":496}},"5755":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5756":{"varMapping":{"__isSmartRef__":true,"id":5757},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5757":{"this":{"__isSmartRef__":true,"id":496}},"5758":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5759":{"varMapping":{"__isSmartRef__":true,"id":5760},"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":5761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5760":{"this":{"__isSmartRef__":true,"id":496}},"5761":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5762":{"_NodeClass":["morph","box"],"_NodeId":"morph-682c43e6-971f-4644-b6ab-a89f1f309b5e","_BorderWidth":1,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"5763":{"morph":{"__isSmartRef__":true,"id":318},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5764":{"setDevStyle":{"__isSmartRef__":true,"id":5765},"setNormalStyle":{"__isSmartRef__":true,"id":5768},"tileSize":{"__isSmartRef__":true,"id":5771},"become":{"__isSmartRef__":true,"id":5774},"walkUntilReached":{"__isSmartRef__":true,"id":5777},"onMouseDown":{"__isSmartRef__":true,"id":5780},"walkTo":{"__isSmartRef__":true,"id":5787},"currentTile":{"__isSmartRef__":true,"id":5790},"toolbox":{"__isSmartRef__":true,"id":5793},"setCurrentSpeed":{"__isSmartRef__":true,"id":5796},"getCurrentSpeed":{"__isSmartRef__":true,"id":5799},"isWalking":{"__isSmartRef__":true,"id":5802},"select":{"__isSmartRef__":true,"id":5805},"deselect":{"__isSmartRef__":true,"id":5808},"becomeRandomCharacter":{"__isSmartRef__":true,"id":5811},"reset":{"__isSmartRef__":true,"id":5814},"setDirectionToTile":{"__isSmartRef__":true,"id":5817},"getDirection":{"__isSmartRef__":true,"id":5820},"setDirection":{"__isSmartRef__":true,"id":5823},"setPosition":{"__isSmartRef__":true,"id":5826},"say":{"__isSmartRef__":true,"id":5833},"soliloquize":{"__isSmartRef__":true,"id":5836},"characterType":{"__isSmartRef__":true,"id":5839},"animate":{"__isSmartRef__":true,"id":5842},"doSomething":{"__isSmartRef__":true,"id":5845},"map":{"__isSmartRef__":true,"id":5848},"game":{"__isSmartRef__":true,"id":5851},"setup":{"__isSmartRef__":true,"id":5854},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":5857},"startConversation":{"__isSmartRef__":true,"id":5864},"startConversationWith":{"__isSmartRef__":true,"id":5867},"shallowCopy":{"__isSmartRef__":true,"id":5870},"conversation":{"__isSmartRef__":true,"id":5873},"answer":{"__isSmartRef__":true,"id":5876},"hideTextBubble":{"__isSmartRef__":true,"id":5879},"aStar":{"__isSmartRef__":true,"id":5882},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":5885},"aStarWalkPath":{"__isSmartRef__":true,"id":5888},"chatBot":{"__isSmartRef__":true,"id":5891},"getHit":{"__isSmartRef__":true,"id":5894},"becomePlayer":{"__isSmartRef__":true,"id":5897},"fight":{"__isSmartRef__":true,"id":5900},"fightPhrases":{"__isSmartRef__":true,"id":5903},"randomQuestions":{"__isSmartRef__":true,"id":5906},"randomAnswersFor":{"__isSmartRef__":true,"id":5909},"executeFightTurnAsking":{"__isSmartRef__":true,"id":5912},"heal":{"__isSmartRef__":true,"id":5915},"isDead":{"__isSmartRef__":true,"id":5918}},"5765":{"varMapping":{"__isSmartRef__":true,"id":5766},"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":5767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5766":{"this":{"__isSmartRef__":true,"id":318}},"5767":{"timestamp":{"__isSmartRef__":true,"id":1817},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1818},"declaredObject":""},"5768":{"varMapping":{"__isSmartRef__":true,"id":5769},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":5770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5769":{"this":{"__isSmartRef__":true,"id":318}},"5770":{"timestamp":{"__isSmartRef__":true,"id":1935},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1932},"declaredObject":""},"5771":{"varMapping":{"__isSmartRef__":true,"id":5772},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":5773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5772":{"this":{"__isSmartRef__":true,"id":318}},"5773":{"timestamp":{"__isSmartRef__":true,"id":1939},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1936},"declaredObject":""},"5774":{"varMapping":{"__isSmartRef__":true,"id":5775},"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":5776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5775":{"this":{"__isSmartRef__":true,"id":318}},"5776":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1940},"declaredObject":""},"5777":{"varMapping":{"__isSmartRef__":true,"id":5778},"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":5779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5778":{"this":{"__isSmartRef__":true,"id":318}},"5779":{"timestamp":{"__isSmartRef__":true,"id":1946},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1943},"declaredObject":""},"5780":{"varMapping":{"__isSmartRef__":true,"id":5781},"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":5786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5781":{"this":{"__isSmartRef__":true,"id":318},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5782}},"5782":{"$super":{"__isSmartRef__":true,"id":5783}},"5783":{"varMapping":{"__isSmartRef__":true,"id":5784},"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":5785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5784":{"obj":{"__isSmartRef__":true,"id":318},"name":"onMouseDown"},"5785":{},"5786":{"timestamp":{"__isSmartRef__":true,"id":1954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1947},"declaredObject":""},"5787":{"varMapping":{"__isSmartRef__":true,"id":5788},"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":5789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5788":{"this":{"__isSmartRef__":true,"id":318}},"5789":{"timestamp":{"__isSmartRef__":true,"id":1958},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1955},"declaredObject":""},"5790":{"varMapping":{"__isSmartRef__":true,"id":5791},"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":5792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5791":{"this":{"__isSmartRef__":true,"id":318}},"5792":{"timestamp":{"__isSmartRef__":true,"id":1962},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1959},"declaredObject":""},"5793":{"varMapping":{"__isSmartRef__":true,"id":5794},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5794":{"this":{"__isSmartRef__":true,"id":318}},"5795":{"timestamp":{"__isSmartRef__":true,"id":1966},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1963},"declaredObject":""},"5796":{"varMapping":{"__isSmartRef__":true,"id":5797},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":5798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5797":{"this":{"__isSmartRef__":true,"id":318}},"5798":{"timestamp":{"__isSmartRef__":true,"id":1970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1967},"declaredObject":""},"5799":{"varMapping":{"__isSmartRef__":true,"id":5800},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":5801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5800":{"this":{"__isSmartRef__":true,"id":318}},"5801":{"timestamp":{"__isSmartRef__":true,"id":1974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1971},"declaredObject":""},"5802":{"varMapping":{"__isSmartRef__":true,"id":5803},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":5804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5803":{"this":{"__isSmartRef__":true,"id":318}},"5804":{"timestamp":{"__isSmartRef__":true,"id":1978},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1975},"declaredObject":""},"5805":{"varMapping":{"__isSmartRef__":true,"id":5806},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":5807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5806":{"this":{"__isSmartRef__":true,"id":318}},"5807":{"timestamp":{"__isSmartRef__":true,"id":1982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1979},"declaredObject":""},"5808":{"varMapping":{"__isSmartRef__":true,"id":5809},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":5810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5809":{"this":{"__isSmartRef__":true,"id":318}},"5810":{"timestamp":{"__isSmartRef__":true,"id":1986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1983},"declaredObject":""},"5811":{"varMapping":{"__isSmartRef__":true,"id":5812},"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":5813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5812":{"this":{"__isSmartRef__":true,"id":318}},"5813":{"timestamp":{"__isSmartRef__":true,"id":1990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1987},"declaredObject":""},"5814":{"varMapping":{"__isSmartRef__":true,"id":5815},"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":5816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5815":{"this":{"__isSmartRef__":true,"id":318}},"5816":{"timestamp":{"__isSmartRef__":true,"id":1994},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1991},"declaredObject":""},"5817":{"varMapping":{"__isSmartRef__":true,"id":5818},"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":5819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5818":{"this":{"__isSmartRef__":true,"id":318}},"5819":{"timestamp":{"__isSmartRef__":true,"id":1998},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1995},"declaredObject":""},"5820":{"varMapping":{"__isSmartRef__":true,"id":5821},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":5822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5821":{"this":{"__isSmartRef__":true,"id":318}},"5822":{"timestamp":{"__isSmartRef__":true,"id":2002},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1999},"declaredObject":""},"5823":{"varMapping":{"__isSmartRef__":true,"id":5824},"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":5825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5824":{"this":{"__isSmartRef__":true,"id":318}},"5825":{"timestamp":{"__isSmartRef__":true,"id":2006},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2003},"declaredObject":""},"5826":{"varMapping":{"__isSmartRef__":true,"id":5827},"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":5832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5827":{"this":{"__isSmartRef__":true,"id":318},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5828}},"5828":{"$super":{"__isSmartRef__":true,"id":5829}},"5829":{"varMapping":{"__isSmartRef__":true,"id":5830},"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":5831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5830":{"obj":{"__isSmartRef__":true,"id":318},"name":"setPosition"},"5831":{},"5832":{"timestamp":{"__isSmartRef__":true,"id":2014},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2007},"declaredObject":""},"5833":{"varMapping":{"__isSmartRef__":true,"id":5834},"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":5835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5834":{"this":{"__isSmartRef__":true,"id":318}},"5835":{"timestamp":{"__isSmartRef__":true,"id":2018},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2015},"declaredObject":""},"5836":{"varMapping":{"__isSmartRef__":true,"id":5837},"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":5838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5837":{"this":{"__isSmartRef__":true,"id":318}},"5838":{"timestamp":{"__isSmartRef__":true,"id":2022},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2019},"declaredObject":""},"5839":{"varMapping":{"__isSmartRef__":true,"id":5840},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":5841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5840":{"this":{"__isSmartRef__":true,"id":318}},"5841":{"timestamp":{"__isSmartRef__":true,"id":2026},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2023},"declaredObject":""},"5842":{"varMapping":{"__isSmartRef__":true,"id":5843},"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":5844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5843":{"this":{"__isSmartRef__":true,"id":318}},"5844":{"timestamp":{"__isSmartRef__":true,"id":2030},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2027},"declaredObject":""},"5845":{"varMapping":{"__isSmartRef__":true,"id":5846},"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":5847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5846":{"this":{"__isSmartRef__":true,"id":318}},"5847":{"timestamp":{"__isSmartRef__":true,"id":2034},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2031},"declaredObject":""},"5848":{"varMapping":{"__isSmartRef__":true,"id":5849},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":5850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5849":{"this":{"__isSmartRef__":true,"id":318}},"5850":{"timestamp":{"__isSmartRef__":true,"id":2038},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2035},"declaredObject":""},"5851":{"varMapping":{"__isSmartRef__":true,"id":5852},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":5853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5852":{"this":{"__isSmartRef__":true,"id":318}},"5853":{"timestamp":{"__isSmartRef__":true,"id":2042},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2039},"declaredObject":""},"5854":{"varMapping":{"__isSmartRef__":true,"id":5855},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":5856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5855":{"this":{"__isSmartRef__":true,"id":318}},"5856":{"timestamp":{"__isSmartRef__":true,"id":2046},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2043},"declaredObject":""},"5857":{"varMapping":{"__isSmartRef__":true,"id":5858},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":5863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5858":{"this":{"__isSmartRef__":true,"id":318},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5859}},"5859":{"$super":{"__isSmartRef__":true,"id":5860}},"5860":{"varMapping":{"__isSmartRef__":true,"id":5861},"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":5862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5861":{"obj":{"__isSmartRef__":true,"id":318},"name":"copyToPartsBinWithUserRequest"},"5862":{},"5863":{"timestamp":{"__isSmartRef__":true,"id":2054},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2047},"declaredObject":""},"5864":{"varMapping":{"__isSmartRef__":true,"id":5865},"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":5866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5865":{"this":{"__isSmartRef__":true,"id":318}},"5866":{"timestamp":{"__isSmartRef__":true,"id":2058},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2055},"declaredObject":""},"5867":{"varMapping":{"__isSmartRef__":true,"id":5868},"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":5869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5868":{"this":{"__isSmartRef__":true,"id":318}},"5869":{"timestamp":{"__isSmartRef__":true,"id":2062},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2059},"declaredObject":""},"5870":{"varMapping":{"__isSmartRef__":true,"id":5871},"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":5872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5871":{"this":{"__isSmartRef__":true,"id":318}},"5872":{"timestamp":{"__isSmartRef__":true,"id":2066},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2063},"declaredObject":""},"5873":{"varMapping":{"__isSmartRef__":true,"id":5874},"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":5875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5874":{"this":{"__isSmartRef__":true,"id":318}},"5875":{"timestamp":{"__isSmartRef__":true,"id":2070},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2067},"declaredObject":""},"5876":{"varMapping":{"__isSmartRef__":true,"id":5877},"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":5878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5877":{"this":{"__isSmartRef__":true,"id":318}},"5878":{"timestamp":{"__isSmartRef__":true,"id":2074},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2071},"declaredObject":""},"5879":{"varMapping":{"__isSmartRef__":true,"id":5880},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5880":{"this":{"__isSmartRef__":true,"id":318}},"5881":{"timestamp":{"__isSmartRef__":true,"id":2078},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2075},"declaredObject":""},"5882":{"varMapping":{"__isSmartRef__":true,"id":5883},"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":5884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5883":{"this":{"__isSmartRef__":true,"id":318}},"5884":{"timestamp":{"__isSmartRef__":true,"id":2082},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2079},"declaredObject":""},"5885":{"varMapping":{"__isSmartRef__":true,"id":5886},"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":5887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5886":{"this":{"__isSmartRef__":true,"id":318}},"5887":{"timestamp":{"__isSmartRef__":true,"id":2086},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2083},"declaredObject":""},"5888":{"varMapping":{"__isSmartRef__":true,"id":5889},"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":5890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5889":{"this":{"__isSmartRef__":true,"id":318}},"5890":{"timestamp":{"__isSmartRef__":true,"id":2090},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2087},"declaredObject":""},"5891":{"varMapping":{"__isSmartRef__":true,"id":5892},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":5893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5892":{"this":{"__isSmartRef__":true,"id":318}},"5893":{"timestamp":{"__isSmartRef__":true,"id":2094},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2091},"declaredObject":""},"5894":{"varMapping":{"__isSmartRef__":true,"id":5895},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":5896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5895":{"this":{"__isSmartRef__":true,"id":318}},"5896":{"timestamp":{"__isSmartRef__":true,"id":2098},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2095},"declaredObject":""},"5897":{"varMapping":{"__isSmartRef__":true,"id":5898},"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":5899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5898":{"this":{"__isSmartRef__":true,"id":318}},"5899":{"timestamp":{"__isSmartRef__":true,"id":2102},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2099},"declaredObject":""},"5900":{"varMapping":{"__isSmartRef__":true,"id":5901},"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":5902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5901":{"this":{"__isSmartRef__":true,"id":318}},"5902":{"timestamp":{"__isSmartRef__":true,"id":2106},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2103},"declaredObject":""},"5903":{"varMapping":{"__isSmartRef__":true,"id":5904},"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":5905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5904":{"this":{"__isSmartRef__":true,"id":318}},"5905":{"timestamp":{"__isSmartRef__":true,"id":2110},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2107},"declaredObject":""},"5906":{"varMapping":{"__isSmartRef__":true,"id":5907},"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":5908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5907":{"this":{"__isSmartRef__":true,"id":318}},"5908":{"timestamp":{"__isSmartRef__":true,"id":2114},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2111},"declaredObject":""},"5909":{"varMapping":{"__isSmartRef__":true,"id":5910},"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":5911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5910":{"this":{"__isSmartRef__":true,"id":318}},"5911":{"timestamp":{"__isSmartRef__":true,"id":2118},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2115},"declaredObject":""},"5912":{"varMapping":{"__isSmartRef__":true,"id":5913},"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":5914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5913":{"this":{"__isSmartRef__":true,"id":318}},"5914":{"timestamp":{"__isSmartRef__":true,"id":2122},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2119},"declaredObject":""},"5915":{"varMapping":{"__isSmartRef__":true,"id":5916},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":5917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5916":{"this":{"__isSmartRef__":true,"id":318}},"5917":{"timestamp":{"__isSmartRef__":true,"id":2126},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2123},"declaredObject":""},"5918":{"varMapping":{"__isSmartRef__":true,"id":5919},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":5920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5919":{"this":{"__isSmartRef__":true,"id":318}},"5920":{"timestamp":{"__isSmartRef__":true,"id":2130},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2127},"declaredObject":""},"5921":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5922},"derivationIds":[null,"0CA4E828-DD2A-4E84-A951-7DBD4A301B5D","D7D5271D-0DAD-4562-98E3-508F5831DF2F","20FA93FF-2E09-457F-814D-8F034D6B0E2F","D309FD7F-5995-414C-9466-F2D1246912B6","1F5A4C62-84D4-480B-A536-D26762C7BFDE","CCE81AA2-110F-441F-8CDB-F0B70151F766","1863761C-6E6D-4B81-B7A3-ECC0A33696A3","79FD514C-99F9-478C-B4AE-2F51FABD97FE","27D4A26F-12D7-46E3-9294-677C290712D4","679D234F-E0F4-4B5C-8811-793A615C14A5","A6995642-B49B-459E-A7F4-1CA99CB0A491","4FBCAF58-AA26-4461-A8A9-0386E438D7F1","FE275C6B-0F95-49DA-A1B6-34E5A1A8CB04"],"id":"052A818A-1A9F-432C-A177-A126727D05F1","eventHandler":{"__isSmartRef__":true,"id":5923},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"LavaTile1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5924},"moved":true,"isObstacle":true,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":192},"prevScroll":[0,0],"eventsAreDisabled":false,"_PointerEvents":"auto","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5943},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(485.6,685.3)"},"5922":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/lava.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(60.0,60.0)","_Padding":"lively.rect(0,0,0,0)"},"5923":{"morph":{"__isSmartRef__":true,"id":5921},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5924":{"partName":"LavaTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":5925},{"__isSmartRef__":true,"id":5927},{"__isSmartRef__":true,"id":5929},{"__isSmartRef__":true,"id":5931},{"__isSmartRef__":true,"id":5933},{"__isSmartRef__":true,"id":5935},{"__isSmartRef__":true,"id":5937},{"__isSmartRef__":true,"id":5939},{"__isSmartRef__":true,"id":5941}],"migrationLevel":4,"revisionOnLoad":159354,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5925":{"date":{"__isSmartRef__":true,"id":5926},"author":"tessi","message":"no comment","id":"88062A77-A216-4157-B7EB-FDAB2D0E2FBC"},"5926":{"isSerializedDate":true,"string":"Fri May 04 2012 17:03:12 GMT+0200 (Central Europe Daylight Time)"},"5927":{"date":{"__isSmartRef__":true,"id":5928},"author":"timfelgentreff","message":"no comment","id":"216F150F-2DAA-4F72-8F4C-7359F2ADD356"},"5928":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:24 GMT+0200 (Central Europe Daylight Time)"},"5929":{"date":{"__isSmartRef__":true,"id":5930},"author":"timfelgentreff","message":"no comment","id":"E731D1A2-7EEE-4BBE-9B12-B141AE02B7D1"},"5930":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:48 GMT+0200 (Central Europe Daylight Time)"},"5931":{"date":{"__isSmartRef__":true,"id":5932},"author":"timfelgentreff","message":"no comment","id":"3A732801-0F03-4191-87FB-4C0A0C2BE29E"},"5932":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:50 GMT+0200 (Central Europe Daylight Time)"},"5933":{"date":{"__isSmartRef__":true,"id":5934},"author":"timfelgentreff","message":"no comment","id":"EE7E1C1A-2783-4DFF-8537-98BCB4FD59AC"},"5934":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:48 GMT+0200 (Central Europe Daylight Time)"},"5935":{"date":{"__isSmartRef__":true,"id":5936},"author":"tessi","message":"","id":"848E820C-2589-48C7-B52C-2C4FBB8D0567"},"5936":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:15:50 GMT+0200 (Central Europe Daylight Time)"},"5937":{"date":{"__isSmartRef__":true,"id":5938},"author":"lauritz","message":"","id":"5779A1E4-F39E-421E-A9E9-014B7DFC8A4E"},"5938":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:36 GMT+0200 (Central Europe Daylight Time)"},"5939":{"date":{"__isSmartRef__":true,"id":5940},"author":"timfelgentreff","message":"","id":"1EBE70B7-E9F0-49A3-9346-31D2D5401759"},"5940":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:30:50 GMT+0200 (Central Europe Daylight Time)"},"5941":{"date":{"__isSmartRef__":true,"id":5942},"author":"tessi","message":"","id":"9EB4E294-31AE-4983-9FD1-83B22BF0B2CD"},"5942":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:41:36 GMT+0200 (Central Europe Daylight Time)"},"5943":{"dropOn":{"__isSmartRef__":true,"id":5944},"shallowCopy":{"__isSmartRef__":true,"id":5951}},"5944":{"varMapping":{"__isSmartRef__":true,"id":5945},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5945":{"this":{"__isSmartRef__":true,"id":5921},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5946}},"5946":{"$super":{"__isSmartRef__":true,"id":5947}},"5947":{"varMapping":{"__isSmartRef__":true,"id":5948},"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":5949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5948":{"obj":{"__isSmartRef__":true,"id":5921},"name":"dropOn"},"5949":{},"5950":{},"5951":{"varMapping":{"__isSmartRef__":true,"id":5952},"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":5953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5952":{"this":{"__isSmartRef__":true,"id":5921}},"5953":{"timestamp":{"__isSmartRef__":true,"id":5954},"user":"timfelgentreff","tags":[]},"5954":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:17 GMT+0200 (Central Europe Daylight Time)"},"5955":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"5956":{"options":{"__isSmartRef__":true,"id":5957}},"5957":{"override":["onDrag","onDragStart","onDragEnd"]},"5958":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5959":{"morph":{"__isSmartRef__":true,"id":192},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5960":{"_BorderWidth":10,"__serializedExpressions__":["_Fill","_Position","_Extent","_Padding"],"_BorderColor":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(204,204,204)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1044.0,788.0)","_Padding":"lively.rect(0,0,0,0)"},"5961":{"morph":{"__isSmartRef__":true,"id":191},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5962":{"submorphs":[{"__isSmartRef__":true,"id":5963},{"__isSmartRef__":true,"id":5969},{"__isSmartRef__":true,"id":5989},{"__isSmartRef__":true,"id":11286},{"__isSmartRef__":true,"id":11691}],"scripts":[],"id":"21701CB3-AA31-49AA-9B26-927EE7A48039","shape":{"__isSmartRef__":true,"id":11725},"__layered_droppingEnabled__":true,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":11726},"draggingEnabled":true,"name":"SWASlide40","partsBinMetaInfo":{"__isSmartRef__":true,"id":11728},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":11729},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","8F91B70A-3469-4055-9432-932C5FF9D147"],"prevScroll":[0,0],"eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","eventsAreIgnored":false,"_ClipMode":"visible","owner":null,"__serializedExpressions__":["distanceToDragEvent","lastWorldPosition","_Position"],"grabbingEnabled":false,"_Visible":true,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(370.0,1220.0)","_Position":"lively.pt(10.0,10.0)"},"5963":{"submorphs":[],"scripts":[],"id":"BB093554-AED2-40D5-83F8-8B106AB08015","shape":{"__isSmartRef__":true,"id":5964},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":5965},"textChunks":[{"__isSmartRef__":true,"id":5966}],"owner":{"__isSmartRef__":true,"id":5962},"charsReplaced":"Live Objects","lastFindLoc":12,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5968},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","7094B047-BBF8-494A-8702-CA09FAC1EF06"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"previousSelection":[25,25],"isBeingDragged":false,"__serializedExpressions__":["_Position","textColor","_TextColor"],"_Rotation":0,"_Scale":1.001001001001001,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"5964":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"5965":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5966":{"style":{"__isSmartRef__":true,"id":5967},"chunkOwner":{"__isSmartRef__":true,"id":5963},"storedString":"Explorative Development","_id":"_314","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5967":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5968":{"morph":{"__isSmartRef__":true,"id":5963},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5969":{"submorphs":[],"scripts":[],"id":"879C9EB8-E93D-43F3-BA05-75F0458C00FF","shape":{"__isSmartRef__":true,"id":5970},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":5971},"textChunks":[{"__isSmartRef__":true,"id":5972},{"__isSmartRef__":true,"id":5974},{"__isSmartRef__":true,"id":5976},{"__isSmartRef__":true,"id":5978},{"__isSmartRef__":true,"id":5980},{"__isSmartRef__":true,"id":5982},{"__isSmartRef__":true,"id":5984},{"__isSmartRef__":true,"id":5986}],"charsReplaced":"Explorative development","lastFindLoc":93,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5988},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","5B9344A3-AEDC-4C81-903E-5BCC2CCC3D52"],"owner":{"__isSmartRef__":true,"id":5962},"__serializedExpressions__":["_Position","textColor","_TextColor"],"_Rotation":0,"_Scale":1.001001001001001,"previousSelection":[32,32],"priorSelectionRange":[26,26],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(97.0,193.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)"},"5970":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,186.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"5971":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5972":{"style":{"__isSmartRef__":true,"id":5973},"chunkOwner":{"__isSmartRef__":true,"id":5969},"storedString":"","_id":"_538","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5973":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5974":{"style":{"__isSmartRef__":true,"id":5975},"chunkOwner":{"__isSmartRef__":true,"id":5969},"storedString":"■ ","_id":"_315","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5975":{"webkitUserSelect":"auto","color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outline":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5976":{"style":{"__isSmartRef__":true,"id":5977},"chunkOwner":{"__isSmartRef__":true,"id":5969},"storedString":"Direct manipulation\n","_id":"_316","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5977":{"webkitUserSelect":"auto","color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","fontWeight":"bold","backgroundColor":"rgb(255,255,255)","float":"none","outline":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5978":{"style":{"__isSmartRef__":true,"id":5979},"chunkOwner":{"__isSmartRef__":true,"id":5969},"storedString":"\n■ ","_id":"_317","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5979":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5980":{"style":{"__isSmartRef__":true,"id":5981},"chunkOwner":{"__isSmartRef__":true,"id":5969},"storedString":"Immediate feedback\n","_id":"_318","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5981":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"bold","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5982":{"style":{"__isSmartRef__":true,"id":5983},"chunkOwner":{"__isSmartRef__":true,"id":5969},"storedString":"\n■ ","_id":"_319","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5983":{"webkitUserSelect":"auto","color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outline":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5984":{"style":{"__isSmartRef__":true,"id":5985},"chunkOwner":{"__isSmartRef__":true,"id":5969},"storedString":"Morph compositions\n","_id":"_320","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5985":{"webkitUserSelect":"auto","color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","fontWeight":"bold","backgroundColor":"rgb(255,255,255)","float":"none","outline":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5986":{"style":{"__isSmartRef__":true,"id":5987},"chunkOwner":{"__isSmartRef__":true,"id":5969},"storedString":"\n","_id":"_321","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5987":{"textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5988":{"morph":{"__isSmartRef__":true,"id":5969},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5989":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5990},"derivationIds":[null],"id":"2C9A2720-A277-4A0A-BAA0-3F023E1759CA","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5991},{"__isSmartRef__":true,"id":5993},{"__isSmartRef__":true,"id":5995},{"__isSmartRef__":true,"id":5997},{"__isSmartRef__":true,"id":5999},{"__isSmartRef__":true,"id":6001},{"__isSmartRef__":true,"id":6003},{"__isSmartRef__":true,"id":6005},{"__isSmartRef__":true,"id":6007},{"__isSmartRef__":true,"id":6009},{"__isSmartRef__":true,"id":6011},{"__isSmartRef__":true,"id":6013},{"__isSmartRef__":true,"id":6015},{"__isSmartRef__":true,"id":6017},{"__isSmartRef__":true,"id":6019},{"__isSmartRef__":true,"id":6021},{"__isSmartRef__":true,"id":6023},{"__isSmartRef__":true,"id":6025},{"__isSmartRef__":true,"id":6027},{"__isSmartRef__":true,"id":6029},{"__isSmartRef__":true,"id":6031},{"__isSmartRef__":true,"id":6033},{"__isSmartRef__":true,"id":6035},{"__isSmartRef__":true,"id":6037},{"__isSmartRef__":true,"id":6039},{"__isSmartRef__":true,"id":6041},{"__isSmartRef__":true,"id":6043},{"__isSmartRef__":true,"id":6045},{"__isSmartRef__":true,"id":6047},{"__isSmartRef__":true,"id":6049},{"__isSmartRef__":true,"id":6051},{"__isSmartRef__":true,"id":6053},{"__isSmartRef__":true,"id":6055},{"__isSmartRef__":true,"id":6057},{"__isSmartRef__":true,"id":6059},{"__isSmartRef__":true,"id":6061},{"__isSmartRef__":true,"id":6063},{"__isSmartRef__":true,"id":6065},{"__isSmartRef__":true,"id":6067},{"__isSmartRef__":true,"id":6069},{"__isSmartRef__":true,"id":6071},{"__isSmartRef__":true,"id":6073},{"__isSmartRef__":true,"id":6075},{"__isSmartRef__":true,"id":6077},{"__isSmartRef__":true,"id":6079},{"__isSmartRef__":true,"id":6081},{"__isSmartRef__":true,"id":6083}],"eventHandler":{"__isSmartRef__":true,"id":6085},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":12,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5962},"_MaxTextWidth":400.26667887176706,"_MinTextWidth":400.26667887176706,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":6086},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":6087}],"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"],"doNotCopyProperties":["$$textString"],"_syntaxHighlightTimeout":null,"lastSyntaxHighlightTime":38,"accessibleInInactiveWindow":true,"showsHalos":false,"charsReplaced":"","lastFindLoc":39,"isBeingDragged":false,"previousSelection":[37,3],"doitContext":{"__isSmartRef__":true,"id":6088},"_WordBreak":"break-all","_lastSyntaxHighlightTime":35,"__serializedExpressions__":["_Position","distanceToDragEvent"],"textString":"// this.doitContext = this.get('Boy')\n\n// ...\nif (correctAnswer === answer) {\n asker.nextTurn(this, asker) \n} else {\n this.getHit();\n if (!this.isDead()) {\n asker.nextTurn(asker, this)\n }\n}\n// ...","_Rotation":0,"_Scale":1.1073654710215566,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(20.3,399.8)","distanceToDragEvent":"lively.pt(186.7,-10.7)"},"5990":{"_BorderWidth":1,"_NodeClass":["morph","text"],"_NodeId":"morph-2c9a2720-a277-4a0a-baa0-3f023e1759ca","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(410.3,262.3)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"5991":{"style":{"__isSmartRef__":true,"id":5992},"chunkOwner":{"__isSmartRef__":true,"id":5989},"_id":"_21","storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5992":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"5993":{"_id":"_35","style":{"__isSmartRef__":true,"id":5994},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":" this.doitContext = this.get('Boy')","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5994":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"5995":{"_id":"_36","style":{"__isSmartRef__":true,"id":5996},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"\n\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5996":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"5997":{"_id":"_37","style":{"__isSmartRef__":true,"id":5998},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5998":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"5999":{"_id":"_38","style":{"__isSmartRef__":true,"id":6000},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":" ...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6000":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"6001":{"_id":"_39","style":{"__isSmartRef__":true,"id":6002},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6002":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6003":{"_id":"_40","style":{"__isSmartRef__":true,"id":6004},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6004":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"6005":{"_id":"_41","style":{"__isSmartRef__":true,"id":6006},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":" (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6006":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6007":{"_id":"_69","style":{"__isSmartRef__":true,"id":6008},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"correctAnswer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6008":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"6009":{"_id":"_70","style":{"__isSmartRef__":true,"id":6010},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":" === ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6010":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6011":{"_id":"_71","style":{"__isSmartRef__":true,"id":6012},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"answer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6012":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"6013":{"_id":"_72","style":{"__isSmartRef__":true,"id":6014},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6014":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6015":{"_id":"_42","style":{"__isSmartRef__":true,"id":6016},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6016":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"6017":{"_id":"_43","style":{"__isSmartRef__":true,"id":6018},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6018":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6019":{"_id":"_73","style":{"__isSmartRef__":true,"id":6020},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"asker","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6020":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"6021":{"_id":"_74","style":{"__isSmartRef__":true,"id":6022},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":".nextTurn(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6022":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6023":{"_id":"_44","style":{"__isSmartRef__":true,"id":6024},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6024":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"6025":{"_id":"_45","style":{"__isSmartRef__":true,"id":6026},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6026":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6027":{"_id":"_75","style":{"__isSmartRef__":true,"id":6028},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"asker","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6028":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"6029":{"_id":"_76","style":{"__isSmartRef__":true,"id":6030},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":")","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6030":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6031":{"_id":"_46","style":{"__isSmartRef__":true,"id":6032},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6032":{"__serializedExpressions__":["backgroundColor"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","backgroundColor":"Color.rgba(204,204,0,0.4)"},"6033":{"_id":"_47","style":{"__isSmartRef__":true,"id":6034},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6034":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"6035":{"_id":"_48","style":{"__isSmartRef__":true,"id":6036},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6036":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6037":{"_id":"_49","style":{"__isSmartRef__":true,"id":6038},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6038":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"6039":{"_id":"_50","style":{"__isSmartRef__":true,"id":6040},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6040":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6041":{"_id":"_51","style":{"__isSmartRef__":true,"id":6042},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6042":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"6043":{"_id":"_52","style":{"__isSmartRef__":true,"id":6044},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6044":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6045":{"_id":"_53","style":{"__isSmartRef__":true,"id":6046},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6046":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"6047":{"_id":"_54","style":{"__isSmartRef__":true,"id":6048},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":".getHit();\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6048":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6049":{"_id":"_55","style":{"__isSmartRef__":true,"id":6050},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6050":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"6051":{"_id":"_56","style":{"__isSmartRef__":true,"id":6052},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":" (!","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6052":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6053":{"_id":"_57","style":{"__isSmartRef__":true,"id":6054},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6054":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"6055":{"_id":"_58","style":{"__isSmartRef__":true,"id":6056},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":".isDead()) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6056":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6057":{"_id":"_59","style":{"__isSmartRef__":true,"id":6058},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6058":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"6059":{"_id":"_60","style":{"__isSmartRef__":true,"id":6060},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6060":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6061":{"_id":"_77","style":{"__isSmartRef__":true,"id":6062},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"asker","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6062":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"6063":{"_id":"_78","style":{"__isSmartRef__":true,"id":6064},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":".nextTurn(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6064":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6065":{"_id":"_79","style":{"__isSmartRef__":true,"id":6066},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"asker","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6066":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"6067":{"_id":"_80","style":{"__isSmartRef__":true,"id":6068},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6068":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6069":{"_id":"_61","style":{"__isSmartRef__":true,"id":6070},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6070":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"6071":{"_id":"_62","style":{"__isSmartRef__":true,"id":6072},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":")\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6072":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6073":{"_id":"_63","style":{"__isSmartRef__":true,"id":6074},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6074":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"6075":{"_id":"_64","style":{"__isSmartRef__":true,"id":6076},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6076":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6077":{"_id":"_65","style":{"__isSmartRef__":true,"id":6078},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6078":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"6079":{"_id":"_66","style":{"__isSmartRef__":true,"id":6080},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6080":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"6081":{"_id":"_67","style":{"__isSmartRef__":true,"id":6082},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6082":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"6083":{"_id":"_68","style":{"__isSmartRef__":true,"id":6084},"chunkOwner":{"__isSmartRef__":true,"id":5989},"storedString":" ...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6084":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"6085":{"morph":{"__isSmartRef__":true,"id":5989},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6086":{"resizeWidth":true,"resizeHeight":true},"6087":{"sourceObj":{"__isSmartRef__":true,"id":5989},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":5989},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"6088":{"submorphs":[{"__isSmartRef__":true,"id":6089},{"__isSmartRef__":true,"id":6137},{"__isSmartRef__":true,"id":6197},{"__isSmartRef__":true,"id":6214}],"scripts":[{"__isSmartRef__":true,"id":6263},{"__isSmartRef__":true,"id":6265}],"shape":{"__isSmartRef__":true,"id":11532},"derivationIds":[null],"id":"682C43E6-971F-4644-B6AB-A89F1F309B5E","eventHandler":{"__isSmartRef__":true,"id":11533},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":7364},"lifeBar":{"__isSmartRef__":true,"id":6089},"deathAnimation":{"__isSmartRef__":true,"id":6137},"owner":{"__isSmartRef__":true,"id":6414},"character":{"__isSmartRef__":true,"id":6197},"animateScript":{"__isSmartRef__":true,"id":6263},"isBusy":true,"textBubble":{"__isSmartRef__":true,"id":6214},"showsHalos":false,"name":"Boy","lastSpeedTimestamp":1340705398191,"walkScript":{"__isSmartRef__":true,"id":6265},"__serializedExpressions__":["_Position","direction"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11534},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,48.0)","direction":"lively.pt(0.0,1.0)"},"6089":{"submorphs":[],"scripts":[],"id":"1133C396-EFC1-4714-9C48-4D320032559F","shape":{"__isSmartRef__":true,"id":6090},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LifeBar2","partsBinMetaInfo":{"__isSmartRef__":true,"id":6091},"eventHandler":{"__isSmartRef__":true,"id":6106},"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","8872CA7B-AEBD-45E8-8D7A-8C16B7073561"],"partTests":{"__isSmartRef__":true,"id":6107},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","character":{"__isSmartRef__":true,"id":6088},"owner":{"__isSmartRef__":true,"id":6088},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6112},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,-13.0)"},"6090":{"_BorderWidth":1,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,8.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(151,255,0)","_Padding":"lively.rect(0,0,0,0)"},"6091":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":6092},{"__isSmartRef__":true,"id":6094},{"__isSmartRef__":true,"id":6096},{"__isSmartRef__":true,"id":6098},{"__isSmartRef__":true,"id":6100},{"__isSmartRef__":true,"id":6102},{"__isSmartRef__":true,"id":6104}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6092":{"date":{"__isSmartRef__":true,"id":6093},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6093":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"6094":{"date":{"__isSmartRef__":true,"id":6095},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6095":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"6096":{"date":{"__isSmartRef__":true,"id":6097},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6097":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"6098":{"date":{"__isSmartRef__":true,"id":6099},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6099":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"6100":{"date":{"__isSmartRef__":true,"id":6101},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"6101":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"6102":{"date":{"__isSmartRef__":true,"id":6103},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"6103":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"6104":{"date":{"__isSmartRef__":true,"id":6105},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"6105":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (Central Europe Daylight Time)"},"6106":{"morph":{"__isSmartRef__":true,"id":6089},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6107":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6108}},"6108":{"test01IsMorph":{"__isSmartRef__":true,"id":6109}},"6109":{"varMapping":{"__isSmartRef__":true,"id":6110},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6110":{"this":{"__isSmartRef__":true,"id":6107}},"6111":{},"6112":{"setColorForWidth":{"__isSmartRef__":true,"id":6113},"reset":{"__isSmartRef__":true,"id":6117},"hit":{"__isSmartRef__":true,"id":6121},"extent":{"__isSmartRef__":true,"id":6125},"isDead":{"__isSmartRef__":true,"id":6129},"lifeLoss":{"__isSmartRef__":true,"id":6133},"heal":{"__isSmartRef__":true,"id":6117}},"6113":{"varMapping":{"__isSmartRef__":true,"id":6114},"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":6115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6114":{"this":{"__isSmartRef__":true,"id":6089}},"6115":{"timestamp":{"__isSmartRef__":true,"id":6116},"user":"timfelgentreff","tags":[]},"6116":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (Central Europe Daylight Time)"},"6117":{"varMapping":{"__isSmartRef__":true,"id":6118},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":6119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6118":{"this":{"__isSmartRef__":true,"id":6089}},"6119":{"timestamp":{"__isSmartRef__":true,"id":6120},"user":"timfelgentreff","tags":[]},"6120":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (Central Europe Daylight Time)"},"6121":{"varMapping":{"__isSmartRef__":true,"id":6122},"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":6123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6122":{"this":{"__isSmartRef__":true,"id":6089}},"6123":{"timestamp":{"__isSmartRef__":true,"id":6124},"user":"timfelgentreff","tags":[]},"6124":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (Central Europe Daylight Time)"},"6125":{"varMapping":{"__isSmartRef__":true,"id":6126},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":6127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6126":{"this":{"__isSmartRef__":true,"id":6089}},"6127":{"timestamp":{"__isSmartRef__":true,"id":6128},"user":"timfelgentreff","tags":[]},"6128":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (Central Europe Daylight Time)"},"6129":{"varMapping":{"__isSmartRef__":true,"id":6130},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":6131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6130":{"this":{"__isSmartRef__":true,"id":6089}},"6131":{"timestamp":{"__isSmartRef__":true,"id":6132},"user":"timfelgentreff","tags":[]},"6132":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (Central Europe Daylight Time)"},"6133":{"varMapping":{"__isSmartRef__":true,"id":6134},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":6135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6134":{"this":{"__isSmartRef__":true,"id":6089}},"6135":{"timestamp":{"__isSmartRef__":true,"id":6136},"user":"timfelgentreff","tags":[]},"6136":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (Central Europe Daylight Time)"},"6137":{"submorphs":[{"__isSmartRef__":true,"id":6138}],"scripts":[],"id":"68F1CD11-4262-43DC-BF3F-F105F30F9417","shape":{"__isSmartRef__":true,"id":6161},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"DeathAnimation2","partsBinMetaInfo":{"__isSmartRef__":true,"id":6162},"eventHandler":{"__isSmartRef__":true,"id":6175},"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","DC6AF031-4E21-4076-ABC3-9D13F29725A5"],"partTests":{"__isSmartRef__":true,"id":6176},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":6138},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","character":{"__isSmartRef__":true,"id":6088},"owner":{"__isSmartRef__":true,"id":6088},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6181},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"6138":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6139},"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","DD557BF7-D160-41F2-92B9-E07260DA4032"],"id":"0B41917F-CCB8-4ACE-88B3-84D7C5A365EF","eventHandler":{"__isSmartRef__":true,"id":6140},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6141},"moved":true,"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":6137},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6156},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"6139":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"6140":{"morph":{"__isSmartRef__":true,"id":6138},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6141":{"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":6142},{"__isSmartRef__":true,"id":6144},{"__isSmartRef__":true,"id":6146},{"__isSmartRef__":true,"id":6148},{"__isSmartRef__":true,"id":6150},{"__isSmartRef__":true,"id":6152},{"__isSmartRef__":true,"id":6154}],"migrationLevel":4,"revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6142":{"date":{"__isSmartRef__":true,"id":6143},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"6143":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"6144":{"date":{"__isSmartRef__":true,"id":6145},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"6145":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"6146":{"date":{"__isSmartRef__":true,"id":6147},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"6147":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"6148":{"date":{"__isSmartRef__":true,"id":6149},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"6149":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"6150":{"date":{"__isSmartRef__":true,"id":6151},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"6151":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"6152":{"date":{"__isSmartRef__":true,"id":6153},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"6153":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"6154":{"date":{"__isSmartRef__":true,"id":6155},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"6155":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"6156":{"soliloquize":{"__isSmartRef__":true,"id":6157}},"6157":{"varMapping":{"__isSmartRef__":true,"id":6158},"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":6159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6158":{"this":{"__isSmartRef__":true,"id":6138}},"6159":{"timestamp":{"__isSmartRef__":true,"id":6160},"user":"lauritz","tags":[]},"6160":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"6161":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"6162":{"partsSpaceName":"PartsBin/Basic","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":6163},{"__isSmartRef__":true,"id":6165},{"__isSmartRef__":true,"id":6167},{"__isSmartRef__":true,"id":6169},{"__isSmartRef__":true,"id":6171},{"__isSmartRef__":true,"id":6173}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6163":{"date":{"__isSmartRef__":true,"id":6164},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6164":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"6165":{"date":{"__isSmartRef__":true,"id":6166},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6166":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"6167":{"date":{"__isSmartRef__":true,"id":6168},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6168":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"6169":{"date":{"__isSmartRef__":true,"id":6170},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6170":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"6171":{"date":{"__isSmartRef__":true,"id":6172},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"6172":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"6173":{"date":{"__isSmartRef__":true,"id":6174},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"6174":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"6175":{"morph":{"__isSmartRef__":true,"id":6137},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6176":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6177}},"6177":{"test01IsMorph":{"__isSmartRef__":true,"id":6178}},"6178":{"varMapping":{"__isSmartRef__":true,"id":6179},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6179":{"this":{"__isSmartRef__":true,"id":6176}},"6180":{},"6181":{"die":{"__isSmartRef__":true,"id":6182},"reset":{"__isSmartRef__":true,"id":6185},"nextImage":{"__isSmartRef__":true,"id":6189},"start":{"__isSmartRef__":true,"id":6193}},"6182":{"varMapping":{"__isSmartRef__":true,"id":6183},"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":6184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6183":{"this":{"__isSmartRef__":true,"id":6137}},"6184":{},"6185":{"varMapping":{"__isSmartRef__":true,"id":6186},"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":6187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6186":{"this":{"__isSmartRef__":true,"id":6137}},"6187":{"timestamp":{"__isSmartRef__":true,"id":6188},"user":"timfelgentreff","tags":[]},"6188":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (Central Europe Daylight Time)"},"6189":{"varMapping":{"__isSmartRef__":true,"id":6190},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":6191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6190":{"this":{"__isSmartRef__":true,"id":6137}},"6191":{"timestamp":{"__isSmartRef__":true,"id":6192},"user":"timfelgentreff","tags":[]},"6192":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (Central Europe Daylight Time)"},"6193":{"varMapping":{"__isSmartRef__":true,"id":6194},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":6195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6194":{"this":{"__isSmartRef__":true,"id":6137}},"6195":{"timestamp":{"__isSmartRef__":true,"id":6196},"user":"timfelgentreff","tags":[]},"6196":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (Central Europe Daylight Time)"},"6197":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6198},"derivationIds":[null,"B92FC6A0-9182-4008-A4D3-70E96420A6D7","985C903B-2533-41D1-8CC0-D54E9F519C16","D600725A-EA19-4BC4-9288-17D864E6BC4A","C33BB11D-8706-4E40-9E31-55025A5FB55F"],"id":"4AD36628-6805-40DE-80C4-00ABC6DE7450","eventHandler":{"__isSmartRef__":true,"id":6199},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"VillagerCharacter","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6200},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":6088},"eventsAreIgnored":true,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6209},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"6198":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/villager.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"6199":{"morph":{"__isSmartRef__":true,"id":6197},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6200":{"partName":"VillagerCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"An animated male character. He knows not too much and is always undecided.","changes":[{"__isSmartRef__":true,"id":6201},{"__isSmartRef__":true,"id":6203},{"__isSmartRef__":true,"id":6205},{"__isSmartRef__":true,"id":6207}],"migrationLevel":4,"revisionOnLoad":156242,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6201":{"date":{"__isSmartRef__":true,"id":6202},"author":"tessi","message":"the villager talks!","id":"1706B121-230C-4CC8-91FD-3EEC9CBDFEBA"},"6202":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:27:38 GMT+0200 (Central Europe Daylight Time)"},"6203":{"date":{"__isSmartRef__":true,"id":6204},"author":"tessi","message":"","id":"5FF65A56-3684-43C4-AFCE-57C257420F5B"},"6204":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:40:03 GMT+0200 (Central Europe Daylight Time)"},"6205":{"date":{"__isSmartRef__":true,"id":6206},"author":"tessi","message":"","id":"3EFBCB6C-DA48-4D0F-BD8D-1BB8BB59EFD7"},"6206":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:45:13 GMT+0200 (Central Europe Daylight Time)"},"6207":{"date":{"__isSmartRef__":true,"id":6208},"author":"lauritz","message":"no comment","id":"A4FBB639-0C0D-4125-8C7F-AA2222B725A0"},"6208":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:35:23 GMT+0200 (Central Europe Daylight Time)"},"6209":{"soliloquize":{"__isSmartRef__":true,"id":6210}},"6210":{"varMapping":{"__isSmartRef__":true,"id":6211},"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":6212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6211":{"this":{"__isSmartRef__":true,"id":6197}},"6212":{"timestamp":{"__isSmartRef__":true,"id":6213},"user":"lauritz","tags":[]},"6213":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:35:19 GMT+0200 (Central Europe Daylight Time)"},"6214":{"submorphs":[{"__isSmartRef__":true,"id":6215}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6228},"id":"FCFBEB3A-F434-48D4-89B4-9F36B6973A36","eventHandler":{"__isSmartRef__":true,"id":6229},"__layered_droppingEnabled__":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":6230},"name":"TextBubble2","partsBinMetaInfo":{"__isSmartRef__":true,"id":6231},"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"],"_ClipMode":"visible","isBeingDragged":false,"text":{"__isSmartRef__":true,"id":6215},"isCopyMorphRef":true,"morphRefId":1,"_Visible":false,"moved":true,"owner":{"__isSmartRef__":true,"id":6088},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6242},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"6215":{"submorphs":[],"scripts":[],"id":"E4A42FBB-8012-487A-87E7-16A0CDC2D8B4","shape":{"__isSmartRef__":true,"id":6216},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":null,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":6217},"textChunks":[{"__isSmartRef__":true,"id":6224}],"charsReplaced":"s","lastFindLoc":6,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":6226},"_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":6214},"isBeingDragged":false,"isLabel":true,"_HandStyle":"default","allowInput":false,"eventsAreIgnored":true,"layout":{"__isSmartRef__":true,"id":6227},"_WordBreak":"break-all","__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-28.0,-42.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(66.0,-19.0)"},"6216":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(222.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"6217":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":6218},{"__isSmartRef__":true,"id":6220},{"__isSmartRef__":true,"id":6222}],"revisionOnLoad":154217,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6218":{"date":{"__isSmartRef__":true,"id":6219},"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"},"6219":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (Central Europe Standard Time)"},"6220":{"date":{"__isSmartRef__":true,"id":6221},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"6221":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (Central Europe Daylight Time)"},"6222":{"date":{"__isSmartRef__":true,"id":6223},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"6223":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (Central Europe Daylight Time)"},"6224":{"style":{"__isSmartRef__":true,"id":6225},"chunkOwner":{"__isSmartRef__":true,"id":6215},"storedString":"I have never lost a melee!","_id":"_322","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6225":{"whiteSpace":"pre","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6226":{"morph":{"__isSmartRef__":true,"id":6215},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6227":{"centeredHorizontal":true,"centeredVertical":true,"adjustForNewBounds":true},"6228":{"_ClipMode":"visible","_BorderWidth":2.444,"_BorderRadius":0,"_Opacity":0.6818000000000001,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(279.0,47.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(235,235,235)"},"6229":{"morph":{"__isSmartRef__":true,"id":6214},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6230":{"resizeWidth":true,"resizeHeight":true},"6231":{"partName":"TextBubble","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A little text bubble with a say(\"string\") method","changes":[{"__isSmartRef__":true,"id":6232},{"__isSmartRef__":true,"id":6234},{"__isSmartRef__":true,"id":6236},{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6240}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6232":{"date":{"__isSmartRef__":true,"id":6233},"author":"tessi","message":"Fix multiline text and text wrapping bugs; added reset() function","id":"F30F2C0C-BE12-4128-A871-336DBCFEA0E4"},"6233":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:18:14 GMT+0200 (Central Europe Daylight Time)"},"6234":{"date":{"__isSmartRef__":true,"id":6235},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"6235":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (Central Europe Daylight Time)"},"6236":{"date":{"__isSmartRef__":true,"id":6237},"author":"tessi","message":"no comment","id":"F0B6C1B2-B5D8-4250-9126-12195350AC31"},"6237":{"isSerializedDate":true,"string":"Fri Apr 20 2012 23:58:32 GMT+0200 (Central Europe Daylight Time)"},"6238":{"date":{"__isSmartRef__":true,"id":6239},"author":"tessi","message":"let TextBubble disappear when nothing was said some tim","id":"10474226-7FE2-4BFB-AEA5-365C537C3666"},"6239":{"isSerializedDate":true,"string":"Sat Apr 21 2012 11:49:01 GMT+0200 (Central Europe Daylight Time)"},"6240":{"date":{"__isSmartRef__":true,"id":6241},"author":"tessi","message":"added hide() method","id":"D8F1C9C7-279C-441E-85C1-1F6BBC58E311"},"6241":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:55 GMT+0200 (Central Europe Daylight Time)"},"6242":{"say":{"__isSmartRef__":true,"id":6243},"showBubbleTime":{"__isSmartRef__":true,"id":6247},"disappear":{"__isSmartRef__":true,"id":6251},"reset":{"__isSmartRef__":true,"id":6255},"hide":{"__isSmartRef__":true,"id":6259}},"6243":{"varMapping":{"__isSmartRef__":true,"id":6244},"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":6245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6244":{"this":{"__isSmartRef__":true,"id":6214}},"6245":{"timestamp":{"__isSmartRef__":true,"id":6246},"user":"tessi","tags":[]},"6246":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:26 GMT+0200 (Central Europe Daylight Time)"},"6247":{"varMapping":{"__isSmartRef__":true,"id":6248},"source":"function showBubbleTime() {\n return 6000\n}","funcProperties":{"__isSmartRef__":true,"id":6249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6248":{"this":{"__isSmartRef__":true,"id":6214}},"6249":{"timestamp":{"__isSmartRef__":true,"id":6250},"user":"timfelgentreff","tags":[]},"6250":{"isSerializedDate":true,"string":"Sat May 05 2012 19:26:43 GMT+0200 (Central Europe Daylight Time)"},"6251":{"varMapping":{"__isSmartRef__":true,"id":6252},"source":"function disappear(oldText) {\n if (this.text.getTextString() == oldText) {\n this.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6252":{"this":{"__isSmartRef__":true,"id":6214}},"6253":{"timestamp":{"__isSmartRef__":true,"id":6254},"user":"tessi","tags":[]},"6254":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:35 GMT+0200 (Central Europe Daylight Time)"},"6255":{"varMapping":{"__isSmartRef__":true,"id":6256},"source":"function reset() {\n this.say()\n}","funcProperties":{"__isSmartRef__":true,"id":6257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6256":{"this":{"__isSmartRef__":true,"id":6214}},"6257":{"timestamp":{"__isSmartRef__":true,"id":6258},"user":"tessi","tags":[]},"6258":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:17:22 GMT+0200 (Central Europe Daylight Time)"},"6259":{"varMapping":{"__isSmartRef__":true,"id":6260},"source":"function hide() {\n this.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":6261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6260":{"this":{"__isSmartRef__":true,"id":6214}},"6261":{"timestamp":{"__isSmartRef__":true,"id":6262},"user":"tessi","tags":[]},"6262":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:24 GMT+0200 (Central Europe Daylight Time)"},"6263":{"target":{"__isSmartRef__":true,"id":6088},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":6264}],"stopped":true,"tickTime":3000,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"6264":{},"6265":{"target":{"__isSmartRef__":true,"id":6088},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":6266}]],"stopped":true,"tickTime":10,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"6266":{"submorphs":[{"__isSmartRef__":true,"id":6267}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6309},"derivationIds":[null],"id":"572E1B6B-8258-4341-AF59-8A5D702AD1CC","eventHandler":{"__isSmartRef__":true,"id":6310},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":1,"column":3,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":6267},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":7127},{"__isSmartRef__":true,"id":7120},{"__isSmartRef__":true,"id":7217},{"__isSmartRef__":true,"id":6926},{"__isSmartRef__":true,"id":7113},{"__isSmartRef__":true,"id":6829},{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":8394}],"charactersStandingHere":[{"__isSmartRef__":true,"id":6088}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11449},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,48.0)"},"6267":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6268},"derivationIds":[null],"id":"C6168C15-11BB-46C5-8F7F-28A50A193114","eventHandler":{"__isSmartRef__":true,"id":6269},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6266},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6270},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"6268":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-c6168c15-11bb-46c5-8f7f-28a50a193114","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"6269":{"morph":{"__isSmartRef__":true,"id":6267},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6270":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"6271":{"varMapping":{"__isSmartRef__":true,"id":6272},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6272":{"this":{"__isSmartRef__":true,"id":6273},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6304}},"6273":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6274},"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":"83F99C15-9D55-48FF-A329-80358353C757","eventHandler":{"__isSmartRef__":true,"id":6275},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"GrassTile1","showsHalos":false,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"partsBinMetaInfo":{"__isSmartRef__":true,"id":6276},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1.0060210561262526,"eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6299},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"6274":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,16.0)","_Padding":"lively.rect(0,0,0,0)"},"6275":{"morph":{"__isSmartRef__":true,"id":6273},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6276":{"partName":"GrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"undefined","changes":[{"__isSmartRef__":true,"id":6277},{"__isSmartRef__":true,"id":6279},{"__isSmartRef__":true,"id":6281},{"__isSmartRef__":true,"id":6283},{"__isSmartRef__":true,"id":6285},{"__isSmartRef__":true,"id":6287},{"__isSmartRef__":true,"id":6289},{"__isSmartRef__":true,"id":6291},{"__isSmartRef__":true,"id":6293},{"__isSmartRef__":true,"id":6295},{"__isSmartRef__":true,"id":6297}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6277":{"date":{"__isSmartRef__":true,"id":6278},"author":"timfelgentreff","message":"no comment","id":"AB07369F-96D1-4872-ACD6-189F95A98CF0"},"6278":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:49 GMT+0200 (Central Europe Daylight Time)"},"6279":{"date":{"__isSmartRef__":true,"id":6280},"author":"timfelgentreff","message":"no comment","id":"6F09CB47-AE1A-43B5-9092-C226FC943D70"},"6280":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:53:15 GMT+0200 (Central Europe Daylight Time)"},"6281":{"date":{"__isSmartRef__":true,"id":6282},"author":"tessi","message":"","id":"C9AC5438-390B-4092-A840-5DA53EA949A2"},"6282":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:34:40 GMT+0200 (Central Europe Daylight Time)"},"6283":{"date":{"__isSmartRef__":true,"id":6284},"author":"timfelgentreff","message":"","id":"BB95B383-D653-4EC1-B02D-BD13262D13DD"},"6284":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:30:37 GMT+0200 (Central Europe Daylight Time)"},"6285":{"date":{"__isSmartRef__":true,"id":6286},"author":"lauritz","message":"","id":"20A6EE92-FFDB-4B50-AF32-430C3263E33A"},"6286":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:30 GMT+0200 (Central Europe Daylight Time)"},"6287":{"date":{"__isSmartRef__":true,"id":6288},"author":"tessi","message":"","id":"3FE7CF26-4ECF-4270-865D-14D92EF17F15"},"6288":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:12:42 GMT+0200 (Central Europe Daylight Time)"},"6289":{"date":{"__isSmartRef__":true,"id":6290},"author":"timfelgentreff","message":"no comment","id":"89243BFB-B9D4-46C9-B626-FA908A74640F"},"6290":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:21 GMT+0200 (Central Europe Daylight Time)"},"6291":{"date":{"__isSmartRef__":true,"id":6292},"author":"timfelgentreff","message":"no comment","id":"4F5D5D9C-6A36-40E0-A7B5-0EC147FC3CCB"},"6292":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:38 GMT+0200 (Central Europe Daylight Time)"},"6293":{"date":{"__isSmartRef__":true,"id":6294},"author":"timfelgentreff","message":"no comment","id":"2A16772C-A949-41B4-81E6-729009D52750"},"6294":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:31 GMT+0200 (Central Europe Daylight Time)"},"6295":{"date":{"__isSmartRef__":true,"id":6296},"author":"timfelgentreff","message":"no comment","id":"46CEDCB2-B98B-446F-82EF-A2E5C82104E8"},"6296":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:32:56 GMT+0200 (Central Europe Daylight Time)"},"6297":{"date":{"__isSmartRef__":true,"id":6298},"author":"timfelgentreff","message":"no comment","id":"1BA41EB4-3E79-44BA-9F92-9D7A5EED3AE5"},"6298":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:50 GMT+0200 (Central Europe Daylight Time)"},"6299":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"6300":{"varMapping":{"__isSmartRef__":true,"id":6301},"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":6302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6301":{"this":{"__isSmartRef__":true,"id":6273}},"6302":{"timestamp":{"__isSmartRef__":true,"id":6303},"user":"timfelgentreff","tags":[]},"6303":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:06 GMT+0200 (Central Europe Daylight Time)"},"6304":{"$super":{"__isSmartRef__":true,"id":6305}},"6305":{"varMapping":{"__isSmartRef__":true,"id":6306},"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":6307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6306":{"obj":{"__isSmartRef__":true,"id":6273},"name":"dropOn"},"6307":{},"6308":{},"6309":{"_NodeClass":["morph","box"],"_NodeId":"morph-572e1b6b-8258-4341-af59-8a5d702ad1cc","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"6310":{"morph":{"__isSmartRef__":true,"id":6266},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6311":{"partsSpaceName":"PartsBin/FreedomOfSpeech","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":6312},{"__isSmartRef__":true,"id":6314},{"__isSmartRef__":true,"id":6316},{"__isSmartRef__":true,"id":6318},{"__isSmartRef__":true,"id":6320},{"__isSmartRef__":true,"id":6322},{"__isSmartRef__":true,"id":6324},{"__isSmartRef__":true,"id":6326},{"__isSmartRef__":true,"id":6328},{"__isSmartRef__":true,"id":6330},{"__isSmartRef__":true,"id":6332},{"__isSmartRef__":true,"id":6334},{"__isSmartRef__":true,"id":6336},{"__isSmartRef__":true,"id":6338},{"__isSmartRef__":true,"id":6340},{"__isSmartRef__":true,"id":6342},{"__isSmartRef__":true,"id":6344},{"__isSmartRef__":true,"id":6346},{"__isSmartRef__":true,"id":6348},{"__isSmartRef__":true,"id":6350},{"__isSmartRef__":true,"id":6352},{"__isSmartRef__":true,"id":6354},{"__isSmartRef__":true,"id":6356},{"__isSmartRef__":true,"id":6358},{"__isSmartRef__":true,"id":6360},{"__isSmartRef__":true,"id":6362},{"__isSmartRef__":true,"id":6364},{"__isSmartRef__":true,"id":6366},{"__isSmartRef__":true,"id":6368},{"__isSmartRef__":true,"id":6370},{"__isSmartRef__":true,"id":6372},{"__isSmartRef__":true,"id":6374},{"__isSmartRef__":true,"id":6376},{"__isSmartRef__":true,"id":6378},{"__isSmartRef__":true,"id":6380},{"__isSmartRef__":true,"id":6382},{"__isSmartRef__":true,"id":6384},{"__isSmartRef__":true,"id":6386},{"__isSmartRef__":true,"id":6388},{"__isSmartRef__":true,"id":6390},{"__isSmartRef__":true,"id":6392},{"__isSmartRef__":true,"id":6394},{"__isSmartRef__":true,"id":6396},{"__isSmartRef__":true,"id":6398},{"__isSmartRef__":true,"id":6400},{"__isSmartRef__":true,"id":6402},{"__isSmartRef__":true,"id":6404},{"__isSmartRef__":true,"id":6406},{"__isSmartRef__":true,"id":6408},{"__isSmartRef__":true,"id":6410},{"__isSmartRef__":true,"id":6412}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6312":{"date":{"__isSmartRef__":true,"id":6313},"author":"lauritz","message":"difference between dev and normal style in border-width","id":"3001D4D8-C44F-49E0-8101-5726A7ACFD8F"},"6313":{"isSerializedDate":true,"string":"Mon May 07 2012 18:54:58 GMT+0200 (Central Europe Daylight Time)"},"6314":{"date":{"__isSmartRef__":true,"id":6315},"author":"tessi","message":"cannot set color to null","id":"A33818D9-5418-451A-86B6-17C0E01E3D95"},"6315":{"isSerializedDate":true,"string":"Thu May 03 2012 15:20:35 GMT+0200 (Central Europe Daylight Time)"},"6316":{"date":{"__isSmartRef__":true,"id":6317},"author":"timfelgentreff","message":"no comment","id":"3D7FD71F-6695-46ED-915B-DACB2BDD66EC"},"6317":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:11 GMT+0200 (Central Europe Daylight Time)"},"6318":{"date":{"__isSmartRef__":true,"id":6319},"author":"tessi","message":"","id":"CDFC653A-73C4-4FEF-BF2F-E515698C9D49"},"6319":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:40:27 GMT+0200 (Central Europe Daylight Time)"},"6320":{"date":{"__isSmartRef__":true,"id":6321},"author":"tessi","message":"cache Neighbours","id":"5AE79688-A888-4376-8A8F-63679330D24C"},"6321":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:19 GMT+0200 (Central Europe Daylight Time)"},"6322":{"date":{"__isSmartRef__":true,"id":6323},"author":"tessi","message":"let characters register themself when enter/leave the tile","id":"9095AE1D-1FE5-44A4-9A4E-C9C39B1C4F40"},"6323":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:48 GMT+0200 (Central Europe Daylight Time)"},"6324":{"date":{"__isSmartRef__":true,"id":6325},"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"},"6325":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:58 GMT+0200 (Central Europe Daylight Time)"},"6326":{"date":{"__isSmartRef__":true,"id":6327},"author":"lauritz","message":"","id":"AC05F3B3-162F-4A75-A601-EA5F744AC530"},"6327":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:25:17 GMT+0200 (Central Europe Daylight Time)"},"6328":{"date":{"__isSmartRef__":true,"id":6329},"author":"timfelgentreff","message":"revert last commit","id":"DEE21763-B63C-41AF-917B-4481E54000AF"},"6329":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:53:55 GMT+0200 (Central Europe Daylight Time)"},"6330":{"date":{"__isSmartRef__":true,"id":6331},"author":"timfelgentreff","message":"uncomment return","id":"21656693-2A83-4D04-9612-55622B41EB18"},"6331":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:46:38 GMT+0200 (Central Europe Daylight Time)"},"6332":{"date":{"__isSmartRef__":true,"id":6333},"author":"timfelgentreff","message":"fix shallowCopy","id":"5DDF2C7F-DEE5-4161-A515-B5831A00DCB3"},"6333":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:13:27 GMT+0200 (Central Europe Daylight Time)"},"6334":{"date":{"__isSmartRef__":true,"id":6335},"author":"timfelgentreff","message":"add shallowCopy","id":"86DCAE73-A5D2-470F-BF0E-77E914236CEA"},"6335":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:10:22 GMT+0200 (Central Europe Daylight Time)"},"6336":{"date":{"__isSmartRef__":true,"id":6337},"author":"timfelgentreff","message":"no comment","id":"181F2453-F14A-4CC7-BFF0-910480CD4B1F"},"6337":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:23 GMT+0200 (Central Europe Daylight Time)"},"6338":{"date":{"__isSmartRef__":true,"id":6339},"author":"timfelgentreff","message":"show obstacle state in dev style","id":"9FD0FE89-0EE1-4499-B055-D2C077CCEACA"},"6339":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:37:34 GMT+0200 (Central Europe Daylight Time)"},"6340":{"date":{"__isSmartRef__":true,"id":6341},"author":"timfelgentreff","message":"no comment","id":"4571845C-4F67-4DD6-954F-B93B98F8DDF3"},"6341":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:35:25 GMT+0200 (Central Europe Daylight Time)"},"6342":{"date":{"__isSmartRef__":true,"id":6343},"author":"timfelgentreff","message":"fix adding obstacles","id":"891954C6-3DC3-41AC-8038-4E7C028B0147"},"6343":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:37 GMT+0200 (Central Europe Daylight Time)"},"6344":{"date":{"__isSmartRef__":true,"id":6345},"author":"timfelgentreff","message":"things support","id":"DD13E7D3-6948-4B69-947A-24A2B084646B"},"6345":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:58 GMT+0200 (Central Europe Daylight Time)"},"6346":{"date":{"__isSmartRef__":true,"id":6347},"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"},"6347":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:14 GMT+0200 (Central Europe Daylight Time)"},"6348":{"date":{"__isSmartRef__":true,"id":6349},"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"},"6349":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:29:15 GMT+0200 (Central Europe Daylight Time)"},"6350":{"date":{"__isSmartRef__":true,"id":6351},"author":"timfelgentreff","message":"","id":"712D65D3-A68A-47B9-AFDC-B20E826217DB"},"6351":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:00:26 GMT+0200 (Central Europe Daylight Time)"},"6352":{"date":{"__isSmartRef__":true,"id":6353},"author":"timfelgentreff","message":"","id":"DF45FC66-1C49-447D-914F-A905DA0AECB2"},"6353":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:47 GMT+0200 (Central Europe Daylight Time)"},"6354":{"date":{"__isSmartRef__":true,"id":6355},"author":"timfelgentreff","message":"","id":"6D9186F6-64FC-48E0-95AF-27E462A13E1D"},"6355":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:55:04 GMT+0200 (Central Europe Daylight Time)"},"6356":{"date":{"__isSmartRef__":true,"id":6357},"author":"timfelgentreff","message":"","id":"24121E2C-3B59-48EF-8026-290C8D296496"},"6357":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:02:53 GMT+0200 (Central Europe Daylight Time)"},"6358":{"date":{"__isSmartRef__":true,"id":6359},"author":"timfelgentreff","message":"","id":"F4CC9F23-A50B-4206-A549-A610CC9C69AC"},"6359":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:11:38 GMT+0200 (Central Europe Daylight Time)"},"6360":{"date":{"__isSmartRef__":true,"id":6361},"author":"timfelgentreff","message":"","id":"563A8831-9CE6-49D1-B87D-453B761FB751"},"6361":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:53 GMT+0200 (Central Europe Daylight Time)"},"6362":{"date":{"__isSmartRef__":true,"id":6363},"author":"timfelgentreff","message":"","id":"E1AA7A8A-D3C5-4263-9A1E-91C13F532ED6"},"6363":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:55 GMT+0200 (Central Europe Daylight Time)"},"6364":{"date":{"__isSmartRef__":true,"id":6365},"author":"timfelgentreff","message":"","id":"0672C6C8-D032-495B-B9EE-E41F194C86DE"},"6365":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:19:15 GMT+0200 (Central Europe Daylight Time)"},"6366":{"date":{"__isSmartRef__":true,"id":6367},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6367":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"6368":{"date":{"__isSmartRef__":true,"id":6369},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6369":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"6370":{"date":{"__isSmartRef__":true,"id":6371},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6371":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"6372":{"date":{"__isSmartRef__":true,"id":6373},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6373":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"6374":{"date":{"__isSmartRef__":true,"id":6375},"author":"timfelgentreff","message":"","id":"DE0AC226-458D-416E-A42C-BAA848650C4C"},"6375":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:28:14 GMT+0200 (Central Europe Daylight Time)"},"6376":{"date":{"__isSmartRef__":true,"id":6377},"author":"lauritz","message":"","id":"CFD35308-806E-4804-8706-15DA1CEC5743"},"6377":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:49:16 GMT+0200 (Central Europe Daylight Time)"},"6378":{"date":{"__isSmartRef__":true,"id":6379},"author":"timfelgentreff","message":"","id":"18365ED6-1BC8-43AD-ADC8-2B0C8005B784"},"6379":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:23:38 GMT+0200 (Central Europe Daylight Time)"},"6380":{"date":{"__isSmartRef__":true,"id":6381},"author":"timfelgentreff","message":"","id":"4978F7BB-7FF5-47C1-8A55-6CAB03479B28"},"6381":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:41:12 GMT+0200 (Central Europe Daylight Time)"},"6382":{"date":{"__isSmartRef__":true,"id":6383},"author":"timfelgentreff","message":"","id":"07EE540F-D786-49CC-8DD0-56F6B3AC6716"},"6383":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:43:41 GMT+0200 (Central Europe Daylight Time)"},"6384":{"date":{"__isSmartRef__":true,"id":6385},"author":"timfelgentreff","message":"","id":"B5D9BC0C-15F0-4AE7-884B-48515F6A030E"},"6385":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:08:19 GMT+0200 (Central Europe Daylight Time)"},"6386":{"date":{"__isSmartRef__":true,"id":6387},"author":"timfelgentreff","message":"","id":"F01F7BC6-E59F-4B63-8A3D-10C3AC3E34FD"},"6387":{"isSerializedDate":true,"string":"Fri Apr 20 2012 08:22:08 GMT+0200 (Central Europe Daylight Time)"},"6388":{"date":{"__isSmartRef__":true,"id":6389},"author":"tessi","message":"revert timfels last commit (tile was overwritten with thing)","id":"27A8A743-D064-44C6-948E-8E3D5118790D"},"6389":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:34:17 GMT+0200 (Central Europe Daylight Time)"},"6390":{"date":{"__isSmartRef__":true,"id":6391},"author":"timfelgentreff","message":"no comment","id":"6BBA00B9-6D11-4D9D-B6E9-95FE7CC915CD"},"6391":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:20:14 GMT+0200 (Central Europe Daylight Time)"},"6392":{"date":{"__isSmartRef__":true,"id":6393},"author":"timfelgentreff","message":"no comment","id":"957E9210-4394-452A-9291-BD0E8FA736BF"},"6393":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:28:00 GMT+0200 (Central Europe Daylight Time)"},"6394":{"date":{"__isSmartRef__":true,"id":6395},"author":"tessi","message":"added reset() method. use game() and map() instead of get() calls","id":"5B2AF6B7-3DC9-4EE1-A616-6510338BA091"},"6395":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:18:16 GMT+0200 (Central Europe Daylight Time)"},"6396":{"date":{"__isSmartRef__":true,"id":6397},"author":"timfelgentreff","message":"avoid setting props in shallowCopy","id":"0102BAF0-8471-4805-98CB-FFA285A96B15"},"6397":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:45:14 GMT+0200 (Central Europe Daylight Time)"},"6398":{"date":{"__isSmartRef__":true,"id":6399},"author":"timfelgentreff","message":"copy properties,too, so we can publish","id":"409A8B29-1CB7-4C30-B420-7F0FEB4489EA"},"6399":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:48:47 GMT+0200 (Central Europe Daylight Time)"},"6400":{"date":{"__isSmartRef__":true,"id":6401},"author":"tessi","message":"added stub method for getting characters standing on the tile","id":"2DD011DC-7ABF-4928-A2EE-FDA603BCB307"},"6401":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:22:23 GMT+0200 (Central Europe Daylight Time)"},"6402":{"date":{"__isSmartRef__":true,"id":6403},"author":"lauritz","message":"no comment","id":"2A0ACEC2-2DDA-4061-9ECE-8D49CCD6C0A0"},"6403":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:00:07 GMT+0200 (Central Europe Daylight Time)"},"6404":{"date":{"__isSmartRef__":true,"id":6405},"author":"timfelgentreff","message":"revert caching","id":"03257D32-EA99-4EA6-8CFA-D6C55E6A4D96"},"6405":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:20:05 GMT+0200 (Central Europe Daylight Time)"},"6406":{"date":{"__isSmartRef__":true,"id":6407},"author":"tessi","message":"fix neighbours calculation","id":"F2AE41B4-A670-4277-B7F3-5BCC20D74ECE"},"6407":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:48 GMT+0200 (Central Europe Daylight Time)"},"6408":{"date":{"__isSmartRef__":true,"id":6409},"author":"timfelgentreff","message":"add a neighboursReachableFromHere function, so we can return only neighbours that are reachable to A*","id":"646448AF-6B6F-4D4E-900B-2DC7B927ACE8"},"6409":{"isSerializedDate":true,"string":"Thu May 03 2012 13:29:50 GMT+0200 (Central Europe Daylight Time)"},"6410":{"date":{"__isSmartRef__":true,"id":6411},"author":"tessi","message":"normal border color is transparent","id":"94D5AA98-D1D9-4C6F-BED3-828305C3F390"},"6411":{"isSerializedDate":true,"string":"Thu May 03 2012 15:25:32 GMT+0200 (Central Europe Daylight Time)"},"6412":{"date":{"__isSmartRef__":true,"id":6413},"author":"tessi","message":"no comment","id":"928E1DC4-09B5-46D7-A245-48E332175C68"},"6413":{"isSerializedDate":true,"string":"Fri May 04 2012 17:01:42 GMT+0200 (Central Europe Daylight Time)"},"6414":{"submorphs":[{"__isSmartRef__":true,"id":6415},{"__isSmartRef__":true,"id":10280},{"__isSmartRef__":true,"id":7127},{"__isSmartRef__":true,"id":7120},{"__isSmartRef__":true,"id":7217},{"__isSmartRef__":true,"id":7224},{"__isSmartRef__":true,"id":10550},{"__isSmartRef__":true,"id":6836},{"__isSmartRef__":true,"id":6926},{"__isSmartRef__":true,"id":6266},{"__isSmartRef__":true,"id":7113},{"__isSmartRef__":true,"id":8138},{"__isSmartRef__":true,"id":10460},{"__isSmartRef__":true,"id":7016},{"__isSmartRef__":true,"id":6829},{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":8394},{"__isSmartRef__":true,"id":8401},{"__isSmartRef__":true,"id":10370},{"__isSmartRef__":true,"id":10107},{"__isSmartRef__":true,"id":6527},{"__isSmartRef__":true,"id":8491},{"__isSmartRef__":true,"id":8498},{"__isSmartRef__":true,"id":8602},{"__isSmartRef__":true,"id":10788},{"__isSmartRef__":true,"id":10878},{"__isSmartRef__":true,"id":9685},{"__isSmartRef__":true,"id":8902},{"__isSmartRef__":true,"id":8609},{"__isSmartRef__":true,"id":9076},{"__isSmartRef__":true,"id":10968},{"__isSmartRef__":true,"id":11058},{"__isSmartRef__":true,"id":11180},{"__isSmartRef__":true,"id":9166},{"__isSmartRef__":true,"id":9256},{"__isSmartRef__":true,"id":9346},{"__isSmartRef__":true,"id":7231},{"__isSmartRef__":true,"id":6088},{"__isSmartRef__":true,"id":8616}],"scripts":[],"id":"7FC33F62-DC6A-4BD7-8CCF-BDA9A0D9AFC5","shape":{"__isSmartRef__":true,"id":11270},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Map","partsBinMetaInfo":{"__isSmartRef__":true,"id":11271},"eventHandler":{"__isSmartRef__":true,"id":11280},"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","51D2E387-4380-4422-B47D-72D1D1530C65","71884EAE-76A4-4E86-840E-58D89EF576E5"],"partTests":{"__isSmartRef__":true,"id":11281},"owner":{"__isSmartRef__":true,"id":11286},"prevScroll":[0,0],"tiles":[[{"__isSmartRef__":true,"id":6415},{"__isSmartRef__":true,"id":10550},{"__isSmartRef__":true,"id":10460},{"__isSmartRef__":true,"id":10370},{"__isSmartRef__":true,"id":10788},{"__isSmartRef__":true,"id":10968}],[{"__isSmartRef__":true,"id":10280},{"__isSmartRef__":true,"id":6836},{"__isSmartRef__":true,"id":7016},{"__isSmartRef__":true,"id":10107},{"__isSmartRef__":true,"id":10878},{"__isSmartRef__":true,"id":11058}],[{"__isSmartRef__":true,"id":7127},{"__isSmartRef__":true,"id":6926},{"__isSmartRef__":true,"id":6829},{"__isSmartRef__":true,"id":6527},{"__isSmartRef__":true,"id":9685},{"__isSmartRef__":true,"id":11180}],[{"__isSmartRef__":true,"id":7120},{"__isSmartRef__":true,"id":6266},{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":8491},{"__isSmartRef__":true,"id":8902},{"__isSmartRef__":true,"id":9166}],[{"__isSmartRef__":true,"id":7217},{"__isSmartRef__":true,"id":7113},{"__isSmartRef__":true,"id":8394},{"__isSmartRef__":true,"id":8498},{"__isSmartRef__":true,"id":8609},{"__isSmartRef__":true,"id":9256}],[{"__isSmartRef__":true,"id":7224},{"__isSmartRef__":true,"id":8138},{"__isSmartRef__":true,"id":8401},{"__isSmartRef__":true,"id":8602},{"__isSmartRef__":true,"id":9076},{"__isSmartRef__":true,"id":9346}]],"_ClipMode":"visible","isMap":true,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11392},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1.6,-1.4)","distanceToDragEvent":"lively.pt(379.0,-19.3)"},"6415":{"submorphs":[{"__isSmartRef__":true,"id":6416}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6420},"derivationIds":[null],"id":"7DF8AFAE-FD28-49FF-ACB8-C0E0464DD2B8","eventHandler":{"__isSmartRef__":true,"id":6421},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":0,"column":0,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":6416},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10705},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"6416":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6417},"derivationIds":[null],"id":"3B15490C-8ED9-47FA-A0B8-4E9389FE96F5","eventHandler":{"__isSmartRef__":true,"id":6418},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6415},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6419},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"6417":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-3b15490c-8ed9-47fa-a0b8-4e9389fe96f5","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"6418":{"morph":{"__isSmartRef__":true,"id":6416},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6419":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"6420":{"_NodeClass":["morph","box"],"_NodeId":"morph-7df8afae-fd28-49ff-acb8-c0e0464dd2b8","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"6421":{"morph":{"__isSmartRef__":true,"id":6415},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6422":{"submorphs":[{"__isSmartRef__":true,"id":6423}],"scripts":[],"id":"FC58D829-A2E5-478F-B93F-D683886A47CB","shape":{"__isSmartRef__":true,"id":6445},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Thing","partsBinMetaInfo":{"__isSmartRef__":true,"id":6446},"eventHandler":{"__isSmartRef__":true,"id":6521},"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":6522},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":6527},"thing":{"__isSmartRef__":true,"id":6423},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":6527},{"__isSmartRef__":true,"id":6829},{"__isSmartRef__":true,"id":6926},{"__isSmartRef__":true,"id":7127},{"__isSmartRef__":true,"id":10107},{"__isSmartRef__":true,"id":7016},{"__isSmartRef__":true,"id":6836},{"__isSmartRef__":true,"id":10280},{"__isSmartRef__":true,"id":10370},{"__isSmartRef__":true,"id":10460},{"__isSmartRef__":true,"id":10550},{"__isSmartRef__":true,"id":6415}],"owner":{"__isSmartRef__":true,"id":6527},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10640},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"6423":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6424},"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":"7DAE371E-8C77-4F24-A84D-CD29E1E11B24","eventHandler":{"__isSmartRef__":true,"id":6425},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"TreeThing1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6426},"moved":true,"isThing":true,"_ClipMode":"visible","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6422},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6437},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-93.0,-132.0)"},"6424":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/tree.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(141.0,180.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"6425":{"morph":{"__isSmartRef__":true,"id":6423},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6426":{"partName":"TreeThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A not movable tree.","changes":[{"__isSmartRef__":true,"id":6427},{"__isSmartRef__":true,"id":6429},{"__isSmartRef__":true,"id":6431},{"__isSmartRef__":true,"id":6433},{"__isSmartRef__":true,"id":6435}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6427":{"date":{"__isSmartRef__":true,"id":6428},"author":"timfelgentreff","message":"resize","id":"178F8ABC-5DE3-489C-B8EA-1AA89F7BD552"},"6428":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:33:32 GMT+0200 (Central Europe Daylight Time)"},"6429":{"date":{"__isSmartRef__":true,"id":6430},"author":"tessi","message":"","id":"7B587A9B-4A72-4337-B5A2-22ECF5417652"},"6430":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:14:54 GMT+0200 (Central Europe Daylight Time)"},"6431":{"date":{"__isSmartRef__":true,"id":6432},"author":"tessi","message":"","id":"94DAAC08-767D-4E73-AC75-1D56331C7ACC"},"6432":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:43:14 GMT+0200 (Central Europe Daylight Time)"},"6433":{"date":{"__isSmartRef__":true,"id":6434},"author":"tessi","message":"","id":"DFDA9255-BAD7-44C4-BCDC-36D91964FC81"},"6434":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:51:42 GMT+0200 (Central Europe Daylight Time)"},"6435":{"date":{"__isSmartRef__":true,"id":6436},"author":"timfelgentreff","message":"no comment","id":"C9A066E4-3B98-4778-92E0-0E8C5CF4FFA8"},"6436":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:07:31 GMT+0200 (Central Europe Daylight Time)"},"6437":{"dropOn":{"__isSmartRef__":true,"id":6438}},"6438":{"varMapping":{"__isSmartRef__":true,"id":6439},"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":6444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6439":{"this":{"__isSmartRef__":true,"id":6423},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6440}},"6440":{"$super":{"__isSmartRef__":true,"id":6441}},"6441":{"varMapping":{"__isSmartRef__":true,"id":6442},"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":6443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6442":{"obj":{"__isSmartRef__":true,"id":6423},"name":"dropOn"},"6443":{},"6444":{},"6445":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"6446":{"partsSpaceName":"PartsBin/FreedomOfSpeech","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":6447},{"__isSmartRef__":true,"id":6449},{"__isSmartRef__":true,"id":6451},{"__isSmartRef__":true,"id":6453},{"__isSmartRef__":true,"id":6455},{"__isSmartRef__":true,"id":6457},{"__isSmartRef__":true,"id":6459},{"__isSmartRef__":true,"id":6461},{"__isSmartRef__":true,"id":6463},{"__isSmartRef__":true,"id":6465},{"__isSmartRef__":true,"id":6467},{"__isSmartRef__":true,"id":6469},{"__isSmartRef__":true,"id":6471},{"__isSmartRef__":true,"id":6473},{"__isSmartRef__":true,"id":6475},{"__isSmartRef__":true,"id":6477},{"__isSmartRef__":true,"id":6479},{"__isSmartRef__":true,"id":6481},{"__isSmartRef__":true,"id":6483},{"__isSmartRef__":true,"id":6485},{"__isSmartRef__":true,"id":6487},{"__isSmartRef__":true,"id":6489},{"__isSmartRef__":true,"id":6491},{"__isSmartRef__":true,"id":6493},{"__isSmartRef__":true,"id":6495},{"__isSmartRef__":true,"id":6497},{"__isSmartRef__":true,"id":6499},{"__isSmartRef__":true,"id":6501},{"__isSmartRef__":true,"id":6503},{"__isSmartRef__":true,"id":6505},{"__isSmartRef__":true,"id":6507},{"__isSmartRef__":true,"id":6509},{"__isSmartRef__":true,"id":6511},{"__isSmartRef__":true,"id":6513},{"__isSmartRef__":true,"id":6515},{"__isSmartRef__":true,"id":6517},{"__isSmartRef__":true,"id":6519}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6447":{"date":{"__isSmartRef__":true,"id":6448},"author":"tessi","message":"cannot set color to null","id":"C0274811-3BE8-44E9-8C87-99D1F426E9D7"},"6448":{"isSerializedDate":true,"string":"Thu May 03 2012 15:21:30 GMT+0200 (Central Europe Daylight Time)"},"6449":{"date":{"__isSmartRef__":true,"id":6450},"author":"tessi","message":"reset() sets devStyle; replace get() calls with game() and map()","id":"2AB88C79-A426-4144-9134-5E0717044086"},"6450":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:29 GMT+0200 (Central Europe Daylight Time)"},"6451":{"date":{"__isSmartRef__":true,"id":6452},"author":"timfelgentreff","message":"no comment","id":"49C8495C-85F0-4B00-AB8B-0086DC167B81"},"6452":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:35:31 GMT+0200 (Central Europe Daylight Time)"},"6453":{"date":{"__isSmartRef__":true,"id":6454},"author":"timfelgentreff","message":"setExtent before setPosition","id":"6FDDC46A-4F38-43E9-9258-5570855703AE"},"6454":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:01:01 GMT+0200 (Central Europe Daylight Time)"},"6455":{"date":{"__isSmartRef__":true,"id":6456},"author":"timfelgentreff","message":"blue border","id":"BA7A047B-D7E3-4AB9-95E0-0AD19B254904"},"6456":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:59:59 GMT+0200 (Central Europe Daylight Time)"},"6457":{"date":{"__isSmartRef__":true,"id":6458},"author":"timfelgentreff","message":"","id":"F01F7BC6-E59F-4B63-8A3D-10C3AC3E34FD"},"6458":{"isSerializedDate":true,"string":"Fri Apr 20 2012 08:22:08 GMT+0200 (Central Europe Daylight Time)"},"6459":{"date":{"__isSmartRef__":true,"id":6460},"author":"timfelgentreff","message":"","id":"B5D9BC0C-15F0-4AE7-884B-48515F6A030E"},"6460":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:08:19 GMT+0200 (Central Europe Daylight Time)"},"6461":{"date":{"__isSmartRef__":true,"id":6462},"author":"timfelgentreff","message":"","id":"07EE540F-D786-49CC-8DD0-56F6B3AC6716"},"6462":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:43:41 GMT+0200 (Central Europe Daylight Time)"},"6463":{"date":{"__isSmartRef__":true,"id":6464},"author":"timfelgentreff","message":"","id":"4978F7BB-7FF5-47C1-8A55-6CAB03479B28"},"6464":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:41:12 GMT+0200 (Central Europe Daylight Time)"},"6465":{"date":{"__isSmartRef__":true,"id":6466},"author":"timfelgentreff","message":"","id":"18365ED6-1BC8-43AD-ADC8-2B0C8005B784"},"6466":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:23:38 GMT+0200 (Central Europe Daylight Time)"},"6467":{"date":{"__isSmartRef__":true,"id":6468},"author":"lauritz","message":"","id":"CFD35308-806E-4804-8706-15DA1CEC5743"},"6468":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:49:16 GMT+0200 (Central Europe Daylight Time)"},"6469":{"date":{"__isSmartRef__":true,"id":6470},"author":"timfelgentreff","message":"","id":"DE0AC226-458D-416E-A42C-BAA848650C4C"},"6470":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:28:14 GMT+0200 (Central Europe Daylight Time)"},"6471":{"date":{"__isSmartRef__":true,"id":6472},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6472":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"6473":{"date":{"__isSmartRef__":true,"id":6474},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6474":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"6475":{"date":{"__isSmartRef__":true,"id":6476},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6476":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"6477":{"date":{"__isSmartRef__":true,"id":6478},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6478":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"6479":{"date":{"__isSmartRef__":true,"id":6480},"author":"timfelgentreff","message":"","id":"0672C6C8-D032-495B-B9EE-E41F194C86DE"},"6480":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:19:15 GMT+0200 (Central Europe Daylight Time)"},"6481":{"date":{"__isSmartRef__":true,"id":6482},"author":"timfelgentreff","message":"","id":"E1AA7A8A-D3C5-4263-9A1E-91C13F532ED6"},"6482":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:55 GMT+0200 (Central Europe Daylight Time)"},"6483":{"date":{"__isSmartRef__":true,"id":6484},"author":"timfelgentreff","message":"","id":"563A8831-9CE6-49D1-B87D-453B761FB751"},"6484":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:53 GMT+0200 (Central Europe Daylight Time)"},"6485":{"date":{"__isSmartRef__":true,"id":6486},"author":"timfelgentreff","message":"","id":"F4CC9F23-A50B-4206-A549-A610CC9C69AC"},"6486":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:11:38 GMT+0200 (Central Europe Daylight Time)"},"6487":{"date":{"__isSmartRef__":true,"id":6488},"author":"timfelgentreff","message":"","id":"24121E2C-3B59-48EF-8026-290C8D296496"},"6488":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:02:53 GMT+0200 (Central Europe Daylight Time)"},"6489":{"date":{"__isSmartRef__":true,"id":6490},"author":"timfelgentreff","message":"","id":"6D9186F6-64FC-48E0-95AF-27E462A13E1D"},"6490":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:55:04 GMT+0200 (Central Europe Daylight Time)"},"6491":{"date":{"__isSmartRef__":true,"id":6492},"author":"timfelgentreff","message":"","id":"DF45FC66-1C49-447D-914F-A905DA0AECB2"},"6492":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:47 GMT+0200 (Central Europe Daylight Time)"},"6493":{"date":{"__isSmartRef__":true,"id":6494},"author":"timfelgentreff","message":"","id":"712D65D3-A68A-47B9-AFDC-B20E826217DB"},"6494":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:00:26 GMT+0200 (Central Europe Daylight Time)"},"6495":{"date":{"__isSmartRef__":true,"id":6496},"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"},"6496":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:29:15 GMT+0200 (Central Europe Daylight Time)"},"6497":{"date":{"__isSmartRef__":true,"id":6498},"author":"timfelgentreff","message":"initial publish","id":"4384AF65-BA4C-424D-A5EA-E68A6EEE9E6F"},"6498":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:39:23 GMT+0200 (Central Europe Daylight Time)"},"6499":{"date":{"__isSmartRef__":true,"id":6500},"author":"timfelgentreff","message":"add support for registering and deregistering as obstacle","id":"6E027D14-54DC-4EEE-86D7-F76CD7A727B5"},"6500":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:57 GMT+0200 (Central Europe Daylight Time)"},"6501":{"date":{"__isSmartRef__":true,"id":6502},"author":"timfelgentreff","message":"fix registering","id":"C3CC144E-61B2-4154-963B-F5812D40887C"},"6502":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:25:20 GMT+0200 (Central Europe Daylight Time)"},"6503":{"date":{"__isSmartRef__":true,"id":6504},"author":"timfelgentreff","message":"fix DNU","id":"CB97C29A-144D-4AA8-9763-C6AD0294C76D"},"6504":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:29 GMT+0200 (Central Europe Daylight Time)"},"6505":{"date":{"__isSmartRef__":true,"id":6506},"author":"timfelgentreff","message":"push the right tiles to occluded tiles","id":"4756DD2F-8511-47A5-BA08-D24CB2CDB071"},"6506":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:47:29 GMT+0200 (Central Europe Daylight Time)"},"6507":{"date":{"__isSmartRef__":true,"id":6508},"author":"timfelgentreff","message":"no comment","id":"4E20F671-CDDF-4A8C-B375-590965148158"},"6508":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:48:48 GMT+0200 (Central Europe Daylight Time)"},"6509":{"date":{"__isSmartRef__":true,"id":6510},"author":"timfelgentreff","message":"actually register things as obstacle for the whole rectangle, not only the other stuff","id":"E15C00E6-10CD-4BEE-A685-C852A7D2B0FA"},"6510":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:06:03 GMT+0200 (Central Europe Daylight Time)"},"6511":{"date":{"__isSmartRef__":true,"id":6512},"author":"timfelgentreff","message":"use the right index","id":"82122F19-AA93-4BE0-82A3-98068DCF0F25"},"6512":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:11:07 GMT+0200 (Central Europe Daylight Time)"},"6513":{"date":{"__isSmartRef__":true,"id":6514},"author":"timfelgentreff","message":"no comment","id":"8B215513-36A1-4E9D-A85F-901CF829A749"},"6514":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:20:02 GMT+0200 (Central Europe Daylight Time)"},"6515":{"date":{"__isSmartRef__":true,"id":6516},"author":"timfelgentreff","message":"fix deregister obstacle, function scope this error","id":"9107E550-ADD2-4504-90DA-7D389E5EE394"},"6516":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:27:22 GMT+0200 (Central Europe Daylight Time)"},"6517":{"date":{"__isSmartRef__":true,"id":6518},"author":"timfelgentreff","message":"change become() so it accepts a ThingMorph as well as a name","id":"0039C1AA-215A-4BE0-AA97-F1C383BE908C"},"6518":{"isSerializedDate":true,"string":"Thu May 03 2012 13:49:59 GMT+0200 (Central Europe Daylight Time)"},"6519":{"date":{"__isSmartRef__":true,"id":6520},"author":"tessi","message":"normal border color is transparent","id":"1665FD61-C4FA-4C51-9616-9C5E1C8B9F80"},"6520":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:59 GMT+0200 (Central Europe Daylight Time)"},"6521":{"morph":{"__isSmartRef__":true,"id":6422},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6522":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6523}},"6523":{"test01IsMorph":{"__isSmartRef__":true,"id":6524}},"6524":{"varMapping":{"__isSmartRef__":true,"id":6525},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6525":{"this":{"__isSmartRef__":true,"id":6522}},"6526":{},"6527":{"submorphs":[{"__isSmartRef__":true,"id":6528},{"__isSmartRef__":true,"id":6422},{"__isSmartRef__":true,"id":6532}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6627},"derivationIds":[null],"id":"5D71EA8B-28E1-4E8C-9DC8-EF89E79DFD11","eventHandler":{"__isSmartRef__":true,"id":6628},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":3,"column":2,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":6528},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422},{"__isSmartRef__":true,"id":6532}],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6629},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,144.0)"},"6528":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6529},"derivationIds":[null],"id":"6167F050-0315-48C9-B754-417097F882E4","eventHandler":{"__isSmartRef__":true,"id":6530},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6527},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6531},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"6529":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-6167f050-0315-48c9-b754-417097f882e4","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"6530":{"morph":{"__isSmartRef__":true,"id":6528},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6531":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"6532":{"submorphs":[{"__isSmartRef__":true,"id":6533}],"scripts":[],"id":"051EC56C-9DC3-4BB4-9211-0E9292B9801C","shape":{"__isSmartRef__":true,"id":6555},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Thing1","partsBinMetaInfo":{"__isSmartRef__":true,"id":6446},"eventHandler":{"__isSmartRef__":true,"id":6556},"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":6557},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":6527},"thing":{"__isSmartRef__":true,"id":6533},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":6527}],"owner":{"__isSmartRef__":true,"id":6527},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6562},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"6533":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6534},"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"],"id":"46D41B52-FBAE-40A8-BD95-ED0CDBE774AC","eventHandler":{"__isSmartRef__":true,"id":6535},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"StoneThing1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6536},"moved":true,"isThing":true,"_ClipMode":"visible","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6532},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6547},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1.1,7.0)"},"6534":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/stone.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(46.9,41.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"6535":{"morph":{"__isSmartRef__":true,"id":6533},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6536":{"partName":"StoneThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A not movable small stone","changes":[{"__isSmartRef__":true,"id":6537},{"__isSmartRef__":true,"id":6539},{"__isSmartRef__":true,"id":6541},{"__isSmartRef__":true,"id":6543},{"__isSmartRef__":true,"id":6545}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6537":{"date":{"__isSmartRef__":true,"id":6538},"author":"tessi","message":"","id":"35E2FCB1-4523-4C38-BF2F-23AF31A6C151"},"6538":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:51 GMT+0200 (Central Europe Daylight Time)"},"6539":{"date":{"__isSmartRef__":true,"id":6540},"author":"tessi","message":"","id":"D1D6F65B-D24E-4293-8C81-48CBAFEF3099"},"6540":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:45:34 GMT+0200 (Central Europe Daylight Time)"},"6541":{"date":{"__isSmartRef__":true,"id":6542},"author":"tessi","message":"","id":"36F7E7BC-32AC-43F2-80B4-1E7A9DCD17B5"},"6542":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:15:05 GMT+0200 (Central Europe Daylight Time)"},"6543":{"date":{"__isSmartRef__":true,"id":6544},"author":"timfelgentreff","message":"no comment","id":"5D1A1DB1-5B9B-495C-B68E-542540FCF595"},"6544":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:08:23 GMT+0200 (Central Europe Daylight Time)"},"6545":{"date":{"__isSmartRef__":true,"id":6546},"author":"timfelgentreff","message":"no comment","id":"1CA65555-3218-4D9F-A68E-950B51C9D7B8"},"6546":{"isSerializedDate":true,"string":"Thu May 03 2012 14:03:04 GMT+0200 (Central Europe Daylight Time)"},"6547":{"dropOn":{"__isSmartRef__":true,"id":6548}},"6548":{"varMapping":{"__isSmartRef__":true,"id":6549},"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":6554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6549":{"this":{"__isSmartRef__":true,"id":6533},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6550}},"6550":{"$super":{"__isSmartRef__":true,"id":6551}},"6551":{"varMapping":{"__isSmartRef__":true,"id":6552},"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":6553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6552":{"obj":{"__isSmartRef__":true,"id":6533},"name":"dropOn"},"6553":{},"6554":{},"6555":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"6556":{"morph":{"__isSmartRef__":true,"id":6532},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6557":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6558}},"6558":{"test01IsMorph":{"__isSmartRef__":true,"id":6559}},"6559":{"varMapping":{"__isSmartRef__":true,"id":6560},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6560":{"this":{"__isSmartRef__":true,"id":6557}},"6561":{},"6562":{"setDevStyle":{"__isSmartRef__":true,"id":6563},"setNormalStyle":{"__isSmartRef__":true,"id":6567},"become":{"__isSmartRef__":true,"id":6571},"onMouseDown":{"__isSmartRef__":true,"id":6575},"toolbox":{"__isSmartRef__":true,"id":6583},"zIndex":{"__isSmartRef__":true,"id":6587},"becomeRandomThing":{"__isSmartRef__":true,"id":6591},"reset":{"__isSmartRef__":true,"id":6595},"registerAsObstacle":{"__isSmartRef__":true,"id":6599},"deregisterAsObstacle":{"__isSmartRef__":true,"id":6603},"tileSize":{"__isSmartRef__":true,"id":6607},"dropOn":{"__isSmartRef__":true,"id":6611},"map":{"__isSmartRef__":true,"id":6619},"game":{"__isSmartRef__":true,"id":6623}},"6563":{"varMapping":{"__isSmartRef__":true,"id":6564},"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":6565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6564":{"this":{"__isSmartRef__":true,"id":6532}},"6565":{"timestamp":{"__isSmartRef__":true,"id":6566},"user":"timfelgentreff","tags":[]},"6566":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (Central Europe Daylight Time)"},"6567":{"varMapping":{"__isSmartRef__":true,"id":6568},"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":6569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6568":{"this":{"__isSmartRef__":true,"id":6532}},"6569":{"timestamp":{"__isSmartRef__":true,"id":6570},"user":"tessi","tags":[]},"6570":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (Central Europe Daylight Time)"},"6571":{"varMapping":{"__isSmartRef__":true,"id":6572},"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":6573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6572":{"this":{"__isSmartRef__":true,"id":6532}},"6573":{"timestamp":{"__isSmartRef__":true,"id":6574},"user":"timfelgentreff","tags":[]},"6574":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (Central Europe Daylight Time)"},"6575":{"varMapping":{"__isSmartRef__":true,"id":6576},"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":6581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6576":{"this":{"__isSmartRef__":true,"id":6532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6577}},"6577":{"$super":{"__isSmartRef__":true,"id":6578}},"6578":{"varMapping":{"__isSmartRef__":true,"id":6579},"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":6580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6579":{"obj":{"__isSmartRef__":true,"id":6532},"name":"onMouseDown"},"6580":{},"6581":{"timestamp":{"__isSmartRef__":true,"id":6582},"user":"tessi","tags":[]},"6582":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (Central Europe Daylight Time)"},"6583":{"varMapping":{"__isSmartRef__":true,"id":6584},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6584":{"this":{"__isSmartRef__":true,"id":6532}},"6585":{"timestamp":{"__isSmartRef__":true,"id":6586},"user":"tessi","tags":[]},"6586":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (Central Europe Daylight Time)"},"6587":{"varMapping":{"__isSmartRef__":true,"id":6588},"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":6589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6588":{"this":{"__isSmartRef__":true,"id":6532}},"6589":{"timestamp":{"__isSmartRef__":true,"id":6590},"user":"timfelgentreff","tags":[]},"6590":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (Central Europe Daylight Time)"},"6591":{"varMapping":{"__isSmartRef__":true,"id":6592},"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":6593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6592":{"this":{"__isSmartRef__":true,"id":6532}},"6593":{"timestamp":{"__isSmartRef__":true,"id":6594},"user":"tessi","tags":[]},"6594":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (Central Europe Daylight Time)"},"6595":{"varMapping":{"__isSmartRef__":true,"id":6596},"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":6597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6596":{"this":{"__isSmartRef__":true,"id":6532}},"6597":{"timestamp":{"__isSmartRef__":true,"id":6598},"user":"tessi","tags":[]},"6598":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (Central Europe Daylight Time)"},"6599":{"varMapping":{"__isSmartRef__":true,"id":6600},"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":6601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6600":{"this":{"__isSmartRef__":true,"id":6532}},"6601":{"timestamp":{"__isSmartRef__":true,"id":6602},"user":"timfelgentreff","tags":[]},"6602":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (Central Europe Daylight Time)"},"6603":{"varMapping":{"__isSmartRef__":true,"id":6604},"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":6605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6604":{"this":{"__isSmartRef__":true,"id":6532}},"6605":{"timestamp":{"__isSmartRef__":true,"id":6606},"user":"timfelgentreff","tags":[]},"6606":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (Central Europe Daylight Time)"},"6607":{"varMapping":{"__isSmartRef__":true,"id":6608},"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":6609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6608":{"this":{"__isSmartRef__":true,"id":6532}},"6609":{"timestamp":{"__isSmartRef__":true,"id":6610},"user":"timfelgentreff","tags":[]},"6610":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (Central Europe Daylight Time)"},"6611":{"varMapping":{"__isSmartRef__":true,"id":6612},"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":6617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6612":{"this":{"__isSmartRef__":true,"id":6532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6613}},"6613":{"$super":{"__isSmartRef__":true,"id":6614}},"6614":{"varMapping":{"__isSmartRef__":true,"id":6615},"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":6616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6615":{"obj":{"__isSmartRef__":true,"id":6532},"name":"dropOn"},"6616":{},"6617":{"timestamp":{"__isSmartRef__":true,"id":6618},"user":"timfelgentreff","tags":[]},"6618":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (Central Europe Daylight Time)"},"6619":{"varMapping":{"__isSmartRef__":true,"id":6620},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":6621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6620":{"this":{"__isSmartRef__":true,"id":6532}},"6621":{"timestamp":{"__isSmartRef__":true,"id":6622},"user":"tessi","tags":[]},"6622":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (Central Europe Daylight Time)"},"6623":{"varMapping":{"__isSmartRef__":true,"id":6624},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":6625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6624":{"this":{"__isSmartRef__":true,"id":6532}},"6625":{"timestamp":{"__isSmartRef__":true,"id":6626},"user":"tessi","tags":[]},"6626":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (Central Europe Daylight Time)"},"6627":{"_NodeClass":["morph","box"],"_NodeId":"morph-5d71ea8b-28e1-4e8c-9dc8-ef89e79dfd11","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"6628":{"morph":{"__isSmartRef__":true,"id":6527},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6629":{"setDevStyle":{"__isSmartRef__":true,"id":6630},"setNormalStyle":{"__isSmartRef__":true,"id":6750},"tileSize":{"__isSmartRef__":true,"id":6753},"become":{"__isSmartRef__":true,"id":6756},"onMouseDown":{"__isSmartRef__":true,"id":6759},"setGridPosition":{"__isSmartRef__":true,"id":6766},"toolbox":{"__isSmartRef__":true,"id":6769},"distanceTo":{"__isSmartRef__":true,"id":6772},"tileWasDropped":{"__isSmartRef__":true,"id":6775},"isObstacle":{"__isSmartRef__":true,"id":6778},"neighboursInDirection":{"__isSmartRef__":true,"id":6781},"neighbours":{"__isSmartRef__":true,"id":6784},"zIndex":{"__isSmartRef__":true,"id":6787},"obstacles":{"__isSmartRef__":true,"id":6790},"addObstacle":{"__isSmartRef__":true,"id":6793},"removeObstacle":{"__isSmartRef__":true,"id":6796},"isTile":{"__isSmartRef__":true,"id":6799},"neighbourAt":{"__isSmartRef__":true,"id":6802},"map":{"__isSmartRef__":true,"id":6805},"game":{"__isSmartRef__":true,"id":6808},"reset":{"__isSmartRef__":true,"id":6811},"shallowCopy":{"__isSmartRef__":true,"id":6814},"characters":{"__isSmartRef__":true,"id":6817},"enterTile":{"__isSmartRef__":true,"id":6820},"leaveTile":{"__isSmartRef__":true,"id":6823},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":6826}},"6630":{"varMapping":{"__isSmartRef__":true,"id":6631},"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":6632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6631":{"this":{"__isSmartRef__":true,"id":6527}},"6632":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"6633":{"isSerializedDate":true,"string":"Mon May 07 2012 18:57:47 GMT+0200 (Central Europe Daylight Time)"},"6634":{"varMapping":{"__isSmartRef__":true,"id":6635},"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":6749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6635":{"this":{"__isSmartRef__":true,"id":6636}},"6636":{"submorphs":[],"scripts":[],"id":"0B56F48F-9375-47D5-827B-CB980ED836D4","shape":{"__isSmartRef__":true,"id":6637},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Tile1","partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"eventHandler":{"__isSmartRef__":true,"id":6638},"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":6639},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","__obstacles":[],"row":5,"column":1,"terrain":null,"grabbingEnabled":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0120783653693808,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6644},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(61.0,14.0)"},"6637":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(204,0,0)","_Padding":"lively.rect(0,0,0,0)"},"6638":{"morph":{"__isSmartRef__":true,"id":6636},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6639":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6640}},"6640":{"test01IsMorph":{"__isSmartRef__":true,"id":6641}},"6641":{"varMapping":{"__isSmartRef__":true,"id":6642},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6642":{"this":{"__isSmartRef__":true,"id":6639}},"6643":{},"6644":{"setDevStyle":{"__isSmartRef__":true,"id":6634},"setNormalStyle":{"__isSmartRef__":true,"id":6645},"tileSize":{"__isSmartRef__":true,"id":6649},"become":{"__isSmartRef__":true,"id":6653},"onMouseDown":{"__isSmartRef__":true,"id":6657},"setGridPosition":{"__isSmartRef__":true,"id":6665},"toolbox":{"__isSmartRef__":true,"id":6669},"distanceTo":{"__isSmartRef__":true,"id":6673},"tileWasDropped":{"__isSmartRef__":true,"id":6677},"isObstacle":{"__isSmartRef__":true,"id":6681},"neighboursInDirection":{"__isSmartRef__":true,"id":6685},"neighbours":{"__isSmartRef__":true,"id":6689},"zIndex":{"__isSmartRef__":true,"id":6693},"obstacles":{"__isSmartRef__":true,"id":6697},"addObstacle":{"__isSmartRef__":true,"id":6701},"removeObstacle":{"__isSmartRef__":true,"id":6705},"isTile":{"__isSmartRef__":true,"id":6709},"neighbourAt":{"__isSmartRef__":true,"id":6713},"map":{"__isSmartRef__":true,"id":6717},"game":{"__isSmartRef__":true,"id":6721},"reset":{"__isSmartRef__":true,"id":6725},"shallowCopy":{"__isSmartRef__":true,"id":6729},"characters":{"__isSmartRef__":true,"id":6733},"enterTile":{"__isSmartRef__":true,"id":6737},"leaveTile":{"__isSmartRef__":true,"id":6741},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":6745}},"6645":{"varMapping":{"__isSmartRef__":true,"id":6646},"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":6647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6646":{"this":{"__isSmartRef__":true,"id":6636}},"6647":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[]},"6648":{"isSerializedDate":true,"string":"Mon May 07 2012 18:58:21 GMT+0200 (Central Europe Daylight Time)"},"6649":{"varMapping":{"__isSmartRef__":true,"id":6650},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6650":{"this":{"__isSmartRef__":true,"id":6636}},"6651":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[]},"6652":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:04:53 GMT+0200 (Central Europe Daylight Time)"},"6653":{"varMapping":{"__isSmartRef__":true,"id":6654},"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":6655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6654":{"this":{"__isSmartRef__":true,"id":6636}},"6655":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[]},"6656":{"isSerializedDate":true,"string":"Fri May 04 2012 13:31:11 GMT+0200 (Central Europe Daylight Time)"},"6657":{"varMapping":{"__isSmartRef__":true,"id":6658},"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":6663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6658":{"this":{"__isSmartRef__":true,"id":6636},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6659}},"6659":{"$super":{"__isSmartRef__":true,"id":6660}},"6660":{"varMapping":{"__isSmartRef__":true,"id":6661},"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":6662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6661":{"obj":{"__isSmartRef__":true,"id":6636},"name":"onMouseDown"},"6662":{},"6663":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[]},"6664":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:14 GMT+0200 (Central Europe Daylight Time)"},"6665":{"varMapping":{"__isSmartRef__":true,"id":6666},"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":6667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6666":{"this":{"__isSmartRef__":true,"id":6636}},"6667":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[]},"6668":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:23:15 GMT+0200 (Central Europe Daylight Time)"},"6669":{"varMapping":{"__isSmartRef__":true,"id":6670},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6670":{"this":{"__isSmartRef__":true,"id":6636}},"6671":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[]},"6672":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:15:20 GMT+0200 (Central Europe Daylight Time)"},"6673":{"varMapping":{"__isSmartRef__":true,"id":6674},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6674":{"this":{"__isSmartRef__":true,"id":6636}},"6675":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[]},"6676":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:02 GMT+0200 (Central Europe Daylight Time)"},"6677":{"varMapping":{"__isSmartRef__":true,"id":6678},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6678":{"this":{"__isSmartRef__":true,"id":6636}},"6679":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[]},"6680":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:52:54 GMT+0200 (Central Europe Daylight Time)"},"6681":{"varMapping":{"__isSmartRef__":true,"id":6682},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6682":{"this":{"__isSmartRef__":true,"id":6636}},"6683":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[]},"6684":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:19:43 GMT+0200 (Central Europe Daylight Time)"},"6685":{"varMapping":{"__isSmartRef__":true,"id":6686},"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":6687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6686":{"this":{"__isSmartRef__":true,"id":6636}},"6687":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[]},"6688":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:24 GMT+0200 (Central Europe Daylight Time)"},"6689":{"varMapping":{"__isSmartRef__":true,"id":6690},"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":6691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6690":{"this":{"__isSmartRef__":true,"id":6636}},"6691":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[]},"6692":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:34 GMT+0200 (Central Europe Daylight Time)"},"6693":{"varMapping":{"__isSmartRef__":true,"id":6694},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6694":{"this":{"__isSmartRef__":true,"id":6636}},"6695":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[]},"6696":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:54:56 GMT+0200 (Central Europe Daylight Time)"},"6697":{"varMapping":{"__isSmartRef__":true,"id":6698},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6698":{"this":{"__isSmartRef__":true,"id":6636}},"6699":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[]},"6700":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:53:52 GMT+0200 (Central Europe Daylight Time)"},"6701":{"varMapping":{"__isSmartRef__":true,"id":6702},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6702":{"this":{"__isSmartRef__":true,"id":6636}},"6703":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[]},"6704":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:17 GMT+0200 (Central Europe Daylight Time)"},"6705":{"varMapping":{"__isSmartRef__":true,"id":6706},"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":6707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6706":{"this":{"__isSmartRef__":true,"id":6636}},"6707":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[]},"6708":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:54:03 GMT+0200 (Central Europe Daylight Time)"},"6709":{"varMapping":{"__isSmartRef__":true,"id":6710},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6710":{"this":{"__isSmartRef__":true,"id":6636}},"6711":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[]},"6712":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:09:57 GMT+0200 (Central Europe Daylight Time)"},"6713":{"varMapping":{"__isSmartRef__":true,"id":6714},"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":6715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6714":{"this":{"__isSmartRef__":true,"id":6636}},"6715":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[]},"6716":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:55 GMT+0200 (Central Europe Daylight Time)"},"6717":{"varMapping":{"__isSmartRef__":true,"id":6718},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6718":{"this":{"__isSmartRef__":true,"id":6636}},"6719":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[]},"6720":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:37 GMT+0200 (Central Europe Daylight Time)"},"6721":{"varMapping":{"__isSmartRef__":true,"id":6722},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6722":{"this":{"__isSmartRef__":true,"id":6636}},"6723":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[]},"6724":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:57 GMT+0200 (Central Europe Daylight Time)"},"6725":{"varMapping":{"__isSmartRef__":true,"id":6726},"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":6727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6726":{"this":{"__isSmartRef__":true,"id":6636}},"6727":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[]},"6728":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:06 GMT+0200 (Central Europe Daylight Time)"},"6729":{"varMapping":{"__isSmartRef__":true,"id":6730},"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":6731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6730":{"this":{"__isSmartRef__":true,"id":6636}},"6731":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[]},"6732":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:04 GMT+0200 (Central Europe Daylight Time)"},"6733":{"varMapping":{"__isSmartRef__":true,"id":6734},"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":6735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6734":{"this":{"__isSmartRef__":true,"id":6636}},"6735":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[]},"6736":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:31:13 GMT+0200 (Central Europe Daylight Time)"},"6737":{"varMapping":{"__isSmartRef__":true,"id":6738},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6738":{"this":{"__isSmartRef__":true,"id":6636}},"6739":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[]},"6740":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:25:25 GMT+0200 (Central Europe Daylight Time)"},"6741":{"varMapping":{"__isSmartRef__":true,"id":6742},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6742":{"this":{"__isSmartRef__":true,"id":6636}},"6743":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[]},"6744":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:28:36 GMT+0200 (Central Europe Daylight Time)"},"6745":{"varMapping":{"__isSmartRef__":true,"id":6746},"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":6747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6746":{"this":{"__isSmartRef__":true,"id":6636}},"6747":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[]},"6748":{"isSerializedDate":true,"string":"Thu May 03 2012 13:28:31 GMT+0200 (Central Europe Daylight Time)"},"6749":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[]},"6750":{"varMapping":{"__isSmartRef__":true,"id":6751},"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":6752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6751":{"this":{"__isSmartRef__":true,"id":6527}},"6752":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"6753":{"varMapping":{"__isSmartRef__":true,"id":6754},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6754":{"this":{"__isSmartRef__":true,"id":6527}},"6755":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"6756":{"varMapping":{"__isSmartRef__":true,"id":6757},"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":6758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6757":{"this":{"__isSmartRef__":true,"id":6527}},"6758":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"6759":{"varMapping":{"__isSmartRef__":true,"id":6760},"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":6765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6760":{"this":{"__isSmartRef__":true,"id":6527},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6761}},"6761":{"$super":{"__isSmartRef__":true,"id":6762}},"6762":{"varMapping":{"__isSmartRef__":true,"id":6763},"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":6764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6763":{"obj":{"__isSmartRef__":true,"id":6527},"name":"onMouseDown"},"6764":{},"6765":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"6766":{"varMapping":{"__isSmartRef__":true,"id":6767},"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":6768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6767":{"this":{"__isSmartRef__":true,"id":6527}},"6768":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"6769":{"varMapping":{"__isSmartRef__":true,"id":6770},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6770":{"this":{"__isSmartRef__":true,"id":6527}},"6771":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"6772":{"varMapping":{"__isSmartRef__":true,"id":6773},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6773":{"this":{"__isSmartRef__":true,"id":6527}},"6774":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"6775":{"varMapping":{"__isSmartRef__":true,"id":6776},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6776":{"this":{"__isSmartRef__":true,"id":6527}},"6777":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"6778":{"varMapping":{"__isSmartRef__":true,"id":6779},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6779":{"this":{"__isSmartRef__":true,"id":6527}},"6780":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"6781":{"varMapping":{"__isSmartRef__":true,"id":6782},"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":6783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6782":{"this":{"__isSmartRef__":true,"id":6527}},"6783":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"6784":{"varMapping":{"__isSmartRef__":true,"id":6785},"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":6786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6785":{"this":{"__isSmartRef__":true,"id":6527}},"6786":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"6787":{"varMapping":{"__isSmartRef__":true,"id":6788},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6788":{"this":{"__isSmartRef__":true,"id":6527}},"6789":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"6790":{"varMapping":{"__isSmartRef__":true,"id":6791},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6791":{"this":{"__isSmartRef__":true,"id":6527}},"6792":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"6793":{"varMapping":{"__isSmartRef__":true,"id":6794},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6794":{"this":{"__isSmartRef__":true,"id":6527}},"6795":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"6796":{"varMapping":{"__isSmartRef__":true,"id":6797},"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":6798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6797":{"this":{"__isSmartRef__":true,"id":6527}},"6798":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"6799":{"varMapping":{"__isSmartRef__":true,"id":6800},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6800":{"this":{"__isSmartRef__":true,"id":6527}},"6801":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"6802":{"varMapping":{"__isSmartRef__":true,"id":6803},"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":6804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6803":{"this":{"__isSmartRef__":true,"id":6527}},"6804":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"6805":{"varMapping":{"__isSmartRef__":true,"id":6806},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6806":{"this":{"__isSmartRef__":true,"id":6527}},"6807":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"6808":{"varMapping":{"__isSmartRef__":true,"id":6809},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6809":{"this":{"__isSmartRef__":true,"id":6527}},"6810":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"6811":{"varMapping":{"__isSmartRef__":true,"id":6812},"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":6813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6812":{"this":{"__isSmartRef__":true,"id":6527}},"6813":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"6814":{"varMapping":{"__isSmartRef__":true,"id":6815},"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":6816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6815":{"this":{"__isSmartRef__":true,"id":6527}},"6816":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"6817":{"varMapping":{"__isSmartRef__":true,"id":6818},"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":6819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6818":{"this":{"__isSmartRef__":true,"id":6527}},"6819":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"6820":{"varMapping":{"__isSmartRef__":true,"id":6821},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6821":{"this":{"__isSmartRef__":true,"id":6527}},"6822":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"6823":{"varMapping":{"__isSmartRef__":true,"id":6824},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6824":{"this":{"__isSmartRef__":true,"id":6527}},"6825":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"6826":{"varMapping":{"__isSmartRef__":true,"id":6827},"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":6828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6827":{"this":{"__isSmartRef__":true,"id":6527}},"6828":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"6829":{"submorphs":[{"__isSmartRef__":true,"id":6830}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6834},"derivationIds":[null],"id":"69B4A2B5-1BD1-49D6-9573-E3F5457DAB14","eventHandler":{"__isSmartRef__":true,"id":6835},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":2,"column":2,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":6830},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[{"__isSmartRef__":true,"id":6422}],"cachedNeightbours":[{"__isSmartRef__":true,"id":6836},{"__isSmartRef__":true,"id":6926},{"__isSmartRef__":true,"id":6266},{"__isSmartRef__":true,"id":7016},{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":10107},{"__isSmartRef__":true,"id":6527},{"__isSmartRef__":true,"id":8491}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10197},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,96.0)"},"6830":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6831},"derivationIds":[null],"id":"30AD2154-5239-4D26-B90A-941D6CCEBD9F","eventHandler":{"__isSmartRef__":true,"id":6832},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6829},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6833},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"6831":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-30ad2154-5239-4d26-b90a-941d6ccebd9f","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"6832":{"morph":{"__isSmartRef__":true,"id":6830},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6833":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"6834":{"_NodeClass":["morph","box"],"_NodeId":"morph-69b4a2b5-1bd1-49d6-9573-e3f5457dab14","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"6835":{"morph":{"__isSmartRef__":true,"id":6829},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6836":{"submorphs":[{"__isSmartRef__":true,"id":6837}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6841},"derivationIds":[null],"id":"CFFFE6E8-2197-4F21-8648-230426BF4B72","eventHandler":{"__isSmartRef__":true,"id":6842},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":1,"column":1,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":6837},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6843},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,48.0)"},"6837":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6838},"derivationIds":[null],"id":"1A37AE90-E291-4DB9-8316-A8CE0D6D34A6","eventHandler":{"__isSmartRef__":true,"id":6839},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6836},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6840},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"6838":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-1a37ae90-e291-4db9-8316-a8ce0d6d34a6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"6839":{"morph":{"__isSmartRef__":true,"id":6837},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6840":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"6841":{"_NodeClass":["morph","box"],"_NodeId":"morph-cfffe6e8-2197-4f21-8648-230426bf4b72","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"6842":{"morph":{"__isSmartRef__":true,"id":6836},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6843":{"setDevStyle":{"__isSmartRef__":true,"id":6844},"setNormalStyle":{"__isSmartRef__":true,"id":6847},"tileSize":{"__isSmartRef__":true,"id":6850},"become":{"__isSmartRef__":true,"id":6853},"onMouseDown":{"__isSmartRef__":true,"id":6856},"setGridPosition":{"__isSmartRef__":true,"id":6863},"toolbox":{"__isSmartRef__":true,"id":6866},"distanceTo":{"__isSmartRef__":true,"id":6869},"tileWasDropped":{"__isSmartRef__":true,"id":6872},"isObstacle":{"__isSmartRef__":true,"id":6875},"neighboursInDirection":{"__isSmartRef__":true,"id":6878},"neighbours":{"__isSmartRef__":true,"id":6881},"zIndex":{"__isSmartRef__":true,"id":6884},"obstacles":{"__isSmartRef__":true,"id":6887},"addObstacle":{"__isSmartRef__":true,"id":6890},"removeObstacle":{"__isSmartRef__":true,"id":6893},"isTile":{"__isSmartRef__":true,"id":6896},"neighbourAt":{"__isSmartRef__":true,"id":6899},"map":{"__isSmartRef__":true,"id":6902},"game":{"__isSmartRef__":true,"id":6905},"reset":{"__isSmartRef__":true,"id":6908},"shallowCopy":{"__isSmartRef__":true,"id":6911},"characters":{"__isSmartRef__":true,"id":6914},"enterTile":{"__isSmartRef__":true,"id":6917},"leaveTile":{"__isSmartRef__":true,"id":6920},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":6923}},"6844":{"varMapping":{"__isSmartRef__":true,"id":6845},"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":6846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6845":{"this":{"__isSmartRef__":true,"id":6836}},"6846":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"6847":{"varMapping":{"__isSmartRef__":true,"id":6848},"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":6849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6848":{"this":{"__isSmartRef__":true,"id":6836}},"6849":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"6850":{"varMapping":{"__isSmartRef__":true,"id":6851},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6851":{"this":{"__isSmartRef__":true,"id":6836}},"6852":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"6853":{"varMapping":{"__isSmartRef__":true,"id":6854},"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":6855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6854":{"this":{"__isSmartRef__":true,"id":6836}},"6855":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"6856":{"varMapping":{"__isSmartRef__":true,"id":6857},"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":6862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6857":{"this":{"__isSmartRef__":true,"id":6836},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6858}},"6858":{"$super":{"__isSmartRef__":true,"id":6859}},"6859":{"varMapping":{"__isSmartRef__":true,"id":6860},"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":6861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6860":{"obj":{"__isSmartRef__":true,"id":6836},"name":"onMouseDown"},"6861":{},"6862":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"6863":{"varMapping":{"__isSmartRef__":true,"id":6864},"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":6865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6864":{"this":{"__isSmartRef__":true,"id":6836}},"6865":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"6866":{"varMapping":{"__isSmartRef__":true,"id":6867},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6867":{"this":{"__isSmartRef__":true,"id":6836}},"6868":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"6869":{"varMapping":{"__isSmartRef__":true,"id":6870},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6870":{"this":{"__isSmartRef__":true,"id":6836}},"6871":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"6872":{"varMapping":{"__isSmartRef__":true,"id":6873},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6873":{"this":{"__isSmartRef__":true,"id":6836}},"6874":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"6875":{"varMapping":{"__isSmartRef__":true,"id":6876},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6876":{"this":{"__isSmartRef__":true,"id":6836}},"6877":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"6878":{"varMapping":{"__isSmartRef__":true,"id":6879},"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":6880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6879":{"this":{"__isSmartRef__":true,"id":6836}},"6880":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"6881":{"varMapping":{"__isSmartRef__":true,"id":6882},"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":6883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6882":{"this":{"__isSmartRef__":true,"id":6836}},"6883":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"6884":{"varMapping":{"__isSmartRef__":true,"id":6885},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6885":{"this":{"__isSmartRef__":true,"id":6836}},"6886":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"6887":{"varMapping":{"__isSmartRef__":true,"id":6888},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6888":{"this":{"__isSmartRef__":true,"id":6836}},"6889":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"6890":{"varMapping":{"__isSmartRef__":true,"id":6891},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6891":{"this":{"__isSmartRef__":true,"id":6836}},"6892":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"6893":{"varMapping":{"__isSmartRef__":true,"id":6894},"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":6895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6894":{"this":{"__isSmartRef__":true,"id":6836}},"6895":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"6896":{"varMapping":{"__isSmartRef__":true,"id":6897},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6897":{"this":{"__isSmartRef__":true,"id":6836}},"6898":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"6899":{"varMapping":{"__isSmartRef__":true,"id":6900},"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":6901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6900":{"this":{"__isSmartRef__":true,"id":6836}},"6901":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"6902":{"varMapping":{"__isSmartRef__":true,"id":6903},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6903":{"this":{"__isSmartRef__":true,"id":6836}},"6904":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"6905":{"varMapping":{"__isSmartRef__":true,"id":6906},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6906":{"this":{"__isSmartRef__":true,"id":6836}},"6907":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"6908":{"varMapping":{"__isSmartRef__":true,"id":6909},"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":6910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6909":{"this":{"__isSmartRef__":true,"id":6836}},"6910":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"6911":{"varMapping":{"__isSmartRef__":true,"id":6912},"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":6913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6912":{"this":{"__isSmartRef__":true,"id":6836}},"6913":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"6914":{"varMapping":{"__isSmartRef__":true,"id":6915},"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":6916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6915":{"this":{"__isSmartRef__":true,"id":6836}},"6916":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"6917":{"varMapping":{"__isSmartRef__":true,"id":6918},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6918":{"this":{"__isSmartRef__":true,"id":6836}},"6919":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"6920":{"varMapping":{"__isSmartRef__":true,"id":6921},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6921":{"this":{"__isSmartRef__":true,"id":6836}},"6922":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"6923":{"varMapping":{"__isSmartRef__":true,"id":6924},"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":6925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6924":{"this":{"__isSmartRef__":true,"id":6836}},"6925":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"6926":{"submorphs":[{"__isSmartRef__":true,"id":6927}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6931},"derivationIds":[null],"id":"BB078203-0F42-43A1-86F4-F5F0377FEE89","eventHandler":{"__isSmartRef__":true,"id":6932},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":1,"column":2,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":6927},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6933},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,48.0)"},"6927":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6928},"derivationIds":[null],"id":"F664E809-E169-4725-BA87-FBBACF347BA1","eventHandler":{"__isSmartRef__":true,"id":6929},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6926},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6930},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"6928":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-f664e809-e169-4725-ba87-fbbacf347ba1","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"6929":{"morph":{"__isSmartRef__":true,"id":6927},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6930":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"6931":{"_NodeClass":["morph","box"],"_NodeId":"morph-bb078203-0f42-43a1-86f4-f5f0377fee89","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"6932":{"morph":{"__isSmartRef__":true,"id":6926},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6933":{"setDevStyle":{"__isSmartRef__":true,"id":6934},"setNormalStyle":{"__isSmartRef__":true,"id":6937},"tileSize":{"__isSmartRef__":true,"id":6940},"become":{"__isSmartRef__":true,"id":6943},"onMouseDown":{"__isSmartRef__":true,"id":6946},"setGridPosition":{"__isSmartRef__":true,"id":6953},"toolbox":{"__isSmartRef__":true,"id":6956},"distanceTo":{"__isSmartRef__":true,"id":6959},"tileWasDropped":{"__isSmartRef__":true,"id":6962},"isObstacle":{"__isSmartRef__":true,"id":6965},"neighboursInDirection":{"__isSmartRef__":true,"id":6968},"neighbours":{"__isSmartRef__":true,"id":6971},"zIndex":{"__isSmartRef__":true,"id":6974},"obstacles":{"__isSmartRef__":true,"id":6977},"addObstacle":{"__isSmartRef__":true,"id":6980},"removeObstacle":{"__isSmartRef__":true,"id":6983},"isTile":{"__isSmartRef__":true,"id":6986},"neighbourAt":{"__isSmartRef__":true,"id":6989},"map":{"__isSmartRef__":true,"id":6992},"game":{"__isSmartRef__":true,"id":6995},"reset":{"__isSmartRef__":true,"id":6998},"shallowCopy":{"__isSmartRef__":true,"id":7001},"characters":{"__isSmartRef__":true,"id":7004},"enterTile":{"__isSmartRef__":true,"id":7007},"leaveTile":{"__isSmartRef__":true,"id":7010},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":7013}},"6934":{"varMapping":{"__isSmartRef__":true,"id":6935},"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":6936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6935":{"this":{"__isSmartRef__":true,"id":6926}},"6936":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"6937":{"varMapping":{"__isSmartRef__":true,"id":6938},"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":6939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6938":{"this":{"__isSmartRef__":true,"id":6926}},"6939":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"6940":{"varMapping":{"__isSmartRef__":true,"id":6941},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6941":{"this":{"__isSmartRef__":true,"id":6926}},"6942":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"6943":{"varMapping":{"__isSmartRef__":true,"id":6944},"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":6945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6944":{"this":{"__isSmartRef__":true,"id":6926}},"6945":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"6946":{"varMapping":{"__isSmartRef__":true,"id":6947},"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":6952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6947":{"this":{"__isSmartRef__":true,"id":6926},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6948}},"6948":{"$super":{"__isSmartRef__":true,"id":6949}},"6949":{"varMapping":{"__isSmartRef__":true,"id":6950},"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":6951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6950":{"obj":{"__isSmartRef__":true,"id":6926},"name":"onMouseDown"},"6951":{},"6952":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"6953":{"varMapping":{"__isSmartRef__":true,"id":6954},"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":6955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6954":{"this":{"__isSmartRef__":true,"id":6926}},"6955":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"6956":{"varMapping":{"__isSmartRef__":true,"id":6957},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6957":{"this":{"__isSmartRef__":true,"id":6926}},"6958":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"6959":{"varMapping":{"__isSmartRef__":true,"id":6960},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6960":{"this":{"__isSmartRef__":true,"id":6926}},"6961":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"6962":{"varMapping":{"__isSmartRef__":true,"id":6963},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6963":{"this":{"__isSmartRef__":true,"id":6926}},"6964":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"6965":{"varMapping":{"__isSmartRef__":true,"id":6966},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6966":{"this":{"__isSmartRef__":true,"id":6926}},"6967":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"6968":{"varMapping":{"__isSmartRef__":true,"id":6969},"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":6970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6969":{"this":{"__isSmartRef__":true,"id":6926}},"6970":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"6971":{"varMapping":{"__isSmartRef__":true,"id":6972},"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":6973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6972":{"this":{"__isSmartRef__":true,"id":6926}},"6973":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"6974":{"varMapping":{"__isSmartRef__":true,"id":6975},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6975":{"this":{"__isSmartRef__":true,"id":6926}},"6976":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"6977":{"varMapping":{"__isSmartRef__":true,"id":6978},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6978":{"this":{"__isSmartRef__":true,"id":6926}},"6979":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"6980":{"varMapping":{"__isSmartRef__":true,"id":6981},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6981":{"this":{"__isSmartRef__":true,"id":6926}},"6982":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"6983":{"varMapping":{"__isSmartRef__":true,"id":6984},"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":6985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6984":{"this":{"__isSmartRef__":true,"id":6926}},"6985":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"6986":{"varMapping":{"__isSmartRef__":true,"id":6987},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6987":{"this":{"__isSmartRef__":true,"id":6926}},"6988":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"6989":{"varMapping":{"__isSmartRef__":true,"id":6990},"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":6991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6990":{"this":{"__isSmartRef__":true,"id":6926}},"6991":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"6992":{"varMapping":{"__isSmartRef__":true,"id":6993},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6993":{"this":{"__isSmartRef__":true,"id":6926}},"6994":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"6995":{"varMapping":{"__isSmartRef__":true,"id":6996},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6996":{"this":{"__isSmartRef__":true,"id":6926}},"6997":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"6998":{"varMapping":{"__isSmartRef__":true,"id":6999},"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":7000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6999":{"this":{"__isSmartRef__":true,"id":6926}},"7000":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"7001":{"varMapping":{"__isSmartRef__":true,"id":7002},"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":7003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7002":{"this":{"__isSmartRef__":true,"id":6926}},"7003":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"7004":{"varMapping":{"__isSmartRef__":true,"id":7005},"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":7006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7005":{"this":{"__isSmartRef__":true,"id":6926}},"7006":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"7007":{"varMapping":{"__isSmartRef__":true,"id":7008},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7008":{"this":{"__isSmartRef__":true,"id":6926}},"7009":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"7010":{"varMapping":{"__isSmartRef__":true,"id":7011},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7011":{"this":{"__isSmartRef__":true,"id":6926}},"7012":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"7013":{"varMapping":{"__isSmartRef__":true,"id":7014},"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":7015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7014":{"this":{"__isSmartRef__":true,"id":6926}},"7015":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"7016":{"submorphs":[{"__isSmartRef__":true,"id":7017}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7021},"derivationIds":[null],"id":"F93FC47D-D2ED-4865-87BC-14EC868006F2","eventHandler":{"__isSmartRef__":true,"id":7022},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":2,"column":1,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":7017},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7023},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,96.0)"},"7017":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7018},"derivationIds":[null],"id":"BF8EF628-F328-484E-8719-B1B8066DE663","eventHandler":{"__isSmartRef__":true,"id":7019},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7016},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7020},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"7018":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-bf8ef628-f328-484e-8719-b1b8066de663","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"7019":{"morph":{"__isSmartRef__":true,"id":7017},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7020":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"7021":{"_NodeClass":["morph","box"],"_NodeId":"morph-f93fc47d-d2ed-4865-87bc-14ec868006f2","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"7022":{"morph":{"__isSmartRef__":true,"id":7016},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7023":{"setDevStyle":{"__isSmartRef__":true,"id":7024},"setNormalStyle":{"__isSmartRef__":true,"id":7027},"tileSize":{"__isSmartRef__":true,"id":7030},"become":{"__isSmartRef__":true,"id":7033},"onMouseDown":{"__isSmartRef__":true,"id":7036},"setGridPosition":{"__isSmartRef__":true,"id":7043},"toolbox":{"__isSmartRef__":true,"id":7046},"distanceTo":{"__isSmartRef__":true,"id":7049},"tileWasDropped":{"__isSmartRef__":true,"id":7052},"isObstacle":{"__isSmartRef__":true,"id":7055},"neighboursInDirection":{"__isSmartRef__":true,"id":7058},"neighbours":{"__isSmartRef__":true,"id":7061},"zIndex":{"__isSmartRef__":true,"id":7064},"obstacles":{"__isSmartRef__":true,"id":7067},"addObstacle":{"__isSmartRef__":true,"id":7070},"removeObstacle":{"__isSmartRef__":true,"id":7073},"isTile":{"__isSmartRef__":true,"id":7076},"neighbourAt":{"__isSmartRef__":true,"id":7079},"map":{"__isSmartRef__":true,"id":7082},"game":{"__isSmartRef__":true,"id":7085},"reset":{"__isSmartRef__":true,"id":7088},"shallowCopy":{"__isSmartRef__":true,"id":7091},"characters":{"__isSmartRef__":true,"id":7094},"enterTile":{"__isSmartRef__":true,"id":7097},"leaveTile":{"__isSmartRef__":true,"id":7100},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":7103}},"7024":{"varMapping":{"__isSmartRef__":true,"id":7025},"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":7026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7025":{"this":{"__isSmartRef__":true,"id":7016}},"7026":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"7027":{"varMapping":{"__isSmartRef__":true,"id":7028},"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":7029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7028":{"this":{"__isSmartRef__":true,"id":7016}},"7029":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"7030":{"varMapping":{"__isSmartRef__":true,"id":7031},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":7032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7031":{"this":{"__isSmartRef__":true,"id":7016}},"7032":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"7033":{"varMapping":{"__isSmartRef__":true,"id":7034},"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":7035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7034":{"this":{"__isSmartRef__":true,"id":7016}},"7035":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"7036":{"varMapping":{"__isSmartRef__":true,"id":7037},"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":7042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7037":{"this":{"__isSmartRef__":true,"id":7016},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7038}},"7038":{"$super":{"__isSmartRef__":true,"id":7039}},"7039":{"varMapping":{"__isSmartRef__":true,"id":7040},"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":7041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7040":{"obj":{"__isSmartRef__":true,"id":7016},"name":"onMouseDown"},"7041":{},"7042":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"7043":{"varMapping":{"__isSmartRef__":true,"id":7044},"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":7045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7044":{"this":{"__isSmartRef__":true,"id":7016}},"7045":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"7046":{"varMapping":{"__isSmartRef__":true,"id":7047},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7047":{"this":{"__isSmartRef__":true,"id":7016}},"7048":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"7049":{"varMapping":{"__isSmartRef__":true,"id":7050},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":7051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7050":{"this":{"__isSmartRef__":true,"id":7016}},"7051":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"7052":{"varMapping":{"__isSmartRef__":true,"id":7053},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":7054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7053":{"this":{"__isSmartRef__":true,"id":7016}},"7054":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"7055":{"varMapping":{"__isSmartRef__":true,"id":7056},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":7057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7056":{"this":{"__isSmartRef__":true,"id":7016}},"7057":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"7058":{"varMapping":{"__isSmartRef__":true,"id":7059},"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":7060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7059":{"this":{"__isSmartRef__":true,"id":7016}},"7060":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"7061":{"varMapping":{"__isSmartRef__":true,"id":7062},"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":7063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7062":{"this":{"__isSmartRef__":true,"id":7016}},"7063":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"7064":{"varMapping":{"__isSmartRef__":true,"id":7065},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":7066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7065":{"this":{"__isSmartRef__":true,"id":7016}},"7066":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"7067":{"varMapping":{"__isSmartRef__":true,"id":7068},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":7069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7068":{"this":{"__isSmartRef__":true,"id":7016}},"7069":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"7070":{"varMapping":{"__isSmartRef__":true,"id":7071},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7071":{"this":{"__isSmartRef__":true,"id":7016}},"7072":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"7073":{"varMapping":{"__isSmartRef__":true,"id":7074},"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":7075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7074":{"this":{"__isSmartRef__":true,"id":7016}},"7075":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"7076":{"varMapping":{"__isSmartRef__":true,"id":7077},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":7078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7077":{"this":{"__isSmartRef__":true,"id":7016}},"7078":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"7079":{"varMapping":{"__isSmartRef__":true,"id":7080},"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":7081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7080":{"this":{"__isSmartRef__":true,"id":7016}},"7081":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"7082":{"varMapping":{"__isSmartRef__":true,"id":7083},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":7084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7083":{"this":{"__isSmartRef__":true,"id":7016}},"7084":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"7085":{"varMapping":{"__isSmartRef__":true,"id":7086},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":7087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7086":{"this":{"__isSmartRef__":true,"id":7016}},"7087":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"7088":{"varMapping":{"__isSmartRef__":true,"id":7089},"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":7090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7089":{"this":{"__isSmartRef__":true,"id":7016}},"7090":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"7091":{"varMapping":{"__isSmartRef__":true,"id":7092},"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":7093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7092":{"this":{"__isSmartRef__":true,"id":7016}},"7093":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"7094":{"varMapping":{"__isSmartRef__":true,"id":7095},"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":7096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7095":{"this":{"__isSmartRef__":true,"id":7016}},"7096":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"7097":{"varMapping":{"__isSmartRef__":true,"id":7098},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7098":{"this":{"__isSmartRef__":true,"id":7016}},"7099":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"7100":{"varMapping":{"__isSmartRef__":true,"id":7101},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7101":{"this":{"__isSmartRef__":true,"id":7016}},"7102":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"7103":{"varMapping":{"__isSmartRef__":true,"id":7104},"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":7105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7104":{"this":{"__isSmartRef__":true,"id":7016}},"7105":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"7106":{"submorphs":[{"__isSmartRef__":true,"id":7107}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7111},"derivationIds":[null],"id":"6CEAB00E-DE20-40DC-A28C-6D53DFB960D7","eventHandler":{"__isSmartRef__":true,"id":7112},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":2,"column":3,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":7107},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6926},{"__isSmartRef__":true,"id":6266},{"__isSmartRef__":true,"id":7113},{"__isSmartRef__":true,"id":6829},{"__isSmartRef__":true,"id":8394},{"__isSmartRef__":true,"id":6527},{"__isSmartRef__":true,"id":8491},{"__isSmartRef__":true,"id":8498}],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10024},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,96.0)"},"7107":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7108},"derivationIds":[null],"id":"DED3192E-B20E-4E02-99F4-74EE5976832E","eventHandler":{"__isSmartRef__":true,"id":7109},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7106},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7110},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"7108":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-ded3192e-b20e-4e02-99f4-74ee5976832e","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"7109":{"morph":{"__isSmartRef__":true,"id":7107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7110":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"7111":{"_NodeClass":["morph","box"],"_NodeId":"morph-6ceab00e-de20-40dc-a28c-6d53dfb960d7","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"7112":{"morph":{"__isSmartRef__":true,"id":7106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7113":{"submorphs":[{"__isSmartRef__":true,"id":7114}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7118},"derivationIds":[null],"id":"ECFDAC44-2745-46CE-9CCD-2E7D549D70D9","eventHandler":{"__isSmartRef__":true,"id":7119},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":1,"column":4,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":7114},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":7120},{"__isSmartRef__":true,"id":7217},{"__isSmartRef__":true,"id":7224},{"__isSmartRef__":true,"id":6266},{"__isSmartRef__":true,"id":8138},{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":8394},{"__isSmartRef__":true,"id":8401}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9941},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,48.0)"},"7114":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7115},"derivationIds":[null],"id":"D78998B4-05BD-444C-95FB-A3562F4C2C07","eventHandler":{"__isSmartRef__":true,"id":7116},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7113},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7117},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"7115":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-d78998b4-05bd-444c-95fb-a3562f4c2c07","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"7116":{"morph":{"__isSmartRef__":true,"id":7114},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7117":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"7118":{"_NodeClass":["morph","box"],"_NodeId":"morph-ecfdac44-2745-46ce-9ccd-2e7d549d70d9","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"7119":{"morph":{"__isSmartRef__":true,"id":7113},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7120":{"submorphs":[{"__isSmartRef__":true,"id":7121}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7125},"derivationIds":[null],"id":"5AC8DA69-7FE6-4F30-8C22-FC66ADDC33F9","eventHandler":{"__isSmartRef__":true,"id":7126},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":0,"column":3,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":7121},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":7127},{"__isSmartRef__":true,"id":7217},{"__isSmartRef__":true,"id":6926},{"__isSmartRef__":true,"id":6266},{"__isSmartRef__":true,"id":7113}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8311},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,0.0)"},"7121":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7122},"derivationIds":[null],"id":"12EE9F6C-4EB9-4039-8FA9-8762418DD044","eventHandler":{"__isSmartRef__":true,"id":7123},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7120},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7124},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"7122":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-12ee9f6c-4eb9-4039-8fa9-8762418dd044","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"7123":{"morph":{"__isSmartRef__":true,"id":7121},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7124":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"7125":{"_NodeClass":["morph","box"],"_NodeId":"morph-5ac8da69-7fe6-4f30-8c22-fc66addc33f9","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"7126":{"morph":{"__isSmartRef__":true,"id":7120},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7127":{"submorphs":[{"__isSmartRef__":true,"id":7128}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7132},"derivationIds":[null],"id":"3C653211-4300-4407-B93A-ED220E2B15FD","eventHandler":{"__isSmartRef__":true,"id":7133},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":0,"column":2,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":7128},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7134},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,0.0)"},"7128":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7129},"derivationIds":[null],"id":"8302677C-7681-4357-B123-9C003D80E84D","eventHandler":{"__isSmartRef__":true,"id":7130},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7127},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7131},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"7129":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-8302677c-7681-4357-b123-9c003d80e84d","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"7130":{"morph":{"__isSmartRef__":true,"id":7128},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7131":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"7132":{"_NodeClass":["morph","box"],"_NodeId":"morph-3c653211-4300-4407-b93a-ed220e2b15fd","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"7133":{"morph":{"__isSmartRef__":true,"id":7127},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7134":{"setDevStyle":{"__isSmartRef__":true,"id":7135},"setNormalStyle":{"__isSmartRef__":true,"id":7138},"tileSize":{"__isSmartRef__":true,"id":7141},"become":{"__isSmartRef__":true,"id":7144},"onMouseDown":{"__isSmartRef__":true,"id":7147},"setGridPosition":{"__isSmartRef__":true,"id":7154},"toolbox":{"__isSmartRef__":true,"id":7157},"distanceTo":{"__isSmartRef__":true,"id":7160},"tileWasDropped":{"__isSmartRef__":true,"id":7163},"isObstacle":{"__isSmartRef__":true,"id":7166},"neighboursInDirection":{"__isSmartRef__":true,"id":7169},"neighbours":{"__isSmartRef__":true,"id":7172},"zIndex":{"__isSmartRef__":true,"id":7175},"obstacles":{"__isSmartRef__":true,"id":7178},"addObstacle":{"__isSmartRef__":true,"id":7181},"removeObstacle":{"__isSmartRef__":true,"id":7184},"isTile":{"__isSmartRef__":true,"id":7187},"neighbourAt":{"__isSmartRef__":true,"id":7190},"map":{"__isSmartRef__":true,"id":7193},"game":{"__isSmartRef__":true,"id":7196},"reset":{"__isSmartRef__":true,"id":7199},"shallowCopy":{"__isSmartRef__":true,"id":7202},"characters":{"__isSmartRef__":true,"id":7205},"enterTile":{"__isSmartRef__":true,"id":7208},"leaveTile":{"__isSmartRef__":true,"id":7211},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":7214}},"7135":{"varMapping":{"__isSmartRef__":true,"id":7136},"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":7137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7136":{"this":{"__isSmartRef__":true,"id":7127}},"7137":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"7138":{"varMapping":{"__isSmartRef__":true,"id":7139},"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":7140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7139":{"this":{"__isSmartRef__":true,"id":7127}},"7140":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"7141":{"varMapping":{"__isSmartRef__":true,"id":7142},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":7143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7142":{"this":{"__isSmartRef__":true,"id":7127}},"7143":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"7144":{"varMapping":{"__isSmartRef__":true,"id":7145},"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":7146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7145":{"this":{"__isSmartRef__":true,"id":7127}},"7146":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"7147":{"varMapping":{"__isSmartRef__":true,"id":7148},"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":7153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7148":{"this":{"__isSmartRef__":true,"id":7127},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7149}},"7149":{"$super":{"__isSmartRef__":true,"id":7150}},"7150":{"varMapping":{"__isSmartRef__":true,"id":7151},"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":7152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7151":{"obj":{"__isSmartRef__":true,"id":7127},"name":"onMouseDown"},"7152":{},"7153":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"7154":{"varMapping":{"__isSmartRef__":true,"id":7155},"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":7156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7155":{"this":{"__isSmartRef__":true,"id":7127}},"7156":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"7157":{"varMapping":{"__isSmartRef__":true,"id":7158},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7158":{"this":{"__isSmartRef__":true,"id":7127}},"7159":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"7160":{"varMapping":{"__isSmartRef__":true,"id":7161},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":7162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7161":{"this":{"__isSmartRef__":true,"id":7127}},"7162":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"7163":{"varMapping":{"__isSmartRef__":true,"id":7164},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":7165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7164":{"this":{"__isSmartRef__":true,"id":7127}},"7165":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"7166":{"varMapping":{"__isSmartRef__":true,"id":7167},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":7168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7167":{"this":{"__isSmartRef__":true,"id":7127}},"7168":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"7169":{"varMapping":{"__isSmartRef__":true,"id":7170},"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":7171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7170":{"this":{"__isSmartRef__":true,"id":7127}},"7171":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"7172":{"varMapping":{"__isSmartRef__":true,"id":7173},"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":7174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7173":{"this":{"__isSmartRef__":true,"id":7127}},"7174":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"7175":{"varMapping":{"__isSmartRef__":true,"id":7176},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":7177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7176":{"this":{"__isSmartRef__":true,"id":7127}},"7177":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"7178":{"varMapping":{"__isSmartRef__":true,"id":7179},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":7180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7179":{"this":{"__isSmartRef__":true,"id":7127}},"7180":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"7181":{"varMapping":{"__isSmartRef__":true,"id":7182},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7182":{"this":{"__isSmartRef__":true,"id":7127}},"7183":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"7184":{"varMapping":{"__isSmartRef__":true,"id":7185},"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":7186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7185":{"this":{"__isSmartRef__":true,"id":7127}},"7186":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"7187":{"varMapping":{"__isSmartRef__":true,"id":7188},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":7189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7188":{"this":{"__isSmartRef__":true,"id":7127}},"7189":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"7190":{"varMapping":{"__isSmartRef__":true,"id":7191},"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":7192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7191":{"this":{"__isSmartRef__":true,"id":7127}},"7192":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"7193":{"varMapping":{"__isSmartRef__":true,"id":7194},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":7195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7194":{"this":{"__isSmartRef__":true,"id":7127}},"7195":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"7196":{"varMapping":{"__isSmartRef__":true,"id":7197},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":7198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7197":{"this":{"__isSmartRef__":true,"id":7127}},"7198":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"7199":{"varMapping":{"__isSmartRef__":true,"id":7200},"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":7201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7200":{"this":{"__isSmartRef__":true,"id":7127}},"7201":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"7202":{"varMapping":{"__isSmartRef__":true,"id":7203},"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":7204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7203":{"this":{"__isSmartRef__":true,"id":7127}},"7204":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"7205":{"varMapping":{"__isSmartRef__":true,"id":7206},"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":7207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7206":{"this":{"__isSmartRef__":true,"id":7127}},"7207":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"7208":{"varMapping":{"__isSmartRef__":true,"id":7209},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7209":{"this":{"__isSmartRef__":true,"id":7127}},"7210":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"7211":{"varMapping":{"__isSmartRef__":true,"id":7212},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7212":{"this":{"__isSmartRef__":true,"id":7127}},"7213":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"7214":{"varMapping":{"__isSmartRef__":true,"id":7215},"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":7216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7215":{"this":{"__isSmartRef__":true,"id":7127}},"7216":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"7217":{"submorphs":[{"__isSmartRef__":true,"id":7218}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7222},"derivationIds":[null],"id":"B04F2680-BA94-4094-9A59-497A9EA1B1C1","eventHandler":{"__isSmartRef__":true,"id":7223},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":0,"column":4,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":7218},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":7120},{"__isSmartRef__":true,"id":7224},{"__isSmartRef__":true,"id":6266},{"__isSmartRef__":true,"id":7113},{"__isSmartRef__":true,"id":8138}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8228},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,0.0)"},"7218":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7219},"derivationIds":[null],"id":"62A7337D-3A84-4285-8F8A-591110C14DFF","eventHandler":{"__isSmartRef__":true,"id":7220},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7217},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7221},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"7219":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-62a7337d-3a84-4285-8f8a-591110c14dff","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"7220":{"morph":{"__isSmartRef__":true,"id":7218},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7221":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"7222":{"_NodeClass":["morph","box"],"_NodeId":"morph-b04f2680-ba94-4094-9a59-497a9ea1b1c1","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"7223":{"morph":{"__isSmartRef__":true,"id":7217},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7224":{"submorphs":[{"__isSmartRef__":true,"id":7225}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7229},"derivationIds":[null],"id":"AC091E63-A5ED-4E0E-BA1E-C0173AA8FC8B","eventHandler":{"__isSmartRef__":true,"id":7230},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":0,"column":5,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":7225},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[{"__isSmartRef__":true,"id":7231}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8055},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,0.0)"},"7225":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7226},"derivationIds":[null],"id":"C9836B3D-9080-4A37-A696-3E999682D9D6","eventHandler":{"__isSmartRef__":true,"id":7227},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7224},"__serializedExpressions__":["_Position"],"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7228},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"7226":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-c9836b3d-9080-4a37-a696-3e999682d9d6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"7227":{"morph":{"__isSmartRef__":true,"id":7225},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7228":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"7229":{"_NodeClass":["morph","box"],"_NodeId":"morph-ac091e63-a5ed-4e0e-ba1e-c0173aa8fc8b","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"7230":{"morph":{"__isSmartRef__":true,"id":7224},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7231":{"submorphs":[{"__isSmartRef__":true,"id":7232},{"__isSmartRef__":true,"id":7280},{"__isSmartRef__":true,"id":7340}],"scripts":[{"__isSmartRef__":true,"id":7359},{"__isSmartRef__":true,"id":7361}],"shape":{"__isSmartRef__":true,"id":7362},"derivationIds":[null],"id":"55B3D416-2247-4EDE-9674-F2C4D50E543F","eventHandler":{"__isSmartRef__":true,"id":7363},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":7364},"lifeBar":{"__isSmartRef__":true,"id":7232},"deathAnimation":{"__isSmartRef__":true,"id":7280},"owner":{"__isSmartRef__":true,"id":6414},"character":{"__isSmartRef__":true,"id":7340},"animateScript":{"__isSmartRef__":true,"id":7359},"lastSpeedTimestamp":1340705333313,"walkScript":{"__isSmartRef__":true,"id":7361},"isBusy":true,"__serializedExpressions__":["_Position","direction"],"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7583},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,0.0)","direction":"lively.pt(0.0,1.0)"},"7232":{"submorphs":[],"scripts":[],"id":"9A24B61E-6D88-4A9D-86F1-D14A0B0DA4E2","shape":{"__isSmartRef__":true,"id":7233},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LifeBar1","partsBinMetaInfo":{"__isSmartRef__":true,"id":7234},"eventHandler":{"__isSmartRef__":true,"id":7249},"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","8872CA7B-AEBD-45E8-8D7A-8C16B7073561"],"partTests":{"__isSmartRef__":true,"id":7250},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","character":{"__isSmartRef__":true,"id":7231},"owner":{"__isSmartRef__":true,"id":7231},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7255},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,-13.0)"},"7233":{"_BorderWidth":1,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,8.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(151,255,0)","_Padding":"lively.rect(0,0,0,0)"},"7234":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":7235},{"__isSmartRef__":true,"id":7237},{"__isSmartRef__":true,"id":7239},{"__isSmartRef__":true,"id":7241},{"__isSmartRef__":true,"id":7243},{"__isSmartRef__":true,"id":7245},{"__isSmartRef__":true,"id":7247}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7235":{"date":{"__isSmartRef__":true,"id":7236},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7236":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"7237":{"date":{"__isSmartRef__":true,"id":7238},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7238":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"7239":{"date":{"__isSmartRef__":true,"id":7240},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7240":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"7241":{"date":{"__isSmartRef__":true,"id":7242},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7242":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"7243":{"date":{"__isSmartRef__":true,"id":7244},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"7244":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"7245":{"date":{"__isSmartRef__":true,"id":7246},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"7246":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"7247":{"date":{"__isSmartRef__":true,"id":7248},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"7248":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (Central Europe Daylight Time)"},"7249":{"morph":{"__isSmartRef__":true,"id":7232},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7250":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7251}},"7251":{"test01IsMorph":{"__isSmartRef__":true,"id":7252}},"7252":{"varMapping":{"__isSmartRef__":true,"id":7253},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7253":{"this":{"__isSmartRef__":true,"id":7250}},"7254":{},"7255":{"setColorForWidth":{"__isSmartRef__":true,"id":7256},"reset":{"__isSmartRef__":true,"id":7260},"hit":{"__isSmartRef__":true,"id":7264},"extent":{"__isSmartRef__":true,"id":7268},"isDead":{"__isSmartRef__":true,"id":7272},"lifeLoss":{"__isSmartRef__":true,"id":7276},"heal":{"__isSmartRef__":true,"id":7260}},"7256":{"varMapping":{"__isSmartRef__":true,"id":7257},"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":7258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7257":{"this":{"__isSmartRef__":true,"id":7232}},"7258":{"timestamp":{"__isSmartRef__":true,"id":7259},"user":"timfelgentreff","tags":[]},"7259":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (Central Europe Daylight Time)"},"7260":{"varMapping":{"__isSmartRef__":true,"id":7261},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":7262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7261":{"this":{"__isSmartRef__":true,"id":7232}},"7262":{"timestamp":{"__isSmartRef__":true,"id":7263},"user":"timfelgentreff","tags":[]},"7263":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (Central Europe Daylight Time)"},"7264":{"varMapping":{"__isSmartRef__":true,"id":7265},"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":7266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7265":{"this":{"__isSmartRef__":true,"id":7232}},"7266":{"timestamp":{"__isSmartRef__":true,"id":7267},"user":"timfelgentreff","tags":[]},"7267":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (Central Europe Daylight Time)"},"7268":{"varMapping":{"__isSmartRef__":true,"id":7269},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":7270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7269":{"this":{"__isSmartRef__":true,"id":7232}},"7270":{"timestamp":{"__isSmartRef__":true,"id":7271},"user":"timfelgentreff","tags":[]},"7271":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (Central Europe Daylight Time)"},"7272":{"varMapping":{"__isSmartRef__":true,"id":7273},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":7274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7273":{"this":{"__isSmartRef__":true,"id":7232}},"7274":{"timestamp":{"__isSmartRef__":true,"id":7275},"user":"timfelgentreff","tags":[]},"7275":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (Central Europe Daylight Time)"},"7276":{"varMapping":{"__isSmartRef__":true,"id":7277},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":7278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7277":{"this":{"__isSmartRef__":true,"id":7232}},"7278":{"timestamp":{"__isSmartRef__":true,"id":7279},"user":"timfelgentreff","tags":[]},"7279":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (Central Europe Daylight Time)"},"7280":{"submorphs":[{"__isSmartRef__":true,"id":7281}],"scripts":[],"id":"8E5118A7-B35F-46CB-9C7C-DB8D1B645CA2","shape":{"__isSmartRef__":true,"id":7304},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"DeathAnimation1","partsBinMetaInfo":{"__isSmartRef__":true,"id":7305},"eventHandler":{"__isSmartRef__":true,"id":7318},"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","DC6AF031-4E21-4076-ABC3-9D13F29725A5"],"partTests":{"__isSmartRef__":true,"id":7319},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":7281},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","character":{"__isSmartRef__":true,"id":7231},"owner":{"__isSmartRef__":true,"id":7231},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7324},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"7281":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7282},"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","DD557BF7-D160-41F2-92B9-E07260DA4032"],"id":"C8699DF5-EA6E-495E-BAED-038997928D92","eventHandler":{"__isSmartRef__":true,"id":7283},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":7284},"moved":true,"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":7280},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7299},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"7282":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"7283":{"morph":{"__isSmartRef__":true,"id":7281},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7284":{"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":7285},{"__isSmartRef__":true,"id":7287},{"__isSmartRef__":true,"id":7289},{"__isSmartRef__":true,"id":7291},{"__isSmartRef__":true,"id":7293},{"__isSmartRef__":true,"id":7295},{"__isSmartRef__":true,"id":7297}],"migrationLevel":4,"revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7285":{"date":{"__isSmartRef__":true,"id":7286},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"7286":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"7287":{"date":{"__isSmartRef__":true,"id":7288},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"7288":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"7289":{"date":{"__isSmartRef__":true,"id":7290},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"7290":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"7291":{"date":{"__isSmartRef__":true,"id":7292},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"7292":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"7293":{"date":{"__isSmartRef__":true,"id":7294},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"7294":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"7295":{"date":{"__isSmartRef__":true,"id":7296},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"7296":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"7297":{"date":{"__isSmartRef__":true,"id":7298},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"7298":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"7299":{"soliloquize":{"__isSmartRef__":true,"id":7300}},"7300":{"varMapping":{"__isSmartRef__":true,"id":7301},"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":7302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7301":{"this":{"__isSmartRef__":true,"id":7281}},"7302":{"timestamp":{"__isSmartRef__":true,"id":7303},"user":"lauritz","tags":[]},"7303":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"7304":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"7305":{"partsSpaceName":"PartsBin/Basic","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":7306},{"__isSmartRef__":true,"id":7308},{"__isSmartRef__":true,"id":7310},{"__isSmartRef__":true,"id":7312},{"__isSmartRef__":true,"id":7314},{"__isSmartRef__":true,"id":7316}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7306":{"date":{"__isSmartRef__":true,"id":7307},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7307":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"7308":{"date":{"__isSmartRef__":true,"id":7309},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7309":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"7310":{"date":{"__isSmartRef__":true,"id":7311},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7311":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"7312":{"date":{"__isSmartRef__":true,"id":7313},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7313":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"7314":{"date":{"__isSmartRef__":true,"id":7315},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"7315":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"7316":{"date":{"__isSmartRef__":true,"id":7317},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"7317":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"7318":{"morph":{"__isSmartRef__":true,"id":7280},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7319":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7320}},"7320":{"test01IsMorph":{"__isSmartRef__":true,"id":7321}},"7321":{"varMapping":{"__isSmartRef__":true,"id":7322},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7322":{"this":{"__isSmartRef__":true,"id":7319}},"7323":{},"7324":{"die":{"__isSmartRef__":true,"id":7325},"reset":{"__isSmartRef__":true,"id":7328},"nextImage":{"__isSmartRef__":true,"id":7332},"start":{"__isSmartRef__":true,"id":7336}},"7325":{"varMapping":{"__isSmartRef__":true,"id":7326},"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":7327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7326":{"this":{"__isSmartRef__":true,"id":7280}},"7327":{},"7328":{"varMapping":{"__isSmartRef__":true,"id":7329},"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":7330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7329":{"this":{"__isSmartRef__":true,"id":7280}},"7330":{"timestamp":{"__isSmartRef__":true,"id":7331},"user":"timfelgentreff","tags":[]},"7331":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (Central Europe Daylight Time)"},"7332":{"varMapping":{"__isSmartRef__":true,"id":7333},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":7334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7333":{"this":{"__isSmartRef__":true,"id":7280}},"7334":{"timestamp":{"__isSmartRef__":true,"id":7335},"user":"timfelgentreff","tags":[]},"7335":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (Central Europe Daylight Time)"},"7336":{"varMapping":{"__isSmartRef__":true,"id":7337},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":7338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7337":{"this":{"__isSmartRef__":true,"id":7280}},"7338":{"timestamp":{"__isSmartRef__":true,"id":7339},"user":"timfelgentreff","tags":[]},"7339":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (Central Europe Daylight Time)"},"7340":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7341},"derivationIds":[null,"09D9B212-F744-4AE7-B38B-4A5C5288371F","6C6681FE-F923-46F9-AEB9-07333BDBD26B"],"id":"7B0BC5EF-AA0D-46A3-9483-622C7B35B43F","eventHandler":{"__isSmartRef__":true,"id":7342},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"name":"Player1","isBeingDragged":false,"showsHalos":false,"#startLetters":"","prevScroll":[0,0],"partsBinMetaInfo":{"__isSmartRef__":true,"id":7343},"moved":true,"isPlayer":true,"owner":{"__isSmartRef__":true,"id":7231},"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7350},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(6.0,-5.0)"},"7341":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/player_south.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(43.2,72.0)","_Padding":"lively.rect(0,0,0,0)"},"7342":{"morph":{"__isSmartRef__":true,"id":7340},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7343":{"partName":"Player","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A player character, which can face different directions","changes":[{"__isSmartRef__":true,"id":7344},{"__isSmartRef__":true,"id":7346},{"__isSmartRef__":true,"id":7348}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7344":{"date":{"__isSmartRef__":true,"id":7345},"author":"tessi","message":"no comment","id":"04C3B971-E7A7-48D8-9BB4-D2D0C01F4357"},"7345":{"isSerializedDate":true,"string":"Fri May 04 2012 17:00:59 GMT+0200 (Central Europe Daylight Time)"},"7346":{"date":{"__isSmartRef__":true,"id":7347},"author":"timfelgentreff","message":"avoid resetting image all the time","id":"828C5757-34C9-4ED5-BF71-136B71BD18F9"},"7347":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:22 GMT+0200 (Central Europe Daylight Time)"},"7348":{"date":{"__isSmartRef__":true,"id":7349},"author":"timfelgentreff","message":"no comment","id":"AB6EC246-0E78-43F0-A551-17F34378328F"},"7349":{"isSerializedDate":true,"string":"Fri May 04 2012 17:50:59 GMT+0200 (Central Europe Daylight Time)"},"7350":{"mediaURL":{"__isSmartRef__":true,"id":7351},"face":{"__isSmartRef__":true,"id":7355}},"7351":{"varMapping":{"__isSmartRef__":true,"id":7352},"source":"function mediaURL() {\n return \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media\"\n}","funcProperties":{"__isSmartRef__":true,"id":7353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7352":{"this":{"__isSmartRef__":true,"id":7340}},"7353":{"timestamp":{"__isSmartRef__":true,"id":7354},"user":"tessi","tags":[]},"7354":{"isSerializedDate":true,"string":"Fri May 04 2012 16:56:03 GMT+0200 (Central Europe Daylight Time)"},"7355":{"varMapping":{"__isSmartRef__":true,"id":7356},"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":7357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7356":{"this":{"__isSmartRef__":true,"id":7340}},"7357":{"timestamp":{"__isSmartRef__":true,"id":7358},"user":"timfelgentreff","tags":[]},"7358":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:09 GMT+0200 (Central Europe Daylight Time)"},"7359":{"target":{"__isSmartRef__":true,"id":7231},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":7360}],"stopped":true,"tickTime":3000,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"7360":{},"7361":{"target":{"__isSmartRef__":true,"id":7231},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":7224}]],"stopped":true,"tickTime":10,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"7362":{"_NodeClass":["morph","box"],"_NodeId":"morph-55b3d416-2247-4ede-9674-f2c4d50e543f","_BorderWidth":1,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"7363":{"morph":{"__isSmartRef__":true,"id":7231},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7364":{"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A character is a moving, talking unit/player/movable/NPC/villager","migrationLevel":4,"partName":"Character","changes":[{"__isSmartRef__":true,"id":7365},{"__isSmartRef__":true,"id":7367},{"__isSmartRef__":true,"id":7369},{"__isSmartRef__":true,"id":7371},{"__isSmartRef__":true,"id":7373},{"__isSmartRef__":true,"id":7375},{"__isSmartRef__":true,"id":7377},{"__isSmartRef__":true,"id":7379},{"__isSmartRef__":true,"id":7381},{"__isSmartRef__":true,"id":7383},{"__isSmartRef__":true,"id":7385},{"__isSmartRef__":true,"id":7387},{"__isSmartRef__":true,"id":7389},{"__isSmartRef__":true,"id":7391},{"__isSmartRef__":true,"id":7393},{"__isSmartRef__":true,"id":7395},{"__isSmartRef__":true,"id":7397},{"__isSmartRef__":true,"id":7399},{"__isSmartRef__":true,"id":7401},{"__isSmartRef__":true,"id":7403},{"__isSmartRef__":true,"id":7405},{"__isSmartRef__":true,"id":7407},{"__isSmartRef__":true,"id":7409},{"__isSmartRef__":true,"id":7411},{"__isSmartRef__":true,"id":7413},{"__isSmartRef__":true,"id":7415},{"__isSmartRef__":true,"id":7417},{"__isSmartRef__":true,"id":7419},{"__isSmartRef__":true,"id":7421},{"__isSmartRef__":true,"id":7423},{"__isSmartRef__":true,"id":7425},{"__isSmartRef__":true,"id":7427},{"__isSmartRef__":true,"id":7429},{"__isSmartRef__":true,"id":7431},{"__isSmartRef__":true,"id":7433},{"__isSmartRef__":true,"id":7435},{"__isSmartRef__":true,"id":7437},{"__isSmartRef__":true,"id":7439},{"__isSmartRef__":true,"id":7441},{"__isSmartRef__":true,"id":7443},{"__isSmartRef__":true,"id":7445},{"__isSmartRef__":true,"id":7447},{"__isSmartRef__":true,"id":7449},{"__isSmartRef__":true,"id":7451},{"__isSmartRef__":true,"id":7453},{"__isSmartRef__":true,"id":7455},{"__isSmartRef__":true,"id":7457},{"__isSmartRef__":true,"id":7459},{"__isSmartRef__":true,"id":7461},{"__isSmartRef__":true,"id":7463},{"__isSmartRef__":true,"id":7465},{"__isSmartRef__":true,"id":7467},{"__isSmartRef__":true,"id":7469},{"__isSmartRef__":true,"id":7471},{"__isSmartRef__":true,"id":7473},{"__isSmartRef__":true,"id":7475},{"__isSmartRef__":true,"id":7477},{"__isSmartRef__":true,"id":7479},{"__isSmartRef__":true,"id":7481},{"__isSmartRef__":true,"id":7483},{"__isSmartRef__":true,"id":7485},{"__isSmartRef__":true,"id":7487},{"__isSmartRef__":true,"id":7489},{"__isSmartRef__":true,"id":7491},{"__isSmartRef__":true,"id":7493},{"__isSmartRef__":true,"id":7495},{"__isSmartRef__":true,"id":7497},{"__isSmartRef__":true,"id":7499},{"__isSmartRef__":true,"id":7501},{"__isSmartRef__":true,"id":7503},{"__isSmartRef__":true,"id":7505},{"__isSmartRef__":true,"id":7507},{"__isSmartRef__":true,"id":7509},{"__isSmartRef__":true,"id":7511},{"__isSmartRef__":true,"id":7513},{"__isSmartRef__":true,"id":7515},{"__isSmartRef__":true,"id":7517},{"__isSmartRef__":true,"id":7519},{"__isSmartRef__":true,"id":7521},{"__isSmartRef__":true,"id":7523},{"__isSmartRef__":true,"id":7525},{"__isSmartRef__":true,"id":7527},{"__isSmartRef__":true,"id":7529},{"__isSmartRef__":true,"id":7531},{"__isSmartRef__":true,"id":7533},{"__isSmartRef__":true,"id":7535},{"__isSmartRef__":true,"id":7537},{"__isSmartRef__":true,"id":7539},{"__isSmartRef__":true,"id":7541},{"__isSmartRef__":true,"id":7543},{"__isSmartRef__":true,"id":7545},{"__isSmartRef__":true,"id":7547},{"__isSmartRef__":true,"id":7549},{"__isSmartRef__":true,"id":7551},{"__isSmartRef__":true,"id":7553},{"__isSmartRef__":true,"id":7555},{"__isSmartRef__":true,"id":7557},{"__isSmartRef__":true,"id":7559},{"__isSmartRef__":true,"id":7561},{"__isSmartRef__":true,"id":7563},{"__isSmartRef__":true,"id":7565},{"__isSmartRef__":true,"id":7567},{"__isSmartRef__":true,"id":7569},{"__isSmartRef__":true,"id":7571},{"__isSmartRef__":true,"id":7573},{"__isSmartRef__":true,"id":7575},{"__isSmartRef__":true,"id":7577},{"__isSmartRef__":true,"id":7579},{"__isSmartRef__":true,"id":7581}],"requiredModules":["projects.WebDev2012.Telautim.js.chatbot"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7365":{"date":{"__isSmartRef__":true,"id":7366},"author":"lauritz","message":"fixed shuffling of answer possibilities in debates.","id":"1B6E19E3-2737-4598-A8E3-FEAAFC8BFF48"},"7366":{"isSerializedDate":true,"string":"Mon May 07 2012 19:20:25 GMT+0200 (Central Europe Daylight Time)"},"7367":{"date":{"__isSmartRef__":true,"id":7368},"author":"lauritz","message":"no comment","id":"AF6C3CC5-9EAB-4F84-A91F-F90E8EF1571C"},"7368":{"isSerializedDate":true,"string":"Mon May 07 2012 10:58:34 GMT+0200 (Central Europe Daylight Time)"},"7369":{"date":{"__isSmartRef__":true,"id":7370},"author":"timfelgentreff","message":"remove character for death animation","id":"679D5E2B-8559-414E-B9BE-3E7840EF084F"},"7370":{"isSerializedDate":true,"string":"Sat May 05 2012 13:06:37 GMT+0200 (Central Europe Daylight Time)"},"7371":{"date":{"__isSmartRef__":true,"id":7372},"author":"timfelgentreff","message":"little harder npc fights","id":"F28D1CA1-D307-4F2B-BF97-119E2A107B70"},"7372":{"isSerializedDate":true,"string":"Sat May 05 2012 13:04:37 GMT+0200 (Central Europe Daylight Time)"},"7373":{"date":{"__isSmartRef__":true,"id":7374},"author":"timfelgentreff","message":"make fights easier","id":"C707BCA9-92E4-43E6-95D4-22B840F322AE"},"7374":{"isSerializedDate":true,"string":"Sat May 05 2012 12:59:25 GMT+0200 (Central Europe Daylight Time)"},"7375":{"date":{"__isSmartRef__":true,"id":7376},"author":"timfelgentreff","message":"talk timeout in fights needs to be closer to text bubble timeout","id":"139B596D-D4BF-4A12-B177-BC7D3AA516D1"},"7376":{"isSerializedDate":true,"string":"Sat May 05 2012 12:58:15 GMT+0200 (Central Europe Daylight Time)"},"7377":{"date":{"__isSmartRef__":true,"id":7378},"author":"timfelgentreff","message":"remove menu after choosing","id":"98432B46-2F70-48EF-B357-56F419789F63"},"7378":{"isSerializedDate":true,"string":"Sat May 05 2012 12:54:26 GMT+0200 (Central Europe Daylight Time)"},"7379":{"date":{"__isSmartRef__":true,"id":7380},"author":"timfelgentreff","message":"add fighting, isDead and healing","id":"49162D76-8BAB-4488-9D81-6C5F3F9E9A7B"},"7380":{"isSerializedDate":true,"string":"Sat May 05 2012 12:38:51 GMT+0200 (Central Europe Daylight Time)"},"7381":{"date":{"__isSmartRef__":true,"id":7382},"author":"timfelgentreff","message":"support directions for the player animations","id":"69DE1485-AECF-45C1-9777-18ED9ADE260C"},"7382":{"isSerializedDate":true,"string":"Fri May 04 2012 17:37:43 GMT+0200 (Central Europe Daylight Time)"},"7383":{"date":{"__isSmartRef__":true,"id":7384},"author":"tessi","message":" normal border color is transparent","id":"F921DA1B-4626-4B18-953B-5E402B28F855"},"7384":{"isSerializedDate":true,"string":"Thu May 03 2012 15:26:05 GMT+0200 (Central Europe Daylight Time)"},"7385":{"date":{"__isSmartRef__":true,"id":7386},"author":"tessi","message":"have a chatbot","id":"358609CE-869C-4C32-8159-077252DCA5AF"},"7386":{"isSerializedDate":true,"string":"Thu May 03 2012 15:10:55 GMT+0200 (Central Europe Daylight Time)"},"7387":{"date":{"__isSmartRef__":true,"id":7388},"author":"tessi","message":"require module chatbot","id":"014ABA59-3301-4F2C-9D20-05859045AB5F"},"7388":{"isSerializedDate":true,"string":"Thu May 03 2012 15:00:31 GMT+0200 (Central Europe Daylight Time)"},"7389":{"date":{"__isSmartRef__":true,"id":7390},"author":"timfelgentreff","message":"implement walking for A*","id":"0F3AA4B2-39C6-4CBA-A410-72E9D6DD310A"},"7390":{"isSerializedDate":true,"string":"Thu May 03 2012 12:38:15 GMT+0200 (Central Europe Daylight Time)"},"7391":{"date":{"__isSmartRef__":true,"id":7392},"author":"lauritz","message":"no comment","id":"882374DC-58F6-413A-A909-04B4B9FC0213"},"7392":{"isSerializedDate":true,"string":"Wed May 02 2012 17:43:13 GMT+0200 (Central Europe Daylight Time)"},"7393":{"date":{"__isSmartRef__":true,"id":7394},"author":"lauritz","message":"yellow border color in dev mode, distinguishes character and tile","id":"CD0BE784-3A0A-4F31-BD29-A7B23BB4D110"},"7394":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:57:02 GMT+0200 (Central Europe Daylight Time)"},"7395":{"date":{"__isSmartRef__":true,"id":7396},"author":"tessi","message":"","id":"2AB48789-9884-4B49-BE6D-9F6B05F91FC1"},"7396":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:32:08 GMT+0200 (Central Europe Daylight Time)"},"7397":{"date":{"__isSmartRef__":true,"id":7398},"author":"tessi","message":"","id":"2756AB2C-8345-4A1A-9D5E-2A837C5BCF19"},"7398":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:27:05 GMT+0200 (Central Europe Daylight Time)"},"7399":{"date":{"__isSmartRef__":true,"id":7400},"author":"tessi","message":"fix setTimeout bug","id":"6A244DDE-DA87-4360-BE58-3D50E455AD3D"},"7400":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:23:14 GMT+0200 (Central Europe Daylight Time)"},"7401":{"date":{"__isSmartRef__":true,"id":7402},"author":"timfelgentreff","message":"no comment","id":"06241D99-F4AF-4997-BEF5-A05CAB5516FA"},"7402":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:54:14 GMT+0200 (Central Europe Daylight Time)"},"7403":{"date":{"__isSmartRef__":true,"id":7404},"author":"tessi","message":"isBusy = false when starting a conversation failed","id":"B91EF496-BC58-49B4-AA5D-B0296829A331"},"7404":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:38:18 GMT+0200 (Central Europe Daylight Time)"},"7405":{"date":{"__isSmartRef__":true,"id":7406},"author":"tessi","message":"have a default-goodbye in answer() and proxy answer-call to character-type if possible","id":"E7051C47-72C5-4F41-A7EE-5D843B84CD5C"},"7406":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:33:56 GMT+0200 (Central Europe Daylight Time)"},"7407":{"date":{"__isSmartRef__":true,"id":7408},"author":"tessi","message":"conversation","id":"92D475C5-8AFA-4704-B31A-E0323A2F80CA"},"7408":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:29:27 GMT+0200 (Central Europe Daylight Time)"},"7409":{"date":{"__isSmartRef__":true,"id":7410},"author":"tessi","message":"typo","id":"651358CA-816D-45A4-A6D4-EDDE6445D105"},"7410":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:30:15 GMT+0200 (Central Europe Daylight Time)"},"7411":{"date":{"__isSmartRef__":true,"id":7412},"author":"tessi","message":"do not take a callback anymore for walkUntilReached","id":"5E146087-30CB-4C83-9B6F-0805908CFD24"},"7412":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:26:11 GMT+0200 (Central Europe Daylight Time)"},"7413":{"date":{"__isSmartRef__":true,"id":7414},"author":"tessi","message":"character now leaves and enters a tile when walking","id":"86E09CBB-9697-4065-B4D7-38130EA26F03"},"7414":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:04 GMT+0200 (Central Europe Daylight Time)"},"7415":{"date":{"__isSmartRef__":true,"id":7416},"author":"lauritz","message":"added shadow copy to characters as well","id":"D0B45A60-90FD-405B-8410-02E39C2766FB"},"7416":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:26:12 GMT+0200 (Central Europe Daylight Time)"},"7417":{"date":{"__isSmartRef__":true,"id":7418},"author":"tessi","message":"do not setup when comitting a character","id":"998DCFDD-7C21-486F-8873-EB500F5D828C"},"7418":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:40:44 GMT+0200 (Central Europe Daylight Time)"},"7419":{"date":{"__isSmartRef__":true,"id":7420},"author":"tessi","message":"reset isBusy flag when resetting","id":"1C10FA19-01A5-4A0F-9660-E714888E1632"},"7420":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:16:55 GMT+0200 (Central Europe Daylight Time)"},"7421":{"date":{"__isSmartRef__":true,"id":7422},"author":"tessi","message":"only do something every 3 seconds","id":"380054EE-6F1F-4DCC-BBE1-0A3F3C041652"},"7422":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:49:26 GMT+0200 (Central Europe Daylight Time)"},"7423":{"date":{"__isSmartRef__":true,"id":7424},"author":"tessi","message":"remove textBubble on reset","id":"F1B5D5ED-7465-4842-8AE8-0D2D5EFEC89D"},"7424":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:17 GMT+0200 (Central Europe Daylight Time)"},"7425":{"date":{"__isSmartRef__":true,"id":7426},"author":"tessi","message":"did a reset","id":"D90F8A53-5943-4780-A68C-03A9795959BD"},"7426":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:28:31 GMT+0200 (Central Europe Daylight Time)"},"7427":{"date":{"__isSmartRef__":true,"id":7428},"author":"tessi","message":"do not soliloquize too often","id":"C7DF35C3-3829-4869-973A-BF8329278BDD"},"7428":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:31:17 GMT+0200 (Central Europe Daylight Time)"},"7429":{"date":{"__isSmartRef__":true,"id":7430},"author":"tessi","message":"add animation loop","id":"05FA5AFA-66B9-4E5E-A2AE-D0F798FE2F8C"},"7430":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:22:56 GMT+0200 (Central Europe Daylight Time)"},"7431":{"date":{"__isSmartRef__":true,"id":7432},"author":"tessi","message":"a character may not soliloquize (talk to himself)","id":"094BB96A-4E2B-4839-A378-B59C9CECF2B4"},"7432":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:36:08 GMT+0200 (Central Europe Daylight Time)"},"7433":{"date":{"__isSmartRef__":true,"id":7434},"author":"tessi","message":"do a copy() when getting the text bubble","id":"F94DDE8C-9992-4552-82AF-40B62EC980C7"},"7434":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:25:58 GMT+0200 (Central Europe Daylight Time)"},"7435":{"date":{"__isSmartRef__":true,"id":7436},"author":"tessi","message":"Added functionality to say something - this.say(\"Foo!\")","id":"D3310A2C-9375-4910-8AD0-1624086A18C5"},"7436":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:21:54 GMT+0200 (Central Europe Daylight Time)"},"7437":{"date":{"__isSmartRef__":true,"id":7438},"author":"tessi","message":"cached character names list in becomeRandomCharacter","id":"F24125F0-9BEE-4CB9-8919-4184B4237A23"},"7438":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:06:32 GMT+0200 (Central Europe Daylight Time)"},"7439":{"date":{"__isSmartRef__":true,"id":7440},"author":"tessi","message":"Do not throw error on left click if the character is not within a game","id":"8B76A606-75E7-44F9-81B3-4A7D32710930"},"7440":{"isSerializedDate":true,"string":"Sat Apr 21 2012 11:53:06 GMT+0200 (Central Europe Daylight Time)"},"7441":{"date":{"__isSmartRef__":true,"id":7442},"author":"timfelgentreff","message":"","id":"F897DF97-32A2-4CE7-9A35-53212D4A26E3"},"7442":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:03:29 GMT+0200 (Central Europe Daylight Time)"},"7443":{"date":{"__isSmartRef__":true,"id":7444},"author":"timfelgentreff","message":"","id":"A38CB8F1-BDF4-452A-A4D3-860ADFB0C56B"},"7444":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:03:05 GMT+0200 (Central Europe Daylight Time)"},"7445":{"date":{"__isSmartRef__":true,"id":7446},"author":"timfelgentreff","message":"","id":"7EF9C9F0-6D1A-4EEC-A4C7-E8413604B1F8"},"7446":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:20:32 GMT+0200 (Central Europe Daylight Time)"},"7447":{"date":{"__isSmartRef__":true,"id":7448},"author":"timfelgentreff","message":"","id":"48990527-46C3-4754-B62F-86A06C3683E4"},"7448":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:15:33 GMT+0200 (Central Europe Daylight Time)"},"7449":{"date":{"__isSmartRef__":true,"id":7450},"author":"timfelgentreff","message":"","id":"A801296C-B767-4752-9C39-B91FC2CB09D1"},"7450":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:14:30 GMT+0200 (Central Europe Daylight Time)"},"7451":{"date":{"__isSmartRef__":true,"id":7452},"author":"timfelgentreff","message":"","id":"110ED1B9-D63C-4832-A17C-48410A99EBE8"},"7452":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:06:44 GMT+0200 (Central Europe Daylight Time)"},"7453":{"date":{"__isSmartRef__":true,"id":7454},"author":"timfelgentreff","message":"","id":"FB4CEBF9-0379-4033-A173-5297EFC0B5BE"},"7454":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:44:05 GMT+0200 (Central Europe Daylight Time)"},"7455":{"date":{"__isSmartRef__":true,"id":7456},"author":"timfelgentreff","message":"","id":"268C27C2-3DAB-4D17-AB4F-8319341CBE51"},"7456":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:14:35 GMT+0200 (Central Europe Daylight Time)"},"7457":{"date":{"__isSmartRef__":true,"id":7458},"author":"timfelgentreff","message":"","id":"EA0606B9-830C-4424-9950-55893DCE4622"},"7458":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:03:33 GMT+0200 (Central Europe Daylight Time)"},"7459":{"date":{"__isSmartRef__":true,"id":7460},"author":"timfelgentreff","message":"","id":"77F93C94-EAD5-4F89-AA8A-E4102AAEC3CB"},"7460":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:23:21 GMT+0200 (Central Europe Daylight Time)"},"7461":{"date":{"__isSmartRef__":true,"id":7462},"author":"timfelgentreff","message":"","id":"4F98DE4B-29D4-46EF-8F3F-277038AE57A2"},"7462":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:03:58 GMT+0200 (Central Europe Daylight Time)"},"7463":{"date":{"__isSmartRef__":true,"id":7464},"author":"timfelgentreff","message":"","id":"B5F2B437-806A-447F-B407-7C5FFCE479B0"},"7464":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:02 GMT+0200 (Central Europe Daylight Time)"},"7465":{"date":{"__isSmartRef__":true,"id":7466},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7466":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"7467":{"date":{"__isSmartRef__":true,"id":7468},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7468":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"7469":{"date":{"__isSmartRef__":true,"id":7470},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7470":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"7471":{"date":{"__isSmartRef__":true,"id":7472},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7472":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"7473":{"date":{"__isSmartRef__":true,"id":7474},"author":"timfelgentreff","message":"","id":"6B60055B-55B1-4E2A-AD9C-FA5408E28AB7"},"7474":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:29:52 GMT+0200 (Central Europe Daylight Time)"},"7475":{"date":{"__isSmartRef__":true,"id":7476},"author":"timfelgentreff","message":"","id":"85BC7627-55A6-4E30-B13F-1227C9196849"},"7476":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:17:51 GMT+0200 (Central Europe Daylight Time)"},"7477":{"date":{"__isSmartRef__":true,"id":7478},"author":"timfelgentreff","message":"","id":"0FED5A50-603F-474D-BAB3-3D252B7C0D12"},"7478":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:24:02 GMT+0200 (Central Europe Daylight Time)"},"7479":{"date":{"__isSmartRef__":true,"id":7480},"author":"timfelgentreff","message":"","id":"158C6E00-18B6-4CB2-9E5F-D99927550506"},"7480":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:11:41 GMT+0200 (Central Europe Daylight Time)"},"7481":{"date":{"__isSmartRef__":true,"id":7482},"author":"timfelgentreff","message":"","id":"D5B99567-984F-4ED8-86EF-7314F0876EF1"},"7482":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:20:46 GMT+0200 (Central Europe Daylight Time)"},"7483":{"date":{"__isSmartRef__":true,"id":7484},"author":"timfelgentreff","message":"","id":"74ECE854-1AF0-4527-8FAD-52DA991B5F48"},"7484":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:28:31 GMT+0200 (Central Europe Daylight Time)"},"7485":{"date":{"__isSmartRef__":true,"id":7486},"author":"timfelgentreff","message":"","id":"F0A0187B-50D8-410C-BA09-0AE944E5BAC2"},"7486":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:29:41 GMT+0200 (Central Europe Daylight Time)"},"7487":{"date":{"__isSmartRef__":true,"id":7488},"author":"timfelgentreff","message":"","id":"84662911-A76F-443A-A285-71B3ECEEF099"},"7488":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:37:03 GMT+0200 (Central Europe Daylight Time)"},"7489":{"date":{"__isSmartRef__":true,"id":7490},"author":"timfelgentreff","message":"","id":"5193293E-D9DE-406D-AD6A-589A904409FE"},"7490":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:54:23 GMT+0200 (Central Europe Daylight Time)"},"7491":{"date":{"__isSmartRef__":true,"id":7492},"author":"timfelgentreff","message":"","id":"42D19C5A-8D17-4352-B10F-D69925A338CF"},"7492":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:07:22 GMT+0200 (Central Europe Daylight Time)"},"7493":{"date":{"__isSmartRef__":true,"id":7494},"author":"timfelgentreff","message":"","id":"7A79A18C-B093-44EA-8522-7A3D2013F7F9"},"7494":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:12:47 GMT+0200 (Central Europe Daylight Time)"},"7495":{"date":{"__isSmartRef__":true,"id":7496},"author":"timfelgentreff","message":"","id":"BB97EFD5-248F-4B83-A177-F68CC9FE7744"},"7496":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:10:09 GMT+0200 (Central Europe Daylight Time)"},"7497":{"date":{"__isSmartRef__":true,"id":7498},"author":"timfelgentreff","message":"","id":"29A66B5D-C073-40D0-B445-4B92C0315243"},"7498":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:11:14 GMT+0200 (Central Europe Daylight Time)"},"7499":{"date":{"__isSmartRef__":true,"id":7500},"author":"timfelgentreff","message":"","id":"45A004C9-FD27-4FDD-8910-03240CEDBB33"},"7500":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:13:43 GMT+0200 (Central Europe Daylight Time)"},"7501":{"date":{"__isSmartRef__":true,"id":7502},"author":"timfelgentreff","message":"","id":"4D440D8C-20BF-4088-A05C-48ADE0376E9C"},"7502":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:33:42 GMT+0200 (Central Europe Daylight Time)"},"7503":{"date":{"__isSmartRef__":true,"id":7504},"author":"timfelgentreff","message":"","id":"F496AFC6-959F-4EC9-AED3-0CACA9686C50"},"7504":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:50:45 GMT+0200 (Central Europe Daylight Time)"},"7505":{"date":{"__isSmartRef__":true,"id":7506},"author":"timfelgentreff","message":"game loop implemented","id":"5F56A7B0-C894-4B53-99EA-23CA74E07649"},"7506":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:19:13 GMT+0200 (Central Europe Daylight Time)"},"7507":{"date":{"__isSmartRef__":true,"id":7508},"author":"timfelgentreff","message":"","id":"8B2931F8-644C-441D-8ED0-1055AC1A8466"},"7508":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:09:54 GMT+0200 (Central Europe Daylight Time)"},"7509":{"date":{"__isSmartRef__":true,"id":7510},"author":"timfelgentreff","message":"use convenience method to get all the character names from the Game","id":"64A0DAD1-6DCA-4A5E-A1C4-1245B5142904"},"7510":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:25:05 GMT+0200 (Central Europe Daylight Time)"},"7511":{"date":{"__isSmartRef__":true,"id":7512},"author":"tessi","message":"do not talk if aString is undefined or null","id":"6CC7D989-E7E7-455A-9548-6E11E062868C"},"7512":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:42:15 GMT+0200 (Central Europe Daylight Time)"},"7513":{"date":{"__isSmartRef__":true,"id":7514},"author":"tessi","message":"fixed bug: error when aString and textBubble was both undefined","id":"B7C5702A-5A72-4B4E-8495-6C7091FB90E7"},"7514":{"isSerializedDate":true,"string":"Mon Apr 23 2012 16:08:46 GMT+0200 (Central Europe Daylight Time)"},"7515":{"date":{"__isSmartRef__":true,"id":7516},"author":"tessi","message":"reset() sets devStyle; replace get() calls with map() and game()","id":"632B5695-D5F1-4549-A4C4-57118B5CC18C"},"7516":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:23:43 GMT+0200 (Central Europe Daylight Time)"},"7517":{"date":{"__isSmartRef__":true,"id":7518},"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"},"7518":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:08:44 GMT+0200 (Central Europe Daylight Time)"},"7519":{"date":{"__isSmartRef__":true,"id":7520},"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"},"7520":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:09:04 GMT+0200 (Central Europe Daylight Time)"},"7521":{"date":{"__isSmartRef__":true,"id":7522},"author":"tessi","message":"fix currentTile() calculation","id":"5DFDC67F-C2B3-446A-B98F-9D783D86AE67"},"7522":{"isSerializedDate":true,"string":"Wed Apr 25 2012 15:20:10 GMT+0200 (Central Europe Daylight Time)"},"7523":{"date":{"__isSmartRef__":true,"id":7524},"author":"tessi","message":"remove coder from character wooooo!","id":"CC460BFD-5714-4136-9D71-C27CB357B03D"},"7524":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:26:11 GMT+0200 (Central Europe Daylight Time)"},"7525":{"date":{"__isSmartRef__":true,"id":7526},"author":"tessi","message":"fix reset()","id":"25318C72-069B-4982-80C1-3D6BB62CAEEB"},"7526":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:35:54 GMT+0200 (Central Europe Daylight Time)"},"7527":{"date":{"__isSmartRef__":true,"id":7528},"author":"tessi","message":"WIP: startConversation","id":"CDE4457D-E565-4B2B-B9A2-11B469420208"},"7528":{"isSerializedDate":true,"string":"Wed Apr 25 2012 17:08:28 GMT+0200 (Central Europe Daylight Time)"},"7529":{"date":{"__isSmartRef__":true,"id":7530},"author":"tessi","message":"removed todo on getting tile characters","id":"E53A3851-D321-46AB-BAEC-00F6DB517896"},"7530":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:23:53 GMT+0200 (Central Europe Daylight Time)"},"7531":{"date":{"__isSmartRef__":true,"id":7532},"author":"tessi","message":"removed todo on getting tile characters","id":"481343BD-AEE2-4403-8C34-F8ED283FB915"},"7532":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:23:54 GMT+0200 (Central Europe Daylight Time)"},"7533":{"date":{"__isSmartRef__":true,"id":7534},"author":"lauritz","message":"no comment","id":"312F87FF-9A4A-4537-94FC-17A675B8F1D0"},"7534":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:00:17 GMT+0200 (Central Europe Daylight Time)"},"7535":{"date":{"__isSmartRef__":true,"id":7536},"author":"timfelgentreff","message":"no comment","id":"A9AE4A60-C66D-40B6-BAAF-1D9D71F84B6E"},"7536":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:53:18 GMT+0200 (Central Europe Daylight Time)"},"7537":{"date":{"__isSmartRef__":true,"id":7538},"author":"timfelgentreff","message":"no comment","id":"39F64661-30D8-4C21-8955-3577D7999A1E"},"7538":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:14:46 GMT+0200 (Central Europe Daylight Time)"},"7539":{"date":{"__isSmartRef__":true,"id":7540},"author":"tessi","message":"","id":"86997E8C-1851-4003-AF70-3637C964F4C2"},"7540":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:40:38 GMT+0200 (Central Europe Daylight Time)"},"7541":{"date":{"__isSmartRef__":true,"id":7542},"author":"tessi","message":"do not try to start a conversation with busy characters anymore","id":"FC5A962A-B4F5-4952-9DA3-93178498B650"},"7542":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:45:52 GMT+0200 (Central Europe Daylight Time)"},"7543":{"date":{"__isSmartRef__":true,"id":7544},"author":"timfelgentreff","message":"add A* algorithm","id":"2463589C-B2A5-49C5-B4AC-61C44963498C"},"7544":{"isSerializedDate":true,"string":"Thu May 03 2012 12:16:42 GMT+0200 (Central Europe Daylight Time)"},"7545":{"date":{"__isSmartRef__":true,"id":7546},"author":"timfelgentreff","message":"start including A* as the walking script","id":"0CE0539A-F853-4368-B65C-FBF9FA1374F6"},"7546":{"isSerializedDate":true,"string":"Thu May 03 2012 12:22:29 GMT+0200 (Central Europe Daylight Time)"},"7547":{"date":{"__isSmartRef__":true,"id":7548},"author":"timfelgentreff","message":"avoid crashing chrome","id":"C08488EB-0F4F-4D1B-8158-4B4CECA13310"},"7548":{"isSerializedDate":true,"string":"Thu May 03 2012 12:39:24 GMT+0200 (Central Europe Daylight Time)"},"7549":{"date":{"__isSmartRef__":true,"id":7550},"author":"timfelgentreff","message":"update A*","id":"0ADDF3A6-9B36-4836-952A-034C8AFB76AE"},"7550":{"isSerializedDate":true,"string":"Thu May 03 2012 13:30:55 GMT+0200 (Central Europe Daylight Time)"},"7551":{"date":{"__isSmartRef__":true,"id":7552},"author":"tessi","message":"talk","id":"A54BE0A6-A721-4931-9C16-1B10721DB077"},"7552":{"isSerializedDate":true,"string":"Thu May 03 2012 15:07:51 GMT+0200 (Central Europe Daylight Time)"},"7553":{"date":{"__isSmartRef__":true,"id":7554},"author":"tessi","message":"cannot set color to null","id":"8282460E-42E5-474F-B4B1-779328A0CA12"},"7554":{"isSerializedDate":true,"string":"Thu May 03 2012 15:19:48 GMT+0200 (Central Europe Daylight Time)"},"7555":{"date":{"__isSmartRef__":true,"id":7556},"author":"timfelgentreff","message":"add lifebar and death animation","id":"56443440-08E1-4535-A501-313169B43CF6"},"7556":{"isSerializedDate":true,"string":"Fri May 04 2012 17:23:23 GMT+0200 (Central Europe Daylight Time)"},"7557":{"date":{"__isSmartRef__":true,"id":7558},"author":"timfelgentreff","message":"stopStepping after remove","id":"67474739-FF28-40D1-B14A-576A8BFFEFC6"},"7558":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:49 GMT+0200 (Central Europe Daylight Time)"},"7559":{"date":{"__isSmartRef__":true,"id":7560},"author":"timfelgentreff","message":"slower, more painful death","id":"69220053-3258-4538-84FA-5447CC65011C"},"7560":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:57 GMT+0200 (Central Europe Daylight Time)"},"7561":{"date":{"__isSmartRef__":true,"id":7562},"author":"timfelgentreff","message":"no comment","id":"A8214C7B-EBBB-4E93-A914-2794143B55BC"},"7562":{"isSerializedDate":true,"string":"Fri May 04 2012 17:45:57 GMT+0200 (Central Europe Daylight Time)"},"7563":{"date":{"__isSmartRef__":true,"id":7564},"author":"timfelgentreff","message":"no comment","id":"D908D0F4-3ED1-4F1D-AEB9-7CFC3B0C8BA5"},"7564":{"isSerializedDate":true,"string":"Fri May 04 2012 17:46:41 GMT+0200 (Central Europe Daylight Time)"},"7565":{"date":{"__isSmartRef__":true,"id":7566},"author":"timfelgentreff","message":"no comment","id":"A506CB13-6C0B-433F-8BE4-73FD6319265A"},"7566":{"isSerializedDate":true,"string":"Fri May 04 2012 17:48:35 GMT+0200 (Central Europe Daylight Time)"},"7567":{"date":{"__isSmartRef__":true,"id":7568},"author":"timfelgentreff","message":"know your fight phrases","id":"2A0FDBCF-F817-40F3-A5A3-B6029BC24B85"},"7568":{"isSerializedDate":true,"string":"Fri May 04 2012 18:00:37 GMT+0200 (Central Europe Daylight Time)"},"7569":{"date":{"__isSmartRef__":true,"id":7570},"author":"timfelgentreff","message":"fix misnomer","id":"6841DC46-81BA-485A-90FE-40C795FC925D"},"7570":{"isSerializedDate":true,"string":"Sat May 05 2012 12:42:00 GMT+0200 (Central Europe Daylight Time)"},"7571":{"date":{"__isSmartRef__":true,"id":7572},"author":"timfelgentreff","message":"no comment","id":"9909F62F-D862-408B-B763-7B126CAECB21"},"7572":{"isSerializedDate":true,"string":"Sat May 05 2012 12:46:46 GMT+0200 (Central Europe Daylight Time)"},"7573":{"date":{"__isSmartRef__":true,"id":7574},"author":"timfelgentreff","message":"no comment","id":"960441EB-D5D2-49ED-918C-C19ED11E90D5"},"7574":{"isSerializedDate":true,"string":"Sat May 05 2012 12:49:21 GMT+0200 (Central Europe Daylight Time)"},"7575":{"date":{"__isSmartRef__":true,"id":7576},"author":"timfelgentreff","message":"fix typo","id":"05779C1D-DB1E-4CB9-AA2C-6653533F10C8"},"7576":{"isSerializedDate":true,"string":"Sat May 05 2012 12:51:21 GMT+0200 (Central Europe Daylight Time)"},"7577":{"date":{"__isSmartRef__":true,"id":7578},"author":"lauritz","message":"no comment","id":"FE139E8C-ABF5-4D0C-97D5-C72CDDCF5321"},"7578":{"isSerializedDate":true,"string":"Mon May 07 2012 10:35:19 GMT+0200 (Central Europe Daylight Time)"},"7579":{"date":{"__isSmartRef__":true,"id":7580},"author":"lauritz","message":"faster fights","id":"0893EC15-CE3B-43C0-AAE5-B3D8EA6E5151"},"7580":{"isSerializedDate":true,"string":"Mon May 07 2012 11:47:58 GMT+0200 (Central Europe Daylight Time)"},"7581":{"date":{"__isSmartRef__":true,"id":7582},"author":"lauritz","message":"no comment","id":"E5CBCE4F-39BE-4ED3-AD3B-0D490420A83F"},"7582":{"isSerializedDate":true,"string":"Mon May 14 2012 16:09:42 GMT+0200 (Central Europe Daylight Time)"},"7583":{"setDevStyle":{"__isSmartRef__":true,"id":7584},"setNormalStyle":{"__isSmartRef__":true,"id":7902},"tileSize":{"__isSmartRef__":true,"id":7905},"become":{"__isSmartRef__":true,"id":7908},"walkUntilReached":{"__isSmartRef__":true,"id":7911},"onMouseDown":{"__isSmartRef__":true,"id":7914},"walkTo":{"__isSmartRef__":true,"id":7921},"currentTile":{"__isSmartRef__":true,"id":7924},"toolbox":{"__isSmartRef__":true,"id":7927},"setCurrentSpeed":{"__isSmartRef__":true,"id":7930},"getCurrentSpeed":{"__isSmartRef__":true,"id":7933},"isWalking":{"__isSmartRef__":true,"id":7936},"select":{"__isSmartRef__":true,"id":7939},"deselect":{"__isSmartRef__":true,"id":7942},"becomeRandomCharacter":{"__isSmartRef__":true,"id":7945},"reset":{"__isSmartRef__":true,"id":7948},"setDirectionToTile":{"__isSmartRef__":true,"id":7951},"getDirection":{"__isSmartRef__":true,"id":7954},"setDirection":{"__isSmartRef__":true,"id":7957},"setPosition":{"__isSmartRef__":true,"id":7960},"say":{"__isSmartRef__":true,"id":7967},"soliloquize":{"__isSmartRef__":true,"id":7970},"characterType":{"__isSmartRef__":true,"id":7973},"animate":{"__isSmartRef__":true,"id":7976},"doSomething":{"__isSmartRef__":true,"id":7979},"map":{"__isSmartRef__":true,"id":7982},"game":{"__isSmartRef__":true,"id":7985},"setup":{"__isSmartRef__":true,"id":7988},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":7991},"startConversation":{"__isSmartRef__":true,"id":7998},"startConversationWith":{"__isSmartRef__":true,"id":8001},"shallowCopy":{"__isSmartRef__":true,"id":8004},"conversation":{"__isSmartRef__":true,"id":8007},"answer":{"__isSmartRef__":true,"id":8010},"hideTextBubble":{"__isSmartRef__":true,"id":8013},"aStar":{"__isSmartRef__":true,"id":8016},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":8019},"aStarWalkPath":{"__isSmartRef__":true,"id":8022},"chatBot":{"__isSmartRef__":true,"id":8025},"getHit":{"__isSmartRef__":true,"id":8028},"becomePlayer":{"__isSmartRef__":true,"id":8031},"fight":{"__isSmartRef__":true,"id":8034},"fightPhrases":{"__isSmartRef__":true,"id":8037},"randomQuestions":{"__isSmartRef__":true,"id":8040},"randomAnswersFor":{"__isSmartRef__":true,"id":8043},"executeFightTurnAsking":{"__isSmartRef__":true,"id":8046},"heal":{"__isSmartRef__":true,"id":8049},"isDead":{"__isSmartRef__":true,"id":8052}},"7584":{"varMapping":{"__isSmartRef__":true,"id":7585},"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":7586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7585":{"this":{"__isSmartRef__":true,"id":7231}},"7586":{"timestamp":{"__isSmartRef__":true,"id":7587},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7588},"declaredObject":""},"7587":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:55:28 GMT+0200 (Central Europe Daylight Time)"},"7588":{"varMapping":{"__isSmartRef__":true,"id":7589},"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":7901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7589":{"this":{"__isSmartRef__":true,"id":7590}},"7590":{"submorphs":[{"__isSmartRef__":true,"id":7591},{"__isSmartRef__":true,"id":7639}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7699},"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":"332D6905-6FAF-4D2F-84D0-2B0627FDE4F6","eventHandler":{"__isSmartRef__":true,"id":7700},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":7364},"character":null,"showsHalos":false,"lastSpeedTimestamp":1336043967089,"name":"Character1","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"deathAnimation":{"__isSmartRef__":true,"id":7639},"lifeBar":{"__isSmartRef__":true,"id":7591},"#startLetters":"","_Rotation":0,"_Scale":1.0120783653693808,"__serializedExpressions__":["_Position","direction"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7701},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","direction":"lively.pt(-1.0,0.0)"},"7591":{"submorphs":[],"scripts":[],"id":"8872CA7B-AEBD-45E8-8D7A-8C16B7073561","shape":{"__isSmartRef__":true,"id":7592},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LifeBar","partsBinMetaInfo":{"__isSmartRef__":true,"id":7593},"eventHandler":{"__isSmartRef__":true,"id":7608},"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":7609},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":7590},"isBeingDragged":false,"character":{"__isSmartRef__":true,"id":7590},"#startLetters":"","_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7614},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,-13.0)"},"7592":{"_BorderWidth":1,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,8.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(151,255,0)","_Padding":"lively.rect(0,0,0,0)"},"7593":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":7594},{"__isSmartRef__":true,"id":7596},{"__isSmartRef__":true,"id":7598},{"__isSmartRef__":true,"id":7600},{"__isSmartRef__":true,"id":7602},{"__isSmartRef__":true,"id":7604},{"__isSmartRef__":true,"id":7606}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7594":{"date":{"__isSmartRef__":true,"id":7595},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7595":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"7596":{"date":{"__isSmartRef__":true,"id":7597},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7597":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"7598":{"date":{"__isSmartRef__":true,"id":7599},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7599":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"7600":{"date":{"__isSmartRef__":true,"id":7601},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7601":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"7602":{"date":{"__isSmartRef__":true,"id":7603},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"7603":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"7604":{"date":{"__isSmartRef__":true,"id":7605},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"7605":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"7606":{"date":{"__isSmartRef__":true,"id":7607},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"7607":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (Central Europe Daylight Time)"},"7608":{"morph":{"__isSmartRef__":true,"id":7591},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7609":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7610}},"7610":{"test01IsMorph":{"__isSmartRef__":true,"id":7611}},"7611":{"varMapping":{"__isSmartRef__":true,"id":7612},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7612":{"this":{"__isSmartRef__":true,"id":7609}},"7613":{},"7614":{"setColorForWidth":{"__isSmartRef__":true,"id":7615},"reset":{"__isSmartRef__":true,"id":7619},"hit":{"__isSmartRef__":true,"id":7623},"extent":{"__isSmartRef__":true,"id":7627},"isDead":{"__isSmartRef__":true,"id":7631},"lifeLoss":{"__isSmartRef__":true,"id":7635},"heal":{"__isSmartRef__":true,"id":7619}},"7615":{"varMapping":{"__isSmartRef__":true,"id":7616},"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":7617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7616":{"this":{"__isSmartRef__":true,"id":7591}},"7617":{"timestamp":{"__isSmartRef__":true,"id":7618},"user":"timfelgentreff","tags":[]},"7618":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (Central Europe Daylight Time)"},"7619":{"varMapping":{"__isSmartRef__":true,"id":7620},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":7621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7620":{"this":{"__isSmartRef__":true,"id":7591}},"7621":{"timestamp":{"__isSmartRef__":true,"id":7622},"user":"timfelgentreff","tags":[]},"7622":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (Central Europe Daylight Time)"},"7623":{"varMapping":{"__isSmartRef__":true,"id":7624},"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":7625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7624":{"this":{"__isSmartRef__":true,"id":7591}},"7625":{"timestamp":{"__isSmartRef__":true,"id":7626},"user":"timfelgentreff","tags":[]},"7626":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (Central Europe Daylight Time)"},"7627":{"varMapping":{"__isSmartRef__":true,"id":7628},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":7629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7628":{"this":{"__isSmartRef__":true,"id":7591}},"7629":{"timestamp":{"__isSmartRef__":true,"id":7630},"user":"timfelgentreff","tags":[]},"7630":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (Central Europe Daylight Time)"},"7631":{"varMapping":{"__isSmartRef__":true,"id":7632},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":7633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7632":{"this":{"__isSmartRef__":true,"id":7591}},"7633":{"timestamp":{"__isSmartRef__":true,"id":7634},"user":"timfelgentreff","tags":[]},"7634":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (Central Europe Daylight Time)"},"7635":{"varMapping":{"__isSmartRef__":true,"id":7636},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":7637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7636":{"this":{"__isSmartRef__":true,"id":7591}},"7637":{"timestamp":{"__isSmartRef__":true,"id":7638},"user":"timfelgentreff","tags":[]},"7638":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (Central Europe Daylight Time)"},"7639":{"submorphs":[{"__isSmartRef__":true,"id":7640}],"scripts":[],"id":"DC6AF031-4E21-4076-ABC3-9D13F29725A5","shape":{"__isSmartRef__":true,"id":7663},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"DeathAnimation","partsBinMetaInfo":{"__isSmartRef__":true,"id":7664},"eventHandler":{"__isSmartRef__":true,"id":7677},"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":7678},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":7590},"isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":7640},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"character":{"__isSmartRef__":true,"id":7590},"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1.002003004005006,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7683},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"7640":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7641},"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":"DD557BF7-D160-41F2-92B9-E07260DA4032","eventHandler":{"__isSmartRef__":true,"id":7642},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":7643},"moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":7639},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7658},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"7641":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"7642":{"morph":{"__isSmartRef__":true,"id":7640},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7643":{"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":7644},{"__isSmartRef__":true,"id":7646},{"__isSmartRef__":true,"id":7648},{"__isSmartRef__":true,"id":7650},{"__isSmartRef__":true,"id":7652},{"__isSmartRef__":true,"id":7654},{"__isSmartRef__":true,"id":7656}],"migrationLevel":4,"revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7644":{"date":{"__isSmartRef__":true,"id":7645},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"7645":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"7646":{"date":{"__isSmartRef__":true,"id":7647},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"7647":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"7648":{"date":{"__isSmartRef__":true,"id":7649},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"7649":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"7650":{"date":{"__isSmartRef__":true,"id":7651},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"7651":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"7652":{"date":{"__isSmartRef__":true,"id":7653},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"7653":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"7654":{"date":{"__isSmartRef__":true,"id":7655},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"7655":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"7656":{"date":{"__isSmartRef__":true,"id":7657},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"7657":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"7658":{"soliloquize":{"__isSmartRef__":true,"id":7659}},"7659":{"varMapping":{"__isSmartRef__":true,"id":7660},"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":7661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7660":{"this":{"__isSmartRef__":true,"id":7640}},"7661":{"timestamp":{"__isSmartRef__":true,"id":7662},"user":"lauritz","tags":[]},"7662":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"7663":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"7664":{"partsSpaceName":"PartsBin/Basic","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":7665},{"__isSmartRef__":true,"id":7667},{"__isSmartRef__":true,"id":7669},{"__isSmartRef__":true,"id":7671},{"__isSmartRef__":true,"id":7673},{"__isSmartRef__":true,"id":7675}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7665":{"date":{"__isSmartRef__":true,"id":7666},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7666":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"7667":{"date":{"__isSmartRef__":true,"id":7668},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7668":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"7669":{"date":{"__isSmartRef__":true,"id":7670},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7670":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"7671":{"date":{"__isSmartRef__":true,"id":7672},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7672":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"7673":{"date":{"__isSmartRef__":true,"id":7674},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"7674":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"7675":{"date":{"__isSmartRef__":true,"id":7676},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"7676":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"7677":{"morph":{"__isSmartRef__":true,"id":7639},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7678":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7679}},"7679":{"test01IsMorph":{"__isSmartRef__":true,"id":7680}},"7680":{"varMapping":{"__isSmartRef__":true,"id":7681},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7681":{"this":{"__isSmartRef__":true,"id":7678}},"7682":{},"7683":{"die":{"__isSmartRef__":true,"id":7684},"reset":{"__isSmartRef__":true,"id":7687},"nextImage":{"__isSmartRef__":true,"id":7691},"start":{"__isSmartRef__":true,"id":7695}},"7684":{"varMapping":{"__isSmartRef__":true,"id":7685},"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":7686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7685":{"this":{"__isSmartRef__":true,"id":7639}},"7686":{},"7687":{"varMapping":{"__isSmartRef__":true,"id":7688},"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":7689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7688":{"this":{"__isSmartRef__":true,"id":7639}},"7689":{"timestamp":{"__isSmartRef__":true,"id":7690},"user":"timfelgentreff","tags":[]},"7690":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (Central Europe Daylight Time)"},"7691":{"varMapping":{"__isSmartRef__":true,"id":7692},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":7693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7692":{"this":{"__isSmartRef__":true,"id":7639}},"7693":{"timestamp":{"__isSmartRef__":true,"id":7694},"user":"timfelgentreff","tags":[]},"7694":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (Central Europe Daylight Time)"},"7695":{"varMapping":{"__isSmartRef__":true,"id":7696},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":7697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7696":{"this":{"__isSmartRef__":true,"id":7639}},"7697":{"timestamp":{"__isSmartRef__":true,"id":7698},"user":"timfelgentreff","tags":[]},"7698":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (Central Europe Daylight Time)"},"7699":{"_BorderWidth":1,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(204,204,0)"},"7700":{"morph":{"__isSmartRef__":true,"id":7590},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7701":{"setDevStyle":{"__isSmartRef__":true,"id":7588},"setNormalStyle":{"__isSmartRef__":true,"id":7702},"tileSize":{"__isSmartRef__":true,"id":7706},"become":{"__isSmartRef__":true,"id":7710},"walkUntilReached":{"__isSmartRef__":true,"id":7713},"onMouseDown":{"__isSmartRef__":true,"id":7717},"walkTo":{"__isSmartRef__":true,"id":7725},"currentTile":{"__isSmartRef__":true,"id":7729},"toolbox":{"__isSmartRef__":true,"id":7733},"setCurrentSpeed":{"__isSmartRef__":true,"id":7737},"getCurrentSpeed":{"__isSmartRef__":true,"id":7741},"isWalking":{"__isSmartRef__":true,"id":7745},"select":{"__isSmartRef__":true,"id":7749},"deselect":{"__isSmartRef__":true,"id":7753},"becomeRandomCharacter":{"__isSmartRef__":true,"id":7757},"reset":{"__isSmartRef__":true,"id":7761},"setDirectionToTile":{"__isSmartRef__":true,"id":7765},"getDirection":{"__isSmartRef__":true,"id":7769},"setDirection":{"__isSmartRef__":true,"id":7773},"setPosition":{"__isSmartRef__":true,"id":7777},"say":{"__isSmartRef__":true,"id":7785},"soliloquize":{"__isSmartRef__":true,"id":7789},"characterType":{"__isSmartRef__":true,"id":7793},"animate":{"__isSmartRef__":true,"id":7797},"doSomething":{"__isSmartRef__":true,"id":7801},"map":{"__isSmartRef__":true,"id":7805},"game":{"__isSmartRef__":true,"id":7809},"setup":{"__isSmartRef__":true,"id":7813},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":7817},"startConversation":{"__isSmartRef__":true,"id":7825},"startConversationWith":{"__isSmartRef__":true,"id":7829},"shallowCopy":{"__isSmartRef__":true,"id":7833},"conversation":{"__isSmartRef__":true,"id":7837},"answer":{"__isSmartRef__":true,"id":7841},"hideTextBubble":{"__isSmartRef__":true,"id":7845},"aStar":{"__isSmartRef__":true,"id":7849},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":7853},"aStarWalkPath":{"__isSmartRef__":true,"id":7857},"chatBot":{"__isSmartRef__":true,"id":7861},"getHit":{"__isSmartRef__":true,"id":7865},"becomePlayer":{"__isSmartRef__":true,"id":7869},"fight":{"__isSmartRef__":true,"id":7873},"fightPhrases":{"__isSmartRef__":true,"id":7877},"randomQuestions":{"__isSmartRef__":true,"id":7881},"randomAnswersFor":{"__isSmartRef__":true,"id":7885},"executeFightTurnAsking":{"__isSmartRef__":true,"id":7889},"heal":{"__isSmartRef__":true,"id":7893},"isDead":{"__isSmartRef__":true,"id":7897}},"7702":{"varMapping":{"__isSmartRef__":true,"id":7703},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":7704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7703":{"this":{"__isSmartRef__":true,"id":7590}},"7704":{"timestamp":{"__isSmartRef__":true,"id":7705},"user":"tessi","tags":[]},"7705":{"isSerializedDate":true,"string":"Thu May 03 2012 15:25:50 GMT+0200 (Central Europe Daylight Time)"},"7706":{"varMapping":{"__isSmartRef__":true,"id":7707},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":7708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7707":{"this":{"__isSmartRef__":true,"id":7590}},"7708":{"timestamp":{"__isSmartRef__":true,"id":7709},"user":"undefined","tags":[]},"7709":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:42:19 GMT+0200 (Central Europe Daylight Time)"},"7710":{"varMapping":{"__isSmartRef__":true,"id":7711},"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":7712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7711":{"this":{"__isSmartRef__":true,"id":7590}},"7712":{},"7713":{"varMapping":{"__isSmartRef__":true,"id":7714},"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":7715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7714":{"this":{"__isSmartRef__":true,"id":7590}},"7715":{"timestamp":{"__isSmartRef__":true,"id":7716},"user":"timfelgentreff","tags":[]},"7716":{"isSerializedDate":true,"string":"Fri May 04 2012 17:37:13 GMT+0200 (Central Europe Daylight Time)"},"7717":{"varMapping":{"__isSmartRef__":true,"id":7718},"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":7723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7718":{"this":{"__isSmartRef__":true,"id":7590},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7719}},"7719":{"$super":{"__isSmartRef__":true,"id":7720}},"7720":{"varMapping":{"__isSmartRef__":true,"id":7721},"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":7722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7721":{"obj":{"__isSmartRef__":true,"id":7590},"name":"onMouseDown"},"7722":{},"7723":{"timestamp":{"__isSmartRef__":true,"id":7724},"user":"tessi","tags":[]},"7724":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:21:42 GMT+0200 (Central Europe Daylight Time)"},"7725":{"varMapping":{"__isSmartRef__":true,"id":7726},"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":7727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7726":{"this":{"__isSmartRef__":true,"id":7590}},"7727":{"timestamp":{"__isSmartRef__":true,"id":7728},"user":"timfelgentreff","tags":[]},"7728":{"isSerializedDate":true,"string":"Thu May 03 2012 12:42:41 GMT+0200 (Central Europe Daylight Time)"},"7729":{"varMapping":{"__isSmartRef__":true,"id":7730},"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":7731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7730":{"this":{"__isSmartRef__":true,"id":7590}},"7731":{"timestamp":{"__isSmartRef__":true,"id":7732},"user":"tessi","tags":[]},"7732":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:13:47 GMT+0200 (Central Europe Daylight Time)"},"7733":{"varMapping":{"__isSmartRef__":true,"id":7734},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7734":{"this":{"__isSmartRef__":true,"id":7590}},"7735":{"timestamp":{"__isSmartRef__":true,"id":7736},"user":"tessi","tags":[]},"7736":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:22:42 GMT+0200 (Central Europe Daylight Time)"},"7737":{"varMapping":{"__isSmartRef__":true,"id":7738},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":7739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7738":{"this":{"__isSmartRef__":true,"id":7590}},"7739":{"timestamp":{"__isSmartRef__":true,"id":7740},"user":"timfelgentreff","tags":[]},"7740":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:47:22 GMT+0200 (Central Europe Daylight Time)"},"7741":{"varMapping":{"__isSmartRef__":true,"id":7742},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":7743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7742":{"this":{"__isSmartRef__":true,"id":7590}},"7743":{"timestamp":{"__isSmartRef__":true,"id":7744},"user":"timfelgentreff","tags":[]},"7744":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:55:19 GMT+0200 (Central Europe Daylight Time)"},"7745":{"varMapping":{"__isSmartRef__":true,"id":7746},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":7747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7746":{"this":{"__isSmartRef__":true,"id":7590}},"7747":{"timestamp":{"__isSmartRef__":true,"id":7748},"user":"lauritz","tags":[]},"7748":{"isSerializedDate":true,"string":"Fri Apr 27 2012 14:07:33 GMT+0200 (Central Europe Daylight Time)"},"7749":{"varMapping":{"__isSmartRef__":true,"id":7750},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7750":{"this":{"__isSmartRef__":true,"id":7590}},"7751":{"timestamp":{"__isSmartRef__":true,"id":7752},"user":"tessi","tags":[]},"7752":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:21:57 GMT+0200 (Central Europe Daylight Time)"},"7753":{"varMapping":{"__isSmartRef__":true,"id":7754},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7754":{"this":{"__isSmartRef__":true,"id":7590}},"7755":{"timestamp":{"__isSmartRef__":true,"id":7756},"user":"tessi","tags":[]},"7756":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:20:46 GMT+0200 (Central Europe Daylight Time)"},"7757":{"varMapping":{"__isSmartRef__":true,"id":7758},"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":7759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7758":{"this":{"__isSmartRef__":true,"id":7590}},"7759":{"timestamp":{"__isSmartRef__":true,"id":7760},"user":"tessi","tags":[]},"7760":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:20:00 GMT+0200 (Central Europe Daylight Time)"},"7761":{"varMapping":{"__isSmartRef__":true,"id":7762},"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":7763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7762":{"this":{"__isSmartRef__":true,"id":7590}},"7763":{"timestamp":{"__isSmartRef__":true,"id":7764},"user":"timfelgentreff","tags":[]},"7764":{"isSerializedDate":true,"string":"Fri May 04 2012 17:22:56 GMT+0200 (Central Europe Daylight Time)"},"7765":{"varMapping":{"__isSmartRef__":true,"id":7766},"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":7767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7766":{"this":{"__isSmartRef__":true,"id":7590}},"7767":{"timestamp":{"__isSmartRef__":true,"id":7768},"user":"lauritz","tags":[]},"7768":{"isSerializedDate":true,"string":"Fri Apr 27 2012 14:07:33 GMT+0200 (Central Europe Daylight Time)"},"7769":{"varMapping":{"__isSmartRef__":true,"id":7770},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":7771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7770":{"this":{"__isSmartRef__":true,"id":7590}},"7771":{"timestamp":{"__isSmartRef__":true,"id":7772},"user":"timfelgentreff","tags":[]},"7772":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:50:04 GMT+0200 (Central Europe Daylight Time)"},"7773":{"varMapping":{"__isSmartRef__":true,"id":7774},"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":7775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7774":{"this":{"__isSmartRef__":true,"id":7590}},"7775":{"timestamp":{"__isSmartRef__":true,"id":7776},"user":"timfelgentreff","tags":[]},"7776":{"isSerializedDate":true,"string":"Fri May 04 2012 17:36:20 GMT+0200 (Central Europe Daylight Time)"},"7777":{"varMapping":{"__isSmartRef__":true,"id":7778},"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":7783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7778":{"this":{"__isSmartRef__":true,"id":7590},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7779}},"7779":{"$super":{"__isSmartRef__":true,"id":7780}},"7780":{"varMapping":{"__isSmartRef__":true,"id":7781},"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":7782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7781":{"obj":{"__isSmartRef__":true,"id":7590},"name":"setPosition"},"7782":{},"7783":{"timestamp":{"__isSmartRef__":true,"id":7784},"user":"undefined","tags":[]},"7784":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:54:50 GMT+0200 (Central Europe Daylight Time)"},"7785":{"varMapping":{"__isSmartRef__":true,"id":7786},"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":7787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7786":{"this":{"__isSmartRef__":true,"id":7590}},"7787":{"timestamp":{"__isSmartRef__":true,"id":7788},"user":"timfelgentreff","tags":[]},"7788":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:03:55 GMT+0200 (Central Europe Daylight Time)"},"7789":{"varMapping":{"__isSmartRef__":true,"id":7790},"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":7791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7790":{"this":{"__isSmartRef__":true,"id":7590}},"7791":{"timestamp":{"__isSmartRef__":true,"id":7792},"user":"tessi","tags":[]},"7792":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:21:54 GMT+0200 (Central Europe Daylight Time)"},"7793":{"varMapping":{"__isSmartRef__":true,"id":7794},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":7795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7794":{"this":{"__isSmartRef__":true,"id":7590}},"7795":{"timestamp":{"__isSmartRef__":true,"id":7796},"user":"timfelgentreff","tags":[]},"7796":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:00:25 GMT+0200 (Central Europe Daylight Time)"},"7797":{"varMapping":{"__isSmartRef__":true,"id":7798},"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":7799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7798":{"this":{"__isSmartRef__":true,"id":7590}},"7799":{"timestamp":{"__isSmartRef__":true,"id":7800},"user":"lauritz","tags":[]},"7800":{"isSerializedDate":true,"string":"Mon May 07 2012 11:01:40 GMT+0200 (Central Europe Daylight Time)"},"7801":{"varMapping":{"__isSmartRef__":true,"id":7802},"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":7803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7802":{"this":{"__isSmartRef__":true,"id":7590}},"7803":{"timestamp":{"__isSmartRef__":true,"id":7804},"user":"timfelgentreff","tags":[]},"7804":{"isSerializedDate":true,"string":"Fri May 04 2012 17:51:09 GMT+0200 (Central Europe Daylight Time)"},"7805":{"varMapping":{"__isSmartRef__":true,"id":7806},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":7807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7806":{"this":{"__isSmartRef__":true,"id":7590}},"7807":{"timestamp":{"__isSmartRef__":true,"id":7808},"user":"lauritz","tags":[]},"7808":{"isSerializedDate":true,"string":"Wed May 02 2012 17:43:01 GMT+0200 (Central Europe Daylight Time)"},"7809":{"varMapping":{"__isSmartRef__":true,"id":7810},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":7811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7810":{"this":{"__isSmartRef__":true,"id":7590}},"7811":{"timestamp":{"__isSmartRef__":true,"id":7812},"user":"undefined","tags":[]},"7812":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:32:54 GMT+0200 (Central Europe Daylight Time)"},"7813":{"varMapping":{"__isSmartRef__":true,"id":7814},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":7815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7814":{"this":{"__isSmartRef__":true,"id":7590}},"7815":{"timestamp":{"__isSmartRef__":true,"id":7816},"user":"undefined","tags":[]},"7816":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:40:06 GMT+0200 (Central Europe Daylight Time)"},"7817":{"varMapping":{"__isSmartRef__":true,"id":7818},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":7823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7818":{"this":{"__isSmartRef__":true,"id":7590},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7819}},"7819":{"$super":{"__isSmartRef__":true,"id":7820}},"7820":{"varMapping":{"__isSmartRef__":true,"id":7821},"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":7822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7821":{"obj":{"__isSmartRef__":true,"id":7590},"name":"copyToPartsBinWithUserRequest"},"7822":{},"7823":{"timestamp":{"__isSmartRef__":true,"id":7824},"user":"tessi","tags":[]},"7824":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:40:19 GMT+0200 (Central Europe Daylight Time)"},"7825":{"varMapping":{"__isSmartRef__":true,"id":7826},"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":7827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7826":{"this":{"__isSmartRef__":true,"id":7590}},"7827":{"timestamp":{"__isSmartRef__":true,"id":7828},"user":"lauritz","tags":[]},"7828":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:59:27 GMT+0200 (Central Europe Daylight Time)"},"7829":{"varMapping":{"__isSmartRef__":true,"id":7830},"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":7831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7830":{"this":{"__isSmartRef__":true,"id":7590}},"7831":{"timestamp":{"__isSmartRef__":true,"id":7832},"user":"lauritz","tags":[]},"7832":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:57:47 GMT+0200 (Central Europe Daylight Time)"},"7833":{"varMapping":{"__isSmartRef__":true,"id":7834},"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":7835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7834":{"this":{"__isSmartRef__":true,"id":7590}},"7835":{"timestamp":{"__isSmartRef__":true,"id":7836},"user":"timfelgentreff","tags":[]},"7836":{"isSerializedDate":true,"string":"Fri May 04 2012 17:48:29 GMT+0200 (Central Europe Daylight Time)"},"7837":{"varMapping":{"__isSmartRef__":true,"id":7838},"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":7839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7838":{"this":{"__isSmartRef__":true,"id":7590}},"7839":{"timestamp":{"__isSmartRef__":true,"id":7840},"user":"lauritz","tags":[]},"7840":{"isSerializedDate":true,"string":"Fri Apr 27 2012 14:50:04 GMT+0200 (Central Europe Daylight Time)"},"7841":{"varMapping":{"__isSmartRef__":true,"id":7842},"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":7843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7842":{"this":{"__isSmartRef__":true,"id":7590}},"7843":{"timestamp":{"__isSmartRef__":true,"id":7844},"user":"tessi","tags":[]},"7844":{"isSerializedDate":true,"string":"Thu May 03 2012 15:09:16 GMT+0200 (Central Europe Daylight Time)"},"7845":{"varMapping":{"__isSmartRef__":true,"id":7846},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7846":{"this":{"__isSmartRef__":true,"id":7590}},"7847":{"timestamp":{"__isSmartRef__":true,"id":7848},"user":"tessi","tags":[]},"7848":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:16:32 GMT+0200 (Central Europe Daylight Time)"},"7849":{"varMapping":{"__isSmartRef__":true,"id":7850},"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":7851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7850":{"this":{"__isSmartRef__":true,"id":7590}},"7851":{"timestamp":{"__isSmartRef__":true,"id":7852},"user":"timfelgentreff","tags":["pathfinding"]},"7852":{"isSerializedDate":true,"string":"Thu May 03 2012 13:29:11 GMT+0200 (Central Europe Daylight Time)"},"7853":{"varMapping":{"__isSmartRef__":true,"id":7854},"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":7855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7854":{"this":{"__isSmartRef__":true,"id":7590}},"7855":{"timestamp":{"__isSmartRef__":true,"id":7856},"user":"timfelgentreff","tags":["pathfinding"]},"7856":{"isSerializedDate":true,"string":"Thu May 03 2012 13:17:11 GMT+0200 (Central Europe Daylight Time)"},"7857":{"varMapping":{"__isSmartRef__":true,"id":7858},"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":7859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7858":{"this":{"__isSmartRef__":true,"id":7590}},"7859":{"timestamp":{"__isSmartRef__":true,"id":7860},"user":"lauritz","tags":[]},"7860":{"isSerializedDate":true,"string":"Sat May 05 2012 19:26:02 GMT+0200 (Central Europe Daylight Time)"},"7861":{"varMapping":{"__isSmartRef__":true,"id":7862},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":7863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7862":{"this":{"__isSmartRef__":true,"id":7590}},"7863":{"timestamp":{"__isSmartRef__":true,"id":7864},"user":"tessi","tags":[]},"7864":{"isSerializedDate":true,"string":"Thu May 03 2012 15:10:15 GMT+0200 (Central Europe Daylight Time)"},"7865":{"varMapping":{"__isSmartRef__":true,"id":7866},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":7867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7866":{"this":{"__isSmartRef__":true,"id":7590}},"7867":{"timestamp":{"__isSmartRef__":true,"id":7868},"user":"timfelgentreff","tags":[]},"7868":{"isSerializedDate":true,"string":"Fri May 04 2012 17:17:49 GMT+0200 (Central Europe Daylight Time)"},"7869":{"varMapping":{"__isSmartRef__":true,"id":7870},"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":7871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7870":{"this":{"__isSmartRef__":true,"id":7590}},"7871":{"timestamp":{"__isSmartRef__":true,"id":7872},"user":"timfelgentreff","tags":[]},"7872":{"isSerializedDate":true,"string":"Fri May 04 2012 17:46:36 GMT+0200 (Central Europe Daylight Time)"},"7873":{"varMapping":{"__isSmartRef__":true,"id":7874},"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":7875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7874":{"this":{"__isSmartRef__":true,"id":7590}},"7875":{"timestamp":{"__isSmartRef__":true,"id":7876},"user":"timfelgentreff","tags":[]},"7876":{"isSerializedDate":true,"string":"Sat May 05 2012 12:46:40 GMT+0200 (Central Europe Daylight Time)"},"7877":{"varMapping":{"__isSmartRef__":true,"id":7878},"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":7879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7878":{"this":{"__isSmartRef__":true,"id":7590}},"7879":{"timestamp":{"__isSmartRef__":true,"id":7880},"user":"timfelgentreff","tags":[]},"7880":{"isSerializedDate":true,"string":"Fri May 04 2012 17:54:30 GMT+0200 (Central Europe Daylight Time)"},"7881":{"varMapping":{"__isSmartRef__":true,"id":7882},"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":7883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7882":{"this":{"__isSmartRef__":true,"id":7590}},"7883":{"timestamp":{"__isSmartRef__":true,"id":7884},"user":"timfelgentreff","tags":[]},"7884":{"isSerializedDate":true,"string":"Fri May 04 2012 17:56:30 GMT+0200 (Central Europe Daylight Time)"},"7885":{"varMapping":{"__isSmartRef__":true,"id":7886},"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":7887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7886":{"this":{"__isSmartRef__":true,"id":7590}},"7887":{"timestamp":{"__isSmartRef__":true,"id":7888},"user":"lauritz","tags":[]},"7888":{"isSerializedDate":true,"string":"Mon May 07 2012 19:18:12 GMT+0200 (Central Europe Daylight Time)"},"7889":{"varMapping":{"__isSmartRef__":true,"id":7890},"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":7891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7890":{"this":{"__isSmartRef__":true,"id":7590}},"7891":{"timestamp":{"__isSmartRef__":true,"id":7892},"user":"lauritz","tags":[]},"7892":{"isSerializedDate":true,"string":"Mon May 07 2012 11:47:46 GMT+0200 (Central Europe Daylight Time)"},"7893":{"varMapping":{"__isSmartRef__":true,"id":7894},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":7895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7894":{"this":{"__isSmartRef__":true,"id":7590}},"7895":{"timestamp":{"__isSmartRef__":true,"id":7896},"user":"timfelgentreff","tags":[]},"7896":{"isSerializedDate":true,"string":"Sat May 05 2012 12:38:05 GMT+0200 (Central Europe Daylight Time)"},"7897":{"varMapping":{"__isSmartRef__":true,"id":7898},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":7899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7898":{"this":{"__isSmartRef__":true,"id":7590}},"7899":{"timestamp":{"__isSmartRef__":true,"id":7900},"user":"timfelgentreff","tags":[]},"7900":{"isSerializedDate":true,"string":"Sat May 05 2012 12:38:28 GMT+0200 (Central Europe Daylight Time)"},"7901":{"timestamp":{"__isSmartRef__":true,"id":7587},"user":"lauritz","tags":[]},"7902":{"varMapping":{"__isSmartRef__":true,"id":7903},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":7904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7903":{"this":{"__isSmartRef__":true,"id":7231}},"7904":{"timestamp":{"__isSmartRef__":true,"id":7705},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7702},"declaredObject":""},"7905":{"varMapping":{"__isSmartRef__":true,"id":7906},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":7907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7906":{"this":{"__isSmartRef__":true,"id":7231}},"7907":{"timestamp":{"__isSmartRef__":true,"id":7709},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7706},"declaredObject":""},"7908":{"varMapping":{"__isSmartRef__":true,"id":7909},"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":7910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7909":{"this":{"__isSmartRef__":true,"id":7231}},"7910":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7710},"declaredObject":""},"7911":{"varMapping":{"__isSmartRef__":true,"id":7912},"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":7913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7912":{"this":{"__isSmartRef__":true,"id":7231}},"7913":{"timestamp":{"__isSmartRef__":true,"id":7716},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7713},"declaredObject":""},"7914":{"varMapping":{"__isSmartRef__":true,"id":7915},"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":7920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7915":{"this":{"__isSmartRef__":true,"id":7231},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7916}},"7916":{"$super":{"__isSmartRef__":true,"id":7917}},"7917":{"varMapping":{"__isSmartRef__":true,"id":7918},"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":7919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7918":{"obj":{"__isSmartRef__":true,"id":7231},"name":"onMouseDown"},"7919":{},"7920":{"timestamp":{"__isSmartRef__":true,"id":7724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7717},"declaredObject":""},"7921":{"varMapping":{"__isSmartRef__":true,"id":7922},"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":7923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7922":{"this":{"__isSmartRef__":true,"id":7231}},"7923":{"timestamp":{"__isSmartRef__":true,"id":7728},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7725},"declaredObject":""},"7924":{"varMapping":{"__isSmartRef__":true,"id":7925},"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":7926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7925":{"this":{"__isSmartRef__":true,"id":7231}},"7926":{"timestamp":{"__isSmartRef__":true,"id":7732},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7729},"declaredObject":""},"7927":{"varMapping":{"__isSmartRef__":true,"id":7928},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7928":{"this":{"__isSmartRef__":true,"id":7231}},"7929":{"timestamp":{"__isSmartRef__":true,"id":7736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7733},"declaredObject":""},"7930":{"varMapping":{"__isSmartRef__":true,"id":7931},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":7932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7931":{"this":{"__isSmartRef__":true,"id":7231}},"7932":{"timestamp":{"__isSmartRef__":true,"id":7740},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7737},"declaredObject":""},"7933":{"varMapping":{"__isSmartRef__":true,"id":7934},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":7935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7934":{"this":{"__isSmartRef__":true,"id":7231}},"7935":{"timestamp":{"__isSmartRef__":true,"id":7744},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7741},"declaredObject":""},"7936":{"varMapping":{"__isSmartRef__":true,"id":7937},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":7938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7937":{"this":{"__isSmartRef__":true,"id":7231}},"7938":{"timestamp":{"__isSmartRef__":true,"id":7748},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7745},"declaredObject":""},"7939":{"varMapping":{"__isSmartRef__":true,"id":7940},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7940":{"this":{"__isSmartRef__":true,"id":7231}},"7941":{"timestamp":{"__isSmartRef__":true,"id":7752},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7749},"declaredObject":""},"7942":{"varMapping":{"__isSmartRef__":true,"id":7943},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7943":{"this":{"__isSmartRef__":true,"id":7231}},"7944":{"timestamp":{"__isSmartRef__":true,"id":7756},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7753},"declaredObject":""},"7945":{"varMapping":{"__isSmartRef__":true,"id":7946},"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":7947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7946":{"this":{"__isSmartRef__":true,"id":7231}},"7947":{"timestamp":{"__isSmartRef__":true,"id":7760},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7757},"declaredObject":""},"7948":{"varMapping":{"__isSmartRef__":true,"id":7949},"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":7950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7949":{"this":{"__isSmartRef__":true,"id":7231}},"7950":{"timestamp":{"__isSmartRef__":true,"id":7764},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7761},"declaredObject":""},"7951":{"varMapping":{"__isSmartRef__":true,"id":7952},"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":7953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7952":{"this":{"__isSmartRef__":true,"id":7231}},"7953":{"timestamp":{"__isSmartRef__":true,"id":7768},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7765},"declaredObject":""},"7954":{"varMapping":{"__isSmartRef__":true,"id":7955},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":7956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7955":{"this":{"__isSmartRef__":true,"id":7231}},"7956":{"timestamp":{"__isSmartRef__":true,"id":7772},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7769},"declaredObject":""},"7957":{"varMapping":{"__isSmartRef__":true,"id":7958},"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":7959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7958":{"this":{"__isSmartRef__":true,"id":7231}},"7959":{"timestamp":{"__isSmartRef__":true,"id":7776},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7773},"declaredObject":""},"7960":{"varMapping":{"__isSmartRef__":true,"id":7961},"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":7966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7961":{"this":{"__isSmartRef__":true,"id":7231},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7962}},"7962":{"$super":{"__isSmartRef__":true,"id":7963}},"7963":{"varMapping":{"__isSmartRef__":true,"id":7964},"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":7965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7964":{"obj":{"__isSmartRef__":true,"id":7231},"name":"setPosition"},"7965":{},"7966":{"timestamp":{"__isSmartRef__":true,"id":7784},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7777},"declaredObject":""},"7967":{"varMapping":{"__isSmartRef__":true,"id":7968},"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":7969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7968":{"this":{"__isSmartRef__":true,"id":7231}},"7969":{"timestamp":{"__isSmartRef__":true,"id":7788},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7785},"declaredObject":""},"7970":{"varMapping":{"__isSmartRef__":true,"id":7971},"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":7972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7971":{"this":{"__isSmartRef__":true,"id":7231}},"7972":{"timestamp":{"__isSmartRef__":true,"id":7792},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7789},"declaredObject":""},"7973":{"varMapping":{"__isSmartRef__":true,"id":7974},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":7975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7974":{"this":{"__isSmartRef__":true,"id":7231}},"7975":{"timestamp":{"__isSmartRef__":true,"id":7796},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7793},"declaredObject":""},"7976":{"varMapping":{"__isSmartRef__":true,"id":7977},"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":7978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7977":{"this":{"__isSmartRef__":true,"id":7231}},"7978":{"timestamp":{"__isSmartRef__":true,"id":7800},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7797},"declaredObject":""},"7979":{"varMapping":{"__isSmartRef__":true,"id":7980},"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":7981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7980":{"this":{"__isSmartRef__":true,"id":7231}},"7981":{"timestamp":{"__isSmartRef__":true,"id":7804},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7801},"declaredObject":""},"7982":{"varMapping":{"__isSmartRef__":true,"id":7983},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":7984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7983":{"this":{"__isSmartRef__":true,"id":7231}},"7984":{"timestamp":{"__isSmartRef__":true,"id":7808},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7805},"declaredObject":""},"7985":{"varMapping":{"__isSmartRef__":true,"id":7986},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":7987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7986":{"this":{"__isSmartRef__":true,"id":7231}},"7987":{"timestamp":{"__isSmartRef__":true,"id":7812},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7809},"declaredObject":""},"7988":{"varMapping":{"__isSmartRef__":true,"id":7989},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":7990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7989":{"this":{"__isSmartRef__":true,"id":7231}},"7990":{"timestamp":{"__isSmartRef__":true,"id":7816},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7813},"declaredObject":""},"7991":{"varMapping":{"__isSmartRef__":true,"id":7992},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":7997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7992":{"this":{"__isSmartRef__":true,"id":7231},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7993}},"7993":{"$super":{"__isSmartRef__":true,"id":7994}},"7994":{"varMapping":{"__isSmartRef__":true,"id":7995},"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":7996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7995":{"obj":{"__isSmartRef__":true,"id":7231},"name":"copyToPartsBinWithUserRequest"},"7996":{},"7997":{"timestamp":{"__isSmartRef__":true,"id":7824},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7817},"declaredObject":""},"7998":{"varMapping":{"__isSmartRef__":true,"id":7999},"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":8000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7999":{"this":{"__isSmartRef__":true,"id":7231}},"8000":{"timestamp":{"__isSmartRef__":true,"id":7828},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7825},"declaredObject":""},"8001":{"varMapping":{"__isSmartRef__":true,"id":8002},"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":8003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8002":{"this":{"__isSmartRef__":true,"id":7231}},"8003":{"timestamp":{"__isSmartRef__":true,"id":7832},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7829},"declaredObject":""},"8004":{"varMapping":{"__isSmartRef__":true,"id":8005},"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":8006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8005":{"this":{"__isSmartRef__":true,"id":7231}},"8006":{"timestamp":{"__isSmartRef__":true,"id":7836},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7833},"declaredObject":""},"8007":{"varMapping":{"__isSmartRef__":true,"id":8008},"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":8009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8008":{"this":{"__isSmartRef__":true,"id":7231}},"8009":{"timestamp":{"__isSmartRef__":true,"id":7840},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7837},"declaredObject":""},"8010":{"varMapping":{"__isSmartRef__":true,"id":8011},"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":8012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8011":{"this":{"__isSmartRef__":true,"id":7231}},"8012":{"timestamp":{"__isSmartRef__":true,"id":7844},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7841},"declaredObject":""},"8013":{"varMapping":{"__isSmartRef__":true,"id":8014},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8014":{"this":{"__isSmartRef__":true,"id":7231}},"8015":{"timestamp":{"__isSmartRef__":true,"id":7848},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7845},"declaredObject":""},"8016":{"varMapping":{"__isSmartRef__":true,"id":8017},"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":8018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8017":{"this":{"__isSmartRef__":true,"id":7231}},"8018":{"timestamp":{"__isSmartRef__":true,"id":7852},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7849},"declaredObject":""},"8019":{"varMapping":{"__isSmartRef__":true,"id":8020},"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":8021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8020":{"this":{"__isSmartRef__":true,"id":7231}},"8021":{"timestamp":{"__isSmartRef__":true,"id":7856},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7853},"declaredObject":""},"8022":{"varMapping":{"__isSmartRef__":true,"id":8023},"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":8024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8023":{"this":{"__isSmartRef__":true,"id":7231}},"8024":{"timestamp":{"__isSmartRef__":true,"id":7860},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7857},"declaredObject":""},"8025":{"varMapping":{"__isSmartRef__":true,"id":8026},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":8027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8026":{"this":{"__isSmartRef__":true,"id":7231}},"8027":{"timestamp":{"__isSmartRef__":true,"id":7864},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7861},"declaredObject":""},"8028":{"varMapping":{"__isSmartRef__":true,"id":8029},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":8030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8029":{"this":{"__isSmartRef__":true,"id":7231}},"8030":{"timestamp":{"__isSmartRef__":true,"id":7868},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7865},"declaredObject":""},"8031":{"varMapping":{"__isSmartRef__":true,"id":8032},"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":8033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8032":{"this":{"__isSmartRef__":true,"id":7231}},"8033":{"timestamp":{"__isSmartRef__":true,"id":7872},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7869},"declaredObject":""},"8034":{"varMapping":{"__isSmartRef__":true,"id":8035},"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":8036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8035":{"this":{"__isSmartRef__":true,"id":7231}},"8036":{"timestamp":{"__isSmartRef__":true,"id":7876},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7873},"declaredObject":""},"8037":{"varMapping":{"__isSmartRef__":true,"id":8038},"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":8039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8038":{"this":{"__isSmartRef__":true,"id":7231}},"8039":{"timestamp":{"__isSmartRef__":true,"id":7880},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7877},"declaredObject":""},"8040":{"varMapping":{"__isSmartRef__":true,"id":8041},"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":8042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8041":{"this":{"__isSmartRef__":true,"id":7231}},"8042":{"timestamp":{"__isSmartRef__":true,"id":7884},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7881},"declaredObject":""},"8043":{"varMapping":{"__isSmartRef__":true,"id":8044},"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":8045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8044":{"this":{"__isSmartRef__":true,"id":7231}},"8045":{"timestamp":{"__isSmartRef__":true,"id":7888},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7885},"declaredObject":""},"8046":{"varMapping":{"__isSmartRef__":true,"id":8047},"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":8048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8047":{"this":{"__isSmartRef__":true,"id":7231}},"8048":{"timestamp":{"__isSmartRef__":true,"id":7892},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7889},"declaredObject":""},"8049":{"varMapping":{"__isSmartRef__":true,"id":8050},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":8051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8050":{"this":{"__isSmartRef__":true,"id":7231}},"8051":{"timestamp":{"__isSmartRef__":true,"id":7896},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7893},"declaredObject":""},"8052":{"varMapping":{"__isSmartRef__":true,"id":8053},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":8054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8053":{"this":{"__isSmartRef__":true,"id":7231}},"8054":{"timestamp":{"__isSmartRef__":true,"id":7900},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7897},"declaredObject":""},"8055":{"setDevStyle":{"__isSmartRef__":true,"id":8056},"setNormalStyle":{"__isSmartRef__":true,"id":8059},"tileSize":{"__isSmartRef__":true,"id":8062},"become":{"__isSmartRef__":true,"id":8065},"onMouseDown":{"__isSmartRef__":true,"id":8068},"setGridPosition":{"__isSmartRef__":true,"id":8075},"toolbox":{"__isSmartRef__":true,"id":8078},"distanceTo":{"__isSmartRef__":true,"id":8081},"tileWasDropped":{"__isSmartRef__":true,"id":8084},"isObstacle":{"__isSmartRef__":true,"id":8087},"neighboursInDirection":{"__isSmartRef__":true,"id":8090},"neighbours":{"__isSmartRef__":true,"id":8093},"zIndex":{"__isSmartRef__":true,"id":8096},"obstacles":{"__isSmartRef__":true,"id":8099},"addObstacle":{"__isSmartRef__":true,"id":8102},"removeObstacle":{"__isSmartRef__":true,"id":8105},"isTile":{"__isSmartRef__":true,"id":8108},"neighbourAt":{"__isSmartRef__":true,"id":8111},"map":{"__isSmartRef__":true,"id":8114},"game":{"__isSmartRef__":true,"id":8117},"reset":{"__isSmartRef__":true,"id":8120},"shallowCopy":{"__isSmartRef__":true,"id":8123},"characters":{"__isSmartRef__":true,"id":8126},"enterTile":{"__isSmartRef__":true,"id":8129},"leaveTile":{"__isSmartRef__":true,"id":8132},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8135}},"8056":{"varMapping":{"__isSmartRef__":true,"id":8057},"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":8058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8057":{"this":{"__isSmartRef__":true,"id":7224}},"8058":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"8059":{"varMapping":{"__isSmartRef__":true,"id":8060},"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":8061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8060":{"this":{"__isSmartRef__":true,"id":7224}},"8061":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"8062":{"varMapping":{"__isSmartRef__":true,"id":8063},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8063":{"this":{"__isSmartRef__":true,"id":7224}},"8064":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"8065":{"varMapping":{"__isSmartRef__":true,"id":8066},"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":8067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8066":{"this":{"__isSmartRef__":true,"id":7224}},"8067":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"8068":{"varMapping":{"__isSmartRef__":true,"id":8069},"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":8074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8069":{"this":{"__isSmartRef__":true,"id":7224},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8070}},"8070":{"$super":{"__isSmartRef__":true,"id":8071}},"8071":{"varMapping":{"__isSmartRef__":true,"id":8072},"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":8073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8072":{"obj":{"__isSmartRef__":true,"id":7224},"name":"onMouseDown"},"8073":{},"8074":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"8075":{"varMapping":{"__isSmartRef__":true,"id":8076},"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":8077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8076":{"this":{"__isSmartRef__":true,"id":7224}},"8077":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"8078":{"varMapping":{"__isSmartRef__":true,"id":8079},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8079":{"this":{"__isSmartRef__":true,"id":7224}},"8080":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"8081":{"varMapping":{"__isSmartRef__":true,"id":8082},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8082":{"this":{"__isSmartRef__":true,"id":7224}},"8083":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"8084":{"varMapping":{"__isSmartRef__":true,"id":8085},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8085":{"this":{"__isSmartRef__":true,"id":7224}},"8086":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"8087":{"varMapping":{"__isSmartRef__":true,"id":8088},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8088":{"this":{"__isSmartRef__":true,"id":7224}},"8089":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"8090":{"varMapping":{"__isSmartRef__":true,"id":8091},"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":8092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8091":{"this":{"__isSmartRef__":true,"id":7224}},"8092":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"8093":{"varMapping":{"__isSmartRef__":true,"id":8094},"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":8095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8094":{"this":{"__isSmartRef__":true,"id":7224}},"8095":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"8096":{"varMapping":{"__isSmartRef__":true,"id":8097},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8097":{"this":{"__isSmartRef__":true,"id":7224}},"8098":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"8099":{"varMapping":{"__isSmartRef__":true,"id":8100},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8100":{"this":{"__isSmartRef__":true,"id":7224}},"8101":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"8102":{"varMapping":{"__isSmartRef__":true,"id":8103},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8103":{"this":{"__isSmartRef__":true,"id":7224}},"8104":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"8105":{"varMapping":{"__isSmartRef__":true,"id":8106},"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":8107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8106":{"this":{"__isSmartRef__":true,"id":7224}},"8107":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"8108":{"varMapping":{"__isSmartRef__":true,"id":8109},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8109":{"this":{"__isSmartRef__":true,"id":7224}},"8110":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"8111":{"varMapping":{"__isSmartRef__":true,"id":8112},"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":8113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8112":{"this":{"__isSmartRef__":true,"id":7224}},"8113":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"8114":{"varMapping":{"__isSmartRef__":true,"id":8115},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8115":{"this":{"__isSmartRef__":true,"id":7224}},"8116":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"8117":{"varMapping":{"__isSmartRef__":true,"id":8118},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8118":{"this":{"__isSmartRef__":true,"id":7224}},"8119":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"8120":{"varMapping":{"__isSmartRef__":true,"id":8121},"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":8122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8121":{"this":{"__isSmartRef__":true,"id":7224}},"8122":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"8123":{"varMapping":{"__isSmartRef__":true,"id":8124},"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":8125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8124":{"this":{"__isSmartRef__":true,"id":7224}},"8125":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"8126":{"varMapping":{"__isSmartRef__":true,"id":8127},"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":8128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8127":{"this":{"__isSmartRef__":true,"id":7224}},"8128":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"8129":{"varMapping":{"__isSmartRef__":true,"id":8130},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8130":{"this":{"__isSmartRef__":true,"id":7224}},"8131":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"8132":{"varMapping":{"__isSmartRef__":true,"id":8133},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8133":{"this":{"__isSmartRef__":true,"id":7224}},"8134":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"8135":{"varMapping":{"__isSmartRef__":true,"id":8136},"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":8137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8136":{"this":{"__isSmartRef__":true,"id":7224}},"8137":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"8138":{"submorphs":[{"__isSmartRef__":true,"id":8139}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8143},"derivationIds":[null],"id":"58AA89A9-E24E-414D-B950-8B98215F1AA1","eventHandler":{"__isSmartRef__":true,"id":8144},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":1,"column":5,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":8139},"grabbingEnabled":false,"__obstacles":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8145},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,48.0)"},"8139":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8140},"derivationIds":[null],"id":"8CB7298C-A0CA-43FB-93C4-CD024987F3F5","eventHandler":{"__isSmartRef__":true,"id":8141},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8138},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8142},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"8140":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-8cb7298c-a0ca-43fb-93c4-cd024987f3f5","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"8141":{"morph":{"__isSmartRef__":true,"id":8139},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8142":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"8143":{"_NodeClass":["morph","box"],"_NodeId":"morph-58aa89a9-e24e-414d-b950-8b98215f1aa1","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8144":{"morph":{"__isSmartRef__":true,"id":8138},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8145":{"setDevStyle":{"__isSmartRef__":true,"id":8146},"setNormalStyle":{"__isSmartRef__":true,"id":8149},"tileSize":{"__isSmartRef__":true,"id":8152},"become":{"__isSmartRef__":true,"id":8155},"onMouseDown":{"__isSmartRef__":true,"id":8158},"setGridPosition":{"__isSmartRef__":true,"id":8165},"toolbox":{"__isSmartRef__":true,"id":8168},"distanceTo":{"__isSmartRef__":true,"id":8171},"tileWasDropped":{"__isSmartRef__":true,"id":8174},"isObstacle":{"__isSmartRef__":true,"id":8177},"neighboursInDirection":{"__isSmartRef__":true,"id":8180},"neighbours":{"__isSmartRef__":true,"id":8183},"zIndex":{"__isSmartRef__":true,"id":8186},"obstacles":{"__isSmartRef__":true,"id":8189},"addObstacle":{"__isSmartRef__":true,"id":8192},"removeObstacle":{"__isSmartRef__":true,"id":8195},"isTile":{"__isSmartRef__":true,"id":8198},"neighbourAt":{"__isSmartRef__":true,"id":8201},"map":{"__isSmartRef__":true,"id":8204},"game":{"__isSmartRef__":true,"id":8207},"reset":{"__isSmartRef__":true,"id":8210},"shallowCopy":{"__isSmartRef__":true,"id":8213},"characters":{"__isSmartRef__":true,"id":8216},"enterTile":{"__isSmartRef__":true,"id":8219},"leaveTile":{"__isSmartRef__":true,"id":8222},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8225}},"8146":{"varMapping":{"__isSmartRef__":true,"id":8147},"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":8148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8147":{"this":{"__isSmartRef__":true,"id":8138}},"8148":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"8149":{"varMapping":{"__isSmartRef__":true,"id":8150},"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":8151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8150":{"this":{"__isSmartRef__":true,"id":8138}},"8151":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"8152":{"varMapping":{"__isSmartRef__":true,"id":8153},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8153":{"this":{"__isSmartRef__":true,"id":8138}},"8154":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"8155":{"varMapping":{"__isSmartRef__":true,"id":8156},"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":8157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8156":{"this":{"__isSmartRef__":true,"id":8138}},"8157":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"8158":{"varMapping":{"__isSmartRef__":true,"id":8159},"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":8164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8159":{"this":{"__isSmartRef__":true,"id":8138},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8160}},"8160":{"$super":{"__isSmartRef__":true,"id":8161}},"8161":{"varMapping":{"__isSmartRef__":true,"id":8162},"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":8163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8162":{"obj":{"__isSmartRef__":true,"id":8138},"name":"onMouseDown"},"8163":{},"8164":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"8165":{"varMapping":{"__isSmartRef__":true,"id":8166},"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":8167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8166":{"this":{"__isSmartRef__":true,"id":8138}},"8167":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"8168":{"varMapping":{"__isSmartRef__":true,"id":8169},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8169":{"this":{"__isSmartRef__":true,"id":8138}},"8170":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"8171":{"varMapping":{"__isSmartRef__":true,"id":8172},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8172":{"this":{"__isSmartRef__":true,"id":8138}},"8173":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"8174":{"varMapping":{"__isSmartRef__":true,"id":8175},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8175":{"this":{"__isSmartRef__":true,"id":8138}},"8176":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"8177":{"varMapping":{"__isSmartRef__":true,"id":8178},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8178":{"this":{"__isSmartRef__":true,"id":8138}},"8179":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"8180":{"varMapping":{"__isSmartRef__":true,"id":8181},"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":8182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8181":{"this":{"__isSmartRef__":true,"id":8138}},"8182":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"8183":{"varMapping":{"__isSmartRef__":true,"id":8184},"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":8185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8184":{"this":{"__isSmartRef__":true,"id":8138}},"8185":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"8186":{"varMapping":{"__isSmartRef__":true,"id":8187},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8187":{"this":{"__isSmartRef__":true,"id":8138}},"8188":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"8189":{"varMapping":{"__isSmartRef__":true,"id":8190},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8190":{"this":{"__isSmartRef__":true,"id":8138}},"8191":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"8192":{"varMapping":{"__isSmartRef__":true,"id":8193},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8193":{"this":{"__isSmartRef__":true,"id":8138}},"8194":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"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},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8196":{"this":{"__isSmartRef__":true,"id":8138}},"8197":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"8198":{"varMapping":{"__isSmartRef__":true,"id":8199},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8199":{"this":{"__isSmartRef__":true,"id":8138}},"8200":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"8201":{"varMapping":{"__isSmartRef__":true,"id":8202},"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":8203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8202":{"this":{"__isSmartRef__":true,"id":8138}},"8203":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"8204":{"varMapping":{"__isSmartRef__":true,"id":8205},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8205":{"this":{"__isSmartRef__":true,"id":8138}},"8206":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"8207":{"varMapping":{"__isSmartRef__":true,"id":8208},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8208":{"this":{"__isSmartRef__":true,"id":8138}},"8209":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"8210":{"varMapping":{"__isSmartRef__":true,"id":8211},"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":8212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8211":{"this":{"__isSmartRef__":true,"id":8138}},"8212":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"8213":{"varMapping":{"__isSmartRef__":true,"id":8214},"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":8215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8214":{"this":{"__isSmartRef__":true,"id":8138}},"8215":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"8216":{"varMapping":{"__isSmartRef__":true,"id":8217},"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":8218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8217":{"this":{"__isSmartRef__":true,"id":8138}},"8218":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"8219":{"varMapping":{"__isSmartRef__":true,"id":8220},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8220":{"this":{"__isSmartRef__":true,"id":8138}},"8221":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"8222":{"varMapping":{"__isSmartRef__":true,"id":8223},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8223":{"this":{"__isSmartRef__":true,"id":8138}},"8224":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"8225":{"varMapping":{"__isSmartRef__":true,"id":8226},"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":8227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8226":{"this":{"__isSmartRef__":true,"id":8138}},"8227":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"8228":{"setDevStyle":{"__isSmartRef__":true,"id":8229},"setNormalStyle":{"__isSmartRef__":true,"id":8232},"tileSize":{"__isSmartRef__":true,"id":8235},"become":{"__isSmartRef__":true,"id":8238},"onMouseDown":{"__isSmartRef__":true,"id":8241},"setGridPosition":{"__isSmartRef__":true,"id":8248},"toolbox":{"__isSmartRef__":true,"id":8251},"distanceTo":{"__isSmartRef__":true,"id":8254},"tileWasDropped":{"__isSmartRef__":true,"id":8257},"isObstacle":{"__isSmartRef__":true,"id":8260},"neighboursInDirection":{"__isSmartRef__":true,"id":8263},"neighbours":{"__isSmartRef__":true,"id":8266},"zIndex":{"__isSmartRef__":true,"id":8269},"obstacles":{"__isSmartRef__":true,"id":8272},"addObstacle":{"__isSmartRef__":true,"id":8275},"removeObstacle":{"__isSmartRef__":true,"id":8278},"isTile":{"__isSmartRef__":true,"id":8281},"neighbourAt":{"__isSmartRef__":true,"id":8284},"map":{"__isSmartRef__":true,"id":8287},"game":{"__isSmartRef__":true,"id":8290},"reset":{"__isSmartRef__":true,"id":8293},"shallowCopy":{"__isSmartRef__":true,"id":8296},"characters":{"__isSmartRef__":true,"id":8299},"enterTile":{"__isSmartRef__":true,"id":8302},"leaveTile":{"__isSmartRef__":true,"id":8305},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8308}},"8229":{"varMapping":{"__isSmartRef__":true,"id":8230},"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":8231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8230":{"this":{"__isSmartRef__":true,"id":7217}},"8231":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"8232":{"varMapping":{"__isSmartRef__":true,"id":8233},"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":8234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8233":{"this":{"__isSmartRef__":true,"id":7217}},"8234":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"8235":{"varMapping":{"__isSmartRef__":true,"id":8236},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8236":{"this":{"__isSmartRef__":true,"id":7217}},"8237":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"8238":{"varMapping":{"__isSmartRef__":true,"id":8239},"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":8240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8239":{"this":{"__isSmartRef__":true,"id":7217}},"8240":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"8241":{"varMapping":{"__isSmartRef__":true,"id":8242},"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":8247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8242":{"this":{"__isSmartRef__":true,"id":7217},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8243}},"8243":{"$super":{"__isSmartRef__":true,"id":8244}},"8244":{"varMapping":{"__isSmartRef__":true,"id":8245},"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":8246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8245":{"obj":{"__isSmartRef__":true,"id":7217},"name":"onMouseDown"},"8246":{},"8247":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"8248":{"varMapping":{"__isSmartRef__":true,"id":8249},"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":8250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8249":{"this":{"__isSmartRef__":true,"id":7217}},"8250":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"8251":{"varMapping":{"__isSmartRef__":true,"id":8252},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8252":{"this":{"__isSmartRef__":true,"id":7217}},"8253":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"8254":{"varMapping":{"__isSmartRef__":true,"id":8255},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8255":{"this":{"__isSmartRef__":true,"id":7217}},"8256":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"8257":{"varMapping":{"__isSmartRef__":true,"id":8258},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8258":{"this":{"__isSmartRef__":true,"id":7217}},"8259":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"8260":{"varMapping":{"__isSmartRef__":true,"id":8261},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8261":{"this":{"__isSmartRef__":true,"id":7217}},"8262":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"8263":{"varMapping":{"__isSmartRef__":true,"id":8264},"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":8265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8264":{"this":{"__isSmartRef__":true,"id":7217}},"8265":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"8266":{"varMapping":{"__isSmartRef__":true,"id":8267},"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":8268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8267":{"this":{"__isSmartRef__":true,"id":7217}},"8268":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"8269":{"varMapping":{"__isSmartRef__":true,"id":8270},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8270":{"this":{"__isSmartRef__":true,"id":7217}},"8271":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"8272":{"varMapping":{"__isSmartRef__":true,"id":8273},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8273":{"this":{"__isSmartRef__":true,"id":7217}},"8274":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"8275":{"varMapping":{"__isSmartRef__":true,"id":8276},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8276":{"this":{"__isSmartRef__":true,"id":7217}},"8277":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"8278":{"varMapping":{"__isSmartRef__":true,"id":8279},"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":8280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8279":{"this":{"__isSmartRef__":true,"id":7217}},"8280":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"8281":{"varMapping":{"__isSmartRef__":true,"id":8282},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8282":{"this":{"__isSmartRef__":true,"id":7217}},"8283":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"8284":{"varMapping":{"__isSmartRef__":true,"id":8285},"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":8286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8285":{"this":{"__isSmartRef__":true,"id":7217}},"8286":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"8287":{"varMapping":{"__isSmartRef__":true,"id":8288},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8288":{"this":{"__isSmartRef__":true,"id":7217}},"8289":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"8290":{"varMapping":{"__isSmartRef__":true,"id":8291},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8291":{"this":{"__isSmartRef__":true,"id":7217}},"8292":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"8293":{"varMapping":{"__isSmartRef__":true,"id":8294},"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":8295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8294":{"this":{"__isSmartRef__":true,"id":7217}},"8295":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"8296":{"varMapping":{"__isSmartRef__":true,"id":8297},"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":8298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8297":{"this":{"__isSmartRef__":true,"id":7217}},"8298":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"8299":{"varMapping":{"__isSmartRef__":true,"id":8300},"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":8301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8300":{"this":{"__isSmartRef__":true,"id":7217}},"8301":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"8302":{"varMapping":{"__isSmartRef__":true,"id":8303},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8303":{"this":{"__isSmartRef__":true,"id":7217}},"8304":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"8305":{"varMapping":{"__isSmartRef__":true,"id":8306},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8306":{"this":{"__isSmartRef__":true,"id":7217}},"8307":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"8308":{"varMapping":{"__isSmartRef__":true,"id":8309},"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":8310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8309":{"this":{"__isSmartRef__":true,"id":7217}},"8310":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"8311":{"setDevStyle":{"__isSmartRef__":true,"id":8312},"setNormalStyle":{"__isSmartRef__":true,"id":8315},"tileSize":{"__isSmartRef__":true,"id":8318},"become":{"__isSmartRef__":true,"id":8321},"onMouseDown":{"__isSmartRef__":true,"id":8324},"setGridPosition":{"__isSmartRef__":true,"id":8331},"toolbox":{"__isSmartRef__":true,"id":8334},"distanceTo":{"__isSmartRef__":true,"id":8337},"tileWasDropped":{"__isSmartRef__":true,"id":8340},"isObstacle":{"__isSmartRef__":true,"id":8343},"neighboursInDirection":{"__isSmartRef__":true,"id":8346},"neighbours":{"__isSmartRef__":true,"id":8349},"zIndex":{"__isSmartRef__":true,"id":8352},"obstacles":{"__isSmartRef__":true,"id":8355},"addObstacle":{"__isSmartRef__":true,"id":8358},"removeObstacle":{"__isSmartRef__":true,"id":8361},"isTile":{"__isSmartRef__":true,"id":8364},"neighbourAt":{"__isSmartRef__":true,"id":8367},"map":{"__isSmartRef__":true,"id":8370},"game":{"__isSmartRef__":true,"id":8373},"reset":{"__isSmartRef__":true,"id":8376},"shallowCopy":{"__isSmartRef__":true,"id":8379},"characters":{"__isSmartRef__":true,"id":8382},"enterTile":{"__isSmartRef__":true,"id":8385},"leaveTile":{"__isSmartRef__":true,"id":8388},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8391}},"8312":{"varMapping":{"__isSmartRef__":true,"id":8313},"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":8314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8313":{"this":{"__isSmartRef__":true,"id":7120}},"8314":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"8315":{"varMapping":{"__isSmartRef__":true,"id":8316},"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":8317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8316":{"this":{"__isSmartRef__":true,"id":7120}},"8317":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"8318":{"varMapping":{"__isSmartRef__":true,"id":8319},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8319":{"this":{"__isSmartRef__":true,"id":7120}},"8320":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"8321":{"varMapping":{"__isSmartRef__":true,"id":8322},"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":8323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8322":{"this":{"__isSmartRef__":true,"id":7120}},"8323":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"8324":{"varMapping":{"__isSmartRef__":true,"id":8325},"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":8330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8325":{"this":{"__isSmartRef__":true,"id":7120},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8326}},"8326":{"$super":{"__isSmartRef__":true,"id":8327}},"8327":{"varMapping":{"__isSmartRef__":true,"id":8328},"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":8329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8328":{"obj":{"__isSmartRef__":true,"id":7120},"name":"onMouseDown"},"8329":{},"8330":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"8331":{"varMapping":{"__isSmartRef__":true,"id":8332},"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":8333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8332":{"this":{"__isSmartRef__":true,"id":7120}},"8333":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"8334":{"varMapping":{"__isSmartRef__":true,"id":8335},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8335":{"this":{"__isSmartRef__":true,"id":7120}},"8336":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"8337":{"varMapping":{"__isSmartRef__":true,"id":8338},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8338":{"this":{"__isSmartRef__":true,"id":7120}},"8339":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"8340":{"varMapping":{"__isSmartRef__":true,"id":8341},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8341":{"this":{"__isSmartRef__":true,"id":7120}},"8342":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"8343":{"varMapping":{"__isSmartRef__":true,"id":8344},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8344":{"this":{"__isSmartRef__":true,"id":7120}},"8345":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"8346":{"varMapping":{"__isSmartRef__":true,"id":8347},"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":8348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8347":{"this":{"__isSmartRef__":true,"id":7120}},"8348":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"8349":{"varMapping":{"__isSmartRef__":true,"id":8350},"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":8351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8350":{"this":{"__isSmartRef__":true,"id":7120}},"8351":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"8352":{"varMapping":{"__isSmartRef__":true,"id":8353},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8353":{"this":{"__isSmartRef__":true,"id":7120}},"8354":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"8355":{"varMapping":{"__isSmartRef__":true,"id":8356},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8356":{"this":{"__isSmartRef__":true,"id":7120}},"8357":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"8358":{"varMapping":{"__isSmartRef__":true,"id":8359},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8359":{"this":{"__isSmartRef__":true,"id":7120}},"8360":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"8361":{"varMapping":{"__isSmartRef__":true,"id":8362},"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":8363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8362":{"this":{"__isSmartRef__":true,"id":7120}},"8363":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"8364":{"varMapping":{"__isSmartRef__":true,"id":8365},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8365":{"this":{"__isSmartRef__":true,"id":7120}},"8366":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"8367":{"varMapping":{"__isSmartRef__":true,"id":8368},"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":8369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8368":{"this":{"__isSmartRef__":true,"id":7120}},"8369":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"8370":{"varMapping":{"__isSmartRef__":true,"id":8371},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8371":{"this":{"__isSmartRef__":true,"id":7120}},"8372":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"8373":{"varMapping":{"__isSmartRef__":true,"id":8374},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8374":{"this":{"__isSmartRef__":true,"id":7120}},"8375":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"8376":{"varMapping":{"__isSmartRef__":true,"id":8377},"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":8378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8377":{"this":{"__isSmartRef__":true,"id":7120}},"8378":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"8379":{"varMapping":{"__isSmartRef__":true,"id":8380},"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":8381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8380":{"this":{"__isSmartRef__":true,"id":7120}},"8381":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"8382":{"varMapping":{"__isSmartRef__":true,"id":8383},"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":8384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8383":{"this":{"__isSmartRef__":true,"id":7120}},"8384":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"8385":{"varMapping":{"__isSmartRef__":true,"id":8386},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8386":{"this":{"__isSmartRef__":true,"id":7120}},"8387":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"8388":{"varMapping":{"__isSmartRef__":true,"id":8389},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8389":{"this":{"__isSmartRef__":true,"id":7120}},"8390":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"8391":{"varMapping":{"__isSmartRef__":true,"id":8392},"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":8393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8392":{"this":{"__isSmartRef__":true,"id":7120}},"8393":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"8394":{"submorphs":[{"__isSmartRef__":true,"id":8395}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8399},"derivationIds":[null],"id":"162EC5B1-6824-415F-A049-31C985299213","eventHandler":{"__isSmartRef__":true,"id":8400},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":2,"column":4,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":8395},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6266},{"__isSmartRef__":true,"id":7113},{"__isSmartRef__":true,"id":8138},{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":8401},{"__isSmartRef__":true,"id":8491},{"__isSmartRef__":true,"id":8498},{"__isSmartRef__":true,"id":8602}],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9858},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,96.0)"},"8395":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8396},"derivationIds":[null],"id":"20DA3DCC-0B43-40E1-A96C-58BB93FFE86B","eventHandler":{"__isSmartRef__":true,"id":8397},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8394},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8398},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"8396":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-20da3dcc-0b43-40e1-a96c-58bb93ffe86b","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"8397":{"morph":{"__isSmartRef__":true,"id":8395},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8398":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"8399":{"_NodeClass":["morph","box"],"_NodeId":"morph-162ec5b1-6824-415f-a049-31c985299213","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8400":{"morph":{"__isSmartRef__":true,"id":8394},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8401":{"submorphs":[{"__isSmartRef__":true,"id":8402}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8406},"derivationIds":[null],"id":"B4DC1CD9-F9E0-4F4E-A5D8-471FD72B8A2E","eventHandler":{"__isSmartRef__":true,"id":8407},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":2,"column":5,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":8402},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8408},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,96.0)"},"8402":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8403},"derivationIds":[null],"id":"193A10E9-0AD3-4754-A60A-CA6B03AF2EE8","eventHandler":{"__isSmartRef__":true,"id":8404},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8401},"__serializedExpressions__":["_Position"],"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8405},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"8403":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-193a10e9-0ad3-4754-a60a-ca6b03af2ee8","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"8404":{"morph":{"__isSmartRef__":true,"id":8402},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8405":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"8406":{"_NodeClass":["morph","box"],"_NodeId":"morph-b4dc1cd9-f9e0-4f4e-a5d8-471fd72b8a2e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8407":{"morph":{"__isSmartRef__":true,"id":8401},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8408":{"setDevStyle":{"__isSmartRef__":true,"id":8409},"setNormalStyle":{"__isSmartRef__":true,"id":8412},"tileSize":{"__isSmartRef__":true,"id":8415},"become":{"__isSmartRef__":true,"id":8418},"onMouseDown":{"__isSmartRef__":true,"id":8421},"setGridPosition":{"__isSmartRef__":true,"id":8428},"toolbox":{"__isSmartRef__":true,"id":8431},"distanceTo":{"__isSmartRef__":true,"id":8434},"tileWasDropped":{"__isSmartRef__":true,"id":8437},"isObstacle":{"__isSmartRef__":true,"id":8440},"neighboursInDirection":{"__isSmartRef__":true,"id":8443},"neighbours":{"__isSmartRef__":true,"id":8446},"zIndex":{"__isSmartRef__":true,"id":8449},"obstacles":{"__isSmartRef__":true,"id":8452},"addObstacle":{"__isSmartRef__":true,"id":8455},"removeObstacle":{"__isSmartRef__":true,"id":8458},"isTile":{"__isSmartRef__":true,"id":8461},"neighbourAt":{"__isSmartRef__":true,"id":8464},"map":{"__isSmartRef__":true,"id":8467},"game":{"__isSmartRef__":true,"id":8470},"reset":{"__isSmartRef__":true,"id":8473},"shallowCopy":{"__isSmartRef__":true,"id":8476},"characters":{"__isSmartRef__":true,"id":8479},"enterTile":{"__isSmartRef__":true,"id":8482},"leaveTile":{"__isSmartRef__":true,"id":8485},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8488}},"8409":{"varMapping":{"__isSmartRef__":true,"id":8410},"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":8411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8410":{"this":{"__isSmartRef__":true,"id":8401}},"8411":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"8412":{"varMapping":{"__isSmartRef__":true,"id":8413},"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":8414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8413":{"this":{"__isSmartRef__":true,"id":8401}},"8414":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"8415":{"varMapping":{"__isSmartRef__":true,"id":8416},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8416":{"this":{"__isSmartRef__":true,"id":8401}},"8417":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"8418":{"varMapping":{"__isSmartRef__":true,"id":8419},"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":8420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8419":{"this":{"__isSmartRef__":true,"id":8401}},"8420":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"8421":{"varMapping":{"__isSmartRef__":true,"id":8422},"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":8427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8422":{"this":{"__isSmartRef__":true,"id":8401},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8423}},"8423":{"$super":{"__isSmartRef__":true,"id":8424}},"8424":{"varMapping":{"__isSmartRef__":true,"id":8425},"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":8426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8425":{"obj":{"__isSmartRef__":true,"id":8401},"name":"onMouseDown"},"8426":{},"8427":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"8428":{"varMapping":{"__isSmartRef__":true,"id":8429},"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":8430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8429":{"this":{"__isSmartRef__":true,"id":8401}},"8430":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"8431":{"varMapping":{"__isSmartRef__":true,"id":8432},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8432":{"this":{"__isSmartRef__":true,"id":8401}},"8433":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"8434":{"varMapping":{"__isSmartRef__":true,"id":8435},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8435":{"this":{"__isSmartRef__":true,"id":8401}},"8436":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"8437":{"varMapping":{"__isSmartRef__":true,"id":8438},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8438":{"this":{"__isSmartRef__":true,"id":8401}},"8439":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"8440":{"varMapping":{"__isSmartRef__":true,"id":8441},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8441":{"this":{"__isSmartRef__":true,"id":8401}},"8442":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"8443":{"varMapping":{"__isSmartRef__":true,"id":8444},"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":8445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8444":{"this":{"__isSmartRef__":true,"id":8401}},"8445":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"8446":{"varMapping":{"__isSmartRef__":true,"id":8447},"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":8448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8447":{"this":{"__isSmartRef__":true,"id":8401}},"8448":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"8449":{"varMapping":{"__isSmartRef__":true,"id":8450},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8450":{"this":{"__isSmartRef__":true,"id":8401}},"8451":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"8452":{"varMapping":{"__isSmartRef__":true,"id":8453},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8453":{"this":{"__isSmartRef__":true,"id":8401}},"8454":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"8455":{"varMapping":{"__isSmartRef__":true,"id":8456},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8456":{"this":{"__isSmartRef__":true,"id":8401}},"8457":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"8458":{"varMapping":{"__isSmartRef__":true,"id":8459},"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":8460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8459":{"this":{"__isSmartRef__":true,"id":8401}},"8460":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"8461":{"varMapping":{"__isSmartRef__":true,"id":8462},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8462":{"this":{"__isSmartRef__":true,"id":8401}},"8463":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"8464":{"varMapping":{"__isSmartRef__":true,"id":8465},"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":8466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8465":{"this":{"__isSmartRef__":true,"id":8401}},"8466":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"8467":{"varMapping":{"__isSmartRef__":true,"id":8468},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8468":{"this":{"__isSmartRef__":true,"id":8401}},"8469":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"8470":{"varMapping":{"__isSmartRef__":true,"id":8471},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8471":{"this":{"__isSmartRef__":true,"id":8401}},"8472":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"8473":{"varMapping":{"__isSmartRef__":true,"id":8474},"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":8475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8474":{"this":{"__isSmartRef__":true,"id":8401}},"8475":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"8476":{"varMapping":{"__isSmartRef__":true,"id":8477},"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":8478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8477":{"this":{"__isSmartRef__":true,"id":8401}},"8478":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"8479":{"varMapping":{"__isSmartRef__":true,"id":8480},"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":8481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8480":{"this":{"__isSmartRef__":true,"id":8401}},"8481":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"8482":{"varMapping":{"__isSmartRef__":true,"id":8483},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8483":{"this":{"__isSmartRef__":true,"id":8401}},"8484":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"8485":{"varMapping":{"__isSmartRef__":true,"id":8486},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8486":{"this":{"__isSmartRef__":true,"id":8401}},"8487":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"8488":{"varMapping":{"__isSmartRef__":true,"id":8489},"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":8490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8489":{"this":{"__isSmartRef__":true,"id":8401}},"8490":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"8491":{"submorphs":[{"__isSmartRef__":true,"id":8492}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8496},"derivationIds":[null],"id":"48F80A97-CEA2-4604-8E8A-AEA318171A54","eventHandler":{"__isSmartRef__":true,"id":8497},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":3,"column":3,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":8492},"grabbingEnabled":false,"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6829},{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":8394},{"__isSmartRef__":true,"id":6527},{"__isSmartRef__":true,"id":8498},{"__isSmartRef__":true,"id":9685},{"__isSmartRef__":true,"id":8902},{"__isSmartRef__":true,"id":8609}],"__obstacles":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9775},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,144.0)"},"8492":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8493},"derivationIds":[null],"id":"DB81C968-0FE6-4FB6-8958-082E53D1F10A","eventHandler":{"__isSmartRef__":true,"id":8494},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8491},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8495},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"8493":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-db81c968-0fe6-4fb6-8958-082e53d1f10a","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"8494":{"morph":{"__isSmartRef__":true,"id":8492},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8495":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"8496":{"_NodeClass":["morph","box"],"_NodeId":"morph-48f80a97-cea2-4604-8e8a-aea318171a54","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8497":{"morph":{"__isSmartRef__":true,"id":8491},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8498":{"submorphs":[{"__isSmartRef__":true,"id":8499},{"__isSmartRef__":true,"id":8503}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8600},"derivationIds":[null],"id":"F07A5D73-0896-4A4E-B120-207D269CB038","eventHandler":{"__isSmartRef__":true,"id":8601},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":3,"column":4,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":8499},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[{"__isSmartRef__":true,"id":8503}],"cachedNeightbours":[{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":8394},{"__isSmartRef__":true,"id":8401},{"__isSmartRef__":true,"id":8491},{"__isSmartRef__":true,"id":8602},{"__isSmartRef__":true,"id":8902},{"__isSmartRef__":true,"id":8609},{"__isSmartRef__":true,"id":9076}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9602},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,144.0)"},"8499":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8500},"derivationIds":[null],"id":"A7B39F35-394B-42B4-B426-7F1D09E4144C","eventHandler":{"__isSmartRef__":true,"id":8501},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8498},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8502},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"8500":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-a7b39f35-394b-42b4-b426-7f1d09e4144c","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"8501":{"morph":{"__isSmartRef__":true,"id":8499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8502":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"8503":{"submorphs":[{"__isSmartRef__":true,"id":8504}],"scripts":[],"id":"767C55A4-E504-468E-A905-9A0DFA7E711C","shape":{"__isSmartRef__":true,"id":8528},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Thing3","partsBinMetaInfo":{"__isSmartRef__":true,"id":6446},"eventHandler":{"__isSmartRef__":true,"id":8529},"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":8530},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":8498},"thing":{"__isSmartRef__":true,"id":8504},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":8498}],"owner":{"__isSmartRef__":true,"id":8498},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8535},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"8504":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8505},"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"],"id":"DCB90C4A-F28A-45C7-B4C0-3900FE64326F","eventHandler":{"__isSmartRef__":true,"id":8506},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"WoodstackThing1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":8507},"moved":true,"isThing":true,"_ClipMode":"visible","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8503},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8520},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(8.0,4.0)"},"8505":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/woodstack.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,44.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8506":{"morph":{"__isSmartRef__":true,"id":8504},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8507":{"partName":"WoodstackThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A not movable pile of wood","changes":[{"__isSmartRef__":true,"id":8508},{"__isSmartRef__":true,"id":8510},{"__isSmartRef__":true,"id":8512},{"__isSmartRef__":true,"id":8514},{"__isSmartRef__":true,"id":8516},{"__isSmartRef__":true,"id":8518}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8508":{"date":{"__isSmartRef__":true,"id":8509},"author":"timfelgentreff","message":"no comment","id":"1A0C6AA2-1339-4430-9D90-041573EBACD1"},"8509":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:08:05 GMT+0200 (Central Europe Daylight Time)"},"8510":{"date":{"__isSmartRef__":true,"id":8511},"author":"tessi","message":"","id":"05265F01-D0D8-4994-B47D-5CEA345DB6E1"},"8511":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:50:38 GMT+0200 (Central Europe Daylight Time)"},"8512":{"date":{"__isSmartRef__":true,"id":8513},"author":"tessi","message":"","id":"929ADB98-2EB3-4DDD-A80B-03F2D63F1F37"},"8513":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:44:01 GMT+0200 (Central Europe Daylight Time)"},"8514":{"date":{"__isSmartRef__":true,"id":8515},"author":"tessi","message":"","id":"8DD457D2-AEDF-49EB-B709-175D70D13811"},"8515":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:15:10 GMT+0200 (Central Europe Daylight Time)"},"8516":{"date":{"__isSmartRef__":true,"id":8517},"author":"timfelgentreff","message":"resize","id":"25C768D6-D9E6-408C-9EC3-DA5E2F40EE31"},"8517":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:32:41 GMT+0200 (Central Europe Daylight Time)"},"8518":{"date":{"__isSmartRef__":true,"id":8519},"author":"timfelgentreff","message":"no comment","id":"12F3271A-3B3E-4552-8F58-D624397EBE9C"},"8519":{"isSerializedDate":true,"string":"Thu May 03 2012 14:03:40 GMT+0200 (Central Europe Daylight Time)"},"8520":{"dropOn":{"__isSmartRef__":true,"id":8521}},"8521":{"varMapping":{"__isSmartRef__":true,"id":8522},"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":8527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8522":{"this":{"__isSmartRef__":true,"id":8504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8523}},"8523":{"$super":{"__isSmartRef__":true,"id":8524}},"8524":{"varMapping":{"__isSmartRef__":true,"id":8525},"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":8526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8525":{"obj":{"__isSmartRef__":true,"id":8504},"name":"dropOn"},"8526":{},"8527":{},"8528":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"8529":{"morph":{"__isSmartRef__":true,"id":8503},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8530":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8531}},"8531":{"test01IsMorph":{"__isSmartRef__":true,"id":8532}},"8532":{"varMapping":{"__isSmartRef__":true,"id":8533},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":8534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8533":{"this":{"__isSmartRef__":true,"id":8530}},"8534":{},"8535":{"setDevStyle":{"__isSmartRef__":true,"id":8536},"setNormalStyle":{"__isSmartRef__":true,"id":8540},"become":{"__isSmartRef__":true,"id":8544},"onMouseDown":{"__isSmartRef__":true,"id":8548},"toolbox":{"__isSmartRef__":true,"id":8556},"zIndex":{"__isSmartRef__":true,"id":8560},"becomeRandomThing":{"__isSmartRef__":true,"id":8564},"reset":{"__isSmartRef__":true,"id":8568},"registerAsObstacle":{"__isSmartRef__":true,"id":8572},"deregisterAsObstacle":{"__isSmartRef__":true,"id":8576},"tileSize":{"__isSmartRef__":true,"id":8580},"dropOn":{"__isSmartRef__":true,"id":8584},"map":{"__isSmartRef__":true,"id":8592},"game":{"__isSmartRef__":true,"id":8596}},"8536":{"varMapping":{"__isSmartRef__":true,"id":8537},"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":8538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8537":{"this":{"__isSmartRef__":true,"id":8503}},"8538":{"timestamp":{"__isSmartRef__":true,"id":8539},"user":"timfelgentreff","tags":[]},"8539":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (Central Europe Daylight Time)"},"8540":{"varMapping":{"__isSmartRef__":true,"id":8541},"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":8542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8541":{"this":{"__isSmartRef__":true,"id":8503}},"8542":{"timestamp":{"__isSmartRef__":true,"id":8543},"user":"tessi","tags":[]},"8543":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (Central Europe Daylight Time)"},"8544":{"varMapping":{"__isSmartRef__":true,"id":8545},"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":8546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8545":{"this":{"__isSmartRef__":true,"id":8503}},"8546":{"timestamp":{"__isSmartRef__":true,"id":8547},"user":"timfelgentreff","tags":[]},"8547":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (Central Europe Daylight Time)"},"8548":{"varMapping":{"__isSmartRef__":true,"id":8549},"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":8554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8549":{"this":{"__isSmartRef__":true,"id":8503},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8550}},"8550":{"$super":{"__isSmartRef__":true,"id":8551}},"8551":{"varMapping":{"__isSmartRef__":true,"id":8552},"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":8553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8552":{"obj":{"__isSmartRef__":true,"id":8503},"name":"onMouseDown"},"8553":{},"8554":{"timestamp":{"__isSmartRef__":true,"id":8555},"user":"tessi","tags":[]},"8555":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (Central Europe Daylight Time)"},"8556":{"varMapping":{"__isSmartRef__":true,"id":8557},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8557":{"this":{"__isSmartRef__":true,"id":8503}},"8558":{"timestamp":{"__isSmartRef__":true,"id":8559},"user":"tessi","tags":[]},"8559":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (Central Europe Daylight Time)"},"8560":{"varMapping":{"__isSmartRef__":true,"id":8561},"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":8562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8561":{"this":{"__isSmartRef__":true,"id":8503}},"8562":{"timestamp":{"__isSmartRef__":true,"id":8563},"user":"timfelgentreff","tags":[]},"8563":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (Central Europe Daylight Time)"},"8564":{"varMapping":{"__isSmartRef__":true,"id":8565},"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":8566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8565":{"this":{"__isSmartRef__":true,"id":8503}},"8566":{"timestamp":{"__isSmartRef__":true,"id":8567},"user":"tessi","tags":[]},"8567":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (Central Europe Daylight Time)"},"8568":{"varMapping":{"__isSmartRef__":true,"id":8569},"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":8570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8569":{"this":{"__isSmartRef__":true,"id":8503}},"8570":{"timestamp":{"__isSmartRef__":true,"id":8571},"user":"tessi","tags":[]},"8571":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (Central Europe Daylight Time)"},"8572":{"varMapping":{"__isSmartRef__":true,"id":8573},"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":8574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8573":{"this":{"__isSmartRef__":true,"id":8503}},"8574":{"timestamp":{"__isSmartRef__":true,"id":8575},"user":"timfelgentreff","tags":[]},"8575":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (Central Europe Daylight Time)"},"8576":{"varMapping":{"__isSmartRef__":true,"id":8577},"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":8578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8577":{"this":{"__isSmartRef__":true,"id":8503}},"8578":{"timestamp":{"__isSmartRef__":true,"id":8579},"user":"timfelgentreff","tags":[]},"8579":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (Central Europe Daylight Time)"},"8580":{"varMapping":{"__isSmartRef__":true,"id":8581},"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":8582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8581":{"this":{"__isSmartRef__":true,"id":8503}},"8582":{"timestamp":{"__isSmartRef__":true,"id":8583},"user":"timfelgentreff","tags":[]},"8583":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (Central Europe Daylight Time)"},"8584":{"varMapping":{"__isSmartRef__":true,"id":8585},"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":8590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8585":{"this":{"__isSmartRef__":true,"id":8503},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8586}},"8586":{"$super":{"__isSmartRef__":true,"id":8587}},"8587":{"varMapping":{"__isSmartRef__":true,"id":8588},"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":8589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8588":{"obj":{"__isSmartRef__":true,"id":8503},"name":"dropOn"},"8589":{},"8590":{"timestamp":{"__isSmartRef__":true,"id":8591},"user":"timfelgentreff","tags":[]},"8591":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (Central Europe Daylight Time)"},"8592":{"varMapping":{"__isSmartRef__":true,"id":8593},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":8594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8593":{"this":{"__isSmartRef__":true,"id":8503}},"8594":{"timestamp":{"__isSmartRef__":true,"id":8595},"user":"tessi","tags":[]},"8595":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (Central Europe Daylight Time)"},"8596":{"varMapping":{"__isSmartRef__":true,"id":8597},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":8598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8597":{"this":{"__isSmartRef__":true,"id":8503}},"8598":{"timestamp":{"__isSmartRef__":true,"id":8599},"user":"tessi","tags":[]},"8599":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (Central Europe Daylight Time)"},"8600":{"_NodeClass":["morph","box"],"_NodeId":"morph-f07a5d73-0896-4a4e-b120-207d269cb038","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8601":{"morph":{"__isSmartRef__":true,"id":8498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8602":{"submorphs":[{"__isSmartRef__":true,"id":8603}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8607},"derivationIds":[null],"id":"0D074CD0-248B-4633-AF4E-E81803B9F946","eventHandler":{"__isSmartRef__":true,"id":8608},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":3,"column":5,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":8603},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":8394},{"__isSmartRef__":true,"id":8401},{"__isSmartRef__":true,"id":8498},{"__isSmartRef__":true,"id":8609},{"__isSmartRef__":true,"id":9076}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9519},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,144.0)"},"8603":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8604},"derivationIds":[null],"id":"86243C2A-9A79-4764-A31F-A0B3E58D4E8D","eventHandler":{"__isSmartRef__":true,"id":8605},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8602},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8606},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"8604":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-86243c2a-9a79-4764-a31f-a0b3e58d4e8d","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"8605":{"morph":{"__isSmartRef__":true,"id":8603},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8606":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"8607":{"_NodeClass":["morph","box"],"_NodeId":"morph-0d074cd0-248b-4633-af4e-e81803b9f946","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8608":{"morph":{"__isSmartRef__":true,"id":8602},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8609":{"submorphs":[{"__isSmartRef__":true,"id":8610}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8614},"derivationIds":[null],"id":"CEEAA006-5CA7-404F-9318-E9D9DBBF2A6D","eventHandler":{"__isSmartRef__":true,"id":8615},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":4,"column":4,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":8610},"grabbingEnabled":false,"charactersStandingHere":[{"__isSmartRef__":true,"id":8616}],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":8491},{"__isSmartRef__":true,"id":8498},{"__isSmartRef__":true,"id":8602},{"__isSmartRef__":true,"id":8902},{"__isSmartRef__":true,"id":9076},{"__isSmartRef__":true,"id":9166},{"__isSmartRef__":true,"id":9256},{"__isSmartRef__":true,"id":9346}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9436},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,192.0)"},"8610":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8611},"derivationIds":[null],"id":"38C77383-EF72-415C-8904-C549EC26C885","eventHandler":{"__isSmartRef__":true,"id":8612},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8609},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8613},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"8611":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-38c77383-ef72-415c-8904-c549ec26c885","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"8612":{"morph":{"__isSmartRef__":true,"id":8610},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8613":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"8614":{"_NodeClass":["morph","box"],"_NodeId":"morph-ceeaa006-5ca7-404f-9318-e9d9dbbf2a6d","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8615":{"morph":{"__isSmartRef__":true,"id":8609},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8616":{"submorphs":[{"__isSmartRef__":true,"id":8617},{"__isSmartRef__":true,"id":8665},{"__isSmartRef__":true,"id":8725}],"scripts":[{"__isSmartRef__":true,"id":8740},{"__isSmartRef__":true,"id":8742}],"shape":{"__isSmartRef__":true,"id":8743},"derivationIds":[null],"id":"F1B5D902-BD3A-464B-B26E-92275834F9AB","eventHandler":{"__isSmartRef__":true,"id":8744},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":7364},"lifeBar":{"__isSmartRef__":true,"id":8617},"deathAnimation":{"__isSmartRef__":true,"id":8665},"owner":{"__isSmartRef__":true,"id":6414},"character":{"__isSmartRef__":true,"id":8725},"animateScript":{"__isSmartRef__":true,"id":8740},"isBusy":false,"lastSpeedTimestamp":1340705400936,"walkScript":{"__isSmartRef__":true,"id":8742},"__serializedExpressions__":["_Position","direction"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8745},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,192.0)","direction":"lively.pt(0.0,1.0)"},"8617":{"submorphs":[],"scripts":[],"id":"80DA36FA-D45D-40CB-8D5D-84D7286C44D7","shape":{"__isSmartRef__":true,"id":8618},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LifeBar3","partsBinMetaInfo":{"__isSmartRef__":true,"id":8619},"eventHandler":{"__isSmartRef__":true,"id":8634},"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","8872CA7B-AEBD-45E8-8D7A-8C16B7073561"],"partTests":{"__isSmartRef__":true,"id":8635},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","character":{"__isSmartRef__":true,"id":8616},"owner":{"__isSmartRef__":true,"id":8616},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8640},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,-13.0)"},"8618":{"_BorderWidth":1,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,8.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(151,255,0)","_Padding":"lively.rect(0,0,0,0)"},"8619":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":8620},{"__isSmartRef__":true,"id":8622},{"__isSmartRef__":true,"id":8624},{"__isSmartRef__":true,"id":8626},{"__isSmartRef__":true,"id":8628},{"__isSmartRef__":true,"id":8630},{"__isSmartRef__":true,"id":8632}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8620":{"date":{"__isSmartRef__":true,"id":8621},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"8621":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"8622":{"date":{"__isSmartRef__":true,"id":8623},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"8623":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"8624":{"date":{"__isSmartRef__":true,"id":8625},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"8625":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"8626":{"date":{"__isSmartRef__":true,"id":8627},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"8627":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"8628":{"date":{"__isSmartRef__":true,"id":8629},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"8629":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"8630":{"date":{"__isSmartRef__":true,"id":8631},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"8631":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"8632":{"date":{"__isSmartRef__":true,"id":8633},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"8633":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (Central Europe Daylight Time)"},"8634":{"morph":{"__isSmartRef__":true,"id":8617},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8635":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8636}},"8636":{"test01IsMorph":{"__isSmartRef__":true,"id":8637}},"8637":{"varMapping":{"__isSmartRef__":true,"id":8638},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":8639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8638":{"this":{"__isSmartRef__":true,"id":8635}},"8639":{},"8640":{"setColorForWidth":{"__isSmartRef__":true,"id":8641},"reset":{"__isSmartRef__":true,"id":8645},"hit":{"__isSmartRef__":true,"id":8649},"extent":{"__isSmartRef__":true,"id":8653},"isDead":{"__isSmartRef__":true,"id":8657},"lifeLoss":{"__isSmartRef__":true,"id":8661},"heal":{"__isSmartRef__":true,"id":8645}},"8641":{"varMapping":{"__isSmartRef__":true,"id":8642},"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":8643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8642":{"this":{"__isSmartRef__":true,"id":8617}},"8643":{"timestamp":{"__isSmartRef__":true,"id":8644},"user":"timfelgentreff","tags":[]},"8644":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (Central Europe Daylight Time)"},"8645":{"varMapping":{"__isSmartRef__":true,"id":8646},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":8647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8646":{"this":{"__isSmartRef__":true,"id":8617}},"8647":{"timestamp":{"__isSmartRef__":true,"id":8648},"user":"timfelgentreff","tags":[]},"8648":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (Central Europe Daylight Time)"},"8649":{"varMapping":{"__isSmartRef__":true,"id":8650},"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":8651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8650":{"this":{"__isSmartRef__":true,"id":8617}},"8651":{"timestamp":{"__isSmartRef__":true,"id":8652},"user":"timfelgentreff","tags":[]},"8652":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (Central Europe Daylight Time)"},"8653":{"varMapping":{"__isSmartRef__":true,"id":8654},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":8655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8654":{"this":{"__isSmartRef__":true,"id":8617}},"8655":{"timestamp":{"__isSmartRef__":true,"id":8656},"user":"timfelgentreff","tags":[]},"8656":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (Central Europe Daylight Time)"},"8657":{"varMapping":{"__isSmartRef__":true,"id":8658},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":8659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8658":{"this":{"__isSmartRef__":true,"id":8617}},"8659":{"timestamp":{"__isSmartRef__":true,"id":8660},"user":"timfelgentreff","tags":[]},"8660":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (Central Europe Daylight Time)"},"8661":{"varMapping":{"__isSmartRef__":true,"id":8662},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":8663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8662":{"this":{"__isSmartRef__":true,"id":8617}},"8663":{"timestamp":{"__isSmartRef__":true,"id":8664},"user":"timfelgentreff","tags":[]},"8664":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (Central Europe Daylight Time)"},"8665":{"submorphs":[{"__isSmartRef__":true,"id":8666}],"scripts":[],"id":"F6ABEB9D-036E-4DD5-B9C9-C6A10D237758","shape":{"__isSmartRef__":true,"id":8689},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"DeathAnimation3","partsBinMetaInfo":{"__isSmartRef__":true,"id":8690},"eventHandler":{"__isSmartRef__":true,"id":8703},"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","DC6AF031-4E21-4076-ABC3-9D13F29725A5"],"partTests":{"__isSmartRef__":true,"id":8704},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":8666},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","character":{"__isSmartRef__":true,"id":8616},"owner":{"__isSmartRef__":true,"id":8616},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8709},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"8666":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8667},"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","DD557BF7-D160-41F2-92B9-E07260DA4032"],"id":"699B03B1-F178-4C74-B26B-7782B4B91A31","eventHandler":{"__isSmartRef__":true,"id":8668},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":8669},"moved":true,"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":8665},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8684},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"8667":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"8668":{"morph":{"__isSmartRef__":true,"id":8666},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8669":{"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":8670},{"__isSmartRef__":true,"id":8672},{"__isSmartRef__":true,"id":8674},{"__isSmartRef__":true,"id":8676},{"__isSmartRef__":true,"id":8678},{"__isSmartRef__":true,"id":8680},{"__isSmartRef__":true,"id":8682}],"migrationLevel":4,"revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8670":{"date":{"__isSmartRef__":true,"id":8671},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"8671":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"8672":{"date":{"__isSmartRef__":true,"id":8673},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"8673":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"8674":{"date":{"__isSmartRef__":true,"id":8675},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"8675":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"8676":{"date":{"__isSmartRef__":true,"id":8677},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"8677":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"8678":{"date":{"__isSmartRef__":true,"id":8679},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"8679":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"8680":{"date":{"__isSmartRef__":true,"id":8681},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"8681":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"8682":{"date":{"__isSmartRef__":true,"id":8683},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"8683":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"8684":{"soliloquize":{"__isSmartRef__":true,"id":8685}},"8685":{"varMapping":{"__isSmartRef__":true,"id":8686},"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":8687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8686":{"this":{"__isSmartRef__":true,"id":8666}},"8687":{"timestamp":{"__isSmartRef__":true,"id":8688},"user":"lauritz","tags":[]},"8688":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"8689":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"8690":{"partsSpaceName":"PartsBin/Basic","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":8691},{"__isSmartRef__":true,"id":8693},{"__isSmartRef__":true,"id":8695},{"__isSmartRef__":true,"id":8697},{"__isSmartRef__":true,"id":8699},{"__isSmartRef__":true,"id":8701}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8691":{"date":{"__isSmartRef__":true,"id":8692},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"8692":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"8693":{"date":{"__isSmartRef__":true,"id":8694},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"8694":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"8695":{"date":{"__isSmartRef__":true,"id":8696},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"8696":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"8697":{"date":{"__isSmartRef__":true,"id":8698},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"8698":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"8699":{"date":{"__isSmartRef__":true,"id":8700},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"8700":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"8701":{"date":{"__isSmartRef__":true,"id":8702},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"8702":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"8703":{"morph":{"__isSmartRef__":true,"id":8665},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8704":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8705}},"8705":{"test01IsMorph":{"__isSmartRef__":true,"id":8706}},"8706":{"varMapping":{"__isSmartRef__":true,"id":8707},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":8708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8707":{"this":{"__isSmartRef__":true,"id":8704}},"8708":{},"8709":{"die":{"__isSmartRef__":true,"id":8710},"reset":{"__isSmartRef__":true,"id":8713},"nextImage":{"__isSmartRef__":true,"id":8717},"start":{"__isSmartRef__":true,"id":8721}},"8710":{"varMapping":{"__isSmartRef__":true,"id":8711},"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":8712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8711":{"this":{"__isSmartRef__":true,"id":8665}},"8712":{},"8713":{"varMapping":{"__isSmartRef__":true,"id":8714},"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":8715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8714":{"this":{"__isSmartRef__":true,"id":8665}},"8715":{"timestamp":{"__isSmartRef__":true,"id":8716},"user":"timfelgentreff","tags":[]},"8716":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (Central Europe Daylight Time)"},"8717":{"varMapping":{"__isSmartRef__":true,"id":8718},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":8719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8718":{"this":{"__isSmartRef__":true,"id":8665}},"8719":{"timestamp":{"__isSmartRef__":true,"id":8720},"user":"timfelgentreff","tags":[]},"8720":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (Central Europe Daylight Time)"},"8721":{"varMapping":{"__isSmartRef__":true,"id":8722},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":8723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8722":{"this":{"__isSmartRef__":true,"id":8665}},"8723":{"timestamp":{"__isSmartRef__":true,"id":8724},"user":"timfelgentreff","tags":[]},"8724":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (Central Europe Daylight Time)"},"8725":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8726},"derivationIds":[null,"DDEAC478-2517-4549-94EE-CDDC72BCB67A","7C9FE591-7783-4A14-A4C6-3202BFD06CDB","1880E48F-8410-43CD-B356-0A1E07E68A4A"],"id":"349E4A9E-4887-4104-A7BB-643540FE1CD8","eventHandler":{"__isSmartRef__":true,"id":8727},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"OctocatCharacter1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":8728},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":8616},"eventsAreIgnored":true,"__serializedExpressions__":["_Position"],"soloSentences":[null],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8735},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-12.0)"},"8726":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/octocat.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.0,72.0)","_Padding":"lively.rect(0,0,0,0)"},"8727":{"morph":{"__isSmartRef__":true,"id":8725},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8728":{"partName":"OctocatCharacter","requiredModules":[],"comment":"Look at me! I'm doing the octo dance!","changes":[{"__isSmartRef__":true,"id":8729},{"__isSmartRef__":true,"id":8731},{"__isSmartRef__":true,"id":8733}],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8729":{"date":{"__isSmartRef__":true,"id":8730},"author":"tessi","message":"","id":"F614B373-FE65-419F-AC36-21BCCE60AEE6"},"8730":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:36:27 GMT+0200 (Central Europe Daylight Time)"},"8731":{"date":{"__isSmartRef__":true,"id":8732},"author":"tessi","message":"","id":"977A2D23-B062-4F60-AB60-63CF3624D817"},"8732":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:33:30 GMT+0200 (Central Europe Daylight Time)"},"8733":{"date":{"__isSmartRef__":true,"id":8734},"author":"tessi","message":"octocat does not soliloquize (for now!?)","id":"0F039063-F9E3-4503-B1ED-C1C7C887679B"},"8734":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:04 GMT+0200 (Central Europe Daylight Time)"},"8735":{"soliloquize":{"__isSmartRef__":true,"id":8736}},"8736":{"varMapping":{"__isSmartRef__":true,"id":8737},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n undefined\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":8738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8737":{"this":{"__isSmartRef__":true,"id":8725}},"8738":{"timestamp":{"__isSmartRef__":true,"id":8739},"user":"tessi","tags":[]},"8739":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:38:40 GMT+0200 (Central Europe Daylight Time)"},"8740":{"target":{"__isSmartRef__":true,"id":8616},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":8741}],"stopped":true,"tickTime":3000,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"8741":{},"8742":{"target":{"__isSmartRef__":true,"id":8616},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":8609}]],"stopped":true,"tickTime":10,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"8743":{"_NodeClass":["morph","box"],"_NodeId":"morph-f1b5d902-bd3a-464b-b26e-92275834f9ab","_BorderWidth":1,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8744":{"morph":{"__isSmartRef__":true,"id":8616},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8745":{"setDevStyle":{"__isSmartRef__":true,"id":8746},"setNormalStyle":{"__isSmartRef__":true,"id":8749},"tileSize":{"__isSmartRef__":true,"id":8752},"become":{"__isSmartRef__":true,"id":8755},"walkUntilReached":{"__isSmartRef__":true,"id":8758},"onMouseDown":{"__isSmartRef__":true,"id":8761},"walkTo":{"__isSmartRef__":true,"id":8768},"currentTile":{"__isSmartRef__":true,"id":8771},"toolbox":{"__isSmartRef__":true,"id":8774},"setCurrentSpeed":{"__isSmartRef__":true,"id":8777},"getCurrentSpeed":{"__isSmartRef__":true,"id":8780},"isWalking":{"__isSmartRef__":true,"id":8783},"select":{"__isSmartRef__":true,"id":8786},"deselect":{"__isSmartRef__":true,"id":8789},"becomeRandomCharacter":{"__isSmartRef__":true,"id":8792},"reset":{"__isSmartRef__":true,"id":8795},"setDirectionToTile":{"__isSmartRef__":true,"id":8798},"getDirection":{"__isSmartRef__":true,"id":8801},"setDirection":{"__isSmartRef__":true,"id":8804},"setPosition":{"__isSmartRef__":true,"id":8807},"say":{"__isSmartRef__":true,"id":8814},"soliloquize":{"__isSmartRef__":true,"id":8817},"characterType":{"__isSmartRef__":true,"id":8820},"animate":{"__isSmartRef__":true,"id":8823},"doSomething":{"__isSmartRef__":true,"id":8826},"map":{"__isSmartRef__":true,"id":8829},"game":{"__isSmartRef__":true,"id":8832},"setup":{"__isSmartRef__":true,"id":8835},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":8838},"startConversation":{"__isSmartRef__":true,"id":8845},"startConversationWith":{"__isSmartRef__":true,"id":8848},"shallowCopy":{"__isSmartRef__":true,"id":8851},"conversation":{"__isSmartRef__":true,"id":8854},"answer":{"__isSmartRef__":true,"id":8857},"hideTextBubble":{"__isSmartRef__":true,"id":8860},"aStar":{"__isSmartRef__":true,"id":8863},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":8866},"aStarWalkPath":{"__isSmartRef__":true,"id":8869},"chatBot":{"__isSmartRef__":true,"id":8872},"getHit":{"__isSmartRef__":true,"id":8875},"becomePlayer":{"__isSmartRef__":true,"id":8878},"fight":{"__isSmartRef__":true,"id":8881},"fightPhrases":{"__isSmartRef__":true,"id":8884},"randomQuestions":{"__isSmartRef__":true,"id":8887},"randomAnswersFor":{"__isSmartRef__":true,"id":8890},"executeFightTurnAsking":{"__isSmartRef__":true,"id":8893},"heal":{"__isSmartRef__":true,"id":8896},"isDead":{"__isSmartRef__":true,"id":8899}},"8746":{"varMapping":{"__isSmartRef__":true,"id":8747},"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":8748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8747":{"this":{"__isSmartRef__":true,"id":8616}},"8748":{"timestamp":{"__isSmartRef__":true,"id":7587},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7588},"declaredObject":""},"8749":{"varMapping":{"__isSmartRef__":true,"id":8750},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":8751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8750":{"this":{"__isSmartRef__":true,"id":8616}},"8751":{"timestamp":{"__isSmartRef__":true,"id":7705},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7702},"declaredObject":""},"8752":{"varMapping":{"__isSmartRef__":true,"id":8753},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":8754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8753":{"this":{"__isSmartRef__":true,"id":8616}},"8754":{"timestamp":{"__isSmartRef__":true,"id":7709},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7706},"declaredObject":""},"8755":{"varMapping":{"__isSmartRef__":true,"id":8756},"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":8757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8756":{"this":{"__isSmartRef__":true,"id":8616}},"8757":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7710},"declaredObject":""},"8758":{"varMapping":{"__isSmartRef__":true,"id":8759},"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":8760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8759":{"this":{"__isSmartRef__":true,"id":8616}},"8760":{"timestamp":{"__isSmartRef__":true,"id":7716},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7713},"declaredObject":""},"8761":{"varMapping":{"__isSmartRef__":true,"id":8762},"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":8767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8762":{"this":{"__isSmartRef__":true,"id":8616},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8763}},"8763":{"$super":{"__isSmartRef__":true,"id":8764}},"8764":{"varMapping":{"__isSmartRef__":true,"id":8765},"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":8766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8765":{"obj":{"__isSmartRef__":true,"id":8616},"name":"onMouseDown"},"8766":{},"8767":{"timestamp":{"__isSmartRef__":true,"id":7724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7717},"declaredObject":""},"8768":{"varMapping":{"__isSmartRef__":true,"id":8769},"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":8770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8769":{"this":{"__isSmartRef__":true,"id":8616}},"8770":{"timestamp":{"__isSmartRef__":true,"id":7728},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7725},"declaredObject":""},"8771":{"varMapping":{"__isSmartRef__":true,"id":8772},"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":8773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8772":{"this":{"__isSmartRef__":true,"id":8616}},"8773":{"timestamp":{"__isSmartRef__":true,"id":7732},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7729},"declaredObject":""},"8774":{"varMapping":{"__isSmartRef__":true,"id":8775},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8775":{"this":{"__isSmartRef__":true,"id":8616}},"8776":{"timestamp":{"__isSmartRef__":true,"id":7736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7733},"declaredObject":""},"8777":{"varMapping":{"__isSmartRef__":true,"id":8778},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":8779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8778":{"this":{"__isSmartRef__":true,"id":8616}},"8779":{"timestamp":{"__isSmartRef__":true,"id":7740},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7737},"declaredObject":""},"8780":{"varMapping":{"__isSmartRef__":true,"id":8781},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":8782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8781":{"this":{"__isSmartRef__":true,"id":8616}},"8782":{"timestamp":{"__isSmartRef__":true,"id":7744},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7741},"declaredObject":""},"8783":{"varMapping":{"__isSmartRef__":true,"id":8784},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":8785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8784":{"this":{"__isSmartRef__":true,"id":8616}},"8785":{"timestamp":{"__isSmartRef__":true,"id":7748},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7745},"declaredObject":""},"8786":{"varMapping":{"__isSmartRef__":true,"id":8787},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":8788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8787":{"this":{"__isSmartRef__":true,"id":8616}},"8788":{"timestamp":{"__isSmartRef__":true,"id":7752},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7749},"declaredObject":""},"8789":{"varMapping":{"__isSmartRef__":true,"id":8790},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":8791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8790":{"this":{"__isSmartRef__":true,"id":8616}},"8791":{"timestamp":{"__isSmartRef__":true,"id":7756},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7753},"declaredObject":""},"8792":{"varMapping":{"__isSmartRef__":true,"id":8793},"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":8794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8793":{"this":{"__isSmartRef__":true,"id":8616}},"8794":{"timestamp":{"__isSmartRef__":true,"id":7760},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7757},"declaredObject":""},"8795":{"varMapping":{"__isSmartRef__":true,"id":8796},"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":8797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8796":{"this":{"__isSmartRef__":true,"id":8616}},"8797":{"timestamp":{"__isSmartRef__":true,"id":7764},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7761},"declaredObject":""},"8798":{"varMapping":{"__isSmartRef__":true,"id":8799},"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":8800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8799":{"this":{"__isSmartRef__":true,"id":8616}},"8800":{"timestamp":{"__isSmartRef__":true,"id":7768},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7765},"declaredObject":""},"8801":{"varMapping":{"__isSmartRef__":true,"id":8802},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":8803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8802":{"this":{"__isSmartRef__":true,"id":8616}},"8803":{"timestamp":{"__isSmartRef__":true,"id":7772},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7769},"declaredObject":""},"8804":{"varMapping":{"__isSmartRef__":true,"id":8805},"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":8806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8805":{"this":{"__isSmartRef__":true,"id":8616}},"8806":{"timestamp":{"__isSmartRef__":true,"id":7776},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7773},"declaredObject":""},"8807":{"varMapping":{"__isSmartRef__":true,"id":8808},"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":8813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8808":{"this":{"__isSmartRef__":true,"id":8616},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8809}},"8809":{"$super":{"__isSmartRef__":true,"id":8810}},"8810":{"varMapping":{"__isSmartRef__":true,"id":8811},"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":8812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8811":{"obj":{"__isSmartRef__":true,"id":8616},"name":"setPosition"},"8812":{},"8813":{"timestamp":{"__isSmartRef__":true,"id":7784},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7777},"declaredObject":""},"8814":{"varMapping":{"__isSmartRef__":true,"id":8815},"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":8816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8815":{"this":{"__isSmartRef__":true,"id":8616}},"8816":{"timestamp":{"__isSmartRef__":true,"id":7788},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7785},"declaredObject":""},"8817":{"varMapping":{"__isSmartRef__":true,"id":8818},"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":8819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8818":{"this":{"__isSmartRef__":true,"id":8616}},"8819":{"timestamp":{"__isSmartRef__":true,"id":7792},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7789},"declaredObject":""},"8820":{"varMapping":{"__isSmartRef__":true,"id":8821},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":8822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8821":{"this":{"__isSmartRef__":true,"id":8616}},"8822":{"timestamp":{"__isSmartRef__":true,"id":7796},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7793},"declaredObject":""},"8823":{"varMapping":{"__isSmartRef__":true,"id":8824},"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":8825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8824":{"this":{"__isSmartRef__":true,"id":8616}},"8825":{"timestamp":{"__isSmartRef__":true,"id":7800},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7797},"declaredObject":""},"8826":{"varMapping":{"__isSmartRef__":true,"id":8827},"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":8828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8827":{"this":{"__isSmartRef__":true,"id":8616}},"8828":{"timestamp":{"__isSmartRef__":true,"id":7804},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7801},"declaredObject":""},"8829":{"varMapping":{"__isSmartRef__":true,"id":8830},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":8831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8830":{"this":{"__isSmartRef__":true,"id":8616}},"8831":{"timestamp":{"__isSmartRef__":true,"id":7808},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7805},"declaredObject":""},"8832":{"varMapping":{"__isSmartRef__":true,"id":8833},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":8834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8833":{"this":{"__isSmartRef__":true,"id":8616}},"8834":{"timestamp":{"__isSmartRef__":true,"id":7812},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7809},"declaredObject":""},"8835":{"varMapping":{"__isSmartRef__":true,"id":8836},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":8837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8836":{"this":{"__isSmartRef__":true,"id":8616}},"8837":{"timestamp":{"__isSmartRef__":true,"id":7816},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7813},"declaredObject":""},"8838":{"varMapping":{"__isSmartRef__":true,"id":8839},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":8844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8839":{"this":{"__isSmartRef__":true,"id":8616},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8840}},"8840":{"$super":{"__isSmartRef__":true,"id":8841}},"8841":{"varMapping":{"__isSmartRef__":true,"id":8842},"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":8843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8842":{"obj":{"__isSmartRef__":true,"id":8616},"name":"copyToPartsBinWithUserRequest"},"8843":{},"8844":{"timestamp":{"__isSmartRef__":true,"id":7824},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7817},"declaredObject":""},"8845":{"varMapping":{"__isSmartRef__":true,"id":8846},"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":8847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8846":{"this":{"__isSmartRef__":true,"id":8616}},"8847":{"timestamp":{"__isSmartRef__":true,"id":7828},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7825},"declaredObject":""},"8848":{"varMapping":{"__isSmartRef__":true,"id":8849},"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":8850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8849":{"this":{"__isSmartRef__":true,"id":8616}},"8850":{"timestamp":{"__isSmartRef__":true,"id":7832},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7829},"declaredObject":""},"8851":{"varMapping":{"__isSmartRef__":true,"id":8852},"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":8853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8852":{"this":{"__isSmartRef__":true,"id":8616}},"8853":{"timestamp":{"__isSmartRef__":true,"id":7836},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7833},"declaredObject":""},"8854":{"varMapping":{"__isSmartRef__":true,"id":8855},"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":8856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8855":{"this":{"__isSmartRef__":true,"id":8616}},"8856":{"timestamp":{"__isSmartRef__":true,"id":7840},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7837},"declaredObject":""},"8857":{"varMapping":{"__isSmartRef__":true,"id":8858},"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":8859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8858":{"this":{"__isSmartRef__":true,"id":8616}},"8859":{"timestamp":{"__isSmartRef__":true,"id":7844},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7841},"declaredObject":""},"8860":{"varMapping":{"__isSmartRef__":true,"id":8861},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8861":{"this":{"__isSmartRef__":true,"id":8616}},"8862":{"timestamp":{"__isSmartRef__":true,"id":7848},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7845},"declaredObject":""},"8863":{"varMapping":{"__isSmartRef__":true,"id":8864},"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":8865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8864":{"this":{"__isSmartRef__":true,"id":8616}},"8865":{"timestamp":{"__isSmartRef__":true,"id":7852},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7849},"declaredObject":""},"8866":{"varMapping":{"__isSmartRef__":true,"id":8867},"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":8868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8867":{"this":{"__isSmartRef__":true,"id":8616}},"8868":{"timestamp":{"__isSmartRef__":true,"id":7856},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7853},"declaredObject":""},"8869":{"varMapping":{"__isSmartRef__":true,"id":8870},"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":8871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8870":{"this":{"__isSmartRef__":true,"id":8616}},"8871":{"timestamp":{"__isSmartRef__":true,"id":7860},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7857},"declaredObject":""},"8872":{"varMapping":{"__isSmartRef__":true,"id":8873},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":8874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8873":{"this":{"__isSmartRef__":true,"id":8616}},"8874":{"timestamp":{"__isSmartRef__":true,"id":7864},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7861},"declaredObject":""},"8875":{"varMapping":{"__isSmartRef__":true,"id":8876},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":8877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8876":{"this":{"__isSmartRef__":true,"id":8616}},"8877":{"timestamp":{"__isSmartRef__":true,"id":7868},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7865},"declaredObject":""},"8878":{"varMapping":{"__isSmartRef__":true,"id":8879},"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":8880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8879":{"this":{"__isSmartRef__":true,"id":8616}},"8880":{"timestamp":{"__isSmartRef__":true,"id":7872},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7869},"declaredObject":""},"8881":{"varMapping":{"__isSmartRef__":true,"id":8882},"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":8883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8882":{"this":{"__isSmartRef__":true,"id":8616}},"8883":{"timestamp":{"__isSmartRef__":true,"id":7876},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7873},"declaredObject":""},"8884":{"varMapping":{"__isSmartRef__":true,"id":8885},"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":8886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8885":{"this":{"__isSmartRef__":true,"id":8616}},"8886":{"timestamp":{"__isSmartRef__":true,"id":7880},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7877},"declaredObject":""},"8887":{"varMapping":{"__isSmartRef__":true,"id":8888},"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":8889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8888":{"this":{"__isSmartRef__":true,"id":8616}},"8889":{"timestamp":{"__isSmartRef__":true,"id":7884},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7881},"declaredObject":""},"8890":{"varMapping":{"__isSmartRef__":true,"id":8891},"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":8892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8891":{"this":{"__isSmartRef__":true,"id":8616}},"8892":{"timestamp":{"__isSmartRef__":true,"id":7888},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7885},"declaredObject":""},"8893":{"varMapping":{"__isSmartRef__":true,"id":8894},"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":8895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8894":{"this":{"__isSmartRef__":true,"id":8616}},"8895":{"timestamp":{"__isSmartRef__":true,"id":7892},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7889},"declaredObject":""},"8896":{"varMapping":{"__isSmartRef__":true,"id":8897},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":8898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8897":{"this":{"__isSmartRef__":true,"id":8616}},"8898":{"timestamp":{"__isSmartRef__":true,"id":7896},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7893},"declaredObject":""},"8899":{"varMapping":{"__isSmartRef__":true,"id":8900},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":8901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8900":{"this":{"__isSmartRef__":true,"id":8616}},"8901":{"timestamp":{"__isSmartRef__":true,"id":7900},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7897},"declaredObject":""},"8902":{"submorphs":[{"__isSmartRef__":true,"id":8903},{"__isSmartRef__":true,"id":8907}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8991},"derivationIds":[null],"id":"2089BBC8-FB40-4C96-8C37-8E75AD17311E","eventHandler":{"__isSmartRef__":true,"id":8992},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":4,"column":3,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":8903},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":8907}],"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8993},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,192.0)"},"8903":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8904},"derivationIds":[null],"id":"4387AE06-96F3-4BEC-BA8B-60D37EDC40ED","eventHandler":{"__isSmartRef__":true,"id":8905},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8902},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8906},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"8904":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-4387ae06-96f3-4bec-ba8b-60d37edc40ed","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"8905":{"morph":{"__isSmartRef__":true,"id":8903},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8906":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"8907":{"submorphs":[{"__isSmartRef__":true,"id":8908}],"scripts":[],"id":"79ADC58C-C525-4315-A12A-2B10617C4658","shape":{"__isSmartRef__":true,"id":8919},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Thing2","partsBinMetaInfo":{"__isSmartRef__":true,"id":6446},"eventHandler":{"__isSmartRef__":true,"id":8920},"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":8921},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":8902},"thing":{"__isSmartRef__":true,"id":8908},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":8902}],"owner":{"__isSmartRef__":true,"id":8902},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8926},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"8908":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8909},"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"],"id":"5C698B0E-588C-4CB4-9295-91AE8282BBAD","eventHandler":{"__isSmartRef__":true,"id":8910},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"StoneThing3","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6536},"moved":true,"isThing":true,"_ClipMode":"visible","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8907},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8911},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(1.1,7.0)"},"8909":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/stone.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(46.9,41.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8910":{"morph":{"__isSmartRef__":true,"id":8908},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8911":{"dropOn":{"__isSmartRef__":true,"id":8912}},"8912":{"varMapping":{"__isSmartRef__":true,"id":8913},"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":8918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8913":{"this":{"__isSmartRef__":true,"id":8908},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8914}},"8914":{"$super":{"__isSmartRef__":true,"id":8915}},"8915":{"varMapping":{"__isSmartRef__":true,"id":8916},"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":8917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8916":{"obj":{"__isSmartRef__":true,"id":8908},"name":"dropOn"},"8917":{},"8918":{},"8919":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"8920":{"morph":{"__isSmartRef__":true,"id":8907},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8921":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8922}},"8922":{"test01IsMorph":{"__isSmartRef__":true,"id":8923}},"8923":{"varMapping":{"__isSmartRef__":true,"id":8924},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":8925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8924":{"this":{"__isSmartRef__":true,"id":8921}},"8925":{},"8926":{"setDevStyle":{"__isSmartRef__":true,"id":8927},"setNormalStyle":{"__isSmartRef__":true,"id":8931},"become":{"__isSmartRef__":true,"id":8935},"onMouseDown":{"__isSmartRef__":true,"id":8939},"toolbox":{"__isSmartRef__":true,"id":8947},"zIndex":{"__isSmartRef__":true,"id":8951},"becomeRandomThing":{"__isSmartRef__":true,"id":8955},"reset":{"__isSmartRef__":true,"id":8959},"registerAsObstacle":{"__isSmartRef__":true,"id":8963},"deregisterAsObstacle":{"__isSmartRef__":true,"id":8967},"tileSize":{"__isSmartRef__":true,"id":8971},"dropOn":{"__isSmartRef__":true,"id":8975},"map":{"__isSmartRef__":true,"id":8983},"game":{"__isSmartRef__":true,"id":8987}},"8927":{"varMapping":{"__isSmartRef__":true,"id":8928},"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":8929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8928":{"this":{"__isSmartRef__":true,"id":8907}},"8929":{"timestamp":{"__isSmartRef__":true,"id":8930},"user":"timfelgentreff","tags":[]},"8930":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (Central Europe Daylight Time)"},"8931":{"varMapping":{"__isSmartRef__":true,"id":8932},"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":8933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8932":{"this":{"__isSmartRef__":true,"id":8907}},"8933":{"timestamp":{"__isSmartRef__":true,"id":8934},"user":"tessi","tags":[]},"8934":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (Central Europe Daylight Time)"},"8935":{"varMapping":{"__isSmartRef__":true,"id":8936},"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":8937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8936":{"this":{"__isSmartRef__":true,"id":8907}},"8937":{"timestamp":{"__isSmartRef__":true,"id":8938},"user":"timfelgentreff","tags":[]},"8938":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (Central Europe Daylight Time)"},"8939":{"varMapping":{"__isSmartRef__":true,"id":8940},"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":8945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8940":{"this":{"__isSmartRef__":true,"id":8907},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8941}},"8941":{"$super":{"__isSmartRef__":true,"id":8942}},"8942":{"varMapping":{"__isSmartRef__":true,"id":8943},"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":8944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8943":{"obj":{"__isSmartRef__":true,"id":8907},"name":"onMouseDown"},"8944":{},"8945":{"timestamp":{"__isSmartRef__":true,"id":8946},"user":"tessi","tags":[]},"8946":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (Central Europe Daylight Time)"},"8947":{"varMapping":{"__isSmartRef__":true,"id":8948},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8948":{"this":{"__isSmartRef__":true,"id":8907}},"8949":{"timestamp":{"__isSmartRef__":true,"id":8950},"user":"tessi","tags":[]},"8950":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (Central Europe Daylight Time)"},"8951":{"varMapping":{"__isSmartRef__":true,"id":8952},"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":8953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8952":{"this":{"__isSmartRef__":true,"id":8907}},"8953":{"timestamp":{"__isSmartRef__":true,"id":8954},"user":"timfelgentreff","tags":[]},"8954":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (Central Europe Daylight Time)"},"8955":{"varMapping":{"__isSmartRef__":true,"id":8956},"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":8957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8956":{"this":{"__isSmartRef__":true,"id":8907}},"8957":{"timestamp":{"__isSmartRef__":true,"id":8958},"user":"tessi","tags":[]},"8958":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (Central Europe Daylight Time)"},"8959":{"varMapping":{"__isSmartRef__":true,"id":8960},"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":8961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8960":{"this":{"__isSmartRef__":true,"id":8907}},"8961":{"timestamp":{"__isSmartRef__":true,"id":8962},"user":"tessi","tags":[]},"8962":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (Central Europe Daylight Time)"},"8963":{"varMapping":{"__isSmartRef__":true,"id":8964},"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":8965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8964":{"this":{"__isSmartRef__":true,"id":8907}},"8965":{"timestamp":{"__isSmartRef__":true,"id":8966},"user":"timfelgentreff","tags":[]},"8966":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (Central Europe Daylight Time)"},"8967":{"varMapping":{"__isSmartRef__":true,"id":8968},"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":8969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8968":{"this":{"__isSmartRef__":true,"id":8907}},"8969":{"timestamp":{"__isSmartRef__":true,"id":8970},"user":"timfelgentreff","tags":[]},"8970":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (Central Europe Daylight Time)"},"8971":{"varMapping":{"__isSmartRef__":true,"id":8972},"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":8973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8972":{"this":{"__isSmartRef__":true,"id":8907}},"8973":{"timestamp":{"__isSmartRef__":true,"id":8974},"user":"timfelgentreff","tags":[]},"8974":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (Central Europe Daylight Time)"},"8975":{"varMapping":{"__isSmartRef__":true,"id":8976},"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":8981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8976":{"this":{"__isSmartRef__":true,"id":8907},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8977}},"8977":{"$super":{"__isSmartRef__":true,"id":8978}},"8978":{"varMapping":{"__isSmartRef__":true,"id":8979},"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":8980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8979":{"obj":{"__isSmartRef__":true,"id":8907},"name":"dropOn"},"8980":{},"8981":{"timestamp":{"__isSmartRef__":true,"id":8982},"user":"timfelgentreff","tags":[]},"8982":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (Central Europe Daylight Time)"},"8983":{"varMapping":{"__isSmartRef__":true,"id":8984},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":8985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8984":{"this":{"__isSmartRef__":true,"id":8907}},"8985":{"timestamp":{"__isSmartRef__":true,"id":8986},"user":"tessi","tags":[]},"8986":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (Central Europe Daylight Time)"},"8987":{"varMapping":{"__isSmartRef__":true,"id":8988},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":8989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8988":{"this":{"__isSmartRef__":true,"id":8907}},"8989":{"timestamp":{"__isSmartRef__":true,"id":8990},"user":"tessi","tags":[]},"8990":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (Central Europe Daylight Time)"},"8991":{"_NodeClass":["morph","box"],"_NodeId":"morph-2089bbc8-fb40-4c96-8c37-8e75ad17311e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"8992":{"morph":{"__isSmartRef__":true,"id":8902},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8993":{"setDevStyle":{"__isSmartRef__":true,"id":8994},"setNormalStyle":{"__isSmartRef__":true,"id":8997},"tileSize":{"__isSmartRef__":true,"id":9000},"become":{"__isSmartRef__":true,"id":9003},"onMouseDown":{"__isSmartRef__":true,"id":9006},"setGridPosition":{"__isSmartRef__":true,"id":9013},"toolbox":{"__isSmartRef__":true,"id":9016},"distanceTo":{"__isSmartRef__":true,"id":9019},"tileWasDropped":{"__isSmartRef__":true,"id":9022},"isObstacle":{"__isSmartRef__":true,"id":9025},"neighboursInDirection":{"__isSmartRef__":true,"id":9028},"neighbours":{"__isSmartRef__":true,"id":9031},"zIndex":{"__isSmartRef__":true,"id":9034},"obstacles":{"__isSmartRef__":true,"id":9037},"addObstacle":{"__isSmartRef__":true,"id":9040},"removeObstacle":{"__isSmartRef__":true,"id":9043},"isTile":{"__isSmartRef__":true,"id":9046},"neighbourAt":{"__isSmartRef__":true,"id":9049},"map":{"__isSmartRef__":true,"id":9052},"game":{"__isSmartRef__":true,"id":9055},"reset":{"__isSmartRef__":true,"id":9058},"shallowCopy":{"__isSmartRef__":true,"id":9061},"characters":{"__isSmartRef__":true,"id":9064},"enterTile":{"__isSmartRef__":true,"id":9067},"leaveTile":{"__isSmartRef__":true,"id":9070},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9073}},"8994":{"varMapping":{"__isSmartRef__":true,"id":8995},"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":8996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8995":{"this":{"__isSmartRef__":true,"id":8902}},"8996":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"8997":{"varMapping":{"__isSmartRef__":true,"id":8998},"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":8999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8998":{"this":{"__isSmartRef__":true,"id":8902}},"8999":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9000":{"varMapping":{"__isSmartRef__":true,"id":9001},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9001":{"this":{"__isSmartRef__":true,"id":8902}},"9002":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9003":{"varMapping":{"__isSmartRef__":true,"id":9004},"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":9005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9004":{"this":{"__isSmartRef__":true,"id":8902}},"9005":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9006":{"varMapping":{"__isSmartRef__":true,"id":9007},"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":9012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9007":{"this":{"__isSmartRef__":true,"id":8902},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9008}},"9008":{"$super":{"__isSmartRef__":true,"id":9009}},"9009":{"varMapping":{"__isSmartRef__":true,"id":9010},"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":9011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9010":{"obj":{"__isSmartRef__":true,"id":8902},"name":"onMouseDown"},"9011":{},"9012":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9013":{"varMapping":{"__isSmartRef__":true,"id":9014},"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":9015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9014":{"this":{"__isSmartRef__":true,"id":8902}},"9015":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9016":{"varMapping":{"__isSmartRef__":true,"id":9017},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9017":{"this":{"__isSmartRef__":true,"id":8902}},"9018":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9019":{"varMapping":{"__isSmartRef__":true,"id":9020},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9020":{"this":{"__isSmartRef__":true,"id":8902}},"9021":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9022":{"varMapping":{"__isSmartRef__":true,"id":9023},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9023":{"this":{"__isSmartRef__":true,"id":8902}},"9024":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9025":{"varMapping":{"__isSmartRef__":true,"id":9026},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9026":{"this":{"__isSmartRef__":true,"id":8902}},"9027":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9028":{"varMapping":{"__isSmartRef__":true,"id":9029},"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":9030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9029":{"this":{"__isSmartRef__":true,"id":8902}},"9030":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9031":{"varMapping":{"__isSmartRef__":true,"id":9032},"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":9033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9032":{"this":{"__isSmartRef__":true,"id":8902}},"9033":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9034":{"varMapping":{"__isSmartRef__":true,"id":9035},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9035":{"this":{"__isSmartRef__":true,"id":8902}},"9036":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9037":{"varMapping":{"__isSmartRef__":true,"id":9038},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9038":{"this":{"__isSmartRef__":true,"id":8902}},"9039":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9040":{"varMapping":{"__isSmartRef__":true,"id":9041},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9041":{"this":{"__isSmartRef__":true,"id":8902}},"9042":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9043":{"varMapping":{"__isSmartRef__":true,"id":9044},"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":9045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9044":{"this":{"__isSmartRef__":true,"id":8902}},"9045":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9046":{"varMapping":{"__isSmartRef__":true,"id":9047},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9047":{"this":{"__isSmartRef__":true,"id":8902}},"9048":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9049":{"varMapping":{"__isSmartRef__":true,"id":9050},"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":9051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9050":{"this":{"__isSmartRef__":true,"id":8902}},"9051":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9052":{"varMapping":{"__isSmartRef__":true,"id":9053},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9053":{"this":{"__isSmartRef__":true,"id":8902}},"9054":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9055":{"varMapping":{"__isSmartRef__":true,"id":9056},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9056":{"this":{"__isSmartRef__":true,"id":8902}},"9057":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9058":{"varMapping":{"__isSmartRef__":true,"id":9059},"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":9060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9059":{"this":{"__isSmartRef__":true,"id":8902}},"9060":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9061":{"varMapping":{"__isSmartRef__":true,"id":9062},"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":9063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9062":{"this":{"__isSmartRef__":true,"id":8902}},"9063":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9064":{"varMapping":{"__isSmartRef__":true,"id":9065},"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":9066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9065":{"this":{"__isSmartRef__":true,"id":8902}},"9066":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9067":{"varMapping":{"__isSmartRef__":true,"id":9068},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9068":{"this":{"__isSmartRef__":true,"id":8902}},"9069":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9070":{"varMapping":{"__isSmartRef__":true,"id":9071},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9071":{"this":{"__isSmartRef__":true,"id":8902}},"9072":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9073":{"varMapping":{"__isSmartRef__":true,"id":9074},"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":9075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9074":{"this":{"__isSmartRef__":true,"id":8902}},"9075":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9076":{"submorphs":[{"__isSmartRef__":true,"id":9077}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9081},"derivationIds":[null],"id":"F5BF35D3-CEC6-4BEB-986F-901AE54E29F0","eventHandler":{"__isSmartRef__":true,"id":9082},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":4,"column":5,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":9077},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9083},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,192.0)"},"9077":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9078},"derivationIds":[null],"id":"80D03B4C-3F3A-4AA6-A3B0-1951CBCFBEB6","eventHandler":{"__isSmartRef__":true,"id":9079},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9076},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9080},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"9078":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-80d03b4c-3f3a-4aa6-a3b0-1951cbcfbeb6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"9079":{"morph":{"__isSmartRef__":true,"id":9077},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9080":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"9081":{"_NodeClass":["morph","box"],"_NodeId":"morph-f5bf35d3-cec6-4beb-986f-901ae54e29f0","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"9082":{"morph":{"__isSmartRef__":true,"id":9076},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9083":{"setDevStyle":{"__isSmartRef__":true,"id":9084},"setNormalStyle":{"__isSmartRef__":true,"id":9087},"tileSize":{"__isSmartRef__":true,"id":9090},"become":{"__isSmartRef__":true,"id":9093},"onMouseDown":{"__isSmartRef__":true,"id":9096},"setGridPosition":{"__isSmartRef__":true,"id":9103},"toolbox":{"__isSmartRef__":true,"id":9106},"distanceTo":{"__isSmartRef__":true,"id":9109},"tileWasDropped":{"__isSmartRef__":true,"id":9112},"isObstacle":{"__isSmartRef__":true,"id":9115},"neighboursInDirection":{"__isSmartRef__":true,"id":9118},"neighbours":{"__isSmartRef__":true,"id":9121},"zIndex":{"__isSmartRef__":true,"id":9124},"obstacles":{"__isSmartRef__":true,"id":9127},"addObstacle":{"__isSmartRef__":true,"id":9130},"removeObstacle":{"__isSmartRef__":true,"id":9133},"isTile":{"__isSmartRef__":true,"id":9136},"neighbourAt":{"__isSmartRef__":true,"id":9139},"map":{"__isSmartRef__":true,"id":9142},"game":{"__isSmartRef__":true,"id":9145},"reset":{"__isSmartRef__":true,"id":9148},"shallowCopy":{"__isSmartRef__":true,"id":9151},"characters":{"__isSmartRef__":true,"id":9154},"enterTile":{"__isSmartRef__":true,"id":9157},"leaveTile":{"__isSmartRef__":true,"id":9160},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9163}},"9084":{"varMapping":{"__isSmartRef__":true,"id":9085},"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":9086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9085":{"this":{"__isSmartRef__":true,"id":9076}},"9086":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9087":{"varMapping":{"__isSmartRef__":true,"id":9088},"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":9089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9088":{"this":{"__isSmartRef__":true,"id":9076}},"9089":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9090":{"varMapping":{"__isSmartRef__":true,"id":9091},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9091":{"this":{"__isSmartRef__":true,"id":9076}},"9092":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9093":{"varMapping":{"__isSmartRef__":true,"id":9094},"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":9095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9094":{"this":{"__isSmartRef__":true,"id":9076}},"9095":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9096":{"varMapping":{"__isSmartRef__":true,"id":9097},"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":9102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9097":{"this":{"__isSmartRef__":true,"id":9076},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9098}},"9098":{"$super":{"__isSmartRef__":true,"id":9099}},"9099":{"varMapping":{"__isSmartRef__":true,"id":9100},"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":9101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9100":{"obj":{"__isSmartRef__":true,"id":9076},"name":"onMouseDown"},"9101":{},"9102":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9103":{"varMapping":{"__isSmartRef__":true,"id":9104},"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":9105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9104":{"this":{"__isSmartRef__":true,"id":9076}},"9105":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9106":{"varMapping":{"__isSmartRef__":true,"id":9107},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9107":{"this":{"__isSmartRef__":true,"id":9076}},"9108":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9109":{"varMapping":{"__isSmartRef__":true,"id":9110},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9110":{"this":{"__isSmartRef__":true,"id":9076}},"9111":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9112":{"varMapping":{"__isSmartRef__":true,"id":9113},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9113":{"this":{"__isSmartRef__":true,"id":9076}},"9114":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9115":{"varMapping":{"__isSmartRef__":true,"id":9116},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9116":{"this":{"__isSmartRef__":true,"id":9076}},"9117":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9118":{"varMapping":{"__isSmartRef__":true,"id":9119},"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":9120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9119":{"this":{"__isSmartRef__":true,"id":9076}},"9120":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9121":{"varMapping":{"__isSmartRef__":true,"id":9122},"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":9123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9122":{"this":{"__isSmartRef__":true,"id":9076}},"9123":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9124":{"varMapping":{"__isSmartRef__":true,"id":9125},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9125":{"this":{"__isSmartRef__":true,"id":9076}},"9126":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9127":{"varMapping":{"__isSmartRef__":true,"id":9128},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9128":{"this":{"__isSmartRef__":true,"id":9076}},"9129":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9130":{"varMapping":{"__isSmartRef__":true,"id":9131},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9131":{"this":{"__isSmartRef__":true,"id":9076}},"9132":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9133":{"varMapping":{"__isSmartRef__":true,"id":9134},"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":9135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9134":{"this":{"__isSmartRef__":true,"id":9076}},"9135":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9136":{"varMapping":{"__isSmartRef__":true,"id":9137},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9137":{"this":{"__isSmartRef__":true,"id":9076}},"9138":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9139":{"varMapping":{"__isSmartRef__":true,"id":9140},"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":9141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9140":{"this":{"__isSmartRef__":true,"id":9076}},"9141":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9142":{"varMapping":{"__isSmartRef__":true,"id":9143},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9143":{"this":{"__isSmartRef__":true,"id":9076}},"9144":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9145":{"varMapping":{"__isSmartRef__":true,"id":9146},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9146":{"this":{"__isSmartRef__":true,"id":9076}},"9147":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9148":{"varMapping":{"__isSmartRef__":true,"id":9149},"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":9150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9149":{"this":{"__isSmartRef__":true,"id":9076}},"9150":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9151":{"varMapping":{"__isSmartRef__":true,"id":9152},"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":9153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9152":{"this":{"__isSmartRef__":true,"id":9076}},"9153":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9154":{"varMapping":{"__isSmartRef__":true,"id":9155},"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":9156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9155":{"this":{"__isSmartRef__":true,"id":9076}},"9156":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9157":{"varMapping":{"__isSmartRef__":true,"id":9158},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9158":{"this":{"__isSmartRef__":true,"id":9076}},"9159":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9160":{"varMapping":{"__isSmartRef__":true,"id":9161},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9161":{"this":{"__isSmartRef__":true,"id":9076}},"9162":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9163":{"varMapping":{"__isSmartRef__":true,"id":9164},"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":9165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9164":{"this":{"__isSmartRef__":true,"id":9076}},"9165":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9166":{"submorphs":[{"__isSmartRef__":true,"id":9167}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9171},"derivationIds":[null],"id":"271D351F-4A32-4D08-AF7F-F663904235BE","eventHandler":{"__isSmartRef__":true,"id":9172},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":5,"column":3,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":9167},"grabbingEnabled":false,"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9173},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(144.0,240.0)"},"9167":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9168},"derivationIds":[null],"id":"0FB03603-8614-4AE3-ABA1-9A41C9446C0F","eventHandler":{"__isSmartRef__":true,"id":9169},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9166},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9170},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"9168":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-0fb03603-8614-4ae3-aba1-9a41c9446c0f","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"9169":{"morph":{"__isSmartRef__":true,"id":9167},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9170":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"9171":{"_NodeClass":["morph","box"],"_NodeId":"morph-271d351f-4a32-4d08-af7f-f663904235be","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"9172":{"morph":{"__isSmartRef__":true,"id":9166},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9173":{"setDevStyle":{"__isSmartRef__":true,"id":9174},"setNormalStyle":{"__isSmartRef__":true,"id":9177},"tileSize":{"__isSmartRef__":true,"id":9180},"become":{"__isSmartRef__":true,"id":9183},"onMouseDown":{"__isSmartRef__":true,"id":9186},"setGridPosition":{"__isSmartRef__":true,"id":9193},"toolbox":{"__isSmartRef__":true,"id":9196},"distanceTo":{"__isSmartRef__":true,"id":9199},"tileWasDropped":{"__isSmartRef__":true,"id":9202},"isObstacle":{"__isSmartRef__":true,"id":9205},"neighboursInDirection":{"__isSmartRef__":true,"id":9208},"neighbours":{"__isSmartRef__":true,"id":9211},"zIndex":{"__isSmartRef__":true,"id":9214},"obstacles":{"__isSmartRef__":true,"id":9217},"addObstacle":{"__isSmartRef__":true,"id":9220},"removeObstacle":{"__isSmartRef__":true,"id":9223},"isTile":{"__isSmartRef__":true,"id":9226},"neighbourAt":{"__isSmartRef__":true,"id":9229},"map":{"__isSmartRef__":true,"id":9232},"game":{"__isSmartRef__":true,"id":9235},"reset":{"__isSmartRef__":true,"id":9238},"shallowCopy":{"__isSmartRef__":true,"id":9241},"characters":{"__isSmartRef__":true,"id":9244},"enterTile":{"__isSmartRef__":true,"id":9247},"leaveTile":{"__isSmartRef__":true,"id":9250},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9253}},"9174":{"varMapping":{"__isSmartRef__":true,"id":9175},"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":9176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9175":{"this":{"__isSmartRef__":true,"id":9166}},"9176":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9177":{"varMapping":{"__isSmartRef__":true,"id":9178},"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":9179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9178":{"this":{"__isSmartRef__":true,"id":9166}},"9179":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9180":{"varMapping":{"__isSmartRef__":true,"id":9181},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9181":{"this":{"__isSmartRef__":true,"id":9166}},"9182":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9183":{"varMapping":{"__isSmartRef__":true,"id":9184},"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":9185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9184":{"this":{"__isSmartRef__":true,"id":9166}},"9185":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9186":{"varMapping":{"__isSmartRef__":true,"id":9187},"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":9192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9187":{"this":{"__isSmartRef__":true,"id":9166},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9188}},"9188":{"$super":{"__isSmartRef__":true,"id":9189}},"9189":{"varMapping":{"__isSmartRef__":true,"id":9190},"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":9191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9190":{"obj":{"__isSmartRef__":true,"id":9166},"name":"onMouseDown"},"9191":{},"9192":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9193":{"varMapping":{"__isSmartRef__":true,"id":9194},"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":9195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9194":{"this":{"__isSmartRef__":true,"id":9166}},"9195":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9196":{"varMapping":{"__isSmartRef__":true,"id":9197},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9197":{"this":{"__isSmartRef__":true,"id":9166}},"9198":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9199":{"varMapping":{"__isSmartRef__":true,"id":9200},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9200":{"this":{"__isSmartRef__":true,"id":9166}},"9201":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9202":{"varMapping":{"__isSmartRef__":true,"id":9203},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9203":{"this":{"__isSmartRef__":true,"id":9166}},"9204":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9205":{"varMapping":{"__isSmartRef__":true,"id":9206},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9206":{"this":{"__isSmartRef__":true,"id":9166}},"9207":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9208":{"varMapping":{"__isSmartRef__":true,"id":9209},"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":9210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9209":{"this":{"__isSmartRef__":true,"id":9166}},"9210":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9211":{"varMapping":{"__isSmartRef__":true,"id":9212},"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":9213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9212":{"this":{"__isSmartRef__":true,"id":9166}},"9213":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9214":{"varMapping":{"__isSmartRef__":true,"id":9215},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9215":{"this":{"__isSmartRef__":true,"id":9166}},"9216":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9217":{"varMapping":{"__isSmartRef__":true,"id":9218},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9218":{"this":{"__isSmartRef__":true,"id":9166}},"9219":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9220":{"varMapping":{"__isSmartRef__":true,"id":9221},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9221":{"this":{"__isSmartRef__":true,"id":9166}},"9222":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9223":{"varMapping":{"__isSmartRef__":true,"id":9224},"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":9225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9224":{"this":{"__isSmartRef__":true,"id":9166}},"9225":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9226":{"varMapping":{"__isSmartRef__":true,"id":9227},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9227":{"this":{"__isSmartRef__":true,"id":9166}},"9228":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9229":{"varMapping":{"__isSmartRef__":true,"id":9230},"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":9231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9230":{"this":{"__isSmartRef__":true,"id":9166}},"9231":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9232":{"varMapping":{"__isSmartRef__":true,"id":9233},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9233":{"this":{"__isSmartRef__":true,"id":9166}},"9234":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9235":{"varMapping":{"__isSmartRef__":true,"id":9236},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9236":{"this":{"__isSmartRef__":true,"id":9166}},"9237":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9238":{"varMapping":{"__isSmartRef__":true,"id":9239},"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":9240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9239":{"this":{"__isSmartRef__":true,"id":9166}},"9240":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9241":{"varMapping":{"__isSmartRef__":true,"id":9242},"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":9243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9242":{"this":{"__isSmartRef__":true,"id":9166}},"9243":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9244":{"varMapping":{"__isSmartRef__":true,"id":9245},"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":9246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9245":{"this":{"__isSmartRef__":true,"id":9166}},"9246":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9247":{"varMapping":{"__isSmartRef__":true,"id":9248},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9248":{"this":{"__isSmartRef__":true,"id":9166}},"9249":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9250":{"varMapping":{"__isSmartRef__":true,"id":9251},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9251":{"this":{"__isSmartRef__":true,"id":9166}},"9252":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9253":{"varMapping":{"__isSmartRef__":true,"id":9254},"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":9255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9254":{"this":{"__isSmartRef__":true,"id":9166}},"9255":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9256":{"submorphs":[{"__isSmartRef__":true,"id":9257}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9261},"derivationIds":[null],"id":"DD56AD78-7B1B-430B-836F-5647FD5EF79E","eventHandler":{"__isSmartRef__":true,"id":9262},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":5,"column":4,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":9257},"grabbingEnabled":false,"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,240.0)"},"9257":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9258},"derivationIds":[null],"id":"FE60FC7F-AAAC-400B-82E7-539897164DAC","eventHandler":{"__isSmartRef__":true,"id":9259},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9256},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9260},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"9258":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-fe60fc7f-aaac-400b-82e7-539897164dac","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"9259":{"morph":{"__isSmartRef__":true,"id":9257},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9260":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"9261":{"_NodeClass":["morph","box"],"_NodeId":"morph-dd56ad78-7b1b-430b-836f-5647fd5ef79e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"9262":{"morph":{"__isSmartRef__":true,"id":9256},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9263":{"setDevStyle":{"__isSmartRef__":true,"id":9264},"setNormalStyle":{"__isSmartRef__":true,"id":9267},"tileSize":{"__isSmartRef__":true,"id":9270},"become":{"__isSmartRef__":true,"id":9273},"onMouseDown":{"__isSmartRef__":true,"id":9276},"setGridPosition":{"__isSmartRef__":true,"id":9283},"toolbox":{"__isSmartRef__":true,"id":9286},"distanceTo":{"__isSmartRef__":true,"id":9289},"tileWasDropped":{"__isSmartRef__":true,"id":9292},"isObstacle":{"__isSmartRef__":true,"id":9295},"neighboursInDirection":{"__isSmartRef__":true,"id":9298},"neighbours":{"__isSmartRef__":true,"id":9301},"zIndex":{"__isSmartRef__":true,"id":9304},"obstacles":{"__isSmartRef__":true,"id":9307},"addObstacle":{"__isSmartRef__":true,"id":9310},"removeObstacle":{"__isSmartRef__":true,"id":9313},"isTile":{"__isSmartRef__":true,"id":9316},"neighbourAt":{"__isSmartRef__":true,"id":9319},"map":{"__isSmartRef__":true,"id":9322},"game":{"__isSmartRef__":true,"id":9325},"reset":{"__isSmartRef__":true,"id":9328},"shallowCopy":{"__isSmartRef__":true,"id":9331},"characters":{"__isSmartRef__":true,"id":9334},"enterTile":{"__isSmartRef__":true,"id":9337},"leaveTile":{"__isSmartRef__":true,"id":9340},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9343}},"9264":{"varMapping":{"__isSmartRef__":true,"id":9265},"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":9266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9265":{"this":{"__isSmartRef__":true,"id":9256}},"9266":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9267":{"varMapping":{"__isSmartRef__":true,"id":9268},"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":9269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9268":{"this":{"__isSmartRef__":true,"id":9256}},"9269":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9270":{"varMapping":{"__isSmartRef__":true,"id":9271},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9271":{"this":{"__isSmartRef__":true,"id":9256}},"9272":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9273":{"varMapping":{"__isSmartRef__":true,"id":9274},"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":9275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9274":{"this":{"__isSmartRef__":true,"id":9256}},"9275":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9276":{"varMapping":{"__isSmartRef__":true,"id":9277},"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":9282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9277":{"this":{"__isSmartRef__":true,"id":9256},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9278}},"9278":{"$super":{"__isSmartRef__":true,"id":9279}},"9279":{"varMapping":{"__isSmartRef__":true,"id":9280},"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":9281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9280":{"obj":{"__isSmartRef__":true,"id":9256},"name":"onMouseDown"},"9281":{},"9282":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9283":{"varMapping":{"__isSmartRef__":true,"id":9284},"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":9285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9284":{"this":{"__isSmartRef__":true,"id":9256}},"9285":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9286":{"varMapping":{"__isSmartRef__":true,"id":9287},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9287":{"this":{"__isSmartRef__":true,"id":9256}},"9288":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9289":{"varMapping":{"__isSmartRef__":true,"id":9290},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9290":{"this":{"__isSmartRef__":true,"id":9256}},"9291":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9292":{"varMapping":{"__isSmartRef__":true,"id":9293},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9293":{"this":{"__isSmartRef__":true,"id":9256}},"9294":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9295":{"varMapping":{"__isSmartRef__":true,"id":9296},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9296":{"this":{"__isSmartRef__":true,"id":9256}},"9297":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9298":{"varMapping":{"__isSmartRef__":true,"id":9299},"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":9300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9299":{"this":{"__isSmartRef__":true,"id":9256}},"9300":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9301":{"varMapping":{"__isSmartRef__":true,"id":9302},"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":9303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9302":{"this":{"__isSmartRef__":true,"id":9256}},"9303":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9304":{"varMapping":{"__isSmartRef__":true,"id":9305},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9305":{"this":{"__isSmartRef__":true,"id":9256}},"9306":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9307":{"varMapping":{"__isSmartRef__":true,"id":9308},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9308":{"this":{"__isSmartRef__":true,"id":9256}},"9309":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9310":{"varMapping":{"__isSmartRef__":true,"id":9311},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9311":{"this":{"__isSmartRef__":true,"id":9256}},"9312":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9313":{"varMapping":{"__isSmartRef__":true,"id":9314},"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":9315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9314":{"this":{"__isSmartRef__":true,"id":9256}},"9315":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9316":{"varMapping":{"__isSmartRef__":true,"id":9317},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9317":{"this":{"__isSmartRef__":true,"id":9256}},"9318":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9319":{"varMapping":{"__isSmartRef__":true,"id":9320},"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":9321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9320":{"this":{"__isSmartRef__":true,"id":9256}},"9321":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9322":{"varMapping":{"__isSmartRef__":true,"id":9323},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9323":{"this":{"__isSmartRef__":true,"id":9256}},"9324":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9325":{"varMapping":{"__isSmartRef__":true,"id":9326},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9326":{"this":{"__isSmartRef__":true,"id":9256}},"9327":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9328":{"varMapping":{"__isSmartRef__":true,"id":9329},"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":9330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9329":{"this":{"__isSmartRef__":true,"id":9256}},"9330":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9331":{"varMapping":{"__isSmartRef__":true,"id":9332},"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":9333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9332":{"this":{"__isSmartRef__":true,"id":9256}},"9333":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9334":{"varMapping":{"__isSmartRef__":true,"id":9335},"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":9336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9335":{"this":{"__isSmartRef__":true,"id":9256}},"9336":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9337":{"varMapping":{"__isSmartRef__":true,"id":9338},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9338":{"this":{"__isSmartRef__":true,"id":9256}},"9339":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9340":{"varMapping":{"__isSmartRef__":true,"id":9341},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9341":{"this":{"__isSmartRef__":true,"id":9256}},"9342":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9343":{"varMapping":{"__isSmartRef__":true,"id":9344},"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":9345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9344":{"this":{"__isSmartRef__":true,"id":9256}},"9345":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9346":{"submorphs":[{"__isSmartRef__":true,"id":9347}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9351},"derivationIds":[null],"id":"C24388F4-916F-425F-B9BF-37EF2C5BDEFB","eventHandler":{"__isSmartRef__":true,"id":9352},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":5,"column":5,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":9347},"grabbingEnabled":false,"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"prevScroll":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9353},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(240.0,240.0)"},"9347":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9348},"derivationIds":[null],"id":"48A3F842-7F95-44B3-98C1-EEFC8CD9A6D4","eventHandler":{"__isSmartRef__":true,"id":9349},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9346},"__serializedExpressions__":["_Position"],"prevScroll":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9350},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"9348":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-48a3f842-7f95-44b3-98c1-eefc8cd9a6d4","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"9349":{"morph":{"__isSmartRef__":true,"id":9347},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9350":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"9351":{"_NodeClass":["morph","box"],"_NodeId":"morph-c24388f4-916f-425f-b9bf-37ef2c5bdefb","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"9352":{"morph":{"__isSmartRef__":true,"id":9346},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9353":{"setDevStyle":{"__isSmartRef__":true,"id":9354},"setNormalStyle":{"__isSmartRef__":true,"id":9357},"tileSize":{"__isSmartRef__":true,"id":9360},"become":{"__isSmartRef__":true,"id":9363},"onMouseDown":{"__isSmartRef__":true,"id":9366},"setGridPosition":{"__isSmartRef__":true,"id":9373},"toolbox":{"__isSmartRef__":true,"id":9376},"distanceTo":{"__isSmartRef__":true,"id":9379},"tileWasDropped":{"__isSmartRef__":true,"id":9382},"isObstacle":{"__isSmartRef__":true,"id":9385},"neighboursInDirection":{"__isSmartRef__":true,"id":9388},"neighbours":{"__isSmartRef__":true,"id":9391},"zIndex":{"__isSmartRef__":true,"id":9394},"obstacles":{"__isSmartRef__":true,"id":9397},"addObstacle":{"__isSmartRef__":true,"id":9400},"removeObstacle":{"__isSmartRef__":true,"id":9403},"isTile":{"__isSmartRef__":true,"id":9406},"neighbourAt":{"__isSmartRef__":true,"id":9409},"map":{"__isSmartRef__":true,"id":9412},"game":{"__isSmartRef__":true,"id":9415},"reset":{"__isSmartRef__":true,"id":9418},"shallowCopy":{"__isSmartRef__":true,"id":9421},"characters":{"__isSmartRef__":true,"id":9424},"enterTile":{"__isSmartRef__":true,"id":9427},"leaveTile":{"__isSmartRef__":true,"id":9430},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9433}},"9354":{"varMapping":{"__isSmartRef__":true,"id":9355},"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":9356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9355":{"this":{"__isSmartRef__":true,"id":9346}},"9356":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9357":{"varMapping":{"__isSmartRef__":true,"id":9358},"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":9359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9358":{"this":{"__isSmartRef__":true,"id":9346}},"9359":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9360":{"varMapping":{"__isSmartRef__":true,"id":9361},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9361":{"this":{"__isSmartRef__":true,"id":9346}},"9362":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9363":{"varMapping":{"__isSmartRef__":true,"id":9364},"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":9365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9364":{"this":{"__isSmartRef__":true,"id":9346}},"9365":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9366":{"varMapping":{"__isSmartRef__":true,"id":9367},"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":9372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9367":{"this":{"__isSmartRef__":true,"id":9346},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9368}},"9368":{"$super":{"__isSmartRef__":true,"id":9369}},"9369":{"varMapping":{"__isSmartRef__":true,"id":9370},"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":9371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9370":{"obj":{"__isSmartRef__":true,"id":9346},"name":"onMouseDown"},"9371":{},"9372":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9373":{"varMapping":{"__isSmartRef__":true,"id":9374},"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":9375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9374":{"this":{"__isSmartRef__":true,"id":9346}},"9375":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9376":{"varMapping":{"__isSmartRef__":true,"id":9377},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9377":{"this":{"__isSmartRef__":true,"id":9346}},"9378":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9379":{"varMapping":{"__isSmartRef__":true,"id":9380},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9380":{"this":{"__isSmartRef__":true,"id":9346}},"9381":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9382":{"varMapping":{"__isSmartRef__":true,"id":9383},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9383":{"this":{"__isSmartRef__":true,"id":9346}},"9384":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9385":{"varMapping":{"__isSmartRef__":true,"id":9386},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9386":{"this":{"__isSmartRef__":true,"id":9346}},"9387":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9388":{"varMapping":{"__isSmartRef__":true,"id":9389},"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":9390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9389":{"this":{"__isSmartRef__":true,"id":9346}},"9390":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9391":{"varMapping":{"__isSmartRef__":true,"id":9392},"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":9393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9392":{"this":{"__isSmartRef__":true,"id":9346}},"9393":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9394":{"varMapping":{"__isSmartRef__":true,"id":9395},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9395":{"this":{"__isSmartRef__":true,"id":9346}},"9396":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9397":{"varMapping":{"__isSmartRef__":true,"id":9398},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9398":{"this":{"__isSmartRef__":true,"id":9346}},"9399":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9400":{"varMapping":{"__isSmartRef__":true,"id":9401},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9401":{"this":{"__isSmartRef__":true,"id":9346}},"9402":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9403":{"varMapping":{"__isSmartRef__":true,"id":9404},"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":9405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9404":{"this":{"__isSmartRef__":true,"id":9346}},"9405":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9406":{"varMapping":{"__isSmartRef__":true,"id":9407},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9407":{"this":{"__isSmartRef__":true,"id":9346}},"9408":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9409":{"varMapping":{"__isSmartRef__":true,"id":9410},"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":9411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9410":{"this":{"__isSmartRef__":true,"id":9346}},"9411":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9412":{"varMapping":{"__isSmartRef__":true,"id":9413},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9413":{"this":{"__isSmartRef__":true,"id":9346}},"9414":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9415":{"varMapping":{"__isSmartRef__":true,"id":9416},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9416":{"this":{"__isSmartRef__":true,"id":9346}},"9417":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9418":{"varMapping":{"__isSmartRef__":true,"id":9419},"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":9420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9419":{"this":{"__isSmartRef__":true,"id":9346}},"9420":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9421":{"varMapping":{"__isSmartRef__":true,"id":9422},"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":9423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9422":{"this":{"__isSmartRef__":true,"id":9346}},"9423":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"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},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9425":{"this":{"__isSmartRef__":true,"id":9346}},"9426":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9427":{"varMapping":{"__isSmartRef__":true,"id":9428},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9428":{"this":{"__isSmartRef__":true,"id":9346}},"9429":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9430":{"varMapping":{"__isSmartRef__":true,"id":9431},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9431":{"this":{"__isSmartRef__":true,"id":9346}},"9432":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9433":{"varMapping":{"__isSmartRef__":true,"id":9434},"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":9435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9434":{"this":{"__isSmartRef__":true,"id":9346}},"9435":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9436":{"setDevStyle":{"__isSmartRef__":true,"id":9437},"setNormalStyle":{"__isSmartRef__":true,"id":9440},"tileSize":{"__isSmartRef__":true,"id":9443},"become":{"__isSmartRef__":true,"id":9446},"onMouseDown":{"__isSmartRef__":true,"id":9449},"setGridPosition":{"__isSmartRef__":true,"id":9456},"toolbox":{"__isSmartRef__":true,"id":9459},"distanceTo":{"__isSmartRef__":true,"id":9462},"tileWasDropped":{"__isSmartRef__":true,"id":9465},"isObstacle":{"__isSmartRef__":true,"id":9468},"neighboursInDirection":{"__isSmartRef__":true,"id":9471},"neighbours":{"__isSmartRef__":true,"id":9474},"zIndex":{"__isSmartRef__":true,"id":9477},"obstacles":{"__isSmartRef__":true,"id":9480},"addObstacle":{"__isSmartRef__":true,"id":9483},"removeObstacle":{"__isSmartRef__":true,"id":9486},"isTile":{"__isSmartRef__":true,"id":9489},"neighbourAt":{"__isSmartRef__":true,"id":9492},"map":{"__isSmartRef__":true,"id":9495},"game":{"__isSmartRef__":true,"id":9498},"reset":{"__isSmartRef__":true,"id":9501},"shallowCopy":{"__isSmartRef__":true,"id":9504},"characters":{"__isSmartRef__":true,"id":9507},"enterTile":{"__isSmartRef__":true,"id":9510},"leaveTile":{"__isSmartRef__":true,"id":9513},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9516}},"9437":{"varMapping":{"__isSmartRef__":true,"id":9438},"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":9439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9438":{"this":{"__isSmartRef__":true,"id":8609}},"9439":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9440":{"varMapping":{"__isSmartRef__":true,"id":9441},"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":9442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9441":{"this":{"__isSmartRef__":true,"id":8609}},"9442":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9443":{"varMapping":{"__isSmartRef__":true,"id":9444},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9444":{"this":{"__isSmartRef__":true,"id":8609}},"9445":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9446":{"varMapping":{"__isSmartRef__":true,"id":9447},"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":9448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9447":{"this":{"__isSmartRef__":true,"id":8609}},"9448":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9449":{"varMapping":{"__isSmartRef__":true,"id":9450},"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":9455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9450":{"this":{"__isSmartRef__":true,"id":8609},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9451}},"9451":{"$super":{"__isSmartRef__":true,"id":9452}},"9452":{"varMapping":{"__isSmartRef__":true,"id":9453},"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":9454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9453":{"obj":{"__isSmartRef__":true,"id":8609},"name":"onMouseDown"},"9454":{},"9455":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9456":{"varMapping":{"__isSmartRef__":true,"id":9457},"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":9458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9457":{"this":{"__isSmartRef__":true,"id":8609}},"9458":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9459":{"varMapping":{"__isSmartRef__":true,"id":9460},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9460":{"this":{"__isSmartRef__":true,"id":8609}},"9461":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9462":{"varMapping":{"__isSmartRef__":true,"id":9463},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9463":{"this":{"__isSmartRef__":true,"id":8609}},"9464":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9465":{"varMapping":{"__isSmartRef__":true,"id":9466},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9466":{"this":{"__isSmartRef__":true,"id":8609}},"9467":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9468":{"varMapping":{"__isSmartRef__":true,"id":9469},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9469":{"this":{"__isSmartRef__":true,"id":8609}},"9470":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9471":{"varMapping":{"__isSmartRef__":true,"id":9472},"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":9473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9472":{"this":{"__isSmartRef__":true,"id":8609}},"9473":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9474":{"varMapping":{"__isSmartRef__":true,"id":9475},"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":9476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9475":{"this":{"__isSmartRef__":true,"id":8609}},"9476":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9477":{"varMapping":{"__isSmartRef__":true,"id":9478},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9478":{"this":{"__isSmartRef__":true,"id":8609}},"9479":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9480":{"varMapping":{"__isSmartRef__":true,"id":9481},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9481":{"this":{"__isSmartRef__":true,"id":8609}},"9482":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9483":{"varMapping":{"__isSmartRef__":true,"id":9484},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9484":{"this":{"__isSmartRef__":true,"id":8609}},"9485":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9486":{"varMapping":{"__isSmartRef__":true,"id":9487},"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":9488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9487":{"this":{"__isSmartRef__":true,"id":8609}},"9488":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9489":{"varMapping":{"__isSmartRef__":true,"id":9490},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9490":{"this":{"__isSmartRef__":true,"id":8609}},"9491":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9492":{"varMapping":{"__isSmartRef__":true,"id":9493},"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":9494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9493":{"this":{"__isSmartRef__":true,"id":8609}},"9494":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9495":{"varMapping":{"__isSmartRef__":true,"id":9496},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9496":{"this":{"__isSmartRef__":true,"id":8609}},"9497":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9498":{"varMapping":{"__isSmartRef__":true,"id":9499},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9499":{"this":{"__isSmartRef__":true,"id":8609}},"9500":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9501":{"varMapping":{"__isSmartRef__":true,"id":9502},"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":9503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9502":{"this":{"__isSmartRef__":true,"id":8609}},"9503":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9504":{"varMapping":{"__isSmartRef__":true,"id":9505},"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":9506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9505":{"this":{"__isSmartRef__":true,"id":8609}},"9506":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9507":{"varMapping":{"__isSmartRef__":true,"id":9508},"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":9509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9508":{"this":{"__isSmartRef__":true,"id":8609}},"9509":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9510":{"varMapping":{"__isSmartRef__":true,"id":9511},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9511":{"this":{"__isSmartRef__":true,"id":8609}},"9512":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9513":{"varMapping":{"__isSmartRef__":true,"id":9514},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9514":{"this":{"__isSmartRef__":true,"id":8609}},"9515":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9516":{"varMapping":{"__isSmartRef__":true,"id":9517},"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":9518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9517":{"this":{"__isSmartRef__":true,"id":8609}},"9518":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9519":{"setDevStyle":{"__isSmartRef__":true,"id":9520},"setNormalStyle":{"__isSmartRef__":true,"id":9523},"tileSize":{"__isSmartRef__":true,"id":9526},"become":{"__isSmartRef__":true,"id":9529},"onMouseDown":{"__isSmartRef__":true,"id":9532},"setGridPosition":{"__isSmartRef__":true,"id":9539},"toolbox":{"__isSmartRef__":true,"id":9542},"distanceTo":{"__isSmartRef__":true,"id":9545},"tileWasDropped":{"__isSmartRef__":true,"id":9548},"isObstacle":{"__isSmartRef__":true,"id":9551},"neighboursInDirection":{"__isSmartRef__":true,"id":9554},"neighbours":{"__isSmartRef__":true,"id":9557},"zIndex":{"__isSmartRef__":true,"id":9560},"obstacles":{"__isSmartRef__":true,"id":9563},"addObstacle":{"__isSmartRef__":true,"id":9566},"removeObstacle":{"__isSmartRef__":true,"id":9569},"isTile":{"__isSmartRef__":true,"id":9572},"neighbourAt":{"__isSmartRef__":true,"id":9575},"map":{"__isSmartRef__":true,"id":9578},"game":{"__isSmartRef__":true,"id":9581},"reset":{"__isSmartRef__":true,"id":9584},"shallowCopy":{"__isSmartRef__":true,"id":9587},"characters":{"__isSmartRef__":true,"id":9590},"enterTile":{"__isSmartRef__":true,"id":9593},"leaveTile":{"__isSmartRef__":true,"id":9596},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9599}},"9520":{"varMapping":{"__isSmartRef__":true,"id":9521},"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":9522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9521":{"this":{"__isSmartRef__":true,"id":8602}},"9522":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9523":{"varMapping":{"__isSmartRef__":true,"id":9524},"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":9525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9524":{"this":{"__isSmartRef__":true,"id":8602}},"9525":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9526":{"varMapping":{"__isSmartRef__":true,"id":9527},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9527":{"this":{"__isSmartRef__":true,"id":8602}},"9528":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9529":{"varMapping":{"__isSmartRef__":true,"id":9530},"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":9531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9530":{"this":{"__isSmartRef__":true,"id":8602}},"9531":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9532":{"varMapping":{"__isSmartRef__":true,"id":9533},"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":9538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9533":{"this":{"__isSmartRef__":true,"id":8602},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9534}},"9534":{"$super":{"__isSmartRef__":true,"id":9535}},"9535":{"varMapping":{"__isSmartRef__":true,"id":9536},"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":9537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9536":{"obj":{"__isSmartRef__":true,"id":8602},"name":"onMouseDown"},"9537":{},"9538":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9539":{"varMapping":{"__isSmartRef__":true,"id":9540},"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":9541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9540":{"this":{"__isSmartRef__":true,"id":8602}},"9541":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9542":{"varMapping":{"__isSmartRef__":true,"id":9543},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9543":{"this":{"__isSmartRef__":true,"id":8602}},"9544":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9545":{"varMapping":{"__isSmartRef__":true,"id":9546},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9546":{"this":{"__isSmartRef__":true,"id":8602}},"9547":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9548":{"varMapping":{"__isSmartRef__":true,"id":9549},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9549":{"this":{"__isSmartRef__":true,"id":8602}},"9550":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9551":{"varMapping":{"__isSmartRef__":true,"id":9552},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9552":{"this":{"__isSmartRef__":true,"id":8602}},"9553":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9554":{"varMapping":{"__isSmartRef__":true,"id":9555},"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":9556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9555":{"this":{"__isSmartRef__":true,"id":8602}},"9556":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9557":{"varMapping":{"__isSmartRef__":true,"id":9558},"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":9559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9558":{"this":{"__isSmartRef__":true,"id":8602}},"9559":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9560":{"varMapping":{"__isSmartRef__":true,"id":9561},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9561":{"this":{"__isSmartRef__":true,"id":8602}},"9562":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9563":{"varMapping":{"__isSmartRef__":true,"id":9564},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9564":{"this":{"__isSmartRef__":true,"id":8602}},"9565":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9566":{"varMapping":{"__isSmartRef__":true,"id":9567},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9567":{"this":{"__isSmartRef__":true,"id":8602}},"9568":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9569":{"varMapping":{"__isSmartRef__":true,"id":9570},"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":9571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9570":{"this":{"__isSmartRef__":true,"id":8602}},"9571":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9572":{"varMapping":{"__isSmartRef__":true,"id":9573},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9573":{"this":{"__isSmartRef__":true,"id":8602}},"9574":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9575":{"varMapping":{"__isSmartRef__":true,"id":9576},"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":9577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9576":{"this":{"__isSmartRef__":true,"id":8602}},"9577":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9578":{"varMapping":{"__isSmartRef__":true,"id":9579},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9579":{"this":{"__isSmartRef__":true,"id":8602}},"9580":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9581":{"varMapping":{"__isSmartRef__":true,"id":9582},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9582":{"this":{"__isSmartRef__":true,"id":8602}},"9583":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9584":{"varMapping":{"__isSmartRef__":true,"id":9585},"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":9586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9585":{"this":{"__isSmartRef__":true,"id":8602}},"9586":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9587":{"varMapping":{"__isSmartRef__":true,"id":9588},"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":9589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9588":{"this":{"__isSmartRef__":true,"id":8602}},"9589":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9590":{"varMapping":{"__isSmartRef__":true,"id":9591},"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":9592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9591":{"this":{"__isSmartRef__":true,"id":8602}},"9592":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9593":{"varMapping":{"__isSmartRef__":true,"id":9594},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9594":{"this":{"__isSmartRef__":true,"id":8602}},"9595":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9596":{"varMapping":{"__isSmartRef__":true,"id":9597},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9597":{"this":{"__isSmartRef__":true,"id":8602}},"9598":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9599":{"varMapping":{"__isSmartRef__":true,"id":9600},"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":9601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9600":{"this":{"__isSmartRef__":true,"id":8602}},"9601":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9602":{"setDevStyle":{"__isSmartRef__":true,"id":9603},"setNormalStyle":{"__isSmartRef__":true,"id":9606},"tileSize":{"__isSmartRef__":true,"id":9609},"become":{"__isSmartRef__":true,"id":9612},"onMouseDown":{"__isSmartRef__":true,"id":9615},"setGridPosition":{"__isSmartRef__":true,"id":9622},"toolbox":{"__isSmartRef__":true,"id":9625},"distanceTo":{"__isSmartRef__":true,"id":9628},"tileWasDropped":{"__isSmartRef__":true,"id":9631},"isObstacle":{"__isSmartRef__":true,"id":9634},"neighboursInDirection":{"__isSmartRef__":true,"id":9637},"neighbours":{"__isSmartRef__":true,"id":9640},"zIndex":{"__isSmartRef__":true,"id":9643},"obstacles":{"__isSmartRef__":true,"id":9646},"addObstacle":{"__isSmartRef__":true,"id":9649},"removeObstacle":{"__isSmartRef__":true,"id":9652},"isTile":{"__isSmartRef__":true,"id":9655},"neighbourAt":{"__isSmartRef__":true,"id":9658},"map":{"__isSmartRef__":true,"id":9661},"game":{"__isSmartRef__":true,"id":9664},"reset":{"__isSmartRef__":true,"id":9667},"shallowCopy":{"__isSmartRef__":true,"id":9670},"characters":{"__isSmartRef__":true,"id":9673},"enterTile":{"__isSmartRef__":true,"id":9676},"leaveTile":{"__isSmartRef__":true,"id":9679},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9682}},"9603":{"varMapping":{"__isSmartRef__":true,"id":9604},"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":9605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9604":{"this":{"__isSmartRef__":true,"id":8498}},"9605":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9606":{"varMapping":{"__isSmartRef__":true,"id":9607},"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":9608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9607":{"this":{"__isSmartRef__":true,"id":8498}},"9608":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9609":{"varMapping":{"__isSmartRef__":true,"id":9610},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9610":{"this":{"__isSmartRef__":true,"id":8498}},"9611":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9612":{"varMapping":{"__isSmartRef__":true,"id":9613},"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":9614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9613":{"this":{"__isSmartRef__":true,"id":8498}},"9614":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9615":{"varMapping":{"__isSmartRef__":true,"id":9616},"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":9621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9616":{"this":{"__isSmartRef__":true,"id":8498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9617}},"9617":{"$super":{"__isSmartRef__":true,"id":9618}},"9618":{"varMapping":{"__isSmartRef__":true,"id":9619},"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":9620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9619":{"obj":{"__isSmartRef__":true,"id":8498},"name":"onMouseDown"},"9620":{},"9621":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9622":{"varMapping":{"__isSmartRef__":true,"id":9623},"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":9624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9623":{"this":{"__isSmartRef__":true,"id":8498}},"9624":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9625":{"varMapping":{"__isSmartRef__":true,"id":9626},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9626":{"this":{"__isSmartRef__":true,"id":8498}},"9627":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9628":{"varMapping":{"__isSmartRef__":true,"id":9629},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9629":{"this":{"__isSmartRef__":true,"id":8498}},"9630":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9631":{"varMapping":{"__isSmartRef__":true,"id":9632},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9632":{"this":{"__isSmartRef__":true,"id":8498}},"9633":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9634":{"varMapping":{"__isSmartRef__":true,"id":9635},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9635":{"this":{"__isSmartRef__":true,"id":8498}},"9636":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9637":{"varMapping":{"__isSmartRef__":true,"id":9638},"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":9639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9638":{"this":{"__isSmartRef__":true,"id":8498}},"9639":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9640":{"varMapping":{"__isSmartRef__":true,"id":9641},"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":9642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9641":{"this":{"__isSmartRef__":true,"id":8498}},"9642":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9643":{"varMapping":{"__isSmartRef__":true,"id":9644},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9644":{"this":{"__isSmartRef__":true,"id":8498}},"9645":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9646":{"varMapping":{"__isSmartRef__":true,"id":9647},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9647":{"this":{"__isSmartRef__":true,"id":8498}},"9648":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9649":{"varMapping":{"__isSmartRef__":true,"id":9650},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9650":{"this":{"__isSmartRef__":true,"id":8498}},"9651":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9652":{"varMapping":{"__isSmartRef__":true,"id":9653},"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":9654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9653":{"this":{"__isSmartRef__":true,"id":8498}},"9654":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9655":{"varMapping":{"__isSmartRef__":true,"id":9656},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9656":{"this":{"__isSmartRef__":true,"id":8498}},"9657":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9658":{"varMapping":{"__isSmartRef__":true,"id":9659},"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":9660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9659":{"this":{"__isSmartRef__":true,"id":8498}},"9660":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9661":{"varMapping":{"__isSmartRef__":true,"id":9662},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9662":{"this":{"__isSmartRef__":true,"id":8498}},"9663":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9664":{"varMapping":{"__isSmartRef__":true,"id":9665},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9665":{"this":{"__isSmartRef__":true,"id":8498}},"9666":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9667":{"varMapping":{"__isSmartRef__":true,"id":9668},"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":9669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9668":{"this":{"__isSmartRef__":true,"id":8498}},"9669":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9670":{"varMapping":{"__isSmartRef__":true,"id":9671},"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":9672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9671":{"this":{"__isSmartRef__":true,"id":8498}},"9672":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9673":{"varMapping":{"__isSmartRef__":true,"id":9674},"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":9675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9674":{"this":{"__isSmartRef__":true,"id":8498}},"9675":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9676":{"varMapping":{"__isSmartRef__":true,"id":9677},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9677":{"this":{"__isSmartRef__":true,"id":8498}},"9678":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9679":{"varMapping":{"__isSmartRef__":true,"id":9680},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9680":{"this":{"__isSmartRef__":true,"id":8498}},"9681":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9682":{"varMapping":{"__isSmartRef__":true,"id":9683},"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":9684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9683":{"this":{"__isSmartRef__":true,"id":8498}},"9684":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9685":{"submorphs":[{"__isSmartRef__":true,"id":9686}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9690},"derivationIds":[null],"id":"E62129EC-F95B-4B4A-AFC9-86192EF946C4","eventHandler":{"__isSmartRef__":true,"id":9691},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":4,"column":2,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":9686},"grabbingEnabled":false,"charactersStandingHere":[],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9692},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,192.0)"},"9686":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9687},"derivationIds":[null],"id":"03976EA0-461C-4D28-8C1D-B3102C8E35D6","eventHandler":{"__isSmartRef__":true,"id":9688},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9685},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9689},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"9687":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-03976ea0-461c-4d28-8c1d-b3102c8e35d6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"9688":{"morph":{"__isSmartRef__":true,"id":9686},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9689":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"9690":{"_NodeClass":["morph","box"],"_NodeId":"morph-e62129ec-f95b-4b4a-afc9-86192ef946c4","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"9691":{"morph":{"__isSmartRef__":true,"id":9685},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9692":{"setDevStyle":{"__isSmartRef__":true,"id":9693},"setNormalStyle":{"__isSmartRef__":true,"id":9696},"tileSize":{"__isSmartRef__":true,"id":9699},"become":{"__isSmartRef__":true,"id":9702},"onMouseDown":{"__isSmartRef__":true,"id":9705},"setGridPosition":{"__isSmartRef__":true,"id":9712},"toolbox":{"__isSmartRef__":true,"id":9715},"distanceTo":{"__isSmartRef__":true,"id":9718},"tileWasDropped":{"__isSmartRef__":true,"id":9721},"isObstacle":{"__isSmartRef__":true,"id":9724},"neighboursInDirection":{"__isSmartRef__":true,"id":9727},"neighbours":{"__isSmartRef__":true,"id":9730},"zIndex":{"__isSmartRef__":true,"id":9733},"obstacles":{"__isSmartRef__":true,"id":9736},"addObstacle":{"__isSmartRef__":true,"id":9739},"removeObstacle":{"__isSmartRef__":true,"id":9742},"isTile":{"__isSmartRef__":true,"id":9745},"neighbourAt":{"__isSmartRef__":true,"id":9748},"map":{"__isSmartRef__":true,"id":9751},"game":{"__isSmartRef__":true,"id":9754},"reset":{"__isSmartRef__":true,"id":9757},"shallowCopy":{"__isSmartRef__":true,"id":9760},"characters":{"__isSmartRef__":true,"id":9763},"enterTile":{"__isSmartRef__":true,"id":9766},"leaveTile":{"__isSmartRef__":true,"id":9769},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9772}},"9693":{"varMapping":{"__isSmartRef__":true,"id":9694},"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":9695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9694":{"this":{"__isSmartRef__":true,"id":9685}},"9695":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9696":{"varMapping":{"__isSmartRef__":true,"id":9697},"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":9698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9697":{"this":{"__isSmartRef__":true,"id":9685}},"9698":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9699":{"varMapping":{"__isSmartRef__":true,"id":9700},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9700":{"this":{"__isSmartRef__":true,"id":9685}},"9701":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9702":{"varMapping":{"__isSmartRef__":true,"id":9703},"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":9704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9703":{"this":{"__isSmartRef__":true,"id":9685}},"9704":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9705":{"varMapping":{"__isSmartRef__":true,"id":9706},"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":9711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9706":{"this":{"__isSmartRef__":true,"id":9685},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9707}},"9707":{"$super":{"__isSmartRef__":true,"id":9708}},"9708":{"varMapping":{"__isSmartRef__":true,"id":9709},"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":9710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9709":{"obj":{"__isSmartRef__":true,"id":9685},"name":"onMouseDown"},"9710":{},"9711":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9712":{"varMapping":{"__isSmartRef__":true,"id":9713},"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":9714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9713":{"this":{"__isSmartRef__":true,"id":9685}},"9714":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9715":{"varMapping":{"__isSmartRef__":true,"id":9716},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9716":{"this":{"__isSmartRef__":true,"id":9685}},"9717":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9718":{"varMapping":{"__isSmartRef__":true,"id":9719},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9719":{"this":{"__isSmartRef__":true,"id":9685}},"9720":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9721":{"varMapping":{"__isSmartRef__":true,"id":9722},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9722":{"this":{"__isSmartRef__":true,"id":9685}},"9723":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9724":{"varMapping":{"__isSmartRef__":true,"id":9725},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9725":{"this":{"__isSmartRef__":true,"id":9685}},"9726":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9727":{"varMapping":{"__isSmartRef__":true,"id":9728},"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":9729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9728":{"this":{"__isSmartRef__":true,"id":9685}},"9729":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9730":{"varMapping":{"__isSmartRef__":true,"id":9731},"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":9732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9731":{"this":{"__isSmartRef__":true,"id":9685}},"9732":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9733":{"varMapping":{"__isSmartRef__":true,"id":9734},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9734":{"this":{"__isSmartRef__":true,"id":9685}},"9735":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9736":{"varMapping":{"__isSmartRef__":true,"id":9737},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9737":{"this":{"__isSmartRef__":true,"id":9685}},"9738":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9739":{"varMapping":{"__isSmartRef__":true,"id":9740},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9740":{"this":{"__isSmartRef__":true,"id":9685}},"9741":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9742":{"varMapping":{"__isSmartRef__":true,"id":9743},"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":9744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9743":{"this":{"__isSmartRef__":true,"id":9685}},"9744":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9745":{"varMapping":{"__isSmartRef__":true,"id":9746},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9746":{"this":{"__isSmartRef__":true,"id":9685}},"9747":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9748":{"varMapping":{"__isSmartRef__":true,"id":9749},"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":9750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9749":{"this":{"__isSmartRef__":true,"id":9685}},"9750":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9751":{"varMapping":{"__isSmartRef__":true,"id":9752},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9752":{"this":{"__isSmartRef__":true,"id":9685}},"9753":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9754":{"varMapping":{"__isSmartRef__":true,"id":9755},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9755":{"this":{"__isSmartRef__":true,"id":9685}},"9756":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9757":{"varMapping":{"__isSmartRef__":true,"id":9758},"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":9759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9758":{"this":{"__isSmartRef__":true,"id":9685}},"9759":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9760":{"varMapping":{"__isSmartRef__":true,"id":9761},"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":9762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9761":{"this":{"__isSmartRef__":true,"id":9685}},"9762":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9763":{"varMapping":{"__isSmartRef__":true,"id":9764},"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":9765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9764":{"this":{"__isSmartRef__":true,"id":9685}},"9765":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9766":{"varMapping":{"__isSmartRef__":true,"id":9767},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9767":{"this":{"__isSmartRef__":true,"id":9685}},"9768":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9769":{"varMapping":{"__isSmartRef__":true,"id":9770},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9770":{"this":{"__isSmartRef__":true,"id":9685}},"9771":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9772":{"varMapping":{"__isSmartRef__":true,"id":9773},"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":9774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9773":{"this":{"__isSmartRef__":true,"id":9685}},"9774":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9775":{"setDevStyle":{"__isSmartRef__":true,"id":9776},"setNormalStyle":{"__isSmartRef__":true,"id":9779},"tileSize":{"__isSmartRef__":true,"id":9782},"become":{"__isSmartRef__":true,"id":9785},"onMouseDown":{"__isSmartRef__":true,"id":9788},"setGridPosition":{"__isSmartRef__":true,"id":9795},"toolbox":{"__isSmartRef__":true,"id":9798},"distanceTo":{"__isSmartRef__":true,"id":9801},"tileWasDropped":{"__isSmartRef__":true,"id":9804},"isObstacle":{"__isSmartRef__":true,"id":9807},"neighboursInDirection":{"__isSmartRef__":true,"id":9810},"neighbours":{"__isSmartRef__":true,"id":9813},"zIndex":{"__isSmartRef__":true,"id":9816},"obstacles":{"__isSmartRef__":true,"id":9819},"addObstacle":{"__isSmartRef__":true,"id":9822},"removeObstacle":{"__isSmartRef__":true,"id":9825},"isTile":{"__isSmartRef__":true,"id":9828},"neighbourAt":{"__isSmartRef__":true,"id":9831},"map":{"__isSmartRef__":true,"id":9834},"game":{"__isSmartRef__":true,"id":9837},"reset":{"__isSmartRef__":true,"id":9840},"shallowCopy":{"__isSmartRef__":true,"id":9843},"characters":{"__isSmartRef__":true,"id":9846},"enterTile":{"__isSmartRef__":true,"id":9849},"leaveTile":{"__isSmartRef__":true,"id":9852},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9855}},"9776":{"varMapping":{"__isSmartRef__":true,"id":9777},"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":9778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9777":{"this":{"__isSmartRef__":true,"id":8491}},"9778":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9779":{"varMapping":{"__isSmartRef__":true,"id":9780},"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":9781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9780":{"this":{"__isSmartRef__":true,"id":8491}},"9781":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9782":{"varMapping":{"__isSmartRef__":true,"id":9783},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9783":{"this":{"__isSmartRef__":true,"id":8491}},"9784":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9785":{"varMapping":{"__isSmartRef__":true,"id":9786},"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":9787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9786":{"this":{"__isSmartRef__":true,"id":8491}},"9787":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9788":{"varMapping":{"__isSmartRef__":true,"id":9789},"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":9794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9789":{"this":{"__isSmartRef__":true,"id":8491},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9790}},"9790":{"$super":{"__isSmartRef__":true,"id":9791}},"9791":{"varMapping":{"__isSmartRef__":true,"id":9792},"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":9793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9792":{"obj":{"__isSmartRef__":true,"id":8491},"name":"onMouseDown"},"9793":{},"9794":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9795":{"varMapping":{"__isSmartRef__":true,"id":9796},"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":9797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9796":{"this":{"__isSmartRef__":true,"id":8491}},"9797":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9798":{"varMapping":{"__isSmartRef__":true,"id":9799},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9799":{"this":{"__isSmartRef__":true,"id":8491}},"9800":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9801":{"varMapping":{"__isSmartRef__":true,"id":9802},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9802":{"this":{"__isSmartRef__":true,"id":8491}},"9803":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9804":{"varMapping":{"__isSmartRef__":true,"id":9805},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9805":{"this":{"__isSmartRef__":true,"id":8491}},"9806":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9807":{"varMapping":{"__isSmartRef__":true,"id":9808},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9808":{"this":{"__isSmartRef__":true,"id":8491}},"9809":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9810":{"varMapping":{"__isSmartRef__":true,"id":9811},"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":9812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9811":{"this":{"__isSmartRef__":true,"id":8491}},"9812":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9813":{"varMapping":{"__isSmartRef__":true,"id":9814},"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":9815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9814":{"this":{"__isSmartRef__":true,"id":8491}},"9815":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9816":{"varMapping":{"__isSmartRef__":true,"id":9817},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9817":{"this":{"__isSmartRef__":true,"id":8491}},"9818":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9819":{"varMapping":{"__isSmartRef__":true,"id":9820},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9820":{"this":{"__isSmartRef__":true,"id":8491}},"9821":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9822":{"varMapping":{"__isSmartRef__":true,"id":9823},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9823":{"this":{"__isSmartRef__":true,"id":8491}},"9824":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9825":{"varMapping":{"__isSmartRef__":true,"id":9826},"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":9827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9826":{"this":{"__isSmartRef__":true,"id":8491}},"9827":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9828":{"varMapping":{"__isSmartRef__":true,"id":9829},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9829":{"this":{"__isSmartRef__":true,"id":8491}},"9830":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9831":{"varMapping":{"__isSmartRef__":true,"id":9832},"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":9833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9832":{"this":{"__isSmartRef__":true,"id":8491}},"9833":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9834":{"varMapping":{"__isSmartRef__":true,"id":9835},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9835":{"this":{"__isSmartRef__":true,"id":8491}},"9836":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9837":{"varMapping":{"__isSmartRef__":true,"id":9838},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9838":{"this":{"__isSmartRef__":true,"id":8491}},"9839":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9840":{"varMapping":{"__isSmartRef__":true,"id":9841},"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":9842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9841":{"this":{"__isSmartRef__":true,"id":8491}},"9842":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9843":{"varMapping":{"__isSmartRef__":true,"id":9844},"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":9845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9844":{"this":{"__isSmartRef__":true,"id":8491}},"9845":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9846":{"varMapping":{"__isSmartRef__":true,"id":9847},"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":9848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9847":{"this":{"__isSmartRef__":true,"id":8491}},"9848":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9849":{"varMapping":{"__isSmartRef__":true,"id":9850},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9850":{"this":{"__isSmartRef__":true,"id":8491}},"9851":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9852":{"varMapping":{"__isSmartRef__":true,"id":9853},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9853":{"this":{"__isSmartRef__":true,"id":8491}},"9854":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9855":{"varMapping":{"__isSmartRef__":true,"id":9856},"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":9857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9856":{"this":{"__isSmartRef__":true,"id":8491}},"9857":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9858":{"setDevStyle":{"__isSmartRef__":true,"id":9859},"setNormalStyle":{"__isSmartRef__":true,"id":9862},"tileSize":{"__isSmartRef__":true,"id":9865},"become":{"__isSmartRef__":true,"id":9868},"onMouseDown":{"__isSmartRef__":true,"id":9871},"setGridPosition":{"__isSmartRef__":true,"id":9878},"toolbox":{"__isSmartRef__":true,"id":9881},"distanceTo":{"__isSmartRef__":true,"id":9884},"tileWasDropped":{"__isSmartRef__":true,"id":9887},"isObstacle":{"__isSmartRef__":true,"id":9890},"neighboursInDirection":{"__isSmartRef__":true,"id":9893},"neighbours":{"__isSmartRef__":true,"id":9896},"zIndex":{"__isSmartRef__":true,"id":9899},"obstacles":{"__isSmartRef__":true,"id":9902},"addObstacle":{"__isSmartRef__":true,"id":9905},"removeObstacle":{"__isSmartRef__":true,"id":9908},"isTile":{"__isSmartRef__":true,"id":9911},"neighbourAt":{"__isSmartRef__":true,"id":9914},"map":{"__isSmartRef__":true,"id":9917},"game":{"__isSmartRef__":true,"id":9920},"reset":{"__isSmartRef__":true,"id":9923},"shallowCopy":{"__isSmartRef__":true,"id":9926},"characters":{"__isSmartRef__":true,"id":9929},"enterTile":{"__isSmartRef__":true,"id":9932},"leaveTile":{"__isSmartRef__":true,"id":9935},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9938}},"9859":{"varMapping":{"__isSmartRef__":true,"id":9860},"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":9861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9860":{"this":{"__isSmartRef__":true,"id":8394}},"9861":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9862":{"varMapping":{"__isSmartRef__":true,"id":9863},"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":9864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9863":{"this":{"__isSmartRef__":true,"id":8394}},"9864":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9865":{"varMapping":{"__isSmartRef__":true,"id":9866},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9866":{"this":{"__isSmartRef__":true,"id":8394}},"9867":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9868":{"varMapping":{"__isSmartRef__":true,"id":9869},"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":9870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9869":{"this":{"__isSmartRef__":true,"id":8394}},"9870":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9871":{"varMapping":{"__isSmartRef__":true,"id":9872},"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":9877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9872":{"this":{"__isSmartRef__":true,"id":8394},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9873}},"9873":{"$super":{"__isSmartRef__":true,"id":9874}},"9874":{"varMapping":{"__isSmartRef__":true,"id":9875},"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":9876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9875":{"obj":{"__isSmartRef__":true,"id":8394},"name":"onMouseDown"},"9876":{},"9877":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9878":{"varMapping":{"__isSmartRef__":true,"id":9879},"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":9880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9879":{"this":{"__isSmartRef__":true,"id":8394}},"9880":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9881":{"varMapping":{"__isSmartRef__":true,"id":9882},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9882":{"this":{"__isSmartRef__":true,"id":8394}},"9883":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9884":{"varMapping":{"__isSmartRef__":true,"id":9885},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9885":{"this":{"__isSmartRef__":true,"id":8394}},"9886":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9887":{"varMapping":{"__isSmartRef__":true,"id":9888},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9888":{"this":{"__isSmartRef__":true,"id":8394}},"9889":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9890":{"varMapping":{"__isSmartRef__":true,"id":9891},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9891":{"this":{"__isSmartRef__":true,"id":8394}},"9892":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9893":{"varMapping":{"__isSmartRef__":true,"id":9894},"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":9895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9894":{"this":{"__isSmartRef__":true,"id":8394}},"9895":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9896":{"varMapping":{"__isSmartRef__":true,"id":9897},"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":9898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9897":{"this":{"__isSmartRef__":true,"id":8394}},"9898":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9899":{"varMapping":{"__isSmartRef__":true,"id":9900},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9900":{"this":{"__isSmartRef__":true,"id":8394}},"9901":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9902":{"varMapping":{"__isSmartRef__":true,"id":9903},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9903":{"this":{"__isSmartRef__":true,"id":8394}},"9904":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9905":{"varMapping":{"__isSmartRef__":true,"id":9906},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9906":{"this":{"__isSmartRef__":true,"id":8394}},"9907":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9908":{"varMapping":{"__isSmartRef__":true,"id":9909},"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":9910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9909":{"this":{"__isSmartRef__":true,"id":8394}},"9910":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9911":{"varMapping":{"__isSmartRef__":true,"id":9912},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9912":{"this":{"__isSmartRef__":true,"id":8394}},"9913":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9914":{"varMapping":{"__isSmartRef__":true,"id":9915},"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":9916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9915":{"this":{"__isSmartRef__":true,"id":8394}},"9916":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"9917":{"varMapping":{"__isSmartRef__":true,"id":9918},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9918":{"this":{"__isSmartRef__":true,"id":8394}},"9919":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"9920":{"varMapping":{"__isSmartRef__":true,"id":9921},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9921":{"this":{"__isSmartRef__":true,"id":8394}},"9922":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"9923":{"varMapping":{"__isSmartRef__":true,"id":9924},"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":9925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9924":{"this":{"__isSmartRef__":true,"id":8394}},"9925":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"9926":{"varMapping":{"__isSmartRef__":true,"id":9927},"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":9928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9927":{"this":{"__isSmartRef__":true,"id":8394}},"9928":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"9929":{"varMapping":{"__isSmartRef__":true,"id":9930},"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":9931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9930":{"this":{"__isSmartRef__":true,"id":8394}},"9931":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"9932":{"varMapping":{"__isSmartRef__":true,"id":9933},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9933":{"this":{"__isSmartRef__":true,"id":8394}},"9934":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"9935":{"varMapping":{"__isSmartRef__":true,"id":9936},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9936":{"this":{"__isSmartRef__":true,"id":8394}},"9937":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"9938":{"varMapping":{"__isSmartRef__":true,"id":9939},"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":9940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9939":{"this":{"__isSmartRef__":true,"id":8394}},"9940":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"9941":{"setDevStyle":{"__isSmartRef__":true,"id":9942},"setNormalStyle":{"__isSmartRef__":true,"id":9945},"tileSize":{"__isSmartRef__":true,"id":9948},"become":{"__isSmartRef__":true,"id":9951},"onMouseDown":{"__isSmartRef__":true,"id":9954},"setGridPosition":{"__isSmartRef__":true,"id":9961},"toolbox":{"__isSmartRef__":true,"id":9964},"distanceTo":{"__isSmartRef__":true,"id":9967},"tileWasDropped":{"__isSmartRef__":true,"id":9970},"isObstacle":{"__isSmartRef__":true,"id":9973},"neighboursInDirection":{"__isSmartRef__":true,"id":9976},"neighbours":{"__isSmartRef__":true,"id":9979},"zIndex":{"__isSmartRef__":true,"id":9982},"obstacles":{"__isSmartRef__":true,"id":9985},"addObstacle":{"__isSmartRef__":true,"id":9988},"removeObstacle":{"__isSmartRef__":true,"id":9991},"isTile":{"__isSmartRef__":true,"id":9994},"neighbourAt":{"__isSmartRef__":true,"id":9997},"map":{"__isSmartRef__":true,"id":10000},"game":{"__isSmartRef__":true,"id":10003},"reset":{"__isSmartRef__":true,"id":10006},"shallowCopy":{"__isSmartRef__":true,"id":10009},"characters":{"__isSmartRef__":true,"id":10012},"enterTile":{"__isSmartRef__":true,"id":10015},"leaveTile":{"__isSmartRef__":true,"id":10018},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10021}},"9942":{"varMapping":{"__isSmartRef__":true,"id":9943},"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":9944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9943":{"this":{"__isSmartRef__":true,"id":7113}},"9944":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"9945":{"varMapping":{"__isSmartRef__":true,"id":9946},"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":9947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9946":{"this":{"__isSmartRef__":true,"id":7113}},"9947":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"9948":{"varMapping":{"__isSmartRef__":true,"id":9949},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9949":{"this":{"__isSmartRef__":true,"id":7113}},"9950":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"9951":{"varMapping":{"__isSmartRef__":true,"id":9952},"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":9953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9952":{"this":{"__isSmartRef__":true,"id":7113}},"9953":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"9954":{"varMapping":{"__isSmartRef__":true,"id":9955},"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":9960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9955":{"this":{"__isSmartRef__":true,"id":7113},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9956}},"9956":{"$super":{"__isSmartRef__":true,"id":9957}},"9957":{"varMapping":{"__isSmartRef__":true,"id":9958},"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":9959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9958":{"obj":{"__isSmartRef__":true,"id":7113},"name":"onMouseDown"},"9959":{},"9960":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"9961":{"varMapping":{"__isSmartRef__":true,"id":9962},"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":9963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9962":{"this":{"__isSmartRef__":true,"id":7113}},"9963":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"9964":{"varMapping":{"__isSmartRef__":true,"id":9965},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9965":{"this":{"__isSmartRef__":true,"id":7113}},"9966":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"9967":{"varMapping":{"__isSmartRef__":true,"id":9968},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9968":{"this":{"__isSmartRef__":true,"id":7113}},"9969":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"9970":{"varMapping":{"__isSmartRef__":true,"id":9971},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9971":{"this":{"__isSmartRef__":true,"id":7113}},"9972":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"9973":{"varMapping":{"__isSmartRef__":true,"id":9974},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9974":{"this":{"__isSmartRef__":true,"id":7113}},"9975":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"9976":{"varMapping":{"__isSmartRef__":true,"id":9977},"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":9978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9977":{"this":{"__isSmartRef__":true,"id":7113}},"9978":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"9979":{"varMapping":{"__isSmartRef__":true,"id":9980},"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":9981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9980":{"this":{"__isSmartRef__":true,"id":7113}},"9981":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"9982":{"varMapping":{"__isSmartRef__":true,"id":9983},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9983":{"this":{"__isSmartRef__":true,"id":7113}},"9984":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"9985":{"varMapping":{"__isSmartRef__":true,"id":9986},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9986":{"this":{"__isSmartRef__":true,"id":7113}},"9987":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"9988":{"varMapping":{"__isSmartRef__":true,"id":9989},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9989":{"this":{"__isSmartRef__":true,"id":7113}},"9990":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"9991":{"varMapping":{"__isSmartRef__":true,"id":9992},"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":9993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9992":{"this":{"__isSmartRef__":true,"id":7113}},"9993":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"9994":{"varMapping":{"__isSmartRef__":true,"id":9995},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9995":{"this":{"__isSmartRef__":true,"id":7113}},"9996":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"9997":{"varMapping":{"__isSmartRef__":true,"id":9998},"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":9999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9998":{"this":{"__isSmartRef__":true,"id":7113}},"9999":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10000":{"varMapping":{"__isSmartRef__":true,"id":10001},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10001":{"this":{"__isSmartRef__":true,"id":7113}},"10002":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10003":{"varMapping":{"__isSmartRef__":true,"id":10004},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10004":{"this":{"__isSmartRef__":true,"id":7113}},"10005":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10006":{"varMapping":{"__isSmartRef__":true,"id":10007},"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":10008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10007":{"this":{"__isSmartRef__":true,"id":7113}},"10008":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10009":{"varMapping":{"__isSmartRef__":true,"id":10010},"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":10011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10010":{"this":{"__isSmartRef__":true,"id":7113}},"10011":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10012":{"varMapping":{"__isSmartRef__":true,"id":10013},"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":10014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10013":{"this":{"__isSmartRef__":true,"id":7113}},"10014":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10015":{"varMapping":{"__isSmartRef__":true,"id":10016},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10016":{"this":{"__isSmartRef__":true,"id":7113}},"10017":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10018":{"varMapping":{"__isSmartRef__":true,"id":10019},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10019":{"this":{"__isSmartRef__":true,"id":7113}},"10020":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10021":{"varMapping":{"__isSmartRef__":true,"id":10022},"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":10023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10022":{"this":{"__isSmartRef__":true,"id":7113}},"10023":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10024":{"setDevStyle":{"__isSmartRef__":true,"id":10025},"setNormalStyle":{"__isSmartRef__":true,"id":10028},"tileSize":{"__isSmartRef__":true,"id":10031},"become":{"__isSmartRef__":true,"id":10034},"onMouseDown":{"__isSmartRef__":true,"id":10037},"setGridPosition":{"__isSmartRef__":true,"id":10044},"toolbox":{"__isSmartRef__":true,"id":10047},"distanceTo":{"__isSmartRef__":true,"id":10050},"tileWasDropped":{"__isSmartRef__":true,"id":10053},"isObstacle":{"__isSmartRef__":true,"id":10056},"neighboursInDirection":{"__isSmartRef__":true,"id":10059},"neighbours":{"__isSmartRef__":true,"id":10062},"zIndex":{"__isSmartRef__":true,"id":10065},"obstacles":{"__isSmartRef__":true,"id":10068},"addObstacle":{"__isSmartRef__":true,"id":10071},"removeObstacle":{"__isSmartRef__":true,"id":10074},"isTile":{"__isSmartRef__":true,"id":10077},"neighbourAt":{"__isSmartRef__":true,"id":10080},"map":{"__isSmartRef__":true,"id":10083},"game":{"__isSmartRef__":true,"id":10086},"reset":{"__isSmartRef__":true,"id":10089},"shallowCopy":{"__isSmartRef__":true,"id":10092},"characters":{"__isSmartRef__":true,"id":10095},"enterTile":{"__isSmartRef__":true,"id":10098},"leaveTile":{"__isSmartRef__":true,"id":10101},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10104}},"10025":{"varMapping":{"__isSmartRef__":true,"id":10026},"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":10027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10026":{"this":{"__isSmartRef__":true,"id":7106}},"10027":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10028":{"varMapping":{"__isSmartRef__":true,"id":10029},"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":10030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10029":{"this":{"__isSmartRef__":true,"id":7106}},"10030":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10031":{"varMapping":{"__isSmartRef__":true,"id":10032},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10032":{"this":{"__isSmartRef__":true,"id":7106}},"10033":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10034":{"varMapping":{"__isSmartRef__":true,"id":10035},"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":10036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10035":{"this":{"__isSmartRef__":true,"id":7106}},"10036":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10037":{"varMapping":{"__isSmartRef__":true,"id":10038},"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":10043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10038":{"this":{"__isSmartRef__":true,"id":7106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10039}},"10039":{"$super":{"__isSmartRef__":true,"id":10040}},"10040":{"varMapping":{"__isSmartRef__":true,"id":10041},"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":10042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10041":{"obj":{"__isSmartRef__":true,"id":7106},"name":"onMouseDown"},"10042":{},"10043":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10044":{"varMapping":{"__isSmartRef__":true,"id":10045},"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":10046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10045":{"this":{"__isSmartRef__":true,"id":7106}},"10046":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10047":{"varMapping":{"__isSmartRef__":true,"id":10048},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10048":{"this":{"__isSmartRef__":true,"id":7106}},"10049":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10050":{"varMapping":{"__isSmartRef__":true,"id":10051},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10051":{"this":{"__isSmartRef__":true,"id":7106}},"10052":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10053":{"varMapping":{"__isSmartRef__":true,"id":10054},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10054":{"this":{"__isSmartRef__":true,"id":7106}},"10055":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10056":{"varMapping":{"__isSmartRef__":true,"id":10057},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10057":{"this":{"__isSmartRef__":true,"id":7106}},"10058":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10059":{"varMapping":{"__isSmartRef__":true,"id":10060},"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":10061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10060":{"this":{"__isSmartRef__":true,"id":7106}},"10061":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10062":{"varMapping":{"__isSmartRef__":true,"id":10063},"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":10064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10063":{"this":{"__isSmartRef__":true,"id":7106}},"10064":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10065":{"varMapping":{"__isSmartRef__":true,"id":10066},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10066":{"this":{"__isSmartRef__":true,"id":7106}},"10067":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10068":{"varMapping":{"__isSmartRef__":true,"id":10069},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10069":{"this":{"__isSmartRef__":true,"id":7106}},"10070":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10071":{"varMapping":{"__isSmartRef__":true,"id":10072},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10072":{"this":{"__isSmartRef__":true,"id":7106}},"10073":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10074":{"varMapping":{"__isSmartRef__":true,"id":10075},"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":10076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10075":{"this":{"__isSmartRef__":true,"id":7106}},"10076":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10077":{"varMapping":{"__isSmartRef__":true,"id":10078},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10078":{"this":{"__isSmartRef__":true,"id":7106}},"10079":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10080":{"varMapping":{"__isSmartRef__":true,"id":10081},"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":10082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10081":{"this":{"__isSmartRef__":true,"id":7106}},"10082":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10083":{"varMapping":{"__isSmartRef__":true,"id":10084},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10084":{"this":{"__isSmartRef__":true,"id":7106}},"10085":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10086":{"varMapping":{"__isSmartRef__":true,"id":10087},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10087":{"this":{"__isSmartRef__":true,"id":7106}},"10088":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10089":{"varMapping":{"__isSmartRef__":true,"id":10090},"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":10091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10090":{"this":{"__isSmartRef__":true,"id":7106}},"10091":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10092":{"varMapping":{"__isSmartRef__":true,"id":10093},"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":10094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10093":{"this":{"__isSmartRef__":true,"id":7106}},"10094":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10095":{"varMapping":{"__isSmartRef__":true,"id":10096},"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":10097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10096":{"this":{"__isSmartRef__":true,"id":7106}},"10097":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10098":{"varMapping":{"__isSmartRef__":true,"id":10099},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10099":{"this":{"__isSmartRef__":true,"id":7106}},"10100":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10101":{"varMapping":{"__isSmartRef__":true,"id":10102},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10102":{"this":{"__isSmartRef__":true,"id":7106}},"10103":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10104":{"varMapping":{"__isSmartRef__":true,"id":10105},"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":10106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10105":{"this":{"__isSmartRef__":true,"id":7106}},"10106":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10107":{"submorphs":[{"__isSmartRef__":true,"id":10108}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10112},"derivationIds":[null],"id":"7F043BA9-F459-4A6B-80F1-F282DB759CC3","eventHandler":{"__isSmartRef__":true,"id":10113},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":3,"column":1,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":10108},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10114},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,144.0)"},"10108":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10109},"derivationIds":[null],"id":"3F99B0ED-C8D9-46CD-9A50-A87BE9724BB6","eventHandler":{"__isSmartRef__":true,"id":10110},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10107},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10111},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"10109":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-3f99b0ed-c8d9-46cd-9a50-a87be9724bb6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"10110":{"morph":{"__isSmartRef__":true,"id":10108},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10111":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"10112":{"_NodeClass":["morph","box"],"_NodeId":"morph-7f043ba9-f459-4a6b-80f1-f282db759cc3","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"10113":{"morph":{"__isSmartRef__":true,"id":10107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10114":{"setDevStyle":{"__isSmartRef__":true,"id":10115},"setNormalStyle":{"__isSmartRef__":true,"id":10118},"tileSize":{"__isSmartRef__":true,"id":10121},"become":{"__isSmartRef__":true,"id":10124},"onMouseDown":{"__isSmartRef__":true,"id":10127},"setGridPosition":{"__isSmartRef__":true,"id":10134},"toolbox":{"__isSmartRef__":true,"id":10137},"distanceTo":{"__isSmartRef__":true,"id":10140},"tileWasDropped":{"__isSmartRef__":true,"id":10143},"isObstacle":{"__isSmartRef__":true,"id":10146},"neighboursInDirection":{"__isSmartRef__":true,"id":10149},"neighbours":{"__isSmartRef__":true,"id":10152},"zIndex":{"__isSmartRef__":true,"id":10155},"obstacles":{"__isSmartRef__":true,"id":10158},"addObstacle":{"__isSmartRef__":true,"id":10161},"removeObstacle":{"__isSmartRef__":true,"id":10164},"isTile":{"__isSmartRef__":true,"id":10167},"neighbourAt":{"__isSmartRef__":true,"id":10170},"map":{"__isSmartRef__":true,"id":10173},"game":{"__isSmartRef__":true,"id":10176},"reset":{"__isSmartRef__":true,"id":10179},"shallowCopy":{"__isSmartRef__":true,"id":10182},"characters":{"__isSmartRef__":true,"id":10185},"enterTile":{"__isSmartRef__":true,"id":10188},"leaveTile":{"__isSmartRef__":true,"id":10191},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10194}},"10115":{"varMapping":{"__isSmartRef__":true,"id":10116},"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":10117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10116":{"this":{"__isSmartRef__":true,"id":10107}},"10117":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10118":{"varMapping":{"__isSmartRef__":true,"id":10119},"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":10120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10119":{"this":{"__isSmartRef__":true,"id":10107}},"10120":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10121":{"varMapping":{"__isSmartRef__":true,"id":10122},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10122":{"this":{"__isSmartRef__":true,"id":10107}},"10123":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10124":{"varMapping":{"__isSmartRef__":true,"id":10125},"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":10126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10125":{"this":{"__isSmartRef__":true,"id":10107}},"10126":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10127":{"varMapping":{"__isSmartRef__":true,"id":10128},"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":10133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10128":{"this":{"__isSmartRef__":true,"id":10107},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10129}},"10129":{"$super":{"__isSmartRef__":true,"id":10130}},"10130":{"varMapping":{"__isSmartRef__":true,"id":10131},"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":10132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10131":{"obj":{"__isSmartRef__":true,"id":10107},"name":"onMouseDown"},"10132":{},"10133":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10134":{"varMapping":{"__isSmartRef__":true,"id":10135},"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":10136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10135":{"this":{"__isSmartRef__":true,"id":10107}},"10136":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10137":{"varMapping":{"__isSmartRef__":true,"id":10138},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10138":{"this":{"__isSmartRef__":true,"id":10107}},"10139":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10140":{"varMapping":{"__isSmartRef__":true,"id":10141},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10141":{"this":{"__isSmartRef__":true,"id":10107}},"10142":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10143":{"varMapping":{"__isSmartRef__":true,"id":10144},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10144":{"this":{"__isSmartRef__":true,"id":10107}},"10145":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10146":{"varMapping":{"__isSmartRef__":true,"id":10147},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10147":{"this":{"__isSmartRef__":true,"id":10107}},"10148":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10149":{"varMapping":{"__isSmartRef__":true,"id":10150},"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":10151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10150":{"this":{"__isSmartRef__":true,"id":10107}},"10151":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10152":{"varMapping":{"__isSmartRef__":true,"id":10153},"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":10154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10153":{"this":{"__isSmartRef__":true,"id":10107}},"10154":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10155":{"varMapping":{"__isSmartRef__":true,"id":10156},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10156":{"this":{"__isSmartRef__":true,"id":10107}},"10157":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10158":{"varMapping":{"__isSmartRef__":true,"id":10159},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10159":{"this":{"__isSmartRef__":true,"id":10107}},"10160":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10161":{"varMapping":{"__isSmartRef__":true,"id":10162},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10162":{"this":{"__isSmartRef__":true,"id":10107}},"10163":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10164":{"varMapping":{"__isSmartRef__":true,"id":10165},"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":10166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10165":{"this":{"__isSmartRef__":true,"id":10107}},"10166":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10167":{"varMapping":{"__isSmartRef__":true,"id":10168},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10168":{"this":{"__isSmartRef__":true,"id":10107}},"10169":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10170":{"varMapping":{"__isSmartRef__":true,"id":10171},"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":10172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10171":{"this":{"__isSmartRef__":true,"id":10107}},"10172":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10173":{"varMapping":{"__isSmartRef__":true,"id":10174},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10174":{"this":{"__isSmartRef__":true,"id":10107}},"10175":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10176":{"varMapping":{"__isSmartRef__":true,"id":10177},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10177":{"this":{"__isSmartRef__":true,"id":10107}},"10178":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"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},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10180":{"this":{"__isSmartRef__":true,"id":10107}},"10181":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10182":{"varMapping":{"__isSmartRef__":true,"id":10183},"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":10184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10183":{"this":{"__isSmartRef__":true,"id":10107}},"10184":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10185":{"varMapping":{"__isSmartRef__":true,"id":10186},"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":10187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10186":{"this":{"__isSmartRef__":true,"id":10107}},"10187":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10188":{"varMapping":{"__isSmartRef__":true,"id":10189},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10189":{"this":{"__isSmartRef__":true,"id":10107}},"10190":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10191":{"varMapping":{"__isSmartRef__":true,"id":10192},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10192":{"this":{"__isSmartRef__":true,"id":10107}},"10193":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10194":{"varMapping":{"__isSmartRef__":true,"id":10195},"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":10196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10195":{"this":{"__isSmartRef__":true,"id":10107}},"10196":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10197":{"setDevStyle":{"__isSmartRef__":true,"id":10198},"setNormalStyle":{"__isSmartRef__":true,"id":10201},"tileSize":{"__isSmartRef__":true,"id":10204},"become":{"__isSmartRef__":true,"id":10207},"onMouseDown":{"__isSmartRef__":true,"id":10210},"setGridPosition":{"__isSmartRef__":true,"id":10217},"toolbox":{"__isSmartRef__":true,"id":10220},"distanceTo":{"__isSmartRef__":true,"id":10223},"tileWasDropped":{"__isSmartRef__":true,"id":10226},"isObstacle":{"__isSmartRef__":true,"id":10229},"neighboursInDirection":{"__isSmartRef__":true,"id":10232},"neighbours":{"__isSmartRef__":true,"id":10235},"zIndex":{"__isSmartRef__":true,"id":10238},"obstacles":{"__isSmartRef__":true,"id":10241},"addObstacle":{"__isSmartRef__":true,"id":10244},"removeObstacle":{"__isSmartRef__":true,"id":10247},"isTile":{"__isSmartRef__":true,"id":10250},"neighbourAt":{"__isSmartRef__":true,"id":10253},"map":{"__isSmartRef__":true,"id":10256},"game":{"__isSmartRef__":true,"id":10259},"reset":{"__isSmartRef__":true,"id":10262},"shallowCopy":{"__isSmartRef__":true,"id":10265},"characters":{"__isSmartRef__":true,"id":10268},"enterTile":{"__isSmartRef__":true,"id":10271},"leaveTile":{"__isSmartRef__":true,"id":10274},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10277}},"10198":{"varMapping":{"__isSmartRef__":true,"id":10199},"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":10200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10199":{"this":{"__isSmartRef__":true,"id":6829}},"10200":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10201":{"varMapping":{"__isSmartRef__":true,"id":10202},"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":10203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10202":{"this":{"__isSmartRef__":true,"id":6829}},"10203":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10204":{"varMapping":{"__isSmartRef__":true,"id":10205},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10205":{"this":{"__isSmartRef__":true,"id":6829}},"10206":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10207":{"varMapping":{"__isSmartRef__":true,"id":10208},"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":10209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10208":{"this":{"__isSmartRef__":true,"id":6829}},"10209":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10210":{"varMapping":{"__isSmartRef__":true,"id":10211},"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":10216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10211":{"this":{"__isSmartRef__":true,"id":6829},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10212}},"10212":{"$super":{"__isSmartRef__":true,"id":10213}},"10213":{"varMapping":{"__isSmartRef__":true,"id":10214},"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":10215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10214":{"obj":{"__isSmartRef__":true,"id":6829},"name":"onMouseDown"},"10215":{},"10216":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10217":{"varMapping":{"__isSmartRef__":true,"id":10218},"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":10219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10218":{"this":{"__isSmartRef__":true,"id":6829}},"10219":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10220":{"varMapping":{"__isSmartRef__":true,"id":10221},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10221":{"this":{"__isSmartRef__":true,"id":6829}},"10222":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10223":{"varMapping":{"__isSmartRef__":true,"id":10224},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10224":{"this":{"__isSmartRef__":true,"id":6829}},"10225":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10226":{"varMapping":{"__isSmartRef__":true,"id":10227},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10227":{"this":{"__isSmartRef__":true,"id":6829}},"10228":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10229":{"varMapping":{"__isSmartRef__":true,"id":10230},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10230":{"this":{"__isSmartRef__":true,"id":6829}},"10231":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10232":{"varMapping":{"__isSmartRef__":true,"id":10233},"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":10234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10233":{"this":{"__isSmartRef__":true,"id":6829}},"10234":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10235":{"varMapping":{"__isSmartRef__":true,"id":10236},"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":10237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10236":{"this":{"__isSmartRef__":true,"id":6829}},"10237":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10238":{"varMapping":{"__isSmartRef__":true,"id":10239},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10239":{"this":{"__isSmartRef__":true,"id":6829}},"10240":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10241":{"varMapping":{"__isSmartRef__":true,"id":10242},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10242":{"this":{"__isSmartRef__":true,"id":6829}},"10243":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10244":{"varMapping":{"__isSmartRef__":true,"id":10245},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10245":{"this":{"__isSmartRef__":true,"id":6829}},"10246":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10247":{"varMapping":{"__isSmartRef__":true,"id":10248},"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":10249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10248":{"this":{"__isSmartRef__":true,"id":6829}},"10249":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10250":{"varMapping":{"__isSmartRef__":true,"id":10251},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10251":{"this":{"__isSmartRef__":true,"id":6829}},"10252":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10253":{"varMapping":{"__isSmartRef__":true,"id":10254},"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":10255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10254":{"this":{"__isSmartRef__":true,"id":6829}},"10255":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10256":{"varMapping":{"__isSmartRef__":true,"id":10257},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10257":{"this":{"__isSmartRef__":true,"id":6829}},"10258":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10259":{"varMapping":{"__isSmartRef__":true,"id":10260},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10260":{"this":{"__isSmartRef__":true,"id":6829}},"10261":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10262":{"varMapping":{"__isSmartRef__":true,"id":10263},"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":10264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10263":{"this":{"__isSmartRef__":true,"id":6829}},"10264":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10265":{"varMapping":{"__isSmartRef__":true,"id":10266},"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":10267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10266":{"this":{"__isSmartRef__":true,"id":6829}},"10267":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10268":{"varMapping":{"__isSmartRef__":true,"id":10269},"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":10270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10269":{"this":{"__isSmartRef__":true,"id":6829}},"10270":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10271":{"varMapping":{"__isSmartRef__":true,"id":10272},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10272":{"this":{"__isSmartRef__":true,"id":6829}},"10273":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10274":{"varMapping":{"__isSmartRef__":true,"id":10275},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10275":{"this":{"__isSmartRef__":true,"id":6829}},"10276":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10277":{"varMapping":{"__isSmartRef__":true,"id":10278},"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":10279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10278":{"this":{"__isSmartRef__":true,"id":6829}},"10279":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10280":{"submorphs":[{"__isSmartRef__":true,"id":10281}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10285},"derivationIds":[null],"id":"7032FC32-110F-4F97-A58E-336F5B79F7CC","eventHandler":{"__isSmartRef__":true,"id":10286},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":0,"column":1,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":10281},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10287},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,0.0)"},"10281":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10282},"derivationIds":[null],"id":"A59C2662-6C8F-4658-BAA1-F92BD68E81F6","eventHandler":{"__isSmartRef__":true,"id":10283},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10280},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10284},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"10282":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-a59c2662-6c8f-4658-baa1-f92bd68e81f6","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"10283":{"morph":{"__isSmartRef__":true,"id":10281},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10284":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"10285":{"_NodeClass":["morph","box"],"_NodeId":"morph-7032fc32-110f-4f97-a58e-336f5b79f7cc","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"10286":{"morph":{"__isSmartRef__":true,"id":10280},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10287":{"setDevStyle":{"__isSmartRef__":true,"id":10288},"setNormalStyle":{"__isSmartRef__":true,"id":10291},"tileSize":{"__isSmartRef__":true,"id":10294},"become":{"__isSmartRef__":true,"id":10297},"onMouseDown":{"__isSmartRef__":true,"id":10300},"setGridPosition":{"__isSmartRef__":true,"id":10307},"toolbox":{"__isSmartRef__":true,"id":10310},"distanceTo":{"__isSmartRef__":true,"id":10313},"tileWasDropped":{"__isSmartRef__":true,"id":10316},"isObstacle":{"__isSmartRef__":true,"id":10319},"neighboursInDirection":{"__isSmartRef__":true,"id":10322},"neighbours":{"__isSmartRef__":true,"id":10325},"zIndex":{"__isSmartRef__":true,"id":10328},"obstacles":{"__isSmartRef__":true,"id":10331},"addObstacle":{"__isSmartRef__":true,"id":10334},"removeObstacle":{"__isSmartRef__":true,"id":10337},"isTile":{"__isSmartRef__":true,"id":10340},"neighbourAt":{"__isSmartRef__":true,"id":10343},"map":{"__isSmartRef__":true,"id":10346},"game":{"__isSmartRef__":true,"id":10349},"reset":{"__isSmartRef__":true,"id":10352},"shallowCopy":{"__isSmartRef__":true,"id":10355},"characters":{"__isSmartRef__":true,"id":10358},"enterTile":{"__isSmartRef__":true,"id":10361},"leaveTile":{"__isSmartRef__":true,"id":10364},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10367}},"10288":{"varMapping":{"__isSmartRef__":true,"id":10289},"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":10290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10289":{"this":{"__isSmartRef__":true,"id":10280}},"10290":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10291":{"varMapping":{"__isSmartRef__":true,"id":10292},"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":10293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10292":{"this":{"__isSmartRef__":true,"id":10280}},"10293":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10294":{"varMapping":{"__isSmartRef__":true,"id":10295},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10295":{"this":{"__isSmartRef__":true,"id":10280}},"10296":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10297":{"varMapping":{"__isSmartRef__":true,"id":10298},"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":10299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10298":{"this":{"__isSmartRef__":true,"id":10280}},"10299":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10300":{"varMapping":{"__isSmartRef__":true,"id":10301},"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":10306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10301":{"this":{"__isSmartRef__":true,"id":10280},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10302}},"10302":{"$super":{"__isSmartRef__":true,"id":10303}},"10303":{"varMapping":{"__isSmartRef__":true,"id":10304},"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":10305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10304":{"obj":{"__isSmartRef__":true,"id":10280},"name":"onMouseDown"},"10305":{},"10306":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10307":{"varMapping":{"__isSmartRef__":true,"id":10308},"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":10309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10308":{"this":{"__isSmartRef__":true,"id":10280}},"10309":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10310":{"varMapping":{"__isSmartRef__":true,"id":10311},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10311":{"this":{"__isSmartRef__":true,"id":10280}},"10312":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10313":{"varMapping":{"__isSmartRef__":true,"id":10314},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10314":{"this":{"__isSmartRef__":true,"id":10280}},"10315":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10316":{"varMapping":{"__isSmartRef__":true,"id":10317},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10317":{"this":{"__isSmartRef__":true,"id":10280}},"10318":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10319":{"varMapping":{"__isSmartRef__":true,"id":10320},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10320":{"this":{"__isSmartRef__":true,"id":10280}},"10321":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10322":{"varMapping":{"__isSmartRef__":true,"id":10323},"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":10324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10323":{"this":{"__isSmartRef__":true,"id":10280}},"10324":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10325":{"varMapping":{"__isSmartRef__":true,"id":10326},"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":10327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10326":{"this":{"__isSmartRef__":true,"id":10280}},"10327":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10328":{"varMapping":{"__isSmartRef__":true,"id":10329},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10329":{"this":{"__isSmartRef__":true,"id":10280}},"10330":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10331":{"varMapping":{"__isSmartRef__":true,"id":10332},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10332":{"this":{"__isSmartRef__":true,"id":10280}},"10333":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10334":{"varMapping":{"__isSmartRef__":true,"id":10335},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10335":{"this":{"__isSmartRef__":true,"id":10280}},"10336":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10337":{"varMapping":{"__isSmartRef__":true,"id":10338},"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":10339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10338":{"this":{"__isSmartRef__":true,"id":10280}},"10339":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10340":{"varMapping":{"__isSmartRef__":true,"id":10341},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10341":{"this":{"__isSmartRef__":true,"id":10280}},"10342":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10343":{"varMapping":{"__isSmartRef__":true,"id":10344},"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":10345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10344":{"this":{"__isSmartRef__":true,"id":10280}},"10345":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10346":{"varMapping":{"__isSmartRef__":true,"id":10347},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10347":{"this":{"__isSmartRef__":true,"id":10280}},"10348":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10349":{"varMapping":{"__isSmartRef__":true,"id":10350},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10350":{"this":{"__isSmartRef__":true,"id":10280}},"10351":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10352":{"varMapping":{"__isSmartRef__":true,"id":10353},"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":10354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10353":{"this":{"__isSmartRef__":true,"id":10280}},"10354":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10355":{"varMapping":{"__isSmartRef__":true,"id":10356},"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":10357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10356":{"this":{"__isSmartRef__":true,"id":10280}},"10357":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10358":{"varMapping":{"__isSmartRef__":true,"id":10359},"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":10360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10359":{"this":{"__isSmartRef__":true,"id":10280}},"10360":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10361":{"varMapping":{"__isSmartRef__":true,"id":10362},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10362":{"this":{"__isSmartRef__":true,"id":10280}},"10363":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10364":{"varMapping":{"__isSmartRef__":true,"id":10365},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10365":{"this":{"__isSmartRef__":true,"id":10280}},"10366":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10367":{"varMapping":{"__isSmartRef__":true,"id":10368},"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":10369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10368":{"this":{"__isSmartRef__":true,"id":10280}},"10369":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10370":{"submorphs":[{"__isSmartRef__":true,"id":10371}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10375},"derivationIds":[null],"id":"4B747FCE-B749-4788-A259-0903C6A351F3","eventHandler":{"__isSmartRef__":true,"id":10376},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":3,"column":0,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":10371},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10377},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,144.0)"},"10371":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10372},"derivationIds":[null],"id":"091874FD-A28F-4CF4-B1CE-CF2285E1D37C","eventHandler":{"__isSmartRef__":true,"id":10373},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10370},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10374},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"10372":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-091874fd-a28f-4cf4-b1ce-cf2285e1d37c","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"10373":{"morph":{"__isSmartRef__":true,"id":10371},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10374":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"10375":{"_NodeClass":["morph","box"],"_NodeId":"morph-4b747fce-b749-4788-a259-0903c6a351f3","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"10376":{"morph":{"__isSmartRef__":true,"id":10370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10377":{"setDevStyle":{"__isSmartRef__":true,"id":10378},"setNormalStyle":{"__isSmartRef__":true,"id":10381},"tileSize":{"__isSmartRef__":true,"id":10384},"become":{"__isSmartRef__":true,"id":10387},"onMouseDown":{"__isSmartRef__":true,"id":10390},"setGridPosition":{"__isSmartRef__":true,"id":10397},"toolbox":{"__isSmartRef__":true,"id":10400},"distanceTo":{"__isSmartRef__":true,"id":10403},"tileWasDropped":{"__isSmartRef__":true,"id":10406},"isObstacle":{"__isSmartRef__":true,"id":10409},"neighboursInDirection":{"__isSmartRef__":true,"id":10412},"neighbours":{"__isSmartRef__":true,"id":10415},"zIndex":{"__isSmartRef__":true,"id":10418},"obstacles":{"__isSmartRef__":true,"id":10421},"addObstacle":{"__isSmartRef__":true,"id":10424},"removeObstacle":{"__isSmartRef__":true,"id":10427},"isTile":{"__isSmartRef__":true,"id":10430},"neighbourAt":{"__isSmartRef__":true,"id":10433},"map":{"__isSmartRef__":true,"id":10436},"game":{"__isSmartRef__":true,"id":10439},"reset":{"__isSmartRef__":true,"id":10442},"shallowCopy":{"__isSmartRef__":true,"id":10445},"characters":{"__isSmartRef__":true,"id":10448},"enterTile":{"__isSmartRef__":true,"id":10451},"leaveTile":{"__isSmartRef__":true,"id":10454},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10457}},"10378":{"varMapping":{"__isSmartRef__":true,"id":10379},"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":10380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10379":{"this":{"__isSmartRef__":true,"id":10370}},"10380":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10381":{"varMapping":{"__isSmartRef__":true,"id":10382},"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":10383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10382":{"this":{"__isSmartRef__":true,"id":10370}},"10383":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10384":{"varMapping":{"__isSmartRef__":true,"id":10385},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10385":{"this":{"__isSmartRef__":true,"id":10370}},"10386":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10387":{"varMapping":{"__isSmartRef__":true,"id":10388},"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":10389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10388":{"this":{"__isSmartRef__":true,"id":10370}},"10389":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10390":{"varMapping":{"__isSmartRef__":true,"id":10391},"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":10396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10391":{"this":{"__isSmartRef__":true,"id":10370},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10392}},"10392":{"$super":{"__isSmartRef__":true,"id":10393}},"10393":{"varMapping":{"__isSmartRef__":true,"id":10394},"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":10395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10394":{"obj":{"__isSmartRef__":true,"id":10370},"name":"onMouseDown"},"10395":{},"10396":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10397":{"varMapping":{"__isSmartRef__":true,"id":10398},"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":10399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10398":{"this":{"__isSmartRef__":true,"id":10370}},"10399":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10400":{"varMapping":{"__isSmartRef__":true,"id":10401},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10401":{"this":{"__isSmartRef__":true,"id":10370}},"10402":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10403":{"varMapping":{"__isSmartRef__":true,"id":10404},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10404":{"this":{"__isSmartRef__":true,"id":10370}},"10405":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10406":{"varMapping":{"__isSmartRef__":true,"id":10407},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10407":{"this":{"__isSmartRef__":true,"id":10370}},"10408":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10409":{"varMapping":{"__isSmartRef__":true,"id":10410},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10410":{"this":{"__isSmartRef__":true,"id":10370}},"10411":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10412":{"varMapping":{"__isSmartRef__":true,"id":10413},"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":10414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10413":{"this":{"__isSmartRef__":true,"id":10370}},"10414":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10415":{"varMapping":{"__isSmartRef__":true,"id":10416},"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":10417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10416":{"this":{"__isSmartRef__":true,"id":10370}},"10417":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10418":{"varMapping":{"__isSmartRef__":true,"id":10419},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10419":{"this":{"__isSmartRef__":true,"id":10370}},"10420":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10421":{"varMapping":{"__isSmartRef__":true,"id":10422},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10422":{"this":{"__isSmartRef__":true,"id":10370}},"10423":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10424":{"varMapping":{"__isSmartRef__":true,"id":10425},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10425":{"this":{"__isSmartRef__":true,"id":10370}},"10426":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10427":{"varMapping":{"__isSmartRef__":true,"id":10428},"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":10429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10428":{"this":{"__isSmartRef__":true,"id":10370}},"10429":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10430":{"varMapping":{"__isSmartRef__":true,"id":10431},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10431":{"this":{"__isSmartRef__":true,"id":10370}},"10432":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10433":{"varMapping":{"__isSmartRef__":true,"id":10434},"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":10435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10434":{"this":{"__isSmartRef__":true,"id":10370}},"10435":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10436":{"varMapping":{"__isSmartRef__":true,"id":10437},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10437":{"this":{"__isSmartRef__":true,"id":10370}},"10438":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10439":{"varMapping":{"__isSmartRef__":true,"id":10440},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10440":{"this":{"__isSmartRef__":true,"id":10370}},"10441":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10442":{"varMapping":{"__isSmartRef__":true,"id":10443},"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":10444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10443":{"this":{"__isSmartRef__":true,"id":10370}},"10444":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10445":{"varMapping":{"__isSmartRef__":true,"id":10446},"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":10447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10446":{"this":{"__isSmartRef__":true,"id":10370}},"10447":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10448":{"varMapping":{"__isSmartRef__":true,"id":10449},"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":10450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10449":{"this":{"__isSmartRef__":true,"id":10370}},"10450":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10451":{"varMapping":{"__isSmartRef__":true,"id":10452},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10452":{"this":{"__isSmartRef__":true,"id":10370}},"10453":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10454":{"varMapping":{"__isSmartRef__":true,"id":10455},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10455":{"this":{"__isSmartRef__":true,"id":10370}},"10456":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10457":{"varMapping":{"__isSmartRef__":true,"id":10458},"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":10459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10458":{"this":{"__isSmartRef__":true,"id":10370}},"10459":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10460":{"submorphs":[{"__isSmartRef__":true,"id":10461}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10465},"derivationIds":[null],"id":"89860524-4F92-4B4A-BA44-391D422CCDE1","eventHandler":{"__isSmartRef__":true,"id":10466},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":2,"column":0,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":10461},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10467},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,96.0)"},"10461":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10462},"derivationIds":[null],"id":"2F0FB357-5178-468B-972E-F87736E4A1F3","eventHandler":{"__isSmartRef__":true,"id":10463},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10460},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10464},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"10462":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-2f0fb357-5178-468b-972e-f87736e4a1f3","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"10463":{"morph":{"__isSmartRef__":true,"id":10461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10464":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"10465":{"_NodeClass":["morph","box"],"_NodeId":"morph-89860524-4f92-4b4a-ba44-391d422ccde1","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"10466":{"morph":{"__isSmartRef__":true,"id":10460},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10467":{"setDevStyle":{"__isSmartRef__":true,"id":10468},"setNormalStyle":{"__isSmartRef__":true,"id":10471},"tileSize":{"__isSmartRef__":true,"id":10474},"become":{"__isSmartRef__":true,"id":10477},"onMouseDown":{"__isSmartRef__":true,"id":10480},"setGridPosition":{"__isSmartRef__":true,"id":10487},"toolbox":{"__isSmartRef__":true,"id":10490},"distanceTo":{"__isSmartRef__":true,"id":10493},"tileWasDropped":{"__isSmartRef__":true,"id":10496},"isObstacle":{"__isSmartRef__":true,"id":10499},"neighboursInDirection":{"__isSmartRef__":true,"id":10502},"neighbours":{"__isSmartRef__":true,"id":10505},"zIndex":{"__isSmartRef__":true,"id":10508},"obstacles":{"__isSmartRef__":true,"id":10511},"addObstacle":{"__isSmartRef__":true,"id":10514},"removeObstacle":{"__isSmartRef__":true,"id":10517},"isTile":{"__isSmartRef__":true,"id":10520},"neighbourAt":{"__isSmartRef__":true,"id":10523},"map":{"__isSmartRef__":true,"id":10526},"game":{"__isSmartRef__":true,"id":10529},"reset":{"__isSmartRef__":true,"id":10532},"shallowCopy":{"__isSmartRef__":true,"id":10535},"characters":{"__isSmartRef__":true,"id":10538},"enterTile":{"__isSmartRef__":true,"id":10541},"leaveTile":{"__isSmartRef__":true,"id":10544},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10547}},"10468":{"varMapping":{"__isSmartRef__":true,"id":10469},"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":10470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10469":{"this":{"__isSmartRef__":true,"id":10460}},"10470":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10471":{"varMapping":{"__isSmartRef__":true,"id":10472},"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":10473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10472":{"this":{"__isSmartRef__":true,"id":10460}},"10473":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10474":{"varMapping":{"__isSmartRef__":true,"id":10475},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10475":{"this":{"__isSmartRef__":true,"id":10460}},"10476":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10477":{"varMapping":{"__isSmartRef__":true,"id":10478},"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":10479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10478":{"this":{"__isSmartRef__":true,"id":10460}},"10479":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10480":{"varMapping":{"__isSmartRef__":true,"id":10481},"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":10486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10481":{"this":{"__isSmartRef__":true,"id":10460},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10482}},"10482":{"$super":{"__isSmartRef__":true,"id":10483}},"10483":{"varMapping":{"__isSmartRef__":true,"id":10484},"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":10485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10484":{"obj":{"__isSmartRef__":true,"id":10460},"name":"onMouseDown"},"10485":{},"10486":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10487":{"varMapping":{"__isSmartRef__":true,"id":10488},"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":10489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10488":{"this":{"__isSmartRef__":true,"id":10460}},"10489":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10490":{"varMapping":{"__isSmartRef__":true,"id":10491},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10491":{"this":{"__isSmartRef__":true,"id":10460}},"10492":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10493":{"varMapping":{"__isSmartRef__":true,"id":10494},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10494":{"this":{"__isSmartRef__":true,"id":10460}},"10495":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10496":{"varMapping":{"__isSmartRef__":true,"id":10497},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10497":{"this":{"__isSmartRef__":true,"id":10460}},"10498":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10499":{"varMapping":{"__isSmartRef__":true,"id":10500},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10500":{"this":{"__isSmartRef__":true,"id":10460}},"10501":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10502":{"varMapping":{"__isSmartRef__":true,"id":10503},"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":10504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10503":{"this":{"__isSmartRef__":true,"id":10460}},"10504":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10505":{"varMapping":{"__isSmartRef__":true,"id":10506},"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":10507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10506":{"this":{"__isSmartRef__":true,"id":10460}},"10507":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10508":{"varMapping":{"__isSmartRef__":true,"id":10509},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10509":{"this":{"__isSmartRef__":true,"id":10460}},"10510":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10511":{"varMapping":{"__isSmartRef__":true,"id":10512},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10512":{"this":{"__isSmartRef__":true,"id":10460}},"10513":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10514":{"varMapping":{"__isSmartRef__":true,"id":10515},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10515":{"this":{"__isSmartRef__":true,"id":10460}},"10516":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10517":{"varMapping":{"__isSmartRef__":true,"id":10518},"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":10519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10518":{"this":{"__isSmartRef__":true,"id":10460}},"10519":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10520":{"varMapping":{"__isSmartRef__":true,"id":10521},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10521":{"this":{"__isSmartRef__":true,"id":10460}},"10522":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10523":{"varMapping":{"__isSmartRef__":true,"id":10524},"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":10525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10524":{"this":{"__isSmartRef__":true,"id":10460}},"10525":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10526":{"varMapping":{"__isSmartRef__":true,"id":10527},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10527":{"this":{"__isSmartRef__":true,"id":10460}},"10528":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10529":{"varMapping":{"__isSmartRef__":true,"id":10530},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10530":{"this":{"__isSmartRef__":true,"id":10460}},"10531":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10532":{"varMapping":{"__isSmartRef__":true,"id":10533},"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":10534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10533":{"this":{"__isSmartRef__":true,"id":10460}},"10534":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10535":{"varMapping":{"__isSmartRef__":true,"id":10536},"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":10537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10536":{"this":{"__isSmartRef__":true,"id":10460}},"10537":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10538":{"varMapping":{"__isSmartRef__":true,"id":10539},"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":10540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10539":{"this":{"__isSmartRef__":true,"id":10460}},"10540":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10541":{"varMapping":{"__isSmartRef__":true,"id":10542},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10542":{"this":{"__isSmartRef__":true,"id":10460}},"10543":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10544":{"varMapping":{"__isSmartRef__":true,"id":10545},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10545":{"this":{"__isSmartRef__":true,"id":10460}},"10546":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10547":{"varMapping":{"__isSmartRef__":true,"id":10548},"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":10549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10548":{"this":{"__isSmartRef__":true,"id":10460}},"10549":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10550":{"submorphs":[{"__isSmartRef__":true,"id":10551}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10555},"derivationIds":[null],"id":"0A972FB6-26A6-454A-BE8A-EC186A6D243D","eventHandler":{"__isSmartRef__":true,"id":10556},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":1,"column":0,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":10551},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":6422}],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10557},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,48.0)"},"10551":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10552},"derivationIds":[null],"id":"08708C49-7FF3-44AE-8B3A-D9FC7341670D","eventHandler":{"__isSmartRef__":true,"id":10553},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10550},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10554},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"10552":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-08708c49-7ff3-44ae-8b3a-d9fc7341670d","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"10553":{"morph":{"__isSmartRef__":true,"id":10551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10554":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"10555":{"_NodeClass":["morph","box"],"_NodeId":"morph-0a972fb6-26a6-454a-be8a-ec186a6d243d","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"10556":{"morph":{"__isSmartRef__":true,"id":10550},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10557":{"setDevStyle":{"__isSmartRef__":true,"id":10558},"setNormalStyle":{"__isSmartRef__":true,"id":10561},"tileSize":{"__isSmartRef__":true,"id":10564},"become":{"__isSmartRef__":true,"id":10567},"onMouseDown":{"__isSmartRef__":true,"id":10570},"setGridPosition":{"__isSmartRef__":true,"id":10577},"toolbox":{"__isSmartRef__":true,"id":10580},"distanceTo":{"__isSmartRef__":true,"id":10583},"tileWasDropped":{"__isSmartRef__":true,"id":10586},"isObstacle":{"__isSmartRef__":true,"id":10589},"neighboursInDirection":{"__isSmartRef__":true,"id":10592},"neighbours":{"__isSmartRef__":true,"id":10595},"zIndex":{"__isSmartRef__":true,"id":10598},"obstacles":{"__isSmartRef__":true,"id":10601},"addObstacle":{"__isSmartRef__":true,"id":10604},"removeObstacle":{"__isSmartRef__":true,"id":10607},"isTile":{"__isSmartRef__":true,"id":10610},"neighbourAt":{"__isSmartRef__":true,"id":10613},"map":{"__isSmartRef__":true,"id":10616},"game":{"__isSmartRef__":true,"id":10619},"reset":{"__isSmartRef__":true,"id":10622},"shallowCopy":{"__isSmartRef__":true,"id":10625},"characters":{"__isSmartRef__":true,"id":10628},"enterTile":{"__isSmartRef__":true,"id":10631},"leaveTile":{"__isSmartRef__":true,"id":10634},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10637}},"10558":{"varMapping":{"__isSmartRef__":true,"id":10559},"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":10560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10559":{"this":{"__isSmartRef__":true,"id":10550}},"10560":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10561":{"varMapping":{"__isSmartRef__":true,"id":10562},"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":10563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10562":{"this":{"__isSmartRef__":true,"id":10550}},"10563":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10564":{"varMapping":{"__isSmartRef__":true,"id":10565},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10565":{"this":{"__isSmartRef__":true,"id":10550}},"10566":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10567":{"varMapping":{"__isSmartRef__":true,"id":10568},"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":10569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10568":{"this":{"__isSmartRef__":true,"id":10550}},"10569":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10570":{"varMapping":{"__isSmartRef__":true,"id":10571},"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":10576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10571":{"this":{"__isSmartRef__":true,"id":10550},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10572}},"10572":{"$super":{"__isSmartRef__":true,"id":10573}},"10573":{"varMapping":{"__isSmartRef__":true,"id":10574},"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":10575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10574":{"obj":{"__isSmartRef__":true,"id":10550},"name":"onMouseDown"},"10575":{},"10576":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10577":{"varMapping":{"__isSmartRef__":true,"id":10578},"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":10579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10578":{"this":{"__isSmartRef__":true,"id":10550}},"10579":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10580":{"varMapping":{"__isSmartRef__":true,"id":10581},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10581":{"this":{"__isSmartRef__":true,"id":10550}},"10582":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10583":{"varMapping":{"__isSmartRef__":true,"id":10584},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10584":{"this":{"__isSmartRef__":true,"id":10550}},"10585":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10586":{"varMapping":{"__isSmartRef__":true,"id":10587},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10587":{"this":{"__isSmartRef__":true,"id":10550}},"10588":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10589":{"varMapping":{"__isSmartRef__":true,"id":10590},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10590":{"this":{"__isSmartRef__":true,"id":10550}},"10591":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10592":{"varMapping":{"__isSmartRef__":true,"id":10593},"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":10594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10593":{"this":{"__isSmartRef__":true,"id":10550}},"10594":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10595":{"varMapping":{"__isSmartRef__":true,"id":10596},"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":10597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10596":{"this":{"__isSmartRef__":true,"id":10550}},"10597":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10598":{"varMapping":{"__isSmartRef__":true,"id":10599},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10599":{"this":{"__isSmartRef__":true,"id":10550}},"10600":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10601":{"varMapping":{"__isSmartRef__":true,"id":10602},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10602":{"this":{"__isSmartRef__":true,"id":10550}},"10603":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10604":{"varMapping":{"__isSmartRef__":true,"id":10605},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10605":{"this":{"__isSmartRef__":true,"id":10550}},"10606":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10607":{"varMapping":{"__isSmartRef__":true,"id":10608},"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":10609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10608":{"this":{"__isSmartRef__":true,"id":10550}},"10609":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10610":{"varMapping":{"__isSmartRef__":true,"id":10611},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10611":{"this":{"__isSmartRef__":true,"id":10550}},"10612":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10613":{"varMapping":{"__isSmartRef__":true,"id":10614},"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":10615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10614":{"this":{"__isSmartRef__":true,"id":10550}},"10615":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10616":{"varMapping":{"__isSmartRef__":true,"id":10617},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10617":{"this":{"__isSmartRef__":true,"id":10550}},"10618":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10619":{"varMapping":{"__isSmartRef__":true,"id":10620},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10620":{"this":{"__isSmartRef__":true,"id":10550}},"10621":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10622":{"varMapping":{"__isSmartRef__":true,"id":10623},"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":10624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10623":{"this":{"__isSmartRef__":true,"id":10550}},"10624":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10625":{"varMapping":{"__isSmartRef__":true,"id":10626},"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":10627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10626":{"this":{"__isSmartRef__":true,"id":10550}},"10627":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10628":{"varMapping":{"__isSmartRef__":true,"id":10629},"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":10630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10629":{"this":{"__isSmartRef__":true,"id":10550}},"10630":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10631":{"varMapping":{"__isSmartRef__":true,"id":10632},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10632":{"this":{"__isSmartRef__":true,"id":10550}},"10633":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10634":{"varMapping":{"__isSmartRef__":true,"id":10635},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10635":{"this":{"__isSmartRef__":true,"id":10550}},"10636":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10637":{"varMapping":{"__isSmartRef__":true,"id":10638},"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":10639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10638":{"this":{"__isSmartRef__":true,"id":10550}},"10639":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10640":{"setDevStyle":{"__isSmartRef__":true,"id":10641},"setNormalStyle":{"__isSmartRef__":true,"id":10645},"become":{"__isSmartRef__":true,"id":10649},"onMouseDown":{"__isSmartRef__":true,"id":10653},"toolbox":{"__isSmartRef__":true,"id":10661},"zIndex":{"__isSmartRef__":true,"id":10665},"becomeRandomThing":{"__isSmartRef__":true,"id":10669},"reset":{"__isSmartRef__":true,"id":10673},"registerAsObstacle":{"__isSmartRef__":true,"id":10677},"deregisterAsObstacle":{"__isSmartRef__":true,"id":10681},"tileSize":{"__isSmartRef__":true,"id":10685},"dropOn":{"__isSmartRef__":true,"id":10689},"map":{"__isSmartRef__":true,"id":10697},"game":{"__isSmartRef__":true,"id":10701}},"10641":{"varMapping":{"__isSmartRef__":true,"id":10642},"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":10643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10642":{"this":{"__isSmartRef__":true,"id":6422}},"10643":{"timestamp":{"__isSmartRef__":true,"id":10644},"user":"timfelgentreff","tags":[]},"10644":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (Central Europe Daylight Time)"},"10645":{"varMapping":{"__isSmartRef__":true,"id":10646},"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":10647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10646":{"this":{"__isSmartRef__":true,"id":6422}},"10647":{"timestamp":{"__isSmartRef__":true,"id":10648},"user":"tessi","tags":[]},"10648":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (Central Europe Daylight Time)"},"10649":{"varMapping":{"__isSmartRef__":true,"id":10650},"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":10651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10650":{"this":{"__isSmartRef__":true,"id":6422}},"10651":{"timestamp":{"__isSmartRef__":true,"id":10652},"user":"timfelgentreff","tags":[]},"10652":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (Central Europe Daylight Time)"},"10653":{"varMapping":{"__isSmartRef__":true,"id":10654},"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":10659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10654":{"this":{"__isSmartRef__":true,"id":6422},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10655}},"10655":{"$super":{"__isSmartRef__":true,"id":10656}},"10656":{"varMapping":{"__isSmartRef__":true,"id":10657},"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":10658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10657":{"obj":{"__isSmartRef__":true,"id":6422},"name":"onMouseDown"},"10658":{},"10659":{"timestamp":{"__isSmartRef__":true,"id":10660},"user":"tessi","tags":[]},"10660":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (Central Europe Daylight Time)"},"10661":{"varMapping":{"__isSmartRef__":true,"id":10662},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10662":{"this":{"__isSmartRef__":true,"id":6422}},"10663":{"timestamp":{"__isSmartRef__":true,"id":10664},"user":"tessi","tags":[]},"10664":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (Central Europe Daylight Time)"},"10665":{"varMapping":{"__isSmartRef__":true,"id":10666},"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":10667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10666":{"this":{"__isSmartRef__":true,"id":6422}},"10667":{"timestamp":{"__isSmartRef__":true,"id":10668},"user":"timfelgentreff","tags":[]},"10668":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (Central Europe Daylight Time)"},"10669":{"varMapping":{"__isSmartRef__":true,"id":10670},"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":10671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10670":{"this":{"__isSmartRef__":true,"id":6422}},"10671":{"timestamp":{"__isSmartRef__":true,"id":10672},"user":"tessi","tags":[]},"10672":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (Central Europe Daylight Time)"},"10673":{"varMapping":{"__isSmartRef__":true,"id":10674},"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":10675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10674":{"this":{"__isSmartRef__":true,"id":6422}},"10675":{"timestamp":{"__isSmartRef__":true,"id":10676},"user":"tessi","tags":[]},"10676":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (Central Europe Daylight Time)"},"10677":{"varMapping":{"__isSmartRef__":true,"id":10678},"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":10679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10678":{"this":{"__isSmartRef__":true,"id":6422}},"10679":{"timestamp":{"__isSmartRef__":true,"id":10680},"user":"timfelgentreff","tags":[]},"10680":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (Central Europe Daylight Time)"},"10681":{"varMapping":{"__isSmartRef__":true,"id":10682},"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":10683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10682":{"this":{"__isSmartRef__":true,"id":6422}},"10683":{"timestamp":{"__isSmartRef__":true,"id":10684},"user":"timfelgentreff","tags":[]},"10684":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (Central Europe Daylight Time)"},"10685":{"varMapping":{"__isSmartRef__":true,"id":10686},"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":10687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10686":{"this":{"__isSmartRef__":true,"id":6422}},"10687":{"timestamp":{"__isSmartRef__":true,"id":10688},"user":"timfelgentreff","tags":[]},"10688":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (Central Europe Daylight Time)"},"10689":{"varMapping":{"__isSmartRef__":true,"id":10690},"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":10695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10690":{"this":{"__isSmartRef__":true,"id":6422},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10691}},"10691":{"$super":{"__isSmartRef__":true,"id":10692}},"10692":{"varMapping":{"__isSmartRef__":true,"id":10693},"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":10694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10693":{"obj":{"__isSmartRef__":true,"id":6422},"name":"dropOn"},"10694":{},"10695":{"timestamp":{"__isSmartRef__":true,"id":10696},"user":"timfelgentreff","tags":[]},"10696":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (Central Europe Daylight Time)"},"10697":{"varMapping":{"__isSmartRef__":true,"id":10698},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":10699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10698":{"this":{"__isSmartRef__":true,"id":6422}},"10699":{"timestamp":{"__isSmartRef__":true,"id":10700},"user":"tessi","tags":[]},"10700":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (Central Europe Daylight Time)"},"10701":{"varMapping":{"__isSmartRef__":true,"id":10702},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":10703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10702":{"this":{"__isSmartRef__":true,"id":6422}},"10703":{"timestamp":{"__isSmartRef__":true,"id":10704},"user":"tessi","tags":[]},"10704":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (Central Europe Daylight Time)"},"10705":{"setDevStyle":{"__isSmartRef__":true,"id":10706},"setNormalStyle":{"__isSmartRef__":true,"id":10709},"tileSize":{"__isSmartRef__":true,"id":10712},"become":{"__isSmartRef__":true,"id":10715},"onMouseDown":{"__isSmartRef__":true,"id":10718},"setGridPosition":{"__isSmartRef__":true,"id":10725},"toolbox":{"__isSmartRef__":true,"id":10728},"distanceTo":{"__isSmartRef__":true,"id":10731},"tileWasDropped":{"__isSmartRef__":true,"id":10734},"isObstacle":{"__isSmartRef__":true,"id":10737},"neighboursInDirection":{"__isSmartRef__":true,"id":10740},"neighbours":{"__isSmartRef__":true,"id":10743},"zIndex":{"__isSmartRef__":true,"id":10746},"obstacles":{"__isSmartRef__":true,"id":10749},"addObstacle":{"__isSmartRef__":true,"id":10752},"removeObstacle":{"__isSmartRef__":true,"id":10755},"isTile":{"__isSmartRef__":true,"id":10758},"neighbourAt":{"__isSmartRef__":true,"id":10761},"map":{"__isSmartRef__":true,"id":10764},"game":{"__isSmartRef__":true,"id":10767},"reset":{"__isSmartRef__":true,"id":10770},"shallowCopy":{"__isSmartRef__":true,"id":10773},"characters":{"__isSmartRef__":true,"id":10776},"enterTile":{"__isSmartRef__":true,"id":10779},"leaveTile":{"__isSmartRef__":true,"id":10782},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10785}},"10706":{"varMapping":{"__isSmartRef__":true,"id":10707},"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":10708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10707":{"this":{"__isSmartRef__":true,"id":6415}},"10708":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10709":{"varMapping":{"__isSmartRef__":true,"id":10710},"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":10711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10710":{"this":{"__isSmartRef__":true,"id":6415}},"10711":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10712":{"varMapping":{"__isSmartRef__":true,"id":10713},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10713":{"this":{"__isSmartRef__":true,"id":6415}},"10714":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10715":{"varMapping":{"__isSmartRef__":true,"id":10716},"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":10717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10716":{"this":{"__isSmartRef__":true,"id":6415}},"10717":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10718":{"varMapping":{"__isSmartRef__":true,"id":10719},"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":10724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10719":{"this":{"__isSmartRef__":true,"id":6415},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10720}},"10720":{"$super":{"__isSmartRef__":true,"id":10721}},"10721":{"varMapping":{"__isSmartRef__":true,"id":10722},"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":10723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10722":{"obj":{"__isSmartRef__":true,"id":6415},"name":"onMouseDown"},"10723":{},"10724":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10725":{"varMapping":{"__isSmartRef__":true,"id":10726},"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":10727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10726":{"this":{"__isSmartRef__":true,"id":6415}},"10727":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10728":{"varMapping":{"__isSmartRef__":true,"id":10729},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10729":{"this":{"__isSmartRef__":true,"id":6415}},"10730":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10731":{"varMapping":{"__isSmartRef__":true,"id":10732},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10732":{"this":{"__isSmartRef__":true,"id":6415}},"10733":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10734":{"varMapping":{"__isSmartRef__":true,"id":10735},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10735":{"this":{"__isSmartRef__":true,"id":6415}},"10736":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10737":{"varMapping":{"__isSmartRef__":true,"id":10738},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10738":{"this":{"__isSmartRef__":true,"id":6415}},"10739":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10740":{"varMapping":{"__isSmartRef__":true,"id":10741},"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":10742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10741":{"this":{"__isSmartRef__":true,"id":6415}},"10742":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10743":{"varMapping":{"__isSmartRef__":true,"id":10744},"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":10745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10744":{"this":{"__isSmartRef__":true,"id":6415}},"10745":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10746":{"varMapping":{"__isSmartRef__":true,"id":10747},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10747":{"this":{"__isSmartRef__":true,"id":6415}},"10748":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10749":{"varMapping":{"__isSmartRef__":true,"id":10750},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10750":{"this":{"__isSmartRef__":true,"id":6415}},"10751":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10752":{"varMapping":{"__isSmartRef__":true,"id":10753},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10753":{"this":{"__isSmartRef__":true,"id":6415}},"10754":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10755":{"varMapping":{"__isSmartRef__":true,"id":10756},"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":10757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10756":{"this":{"__isSmartRef__":true,"id":6415}},"10757":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10758":{"varMapping":{"__isSmartRef__":true,"id":10759},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10759":{"this":{"__isSmartRef__":true,"id":6415}},"10760":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10761":{"varMapping":{"__isSmartRef__":true,"id":10762},"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":10763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10762":{"this":{"__isSmartRef__":true,"id":6415}},"10763":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10764":{"varMapping":{"__isSmartRef__":true,"id":10765},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10765":{"this":{"__isSmartRef__":true,"id":6415}},"10766":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10767":{"varMapping":{"__isSmartRef__":true,"id":10768},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10768":{"this":{"__isSmartRef__":true,"id":6415}},"10769":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10770":{"varMapping":{"__isSmartRef__":true,"id":10771},"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":10772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10771":{"this":{"__isSmartRef__":true,"id":6415}},"10772":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10773":{"varMapping":{"__isSmartRef__":true,"id":10774},"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":10775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10774":{"this":{"__isSmartRef__":true,"id":6415}},"10775":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10776":{"varMapping":{"__isSmartRef__":true,"id":10777},"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":10778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10777":{"this":{"__isSmartRef__":true,"id":6415}},"10778":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10779":{"varMapping":{"__isSmartRef__":true,"id":10780},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10780":{"this":{"__isSmartRef__":true,"id":6415}},"10781":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10782":{"varMapping":{"__isSmartRef__":true,"id":10783},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10783":{"this":{"__isSmartRef__":true,"id":6415}},"10784":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10785":{"varMapping":{"__isSmartRef__":true,"id":10786},"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":10787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10786":{"this":{"__isSmartRef__":true,"id":6415}},"10787":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10788":{"submorphs":[{"__isSmartRef__":true,"id":10789}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10793},"derivationIds":[null],"id":"DD2B6A8D-D8F7-4143-9758-B529FB1B0AF4","eventHandler":{"__isSmartRef__":true,"id":10794},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":4,"column":0,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":10789},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10795},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,192.0)"},"10789":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10790},"derivationIds":[null],"id":"EA18FB51-2CD1-48AB-9BE3-BF3E79A89767","eventHandler":{"__isSmartRef__":true,"id":10791},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10788},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10792},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"10790":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-ea18fb51-2cd1-48ab-9be3-bf3e79a89767","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"10791":{"morph":{"__isSmartRef__":true,"id":10789},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10792":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"10793":{"_NodeClass":["morph","box"],"_NodeId":"morph-dd2b6a8d-d8f7-4143-9758-b529fb1b0af4","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"10794":{"morph":{"__isSmartRef__":true,"id":10788},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10795":{"setDevStyle":{"__isSmartRef__":true,"id":10796},"setNormalStyle":{"__isSmartRef__":true,"id":10799},"tileSize":{"__isSmartRef__":true,"id":10802},"become":{"__isSmartRef__":true,"id":10805},"onMouseDown":{"__isSmartRef__":true,"id":10808},"setGridPosition":{"__isSmartRef__":true,"id":10815},"toolbox":{"__isSmartRef__":true,"id":10818},"distanceTo":{"__isSmartRef__":true,"id":10821},"tileWasDropped":{"__isSmartRef__":true,"id":10824},"isObstacle":{"__isSmartRef__":true,"id":10827},"neighboursInDirection":{"__isSmartRef__":true,"id":10830},"neighbours":{"__isSmartRef__":true,"id":10833},"zIndex":{"__isSmartRef__":true,"id":10836},"obstacles":{"__isSmartRef__":true,"id":10839},"addObstacle":{"__isSmartRef__":true,"id":10842},"removeObstacle":{"__isSmartRef__":true,"id":10845},"isTile":{"__isSmartRef__":true,"id":10848},"neighbourAt":{"__isSmartRef__":true,"id":10851},"map":{"__isSmartRef__":true,"id":10854},"game":{"__isSmartRef__":true,"id":10857},"reset":{"__isSmartRef__":true,"id":10860},"shallowCopy":{"__isSmartRef__":true,"id":10863},"characters":{"__isSmartRef__":true,"id":10866},"enterTile":{"__isSmartRef__":true,"id":10869},"leaveTile":{"__isSmartRef__":true,"id":10872},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10875}},"10796":{"varMapping":{"__isSmartRef__":true,"id":10797},"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":10798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10797":{"this":{"__isSmartRef__":true,"id":10788}},"10798":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10799":{"varMapping":{"__isSmartRef__":true,"id":10800},"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":10801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10800":{"this":{"__isSmartRef__":true,"id":10788}},"10801":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10802":{"varMapping":{"__isSmartRef__":true,"id":10803},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10803":{"this":{"__isSmartRef__":true,"id":10788}},"10804":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10805":{"varMapping":{"__isSmartRef__":true,"id":10806},"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":10807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10806":{"this":{"__isSmartRef__":true,"id":10788}},"10807":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10808":{"varMapping":{"__isSmartRef__":true,"id":10809},"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":10814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10809":{"this":{"__isSmartRef__":true,"id":10788},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10810}},"10810":{"$super":{"__isSmartRef__":true,"id":10811}},"10811":{"varMapping":{"__isSmartRef__":true,"id":10812},"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":10813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10812":{"obj":{"__isSmartRef__":true,"id":10788},"name":"onMouseDown"},"10813":{},"10814":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10815":{"varMapping":{"__isSmartRef__":true,"id":10816},"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":10817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10816":{"this":{"__isSmartRef__":true,"id":10788}},"10817":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10818":{"varMapping":{"__isSmartRef__":true,"id":10819},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10819":{"this":{"__isSmartRef__":true,"id":10788}},"10820":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10821":{"varMapping":{"__isSmartRef__":true,"id":10822},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10822":{"this":{"__isSmartRef__":true,"id":10788}},"10823":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10824":{"varMapping":{"__isSmartRef__":true,"id":10825},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10825":{"this":{"__isSmartRef__":true,"id":10788}},"10826":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10827":{"varMapping":{"__isSmartRef__":true,"id":10828},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10828":{"this":{"__isSmartRef__":true,"id":10788}},"10829":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10830":{"varMapping":{"__isSmartRef__":true,"id":10831},"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":10832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10831":{"this":{"__isSmartRef__":true,"id":10788}},"10832":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10833":{"varMapping":{"__isSmartRef__":true,"id":10834},"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":10835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10834":{"this":{"__isSmartRef__":true,"id":10788}},"10835":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10836":{"varMapping":{"__isSmartRef__":true,"id":10837},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10837":{"this":{"__isSmartRef__":true,"id":10788}},"10838":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10839":{"varMapping":{"__isSmartRef__":true,"id":10840},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10840":{"this":{"__isSmartRef__":true,"id":10788}},"10841":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10842":{"varMapping":{"__isSmartRef__":true,"id":10843},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10843":{"this":{"__isSmartRef__":true,"id":10788}},"10844":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10845":{"varMapping":{"__isSmartRef__":true,"id":10846},"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":10847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10846":{"this":{"__isSmartRef__":true,"id":10788}},"10847":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10848":{"varMapping":{"__isSmartRef__":true,"id":10849},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10849":{"this":{"__isSmartRef__":true,"id":10788}},"10850":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10851":{"varMapping":{"__isSmartRef__":true,"id":10852},"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":10853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10852":{"this":{"__isSmartRef__":true,"id":10788}},"10853":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10854":{"varMapping":{"__isSmartRef__":true,"id":10855},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10855":{"this":{"__isSmartRef__":true,"id":10788}},"10856":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10857":{"varMapping":{"__isSmartRef__":true,"id":10858},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10858":{"this":{"__isSmartRef__":true,"id":10788}},"10859":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10860":{"varMapping":{"__isSmartRef__":true,"id":10861},"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":10862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10861":{"this":{"__isSmartRef__":true,"id":10788}},"10862":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10863":{"varMapping":{"__isSmartRef__":true,"id":10864},"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":10865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10864":{"this":{"__isSmartRef__":true,"id":10788}},"10865":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10866":{"varMapping":{"__isSmartRef__":true,"id":10867},"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":10868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10867":{"this":{"__isSmartRef__":true,"id":10788}},"10868":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10869":{"varMapping":{"__isSmartRef__":true,"id":10870},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10870":{"this":{"__isSmartRef__":true,"id":10788}},"10871":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10872":{"varMapping":{"__isSmartRef__":true,"id":10873},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10873":{"this":{"__isSmartRef__":true,"id":10788}},"10874":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10875":{"varMapping":{"__isSmartRef__":true,"id":10876},"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":10877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10876":{"this":{"__isSmartRef__":true,"id":10788}},"10877":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10878":{"submorphs":[{"__isSmartRef__":true,"id":10879}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10883},"derivationIds":[null],"id":"8C1F2452-E91E-477B-A2DD-EC8B2CC7C89B","eventHandler":{"__isSmartRef__":true,"id":10884},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":4,"column":1,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":10879},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10885},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,192.0)"},"10879":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10880},"derivationIds":[null],"id":"7104391B-F01C-4C3C-BEE4-CAA9F98BCD2A","eventHandler":{"__isSmartRef__":true,"id":10881},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10878},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10882},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"10880":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-7104391b-f01c-4c3c-bee4-caa9f98bcd2a","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"10881":{"morph":{"__isSmartRef__":true,"id":10879},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10882":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"10883":{"_NodeClass":["morph","box"],"_NodeId":"morph-8c1f2452-e91e-477b-a2dd-ec8b2cc7c89b","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"10884":{"morph":{"__isSmartRef__":true,"id":10878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10885":{"setDevStyle":{"__isSmartRef__":true,"id":10886},"setNormalStyle":{"__isSmartRef__":true,"id":10889},"tileSize":{"__isSmartRef__":true,"id":10892},"become":{"__isSmartRef__":true,"id":10895},"onMouseDown":{"__isSmartRef__":true,"id":10898},"setGridPosition":{"__isSmartRef__":true,"id":10905},"toolbox":{"__isSmartRef__":true,"id":10908},"distanceTo":{"__isSmartRef__":true,"id":10911},"tileWasDropped":{"__isSmartRef__":true,"id":10914},"isObstacle":{"__isSmartRef__":true,"id":10917},"neighboursInDirection":{"__isSmartRef__":true,"id":10920},"neighbours":{"__isSmartRef__":true,"id":10923},"zIndex":{"__isSmartRef__":true,"id":10926},"obstacles":{"__isSmartRef__":true,"id":10929},"addObstacle":{"__isSmartRef__":true,"id":10932},"removeObstacle":{"__isSmartRef__":true,"id":10935},"isTile":{"__isSmartRef__":true,"id":10938},"neighbourAt":{"__isSmartRef__":true,"id":10941},"map":{"__isSmartRef__":true,"id":10944},"game":{"__isSmartRef__":true,"id":10947},"reset":{"__isSmartRef__":true,"id":10950},"shallowCopy":{"__isSmartRef__":true,"id":10953},"characters":{"__isSmartRef__":true,"id":10956},"enterTile":{"__isSmartRef__":true,"id":10959},"leaveTile":{"__isSmartRef__":true,"id":10962},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10965}},"10886":{"varMapping":{"__isSmartRef__":true,"id":10887},"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":10888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10887":{"this":{"__isSmartRef__":true,"id":10878}},"10888":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10889":{"varMapping":{"__isSmartRef__":true,"id":10890},"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":10891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10890":{"this":{"__isSmartRef__":true,"id":10878}},"10891":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10892":{"varMapping":{"__isSmartRef__":true,"id":10893},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10893":{"this":{"__isSmartRef__":true,"id":10878}},"10894":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10895":{"varMapping":{"__isSmartRef__":true,"id":10896},"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":10897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10896":{"this":{"__isSmartRef__":true,"id":10878}},"10897":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10898":{"varMapping":{"__isSmartRef__":true,"id":10899},"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":10904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10899":{"this":{"__isSmartRef__":true,"id":10878},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10900}},"10900":{"$super":{"__isSmartRef__":true,"id":10901}},"10901":{"varMapping":{"__isSmartRef__":true,"id":10902},"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":10903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10902":{"obj":{"__isSmartRef__":true,"id":10878},"name":"onMouseDown"},"10903":{},"10904":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10905":{"varMapping":{"__isSmartRef__":true,"id":10906},"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":10907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10906":{"this":{"__isSmartRef__":true,"id":10878}},"10907":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10908":{"varMapping":{"__isSmartRef__":true,"id":10909},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10909":{"this":{"__isSmartRef__":true,"id":10878}},"10910":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"10911":{"varMapping":{"__isSmartRef__":true,"id":10912},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10912":{"this":{"__isSmartRef__":true,"id":10878}},"10913":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"10914":{"varMapping":{"__isSmartRef__":true,"id":10915},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10915":{"this":{"__isSmartRef__":true,"id":10878}},"10916":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"10917":{"varMapping":{"__isSmartRef__":true,"id":10918},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10918":{"this":{"__isSmartRef__":true,"id":10878}},"10919":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"10920":{"varMapping":{"__isSmartRef__":true,"id":10921},"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":10922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10921":{"this":{"__isSmartRef__":true,"id":10878}},"10922":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"10923":{"varMapping":{"__isSmartRef__":true,"id":10924},"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":10925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10924":{"this":{"__isSmartRef__":true,"id":10878}},"10925":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"10926":{"varMapping":{"__isSmartRef__":true,"id":10927},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10927":{"this":{"__isSmartRef__":true,"id":10878}},"10928":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"10929":{"varMapping":{"__isSmartRef__":true,"id":10930},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10930":{"this":{"__isSmartRef__":true,"id":10878}},"10931":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"10932":{"varMapping":{"__isSmartRef__":true,"id":10933},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10933":{"this":{"__isSmartRef__":true,"id":10878}},"10934":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"10935":{"varMapping":{"__isSmartRef__":true,"id":10936},"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":10937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10936":{"this":{"__isSmartRef__":true,"id":10878}},"10937":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"10938":{"varMapping":{"__isSmartRef__":true,"id":10939},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10939":{"this":{"__isSmartRef__":true,"id":10878}},"10940":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"10941":{"varMapping":{"__isSmartRef__":true,"id":10942},"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":10943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10942":{"this":{"__isSmartRef__":true,"id":10878}},"10943":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"10944":{"varMapping":{"__isSmartRef__":true,"id":10945},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10945":{"this":{"__isSmartRef__":true,"id":10878}},"10946":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"10947":{"varMapping":{"__isSmartRef__":true,"id":10948},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10948":{"this":{"__isSmartRef__":true,"id":10878}},"10949":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"10950":{"varMapping":{"__isSmartRef__":true,"id":10951},"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":10952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10951":{"this":{"__isSmartRef__":true,"id":10878}},"10952":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"10953":{"varMapping":{"__isSmartRef__":true,"id":10954},"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":10955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10954":{"this":{"__isSmartRef__":true,"id":10878}},"10955":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"10956":{"varMapping":{"__isSmartRef__":true,"id":10957},"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":10958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10957":{"this":{"__isSmartRef__":true,"id":10878}},"10958":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"10959":{"varMapping":{"__isSmartRef__":true,"id":10960},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10960":{"this":{"__isSmartRef__":true,"id":10878}},"10961":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"10962":{"varMapping":{"__isSmartRef__":true,"id":10963},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10963":{"this":{"__isSmartRef__":true,"id":10878}},"10964":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"10965":{"varMapping":{"__isSmartRef__":true,"id":10966},"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":10967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10966":{"this":{"__isSmartRef__":true,"id":10878}},"10967":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"10968":{"submorphs":[{"__isSmartRef__":true,"id":10969}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10973},"derivationIds":[null],"id":"B7470373-CF36-42ED-8954-C4D08B51F01E","eventHandler":{"__isSmartRef__":true,"id":10974},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":5,"column":0,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":10969},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10975},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,240.0)"},"10969":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10970},"derivationIds":[null],"id":"D4E4A114-C615-4B55-8213-678B56C1ADEE","eventHandler":{"__isSmartRef__":true,"id":10971},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10968},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10972},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"10970":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-d4e4a114-c615-4b55-8213-678b56c1adee","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"10971":{"morph":{"__isSmartRef__":true,"id":10969},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10972":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"10973":{"_NodeClass":["morph","box"],"_NodeId":"morph-b7470373-cf36-42ed-8954-c4d08b51f01e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"10974":{"morph":{"__isSmartRef__":true,"id":10968},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10975":{"setDevStyle":{"__isSmartRef__":true,"id":10976},"setNormalStyle":{"__isSmartRef__":true,"id":10979},"tileSize":{"__isSmartRef__":true,"id":10982},"become":{"__isSmartRef__":true,"id":10985},"onMouseDown":{"__isSmartRef__":true,"id":10988},"setGridPosition":{"__isSmartRef__":true,"id":10995},"toolbox":{"__isSmartRef__":true,"id":10998},"distanceTo":{"__isSmartRef__":true,"id":11001},"tileWasDropped":{"__isSmartRef__":true,"id":11004},"isObstacle":{"__isSmartRef__":true,"id":11007},"neighboursInDirection":{"__isSmartRef__":true,"id":11010},"neighbours":{"__isSmartRef__":true,"id":11013},"zIndex":{"__isSmartRef__":true,"id":11016},"obstacles":{"__isSmartRef__":true,"id":11019},"addObstacle":{"__isSmartRef__":true,"id":11022},"removeObstacle":{"__isSmartRef__":true,"id":11025},"isTile":{"__isSmartRef__":true,"id":11028},"neighbourAt":{"__isSmartRef__":true,"id":11031},"map":{"__isSmartRef__":true,"id":11034},"game":{"__isSmartRef__":true,"id":11037},"reset":{"__isSmartRef__":true,"id":11040},"shallowCopy":{"__isSmartRef__":true,"id":11043},"characters":{"__isSmartRef__":true,"id":11046},"enterTile":{"__isSmartRef__":true,"id":11049},"leaveTile":{"__isSmartRef__":true,"id":11052},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11055}},"10976":{"varMapping":{"__isSmartRef__":true,"id":10977},"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":10978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10977":{"this":{"__isSmartRef__":true,"id":10968}},"10978":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"10979":{"varMapping":{"__isSmartRef__":true,"id":10980},"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":10981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10980":{"this":{"__isSmartRef__":true,"id":10968}},"10981":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"10982":{"varMapping":{"__isSmartRef__":true,"id":10983},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10983":{"this":{"__isSmartRef__":true,"id":10968}},"10984":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"10985":{"varMapping":{"__isSmartRef__":true,"id":10986},"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":10987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10986":{"this":{"__isSmartRef__":true,"id":10968}},"10987":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"10988":{"varMapping":{"__isSmartRef__":true,"id":10989},"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":10994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10989":{"this":{"__isSmartRef__":true,"id":10968},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10990}},"10990":{"$super":{"__isSmartRef__":true,"id":10991}},"10991":{"varMapping":{"__isSmartRef__":true,"id":10992},"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":10993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10992":{"obj":{"__isSmartRef__":true,"id":10968},"name":"onMouseDown"},"10993":{},"10994":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"10995":{"varMapping":{"__isSmartRef__":true,"id":10996},"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":10997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10996":{"this":{"__isSmartRef__":true,"id":10968}},"10997":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"10998":{"varMapping":{"__isSmartRef__":true,"id":10999},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10999":{"this":{"__isSmartRef__":true,"id":10968}},"11000":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"11001":{"varMapping":{"__isSmartRef__":true,"id":11002},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11002":{"this":{"__isSmartRef__":true,"id":10968}},"11003":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"11004":{"varMapping":{"__isSmartRef__":true,"id":11005},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11005":{"this":{"__isSmartRef__":true,"id":10968}},"11006":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"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},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11008":{"this":{"__isSmartRef__":true,"id":10968}},"11009":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"11010":{"varMapping":{"__isSmartRef__":true,"id":11011},"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":11012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11011":{"this":{"__isSmartRef__":true,"id":10968}},"11012":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"11013":{"varMapping":{"__isSmartRef__":true,"id":11014},"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":11015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11014":{"this":{"__isSmartRef__":true,"id":10968}},"11015":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"11016":{"varMapping":{"__isSmartRef__":true,"id":11017},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11017":{"this":{"__isSmartRef__":true,"id":10968}},"11018":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"11019":{"varMapping":{"__isSmartRef__":true,"id":11020},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11020":{"this":{"__isSmartRef__":true,"id":10968}},"11021":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"11022":{"varMapping":{"__isSmartRef__":true,"id":11023},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11023":{"this":{"__isSmartRef__":true,"id":10968}},"11024":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"11025":{"varMapping":{"__isSmartRef__":true,"id":11026},"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":11027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11026":{"this":{"__isSmartRef__":true,"id":10968}},"11027":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"11028":{"varMapping":{"__isSmartRef__":true,"id":11029},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11029":{"this":{"__isSmartRef__":true,"id":10968}},"11030":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"11031":{"varMapping":{"__isSmartRef__":true,"id":11032},"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":11033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11032":{"this":{"__isSmartRef__":true,"id":10968}},"11033":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"11034":{"varMapping":{"__isSmartRef__":true,"id":11035},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11035":{"this":{"__isSmartRef__":true,"id":10968}},"11036":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"11037":{"varMapping":{"__isSmartRef__":true,"id":11038},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11038":{"this":{"__isSmartRef__":true,"id":10968}},"11039":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"11040":{"varMapping":{"__isSmartRef__":true,"id":11041},"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":11042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11041":{"this":{"__isSmartRef__":true,"id":10968}},"11042":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"11043":{"varMapping":{"__isSmartRef__":true,"id":11044},"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":11045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11044":{"this":{"__isSmartRef__":true,"id":10968}},"11045":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"11046":{"varMapping":{"__isSmartRef__":true,"id":11047},"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":11048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11047":{"this":{"__isSmartRef__":true,"id":10968}},"11048":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"11049":{"varMapping":{"__isSmartRef__":true,"id":11050},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11050":{"this":{"__isSmartRef__":true,"id":10968}},"11051":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"11052":{"varMapping":{"__isSmartRef__":true,"id":11053},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11053":{"this":{"__isSmartRef__":true,"id":10968}},"11054":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"11055":{"varMapping":{"__isSmartRef__":true,"id":11056},"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":11057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11056":{"this":{"__isSmartRef__":true,"id":10968}},"11057":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"11058":{"submorphs":[{"__isSmartRef__":true,"id":11059}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11095},"derivationIds":[null],"id":"F8618DCD-7CF9-4000-A1EB-02D3F139548E","eventHandler":{"__isSmartRef__":true,"id":11096},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":5,"column":1,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":11059},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11097},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(48.0,240.0)"},"11059":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11060},"derivationIds":[null],"id":"90F1C1A2-00A6-425F-B026-386D01D7F1BC","eventHandler":{"__isSmartRef__":true,"id":11061},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11058},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11062},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"11060":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_NodeClass":["morph","image"],"_NodeId":"morph-90f1c1a2-00a6-425f-b026-386d01d7f1bc","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"11061":{"morph":{"__isSmartRef__":true,"id":11059},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11062":{"dropOn":{"__isSmartRef__":true,"id":11063},"shallowCopy":{"__isSmartRef__":true,"id":11086}},"11063":{"varMapping":{"__isSmartRef__":true,"id":11064},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11064":{"this":{"__isSmartRef__":true,"id":11065},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11090}},"11065":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11066},"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":"BE9D707D-DC4A-4342-A611-C4451707C6C1","eventHandler":{"__isSmartRef__":true,"id":11067},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"FlowerGrassTile1","showsHalos":false,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"partsBinMetaInfo":{"__isSmartRef__":true,"id":11068},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1.0040100200350561,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11085},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"11066":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,16.0)","_Padding":"lively.rect(0,0,0,0)"},"11067":{"morph":{"__isSmartRef__":true,"id":11065},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11068":{"partName":"FlowerGrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11069},{"__isSmartRef__":true,"id":11071},{"__isSmartRef__":true,"id":11073},{"__isSmartRef__":true,"id":11075},{"__isSmartRef__":true,"id":11077},{"__isSmartRef__":true,"id":11079},{"__isSmartRef__":true,"id":11081},{"__isSmartRef__":true,"id":11083}],"migrationLevel":4,"revisionOnLoad":159345,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11069":{"date":{"__isSmartRef__":true,"id":11070},"author":"tessi","message":"","id":"132E4BD9-EC26-4CCC-8CD5-D86C60CF385C"},"11070":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:47 GMT+0200 (Central Europe Daylight Time)"},"11071":{"date":{"__isSmartRef__":true,"id":11072},"author":"tessi","message":"","id":"D9AF3878-EAC4-433D-8258-DC80517AA6B1"},"11072":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:04 GMT+0200 (Central Europe Daylight Time)"},"11073":{"date":{"__isSmartRef__":true,"id":11074},"author":"timfelgentreff","message":"","id":"AFE5FD8B-7758-45D2-B21C-14607C3F0D5E"},"11074":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:31:45 GMT+0200 (Central Europe Daylight Time)"},"11075":{"date":{"__isSmartRef__":true,"id":11076},"author":"tessi","message":"","id":"43431C78-F979-4A3D-B949-CFB4CD123812"},"11076":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:35 GMT+0200 (Central Europe Daylight Time)"},"11077":{"date":{"__isSmartRef__":true,"id":11078},"author":"timfelgentreff","message":"no comment","id":"427F616A-557E-48DA-B2A3-9D312846BFA8"},"11078":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:06 GMT+0200 (Central Europe Daylight Time)"},"11079":{"date":{"__isSmartRef__":true,"id":11080},"author":"timfelgentreff","message":"no comment","id":"89D17F78-5164-40A2-8D18-6864377CAE04"},"11080":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:16 GMT+0200 (Central Europe Daylight Time)"},"11081":{"date":{"__isSmartRef__":true,"id":11082},"author":"timfelgentreff","message":"no comment","id":"02E3CCCD-E630-40A9-BB8B-8D4F60458311"},"11082":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:42 GMT+0200 (Central Europe Daylight Time)"},"11083":{"date":{"__isSmartRef__":true,"id":11084},"author":"tessi","message":"no comment","id":"4BC7DDF9-89A2-4A2A-8A37-97CECF82DF21"},"11084":{"isSerializedDate":true,"string":"Fri May 04 2012 17:02:08 GMT+0200 (Central Europe Daylight Time)"},"11085":{"dropOn":{"__isSmartRef__":true,"id":11063},"shallowCopy":{"__isSmartRef__":true,"id":11086}},"11086":{"varMapping":{"__isSmartRef__":true,"id":11087},"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":11088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11087":{"this":{"__isSmartRef__":true,"id":11065}},"11088":{"timestamp":{"__isSmartRef__":true,"id":11089},"user":"timfelgentreff","tags":[]},"11089":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:47 GMT+0200 (Central Europe Daylight Time)"},"11090":{"$super":{"__isSmartRef__":true,"id":11091}},"11091":{"varMapping":{"__isSmartRef__":true,"id":11092},"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":11093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11092":{"obj":{"__isSmartRef__":true,"id":11065},"name":"dropOn"},"11093":{},"11094":{},"11095":{"_NodeClass":["morph","box"],"_NodeId":"morph-f8618dcd-7cf9-4000-a1eb-02d3f139548e","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"11096":{"morph":{"__isSmartRef__":true,"id":11058},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11097":{"setDevStyle":{"__isSmartRef__":true,"id":11098},"setNormalStyle":{"__isSmartRef__":true,"id":11101},"tileSize":{"__isSmartRef__":true,"id":11104},"become":{"__isSmartRef__":true,"id":11107},"onMouseDown":{"__isSmartRef__":true,"id":11110},"setGridPosition":{"__isSmartRef__":true,"id":11117},"toolbox":{"__isSmartRef__":true,"id":11120},"distanceTo":{"__isSmartRef__":true,"id":11123},"tileWasDropped":{"__isSmartRef__":true,"id":11126},"isObstacle":{"__isSmartRef__":true,"id":11129},"neighboursInDirection":{"__isSmartRef__":true,"id":11132},"neighbours":{"__isSmartRef__":true,"id":11135},"zIndex":{"__isSmartRef__":true,"id":11138},"obstacles":{"__isSmartRef__":true,"id":11141},"addObstacle":{"__isSmartRef__":true,"id":11144},"removeObstacle":{"__isSmartRef__":true,"id":11147},"isTile":{"__isSmartRef__":true,"id":11150},"neighbourAt":{"__isSmartRef__":true,"id":11153},"map":{"__isSmartRef__":true,"id":11156},"game":{"__isSmartRef__":true,"id":11159},"reset":{"__isSmartRef__":true,"id":11162},"shallowCopy":{"__isSmartRef__":true,"id":11165},"characters":{"__isSmartRef__":true,"id":11168},"enterTile":{"__isSmartRef__":true,"id":11171},"leaveTile":{"__isSmartRef__":true,"id":11174},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11177}},"11098":{"varMapping":{"__isSmartRef__":true,"id":11099},"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":11100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11099":{"this":{"__isSmartRef__":true,"id":11058}},"11100":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"11101":{"varMapping":{"__isSmartRef__":true,"id":11102},"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":11103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11102":{"this":{"__isSmartRef__":true,"id":11058}},"11103":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"11104":{"varMapping":{"__isSmartRef__":true,"id":11105},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11105":{"this":{"__isSmartRef__":true,"id":11058}},"11106":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"11107":{"varMapping":{"__isSmartRef__":true,"id":11108},"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":11109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11108":{"this":{"__isSmartRef__":true,"id":11058}},"11109":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"11110":{"varMapping":{"__isSmartRef__":true,"id":11111},"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":11116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11111":{"this":{"__isSmartRef__":true,"id":11058},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11112}},"11112":{"$super":{"__isSmartRef__":true,"id":11113}},"11113":{"varMapping":{"__isSmartRef__":true,"id":11114},"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":11115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11114":{"obj":{"__isSmartRef__":true,"id":11058},"name":"onMouseDown"},"11115":{},"11116":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"11117":{"varMapping":{"__isSmartRef__":true,"id":11118},"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":11119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11118":{"this":{"__isSmartRef__":true,"id":11058}},"11119":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"11120":{"varMapping":{"__isSmartRef__":true,"id":11121},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11121":{"this":{"__isSmartRef__":true,"id":11058}},"11122":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"11123":{"varMapping":{"__isSmartRef__":true,"id":11124},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11124":{"this":{"__isSmartRef__":true,"id":11058}},"11125":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"11126":{"varMapping":{"__isSmartRef__":true,"id":11127},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11127":{"this":{"__isSmartRef__":true,"id":11058}},"11128":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"11129":{"varMapping":{"__isSmartRef__":true,"id":11130},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11130":{"this":{"__isSmartRef__":true,"id":11058}},"11131":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"11132":{"varMapping":{"__isSmartRef__":true,"id":11133},"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":11134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11133":{"this":{"__isSmartRef__":true,"id":11058}},"11134":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"11135":{"varMapping":{"__isSmartRef__":true,"id":11136},"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":11137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11136":{"this":{"__isSmartRef__":true,"id":11058}},"11137":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"11138":{"varMapping":{"__isSmartRef__":true,"id":11139},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11139":{"this":{"__isSmartRef__":true,"id":11058}},"11140":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"11141":{"varMapping":{"__isSmartRef__":true,"id":11142},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11142":{"this":{"__isSmartRef__":true,"id":11058}},"11143":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"11144":{"varMapping":{"__isSmartRef__":true,"id":11145},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11145":{"this":{"__isSmartRef__":true,"id":11058}},"11146":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"11147":{"varMapping":{"__isSmartRef__":true,"id":11148},"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":11149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11148":{"this":{"__isSmartRef__":true,"id":11058}},"11149":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"11150":{"varMapping":{"__isSmartRef__":true,"id":11151},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11151":{"this":{"__isSmartRef__":true,"id":11058}},"11152":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"11153":{"varMapping":{"__isSmartRef__":true,"id":11154},"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":11155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11154":{"this":{"__isSmartRef__":true,"id":11058}},"11155":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"11156":{"varMapping":{"__isSmartRef__":true,"id":11157},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11157":{"this":{"__isSmartRef__":true,"id":11058}},"11158":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"11159":{"varMapping":{"__isSmartRef__":true,"id":11160},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11160":{"this":{"__isSmartRef__":true,"id":11058}},"11161":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"11162":{"varMapping":{"__isSmartRef__":true,"id":11163},"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":11164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11163":{"this":{"__isSmartRef__":true,"id":11058}},"11164":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"11165":{"varMapping":{"__isSmartRef__":true,"id":11166},"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":11167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11166":{"this":{"__isSmartRef__":true,"id":11058}},"11167":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"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},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11169":{"this":{"__isSmartRef__":true,"id":11058}},"11170":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"11171":{"varMapping":{"__isSmartRef__":true,"id":11172},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11172":{"this":{"__isSmartRef__":true,"id":11058}},"11173":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"11174":{"varMapping":{"__isSmartRef__":true,"id":11175},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11175":{"this":{"__isSmartRef__":true,"id":11058}},"11176":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"11177":{"varMapping":{"__isSmartRef__":true,"id":11178},"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":11179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11178":{"this":{"__isSmartRef__":true,"id":11058}},"11179":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"11180":{"submorphs":[{"__isSmartRef__":true,"id":11181}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11185},"derivationIds":[null],"id":"A99657C2-B3AD-46F3-A208-5E7E0106D708","eventHandler":{"__isSmartRef__":true,"id":11186},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":6311},"row":5,"column":2,"owner":{"__isSmartRef__":true,"id":6414},"terrain":{"__isSmartRef__":true,"id":11181},"grabbingEnabled":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11187},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(96.0,240.0)"},"11181":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11182},"derivationIds":[null],"id":"2C0C7D56-0ACF-40E8-A20F-7301F7537BA8","eventHandler":{"__isSmartRef__":true,"id":11183},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11180},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11184},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"11182":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_NodeClass":["morph","image"],"_NodeId":"morph-2c0c7d56-0acf-40e8-a20f-7301f7537ba8","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)"},"11183":{"morph":{"__isSmartRef__":true,"id":11181},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11184":{"dropOn":{"__isSmartRef__":true,"id":6271},"shallowCopy":{"__isSmartRef__":true,"id":6300}},"11185":{"_NodeClass":["morph","box"],"_NodeId":"morph-a99657c2-b3ad-46f3-a208-5e7e0106d708","_BorderWidth":0,"_Fill":null,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.5,48.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"11186":{"morph":{"__isSmartRef__":true,"id":11180},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11187":{"setDevStyle":{"__isSmartRef__":true,"id":11188},"setNormalStyle":{"__isSmartRef__":true,"id":11191},"tileSize":{"__isSmartRef__":true,"id":11194},"become":{"__isSmartRef__":true,"id":11197},"onMouseDown":{"__isSmartRef__":true,"id":11200},"setGridPosition":{"__isSmartRef__":true,"id":11207},"toolbox":{"__isSmartRef__":true,"id":11210},"distanceTo":{"__isSmartRef__":true,"id":11213},"tileWasDropped":{"__isSmartRef__":true,"id":11216},"isObstacle":{"__isSmartRef__":true,"id":11219},"neighboursInDirection":{"__isSmartRef__":true,"id":11222},"neighbours":{"__isSmartRef__":true,"id":11225},"zIndex":{"__isSmartRef__":true,"id":11228},"obstacles":{"__isSmartRef__":true,"id":11231},"addObstacle":{"__isSmartRef__":true,"id":11234},"removeObstacle":{"__isSmartRef__":true,"id":11237},"isTile":{"__isSmartRef__":true,"id":11240},"neighbourAt":{"__isSmartRef__":true,"id":11243},"map":{"__isSmartRef__":true,"id":11246},"game":{"__isSmartRef__":true,"id":11249},"reset":{"__isSmartRef__":true,"id":11252},"shallowCopy":{"__isSmartRef__":true,"id":11255},"characters":{"__isSmartRef__":true,"id":11258},"enterTile":{"__isSmartRef__":true,"id":11261},"leaveTile":{"__isSmartRef__":true,"id":11264},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11267}},"11188":{"varMapping":{"__isSmartRef__":true,"id":11189},"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":11190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11189":{"this":{"__isSmartRef__":true,"id":11180}},"11190":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"11191":{"varMapping":{"__isSmartRef__":true,"id":11192},"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":11193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11192":{"this":{"__isSmartRef__":true,"id":11180}},"11193":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"11194":{"varMapping":{"__isSmartRef__":true,"id":11195},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11195":{"this":{"__isSmartRef__":true,"id":11180}},"11196":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"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},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11198":{"this":{"__isSmartRef__":true,"id":11180}},"11199":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"11200":{"varMapping":{"__isSmartRef__":true,"id":11201},"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":11206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11201":{"this":{"__isSmartRef__":true,"id":11180},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11202}},"11202":{"$super":{"__isSmartRef__":true,"id":11203}},"11203":{"varMapping":{"__isSmartRef__":true,"id":11204},"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":11205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11204":{"obj":{"__isSmartRef__":true,"id":11180},"name":"onMouseDown"},"11205":{},"11206":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"11207":{"varMapping":{"__isSmartRef__":true,"id":11208},"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":11209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11208":{"this":{"__isSmartRef__":true,"id":11180}},"11209":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"11210":{"varMapping":{"__isSmartRef__":true,"id":11211},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11211":{"this":{"__isSmartRef__":true,"id":11180}},"11212":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"11213":{"varMapping":{"__isSmartRef__":true,"id":11214},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11214":{"this":{"__isSmartRef__":true,"id":11180}},"11215":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"11216":{"varMapping":{"__isSmartRef__":true,"id":11217},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11217":{"this":{"__isSmartRef__":true,"id":11180}},"11218":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"11219":{"varMapping":{"__isSmartRef__":true,"id":11220},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11220":{"this":{"__isSmartRef__":true,"id":11180}},"11221":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"11222":{"varMapping":{"__isSmartRef__":true,"id":11223},"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":11224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11223":{"this":{"__isSmartRef__":true,"id":11180}},"11224":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"11225":{"varMapping":{"__isSmartRef__":true,"id":11226},"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":11227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11226":{"this":{"__isSmartRef__":true,"id":11180}},"11227":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"11228":{"varMapping":{"__isSmartRef__":true,"id":11229},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11229":{"this":{"__isSmartRef__":true,"id":11180}},"11230":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"11231":{"varMapping":{"__isSmartRef__":true,"id":11232},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11232":{"this":{"__isSmartRef__":true,"id":11180}},"11233":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"11234":{"varMapping":{"__isSmartRef__":true,"id":11235},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11235":{"this":{"__isSmartRef__":true,"id":11180}},"11236":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"11237":{"varMapping":{"__isSmartRef__":true,"id":11238},"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":11239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11238":{"this":{"__isSmartRef__":true,"id":11180}},"11239":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"11240":{"varMapping":{"__isSmartRef__":true,"id":11241},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11241":{"this":{"__isSmartRef__":true,"id":11180}},"11242":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"11243":{"varMapping":{"__isSmartRef__":true,"id":11244},"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":11245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11244":{"this":{"__isSmartRef__":true,"id":11180}},"11245":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"11246":{"varMapping":{"__isSmartRef__":true,"id":11247},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11247":{"this":{"__isSmartRef__":true,"id":11180}},"11248":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"11249":{"varMapping":{"__isSmartRef__":true,"id":11250},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11250":{"this":{"__isSmartRef__":true,"id":11180}},"11251":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"11252":{"varMapping":{"__isSmartRef__":true,"id":11253},"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":11254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11253":{"this":{"__isSmartRef__":true,"id":11180}},"11254":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"11255":{"varMapping":{"__isSmartRef__":true,"id":11256},"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":11257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11256":{"this":{"__isSmartRef__":true,"id":11180}},"11257":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"11258":{"varMapping":{"__isSmartRef__":true,"id":11259},"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":11260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11259":{"this":{"__isSmartRef__":true,"id":11180}},"11260":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"11261":{"varMapping":{"__isSmartRef__":true,"id":11262},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11262":{"this":{"__isSmartRef__":true,"id":11180}},"11263":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"11264":{"varMapping":{"__isSmartRef__":true,"id":11265},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11265":{"this":{"__isSmartRef__":true,"id":11180}},"11266":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"11267":{"varMapping":{"__isSmartRef__":true,"id":11268},"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":11269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11268":{"this":{"__isSmartRef__":true,"id":11180}},"11269":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"11270":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(288.0,288.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,248,250)","_Padding":"lively.rect(0,0,0,0)"},"11271":{"partsSpaceName":"PartsBin/Basic","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":11272},{"__isSmartRef__":true,"id":11274},{"__isSmartRef__":true,"id":11276},{"__isSmartRef__":true,"id":11278}],"revisionOnLoad":156095,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11272":{"date":{"__isSmartRef__":true,"id":11273},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"11273":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"11274":{"date":{"__isSmartRef__":true,"id":11275},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"11275":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"11276":{"date":{"__isSmartRef__":true,"id":11277},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"11277":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"11278":{"date":{"__isSmartRef__":true,"id":11279},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"11279":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"11280":{"morph":{"__isSmartRef__":true,"id":6414},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11281":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11282}},"11282":{"test01IsMorph":{"__isSmartRef__":true,"id":11283}},"11283":{"varMapping":{"__isSmartRef__":true,"id":11284},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":11285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11284":{"this":{"__isSmartRef__":true,"id":11281}},"11285":{},"11286":{"submorphs":[{"__isSmartRef__":true,"id":6414}],"scripts":[],"id":"C9912A10-F616-40CA-9807-71E5F5B923F0","shape":{"__isSmartRef__":true,"id":11287},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Game3","partsBinMetaInfo":{"__isSmartRef__":true,"id":11288},"eventHandler":{"__isSmartRef__":true,"id":11355},"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","3C494BB6-E824-479E-9941-059BED958605","71327180-6FA9-43DA-83FC-26C0F9488A1A"],"partTests":{"__isSmartRef__":true,"id":11356},"isBeingDragged":false,"prevScroll":[0,0],"moved":true,"selectedUnit":null,"_ClipMode":"visible","partNamesCache":{"__isSmartRef__":true,"id":11361},"partItemCache":{"__isSmartRef__":true,"id":11362},"owner":{"__isSmartRef__":true,"id":5962},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1.3731331840667302,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(570.3,339.5)","distanceToDragEvent":"lively.pt(286.1,-12.0)"},"11287":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(290.6,288.9)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(189,190,192)","_Padding":"lively.rect(0,0,0,0)"},"11288":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"The map and playing field","migrationLevel":4,"partName":"Game","changes":[{"__isSmartRef__":true,"id":11289},{"__isSmartRef__":true,"id":11291},{"__isSmartRef__":true,"id":11293},{"__isSmartRef__":true,"id":11295},{"__isSmartRef__":true,"id":11297},{"__isSmartRef__":true,"id":11299},{"__isSmartRef__":true,"id":11301},{"__isSmartRef__":true,"id":11303},{"__isSmartRef__":true,"id":11305},{"__isSmartRef__":true,"id":11307},{"__isSmartRef__":true,"id":11309},{"__isSmartRef__":true,"id":11311},{"__isSmartRef__":true,"id":11313},{"__isSmartRef__":true,"id":11315},{"__isSmartRef__":true,"id":11317},{"__isSmartRef__":true,"id":11319},{"__isSmartRef__":true,"id":11321},{"__isSmartRef__":true,"id":11323},{"__isSmartRef__":true,"id":11325},{"__isSmartRef__":true,"id":11327},{"__isSmartRef__":true,"id":11329},{"__isSmartRef__":true,"id":11331},{"__isSmartRef__":true,"id":11333},{"__isSmartRef__":true,"id":11335},{"__isSmartRef__":true,"id":11337},{"__isSmartRef__":true,"id":11339},{"__isSmartRef__":true,"id":11341},{"__isSmartRef__":true,"id":11343},{"__isSmartRef__":true,"id":11345},{"__isSmartRef__":true,"id":11347},{"__isSmartRef__":true,"id":11349},{"__isSmartRef__":true,"id":11351},{"__isSmartRef__":true,"id":11353}],"revisionOnLoad":161139,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11289":{"date":{"__isSmartRef__":true,"id":11290},"author":"lauritz","message":"added close button for demos","id":"F393FAAD-3B17-491F-9163-20DC9B79151C"},"11290":{"isSerializedDate":true,"string":"Thu May 10 2012 13:09:46 GMT+0200 (Central Europe Daylight Time)"},"11291":{"date":{"__isSmartRef__":true,"id":11292},"author":"lauritz","message":"register characters at setup: let the fights begin!","id":"1CB8B3D0-A7FB-4673-8D71-D7FB4D423990"},"11292":{"isSerializedDate":true,"string":"Mon May 07 2012 11:37:01 GMT+0200 (Central Europe Daylight Time)"},"11293":{"date":{"__isSmartRef__":true,"id":11294},"author":"timfelgentreff","message":"build tiles rows-first, to fix zIndex of things","id":"6A13BB1F-4974-4E80-8BD3-76B74371CC74"},"11294":{"isSerializedDate":true,"string":"Fri May 04 2012 15:31:50 GMT+0200 (Central Europe Daylight Time)"},"11295":{"date":{"__isSmartRef__":true,"id":11296},"author":"timfelgentreff","message":"cache shallowCopy'able things","id":"645744AA-3EED-4686-99B2-ADEF3F3E34DC"},"11296":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:30:37 GMT+0200 (Central Europe Daylight Time)"},"11297":{"date":{"__isSmartRef__":true,"id":11298},"author":"tessi","message":"replace this.get(\"Game\") with this.game() calls","id":"4DD20E29-B711-4483-B963-CA6EEC46FFC1"},"11298":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:09:50 GMT+0200 (Central Europe Daylight Time)"},"11299":{"date":{"__isSmartRef__":true,"id":11300},"author":"timfelgentreff","message":"no comment","id":"5BD4709D-F345-48A8-B0A9-618209647AC0"},"11300":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:41:52 GMT+0200 (Central Europe Daylight Time)"},"11301":{"date":{"__isSmartRef__":true,"id":11302},"author":"timfelgentreff","message":"catch errors during setup","id":"D1EAF47B-BBBB-493B-BB78-CFE149FB951F"},"11302":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:32:35 GMT+0200 (Central Europe Daylight Time)"},"11303":{"date":{"__isSmartRef__":true,"id":11304},"author":"tessi","message":"animate","id":"8E4CF411-945C-4251-8FDB-35D3225B7CB3"},"11304":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:28:07 GMT+0200 (Central Europe Daylight Time)"},"11305":{"date":{"__isSmartRef__":true,"id":11306},"author":"tessi","message":"animate characters after they are placed on the map","id":"995FC3A0-7B17-472B-9796-435F68A99C41"},"11306":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:23:57 GMT+0200 (Central Europe Daylight Time)"},"11307":{"date":{"__isSmartRef__":true,"id":11308},"author":"timfelgentreff","message":"","id":"8A61D4CF-17A8-4B0E-AD01-3807E28FAD9E"},"11308":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:05:44 GMT+0200 (Central Europe Daylight Time)"},"11309":{"date":{"__isSmartRef__":true,"id":11310},"author":"timfelgentreff","message":"","id":"3B4FAF4F-0D7A-47F9-9247-47D6649688B6"},"11310":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:33:44 GMT+0200 (Central Europe Daylight Time)"},"11311":{"date":{"__isSmartRef__":true,"id":11312},"author":"timfelgentreff","message":"","id":"89954E3F-B4E1-49D9-9969-AB27CE0CBABD"},"11312":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:27:06 GMT+0200 (Central Europe Daylight Time)"},"11313":{"date":{"__isSmartRef__":true,"id":11314},"author":"timfelgentreff","message":"","id":"AE514D08-62FA-410B-9287-72917FA6B563"},"11314":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:26:55 GMT+0200 (Central Europe Daylight Time)"},"11315":{"date":{"__isSmartRef__":true,"id":11316},"author":"timfelgentreff","message":"","id":"DE3BE79D-EDA8-415F-9405-95CDD1774577"},"11316":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:14:52 GMT+0200 (Central Europe Daylight Time)"},"11317":{"date":{"__isSmartRef__":true,"id":11318},"author":"timfelgentreff","message":"","id":"3DF6DA7F-0492-4EC2-B626-E65ED2F0CDF2"},"11318":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:07:30 GMT+0200 (Central Europe Daylight Time)"},"11319":{"date":{"__isSmartRef__":true,"id":11320},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"11320":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"11321":{"date":{"__isSmartRef__":true,"id":11322},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"11322":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"11323":{"date":{"__isSmartRef__":true,"id":11324},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"11324":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"11325":{"date":{"__isSmartRef__":true,"id":11326},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"11326":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"11327":{"date":{"__isSmartRef__":true,"id":11328},"author":"timfelgentreff","message":"","id":"666459AF-F338-4900-A325-0A193313D463"},"11328":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:37:03 GMT+0200 (Central Europe Daylight Time)"},"11329":{"date":{"__isSmartRef__":true,"id":11330},"author":"timfelgentreff","message":"","id":"AE4850E0-F8B8-442E-9A28-2388D0500FC1"},"11330":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:07:33 GMT+0200 (Central Europe Daylight Time)"},"11331":{"date":{"__isSmartRef__":true,"id":11332},"author":"lauritz","message":"alias toolbox","id":"FECC8EA9-60A5-4B3B-A8C3-017FF0CEFE02"},"11332":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:16:41 GMT+0200 (Central Europe Daylight Time)"},"11333":{"date":{"__isSmartRef__":true,"id":11334},"author":"timfelgentreff","message":"","id":"10677F89-3177-4F33-9511-5BB0E21E2DEB"},"11334":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:11:07 GMT+0200 (Central Europe Daylight Time)"},"11335":{"date":{"__isSmartRef__":true,"id":11336},"author":"timfelgentreff","message":"","id":"A0C26B2F-3323-421E-94FB-E5E6180AD81C"},"11336":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:37 GMT+0200 (Central Europe Daylight Time)"},"11337":{"date":{"__isSmartRef__":true,"id":11338},"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"},"11338":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:24:39 GMT+0200 (Central Europe Daylight Time)"},"11339":{"date":{"__isSmartRef__":true,"id":11340},"author":"timfelgentreff","message":"add generation of things","id":"87868D79-001D-4B0E-A435-649B4906FEF0"},"11340":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:20:14 GMT+0200 (Central Europe Daylight Time)"},"11341":{"date":{"__isSmartRef__":true,"id":11342},"author":"timfelgentreff","message":"fix setup things","id":"5F7A588C-AB63-49EB-80E4-3083A569EBCD"},"11342":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:32:14 GMT+0200 (Central Europe Daylight Time)"},"11343":{"date":{"__isSmartRef__":true,"id":11344},"author":"tessi","message":"map now generates some flower tiles too","id":"C1AFA3CF-CD73-432A-AC79-144C9B5D433B"},"11344":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:58:01 GMT+0200 (Central Europe Daylight Time)"},"11345":{"date":{"__isSmartRef__":true,"id":11346},"author":"timfelgentreff","message":"use shallowCopy for tiles","id":"D4325DFA-12D5-4A97-BAE7-F6B2A0430EA5"},"11346":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:54:36 GMT+0200 (Central Europe Daylight Time)"},"11347":{"date":{"__isSmartRef__":true,"id":11348},"author":"timfelgentreff","message":"merge lauritz' changes","id":"51463A4E-AEC0-4BEC-AEFB-33478C31225F"},"11348":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:08:15 GMT+0200 (Central Europe Daylight Time)"},"11349":{"date":{"__isSmartRef__":true,"id":11350},"author":"timfelgentreff","message":"fix for non-shallowCopy toolbox items","id":"A6B99BEA-DE24-4559-B954-13A0EBC1E1DF"},"11350":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:13:35 GMT+0200 (Central Europe Daylight Time)"},"11351":{"date":{"__isSmartRef__":true,"id":11352},"author":"timfelgentreff","message":"add a player","id":"D427AD7F-610C-4DB0-8783-DC6652015178"},"11352":{"isSerializedDate":true,"string":"Fri May 04 2012 17:41:04 GMT+0200 (Central Europe Daylight Time)"},"11353":{"date":{"__isSmartRef__":true,"id":11354},"author":"lauritz","message":"normal-styled tiles at the beginning","id":"B7823FED-4B48-458E-9C42-0CE743ADCF93"},"11354":{"isSerializedDate":true,"string":"Mon May 07 2012 19:01:08 GMT+0200 (Central Europe Daylight Time)"},"11355":{"morph":{"__isSmartRef__":true,"id":11286},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11356":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11357}},"11357":{"test01IsMorph":{"__isSmartRef__":true,"id":11358}},"11358":{"varMapping":{"__isSmartRef__":true,"id":11359},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":11360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11359":{"this":{"__isSmartRef__":true,"id":11356}},"11360":{},"11361":{"Character":["Villagegirl","Scientist","Octocat","Ogre","Coder","Villager"],"Thing":["Fire","Stone","Woodstack","Tree","Parasol"]},"11362":{"Tile":{"__isSmartRef__":true,"id":6636},"GrassTile":{"__isSmartRef__":true,"id":6273},"FlowerGrassTile":{"__isSmartRef__":true,"id":11065},"Character":{"__isSmartRef__":true,"id":7590}},"11363":{"loadPartItem":{"__isSmartRef__":true,"id":11364},"getPartsBinCategory":{"__isSmartRef__":true,"id":11368},"toolbox":{"__isSmartRef__":true,"id":11372},"reset":{"__isSmartRef__":true,"id":11376},"zIndexForTiles":{"__isSmartRef__":true,"id":11380},"zIndexForThings":{"__isSmartRef__":true,"id":11384},"partNamesEndingWith":{"__isSmartRef__":true,"id":11388}},"11364":{"varMapping":{"__isSmartRef__":true,"id":11365},"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":11366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11365":{"this":{"__isSmartRef__":true,"id":11286}},"11366":{"timestamp":{"__isSmartRef__":true,"id":11367},"user":"timfelgentreff","tags":[]},"11367":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:51 GMT+0200 (Central Europe Daylight Time)"},"11368":{"varMapping":{"__isSmartRef__":true,"id":11369},"source":"function getPartsBinCategory() {\n return 'FreedomOfSpeech';\n}","funcProperties":{"__isSmartRef__":true,"id":11370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11369":{"this":{"__isSmartRef__":true,"id":11286}},"11370":{"timestamp":{"__isSmartRef__":true,"id":11371},"user":"lauritz","tags":[]},"11371":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:09:26 GMT+0200 (Central Europe Daylight Time)"},"11372":{"varMapping":{"__isSmartRef__":true,"id":11373},"source":"function toolbox(partName) {\n return this.loadPartItem(partName);\n}","funcProperties":{"__isSmartRef__":true,"id":11374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11373":{"this":{"__isSmartRef__":true,"id":11286}},"11374":{"timestamp":{"__isSmartRef__":true,"id":11375},"user":"lauritz","tags":[]},"11375":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:15:49 GMT+0200 (Central Europe Daylight Time)"},"11376":{"varMapping":{"__isSmartRef__":true,"id":11377},"source":"function reset() {\n this.partItemCache = {}\n this.selectedUnit = null\n}","funcProperties":{"__isSmartRef__":true,"id":11378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11377":{"this":{"__isSmartRef__":true,"id":11286}},"11378":{"timestamp":{"__isSmartRef__":true,"id":11379},"user":"timfelgentreff","tags":[]},"11379":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:08:04 GMT+0200 (Central Europe Daylight Time)"},"11380":{"varMapping":{"__isSmartRef__":true,"id":11381},"source":"function zIndexForTiles() {\n return 10;\n}","funcProperties":{"__isSmartRef__":true,"id":11382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11381":{"this":{"__isSmartRef__":true,"id":11286}},"11382":{"timestamp":{"__isSmartRef__":true,"id":11383},"user":"timfelgentreff","tags":[]},"11383":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:58:48 GMT+0200 (Central Europe Daylight Time)"},"11384":{"varMapping":{"__isSmartRef__":true,"id":11385},"source":"function zIndexForThings() {\n return this.zIndexForTiles + 10;\n}","funcProperties":{"__isSmartRef__":true,"id":11386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11385":{"this":{"__isSmartRef__":true,"id":11286}},"11386":{"timestamp":{"__isSmartRef__":true,"id":11387},"user":"timfelgentreff","tags":[]},"11387":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:07 GMT+0200 (Central Europe Daylight Time)"},"11388":{"varMapping":{"__isSmartRef__":true,"id":11389},"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":11390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11389":{"this":{"__isSmartRef__":true,"id":11286}},"11390":{"timestamp":{"__isSmartRef__":true,"id":11391},"user":"timfelgentreff","tags":[]},"11391":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:22:18 GMT+0200 (Central Europe Daylight Time)"},"11392":{"mapTileSize":{"__isSmartRef__":true,"id":11393},"mapExtent":{"__isSmartRef__":true,"id":11397},"toolbox":{"__isSmartRef__":true,"id":11401},"setup":{"__isSmartRef__":true,"id":11405},"emptyMap":{"__isSmartRef__":true,"id":11409},"reset":{"__isSmartRef__":true,"id":11413},"setDevStyle":{"__isSmartRef__":true,"id":11417},"setNormalStyle":{"__isSmartRef__":true,"id":11421},"tileSize":{"__isSmartRef__":true,"id":11425},"getTileForPosition":{"__isSmartRef__":true,"id":11429},"setupTiles":{"__isSmartRef__":true,"id":11433},"setupUnits":{"__isSmartRef__":true,"id":11437},"setupThings":{"__isSmartRef__":true,"id":11441},"game":{"__isSmartRef__":true,"id":11445}},"11393":{"varMapping":{"__isSmartRef__":true,"id":11394},"source":"function mapTileSize() {\n return pt(6, 6)\n}","funcProperties":{"__isSmartRef__":true,"id":11395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11394":{"this":{"__isSmartRef__":true,"id":6414}},"11395":{"timestamp":{"__isSmartRef__":true,"id":11396},"user":"lauritz","tags":[]},"11396":{"isSerializedDate":true,"string":"Tue Jun 26 2012 11:13:59 GMT+0200 (Central Europe Daylight Time)"},"11397":{"varMapping":{"__isSmartRef__":true,"id":11398},"source":"function mapExtent() {\n return this.mapTileSize().scaleByPt(this.toolbox(\"Tile\").tileSize())\n}","funcProperties":{"__isSmartRef__":true,"id":11399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11398":{"this":{"__isSmartRef__":true,"id":6414}},"11399":{"timestamp":{"__isSmartRef__":true,"id":11400},"user":"timfelgentreff","tags":[]},"11400":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:43:22 GMT+0200 (Central Europe Daylight Time)"},"11401":{"varMapping":{"__isSmartRef__":true,"id":11402},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11402":{"this":{"__isSmartRef__":true,"id":6414}},"11403":{"timestamp":{"__isSmartRef__":true,"id":11404},"user":"tessi","tags":[]},"11404":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:08:47 GMT+0200 (Central Europe Daylight Time)"},"11405":{"varMapping":{"__isSmartRef__":true,"id":11406},"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":11407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11406":{"this":{"__isSmartRef__":true,"id":6414}},"11407":{"timestamp":{"__isSmartRef__":true,"id":11408},"user":"lauritz","tags":[]},"11408":{"isSerializedDate":true,"string":"Mon May 07 2012 19:00:50 GMT+0200 (Central Europe Daylight Time)"},"11409":{"varMapping":{"__isSmartRef__":true,"id":11410},"source":"function emptyMap() {\n this.removeAllMorphs()\n this.game().reset()\n this.tiles = null\n}","funcProperties":{"__isSmartRef__":true,"id":11411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11410":{"this":{"__isSmartRef__":true,"id":6414}},"11411":{"timestamp":{"__isSmartRef__":true,"id":11412},"user":"tessi","tags":[]},"11412":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:07:01 GMT+0200 (Central Europe Daylight Time)"},"11413":{"varMapping":{"__isSmartRef__":true,"id":11414},"source":"function reset() {\n this.emptyMap()\n this.setup()\n}","funcProperties":{"__isSmartRef__":true,"id":11415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11414":{"this":{"__isSmartRef__":true,"id":6414}},"11415":{"timestamp":{"__isSmartRef__":true,"id":11416},"user":"timfelgentreff","tags":[]},"11416":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:33:22 GMT+0200 (Central Europe Daylight Time)"},"11417":{"varMapping":{"__isSmartRef__":true,"id":11418},"source":"function setDevStyle() {\n this.submorphs.invoke(\"setDevStyle\")\n}","funcProperties":{"__isSmartRef__":true,"id":11419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11418":{"this":{"__isSmartRef__":true,"id":6414}},"11419":{"timestamp":{"__isSmartRef__":true,"id":11420},"user":"tessi","tags":[]},"11420":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:31:57 GMT+0200 (Central Europe Daylight Time)"},"11421":{"varMapping":{"__isSmartRef__":true,"id":11422},"source":"function setNormalStyle() {\n this.submorphs.invoke(\"setNormalStyle\")\n}","funcProperties":{"__isSmartRef__":true,"id":11423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11422":{"this":{"__isSmartRef__":true,"id":6414}},"11423":{"timestamp":{"__isSmartRef__":true,"id":11424},"user":"tessi","tags":[]},"11424":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:32:13 GMT+0200 (Central Europe Daylight Time)"},"11425":{"varMapping":{"__isSmartRef__":true,"id":11426},"source":"function tileSize() {\n return this.toolbox(\"Tile\").tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":11427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11426":{"this":{"__isSmartRef__":true,"id":6414}},"11427":{"timestamp":{"__isSmartRef__":true,"id":11428},"user":"timfelgentreff","tags":[]},"11428":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:43:55 GMT+0200 (Central Europe Daylight Time)"},"11429":{"varMapping":{"__isSmartRef__":true,"id":11430},"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":11431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11430":{"this":{"__isSmartRef__":true,"id":6414}},"11431":{"timestamp":{"__isSmartRef__":true,"id":11432},"user":"timfelgentreff","tags":[]},"11432":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:04:22 GMT+0200 (Central Europe Daylight Time)"},"11433":{"varMapping":{"__isSmartRef__":true,"id":11434},"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":11435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11434":{"this":{"__isSmartRef__":true,"id":6414}},"11435":{"timestamp":{"__isSmartRef__":true,"id":11436},"user":"timfelgentreff","tags":[]},"11436":{"isSerializedDate":true,"string":"Fri May 04 2012 15:31:00 GMT+0200 (Central Europe Daylight Time)"},"11437":{"varMapping":{"__isSmartRef__":true,"id":11438},"source":"function setupUnits() {\n var numberOfUnits = 2,\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":11439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11438":{"this":{"__isSmartRef__":true,"id":6414}},"11439":{"timestamp":{"__isSmartRef__":true,"id":11440},"user":"lauritz","tags":[]},"11440":{"isSerializedDate":true,"string":"Tue Jun 26 2012 11:14:48 GMT+0200 (Central Europe Daylight Time)"},"11441":{"varMapping":{"__isSmartRef__":true,"id":11442},"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":11443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11442":{"this":{"__isSmartRef__":true,"id":6414}},"11443":{"timestamp":{"__isSmartRef__":true,"id":11444},"user":"lauritz","tags":[]},"11444":{"isSerializedDate":true,"string":"Tue Jun 26 2012 11:14:42 GMT+0200 (Central Europe Daylight Time)"},"11445":{"varMapping":{"__isSmartRef__":true,"id":11446},"source":"function game() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11446":{"this":{"__isSmartRef__":true,"id":6414}},"11447":{"timestamp":{"__isSmartRef__":true,"id":11448},"user":"tessi","tags":[]},"11448":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:08:01 GMT+0200 (Central Europe Daylight Time)"},"11449":{"setDevStyle":{"__isSmartRef__":true,"id":11450},"setNormalStyle":{"__isSmartRef__":true,"id":11453},"tileSize":{"__isSmartRef__":true,"id":11456},"become":{"__isSmartRef__":true,"id":11459},"onMouseDown":{"__isSmartRef__":true,"id":11462},"setGridPosition":{"__isSmartRef__":true,"id":11469},"toolbox":{"__isSmartRef__":true,"id":11472},"distanceTo":{"__isSmartRef__":true,"id":11475},"tileWasDropped":{"__isSmartRef__":true,"id":11478},"isObstacle":{"__isSmartRef__":true,"id":11481},"neighboursInDirection":{"__isSmartRef__":true,"id":11484},"neighbours":{"__isSmartRef__":true,"id":11487},"zIndex":{"__isSmartRef__":true,"id":11490},"obstacles":{"__isSmartRef__":true,"id":11493},"addObstacle":{"__isSmartRef__":true,"id":11496},"removeObstacle":{"__isSmartRef__":true,"id":11499},"isTile":{"__isSmartRef__":true,"id":11502},"neighbourAt":{"__isSmartRef__":true,"id":11505},"map":{"__isSmartRef__":true,"id":11508},"game":{"__isSmartRef__":true,"id":11511},"reset":{"__isSmartRef__":true,"id":11514},"shallowCopy":{"__isSmartRef__":true,"id":11517},"characters":{"__isSmartRef__":true,"id":11520},"enterTile":{"__isSmartRef__":true,"id":11523},"leaveTile":{"__isSmartRef__":true,"id":11526},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11529}},"11450":{"varMapping":{"__isSmartRef__":true,"id":11451},"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":11452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11451":{"this":{"__isSmartRef__":true,"id":6266}},"11452":{"timestamp":{"__isSmartRef__":true,"id":6633},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6634},"declaredObject":""},"11453":{"varMapping":{"__isSmartRef__":true,"id":11454},"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":11455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11454":{"this":{"__isSmartRef__":true,"id":6266}},"11455":{"timestamp":{"__isSmartRef__":true,"id":6648},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6645},"declaredObject":""},"11456":{"varMapping":{"__isSmartRef__":true,"id":11457},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11457":{"this":{"__isSmartRef__":true,"id":6266}},"11458":{"timestamp":{"__isSmartRef__":true,"id":6652},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6649},"declaredObject":""},"11459":{"varMapping":{"__isSmartRef__":true,"id":11460},"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":11461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11460":{"this":{"__isSmartRef__":true,"id":6266}},"11461":{"timestamp":{"__isSmartRef__":true,"id":6656},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6653},"declaredObject":""},"11462":{"varMapping":{"__isSmartRef__":true,"id":11463},"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":11468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11463":{"this":{"__isSmartRef__":true,"id":6266},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11464}},"11464":{"$super":{"__isSmartRef__":true,"id":11465}},"11465":{"varMapping":{"__isSmartRef__":true,"id":11466},"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":11467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11466":{"obj":{"__isSmartRef__":true,"id":6266},"name":"onMouseDown"},"11467":{},"11468":{"timestamp":{"__isSmartRef__":true,"id":6664},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6657},"declaredObject":""},"11469":{"varMapping":{"__isSmartRef__":true,"id":11470},"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":11471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11470":{"this":{"__isSmartRef__":true,"id":6266}},"11471":{"timestamp":{"__isSmartRef__":true,"id":6668},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6665},"declaredObject":""},"11472":{"varMapping":{"__isSmartRef__":true,"id":11473},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11473":{"this":{"__isSmartRef__":true,"id":6266}},"11474":{"timestamp":{"__isSmartRef__":true,"id":6672},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6669},"declaredObject":""},"11475":{"varMapping":{"__isSmartRef__":true,"id":11476},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11476":{"this":{"__isSmartRef__":true,"id":6266}},"11477":{"timestamp":{"__isSmartRef__":true,"id":6676},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6673},"declaredObject":""},"11478":{"varMapping":{"__isSmartRef__":true,"id":11479},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11479":{"this":{"__isSmartRef__":true,"id":6266}},"11480":{"timestamp":{"__isSmartRef__":true,"id":6680},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6677},"declaredObject":""},"11481":{"varMapping":{"__isSmartRef__":true,"id":11482},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11482":{"this":{"__isSmartRef__":true,"id":6266}},"11483":{"timestamp":{"__isSmartRef__":true,"id":6684},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6681},"declaredObject":""},"11484":{"varMapping":{"__isSmartRef__":true,"id":11485},"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":11486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11485":{"this":{"__isSmartRef__":true,"id":6266}},"11486":{"timestamp":{"__isSmartRef__":true,"id":6688},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6685},"declaredObject":""},"11487":{"varMapping":{"__isSmartRef__":true,"id":11488},"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":11489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11488":{"this":{"__isSmartRef__":true,"id":6266}},"11489":{"timestamp":{"__isSmartRef__":true,"id":6692},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6689},"declaredObject":""},"11490":{"varMapping":{"__isSmartRef__":true,"id":11491},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11491":{"this":{"__isSmartRef__":true,"id":6266}},"11492":{"timestamp":{"__isSmartRef__":true,"id":6696},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6693},"declaredObject":""},"11493":{"varMapping":{"__isSmartRef__":true,"id":11494},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11494":{"this":{"__isSmartRef__":true,"id":6266}},"11495":{"timestamp":{"__isSmartRef__":true,"id":6700},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6697},"declaredObject":""},"11496":{"varMapping":{"__isSmartRef__":true,"id":11497},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11497":{"this":{"__isSmartRef__":true,"id":6266}},"11498":{"timestamp":{"__isSmartRef__":true,"id":6704},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6701},"declaredObject":""},"11499":{"varMapping":{"__isSmartRef__":true,"id":11500},"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":11501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11500":{"this":{"__isSmartRef__":true,"id":6266}},"11501":{"timestamp":{"__isSmartRef__":true,"id":6708},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6705},"declaredObject":""},"11502":{"varMapping":{"__isSmartRef__":true,"id":11503},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11503":{"this":{"__isSmartRef__":true,"id":6266}},"11504":{"timestamp":{"__isSmartRef__":true,"id":6712},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6709},"declaredObject":""},"11505":{"varMapping":{"__isSmartRef__":true,"id":11506},"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":11507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11506":{"this":{"__isSmartRef__":true,"id":6266}},"11507":{"timestamp":{"__isSmartRef__":true,"id":6716},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6713},"declaredObject":""},"11508":{"varMapping":{"__isSmartRef__":true,"id":11509},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11509":{"this":{"__isSmartRef__":true,"id":6266}},"11510":{"timestamp":{"__isSmartRef__":true,"id":6720},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6717},"declaredObject":""},"11511":{"varMapping":{"__isSmartRef__":true,"id":11512},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11512":{"this":{"__isSmartRef__":true,"id":6266}},"11513":{"timestamp":{"__isSmartRef__":true,"id":6724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6721},"declaredObject":""},"11514":{"varMapping":{"__isSmartRef__":true,"id":11515},"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":11516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11515":{"this":{"__isSmartRef__":true,"id":6266}},"11516":{"timestamp":{"__isSmartRef__":true,"id":6728},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6725},"declaredObject":""},"11517":{"varMapping":{"__isSmartRef__":true,"id":11518},"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":11519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11518":{"this":{"__isSmartRef__":true,"id":6266}},"11519":{"timestamp":{"__isSmartRef__":true,"id":6732},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6729},"declaredObject":""},"11520":{"varMapping":{"__isSmartRef__":true,"id":11521},"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":11522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11521":{"this":{"__isSmartRef__":true,"id":6266}},"11522":{"timestamp":{"__isSmartRef__":true,"id":6736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6733},"declaredObject":""},"11523":{"varMapping":{"__isSmartRef__":true,"id":11524},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11524":{"this":{"__isSmartRef__":true,"id":6266}},"11525":{"timestamp":{"__isSmartRef__":true,"id":6740},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6737},"declaredObject":""},"11526":{"varMapping":{"__isSmartRef__":true,"id":11527},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11527":{"this":{"__isSmartRef__":true,"id":6266}},"11528":{"timestamp":{"__isSmartRef__":true,"id":6744},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6741},"declaredObject":""},"11529":{"varMapping":{"__isSmartRef__":true,"id":11530},"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":11531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11530":{"this":{"__isSmartRef__":true,"id":6266}},"11531":{"timestamp":{"__isSmartRef__":true,"id":6748},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":6745},"declaredObject":""},"11532":{"_NodeClass":["morph","box"],"_NodeId":"morph-682c43e6-971f-4644-b6ab-a89f1f309b5e","_BorderWidth":1,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"11533":{"morph":{"__isSmartRef__":true,"id":6088},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11534":{"setDevStyle":{"__isSmartRef__":true,"id":11535},"setNormalStyle":{"__isSmartRef__":true,"id":11538},"tileSize":{"__isSmartRef__":true,"id":11541},"become":{"__isSmartRef__":true,"id":11544},"walkUntilReached":{"__isSmartRef__":true,"id":11547},"onMouseDown":{"__isSmartRef__":true,"id":11550},"walkTo":{"__isSmartRef__":true,"id":11557},"currentTile":{"__isSmartRef__":true,"id":11560},"toolbox":{"__isSmartRef__":true,"id":11563},"setCurrentSpeed":{"__isSmartRef__":true,"id":11566},"getCurrentSpeed":{"__isSmartRef__":true,"id":11569},"isWalking":{"__isSmartRef__":true,"id":11572},"select":{"__isSmartRef__":true,"id":11575},"deselect":{"__isSmartRef__":true,"id":11578},"becomeRandomCharacter":{"__isSmartRef__":true,"id":11581},"reset":{"__isSmartRef__":true,"id":11584},"setDirectionToTile":{"__isSmartRef__":true,"id":11587},"getDirection":{"__isSmartRef__":true,"id":11590},"setDirection":{"__isSmartRef__":true,"id":11593},"setPosition":{"__isSmartRef__":true,"id":11596},"say":{"__isSmartRef__":true,"id":11603},"soliloquize":{"__isSmartRef__":true,"id":11606},"characterType":{"__isSmartRef__":true,"id":11609},"animate":{"__isSmartRef__":true,"id":11612},"doSomething":{"__isSmartRef__":true,"id":11615},"map":{"__isSmartRef__":true,"id":11618},"game":{"__isSmartRef__":true,"id":11621},"setup":{"__isSmartRef__":true,"id":11624},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":11627},"startConversation":{"__isSmartRef__":true,"id":11634},"startConversationWith":{"__isSmartRef__":true,"id":11637},"shallowCopy":{"__isSmartRef__":true,"id":11640},"conversation":{"__isSmartRef__":true,"id":11643},"answer":{"__isSmartRef__":true,"id":11646},"hideTextBubble":{"__isSmartRef__":true,"id":11649},"aStar":{"__isSmartRef__":true,"id":11652},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":11655},"aStarWalkPath":{"__isSmartRef__":true,"id":11658},"chatBot":{"__isSmartRef__":true,"id":11661},"getHit":{"__isSmartRef__":true,"id":11664},"becomePlayer":{"__isSmartRef__":true,"id":11667},"fight":{"__isSmartRef__":true,"id":11670},"fightPhrases":{"__isSmartRef__":true,"id":11673},"randomQuestions":{"__isSmartRef__":true,"id":11676},"randomAnswersFor":{"__isSmartRef__":true,"id":11679},"executeFightTurnAsking":{"__isSmartRef__":true,"id":11682},"heal":{"__isSmartRef__":true,"id":11685},"isDead":{"__isSmartRef__":true,"id":11688}},"11535":{"varMapping":{"__isSmartRef__":true,"id":11536},"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":11537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11536":{"this":{"__isSmartRef__":true,"id":6088}},"11537":{"timestamp":{"__isSmartRef__":true,"id":7587},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7588},"declaredObject":""},"11538":{"varMapping":{"__isSmartRef__":true,"id":11539},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":11540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11539":{"this":{"__isSmartRef__":true,"id":6088}},"11540":{"timestamp":{"__isSmartRef__":true,"id":7705},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7702},"declaredObject":""},"11541":{"varMapping":{"__isSmartRef__":true,"id":11542},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":11543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11542":{"this":{"__isSmartRef__":true,"id":6088}},"11543":{"timestamp":{"__isSmartRef__":true,"id":7709},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7706},"declaredObject":""},"11544":{"varMapping":{"__isSmartRef__":true,"id":11545},"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":11546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11545":{"this":{"__isSmartRef__":true,"id":6088}},"11546":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7710},"declaredObject":""},"11547":{"varMapping":{"__isSmartRef__":true,"id":11548},"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":11549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11548":{"this":{"__isSmartRef__":true,"id":6088}},"11549":{"timestamp":{"__isSmartRef__":true,"id":7716},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7713},"declaredObject":""},"11550":{"varMapping":{"__isSmartRef__":true,"id":11551},"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":11556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11551":{"this":{"__isSmartRef__":true,"id":6088},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11552}},"11552":{"$super":{"__isSmartRef__":true,"id":11553}},"11553":{"varMapping":{"__isSmartRef__":true,"id":11554},"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":11555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11554":{"obj":{"__isSmartRef__":true,"id":6088},"name":"onMouseDown"},"11555":{},"11556":{"timestamp":{"__isSmartRef__":true,"id":7724},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7717},"declaredObject":""},"11557":{"varMapping":{"__isSmartRef__":true,"id":11558},"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":11559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11558":{"this":{"__isSmartRef__":true,"id":6088}},"11559":{"timestamp":{"__isSmartRef__":true,"id":7728},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7725},"declaredObject":""},"11560":{"varMapping":{"__isSmartRef__":true,"id":11561},"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":11562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11561":{"this":{"__isSmartRef__":true,"id":6088}},"11562":{"timestamp":{"__isSmartRef__":true,"id":7732},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7729},"declaredObject":""},"11563":{"varMapping":{"__isSmartRef__":true,"id":11564},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11564":{"this":{"__isSmartRef__":true,"id":6088}},"11565":{"timestamp":{"__isSmartRef__":true,"id":7736},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7733},"declaredObject":""},"11566":{"varMapping":{"__isSmartRef__":true,"id":11567},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":11568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11567":{"this":{"__isSmartRef__":true,"id":6088}},"11568":{"timestamp":{"__isSmartRef__":true,"id":7740},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7737},"declaredObject":""},"11569":{"varMapping":{"__isSmartRef__":true,"id":11570},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":11571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11570":{"this":{"__isSmartRef__":true,"id":6088}},"11571":{"timestamp":{"__isSmartRef__":true,"id":7744},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7741},"declaredObject":""},"11572":{"varMapping":{"__isSmartRef__":true,"id":11573},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":11574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11573":{"this":{"__isSmartRef__":true,"id":6088}},"11574":{"timestamp":{"__isSmartRef__":true,"id":7748},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7745},"declaredObject":""},"11575":{"varMapping":{"__isSmartRef__":true,"id":11576},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11576":{"this":{"__isSmartRef__":true,"id":6088}},"11577":{"timestamp":{"__isSmartRef__":true,"id":7752},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7749},"declaredObject":""},"11578":{"varMapping":{"__isSmartRef__":true,"id":11579},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11579":{"this":{"__isSmartRef__":true,"id":6088}},"11580":{"timestamp":{"__isSmartRef__":true,"id":7756},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7753},"declaredObject":""},"11581":{"varMapping":{"__isSmartRef__":true,"id":11582},"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":11583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11582":{"this":{"__isSmartRef__":true,"id":6088}},"11583":{"timestamp":{"__isSmartRef__":true,"id":7760},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7757},"declaredObject":""},"11584":{"varMapping":{"__isSmartRef__":true,"id":11585},"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":11586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11585":{"this":{"__isSmartRef__":true,"id":6088}},"11586":{"timestamp":{"__isSmartRef__":true,"id":7764},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7761},"declaredObject":""},"11587":{"varMapping":{"__isSmartRef__":true,"id":11588},"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":11589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11588":{"this":{"__isSmartRef__":true,"id":6088}},"11589":{"timestamp":{"__isSmartRef__":true,"id":7768},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7765},"declaredObject":""},"11590":{"varMapping":{"__isSmartRef__":true,"id":11591},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":11592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11591":{"this":{"__isSmartRef__":true,"id":6088}},"11592":{"timestamp":{"__isSmartRef__":true,"id":7772},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7769},"declaredObject":""},"11593":{"varMapping":{"__isSmartRef__":true,"id":11594},"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":11595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11594":{"this":{"__isSmartRef__":true,"id":6088}},"11595":{"timestamp":{"__isSmartRef__":true,"id":7776},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7773},"declaredObject":""},"11596":{"varMapping":{"__isSmartRef__":true,"id":11597},"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":11602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11597":{"this":{"__isSmartRef__":true,"id":6088},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11598}},"11598":{"$super":{"__isSmartRef__":true,"id":11599}},"11599":{"varMapping":{"__isSmartRef__":true,"id":11600},"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":11601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11600":{"obj":{"__isSmartRef__":true,"id":6088},"name":"setPosition"},"11601":{},"11602":{"timestamp":{"__isSmartRef__":true,"id":7784},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7777},"declaredObject":""},"11603":{"varMapping":{"__isSmartRef__":true,"id":11604},"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":11605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11604":{"this":{"__isSmartRef__":true,"id":6088}},"11605":{"timestamp":{"__isSmartRef__":true,"id":7788},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7785},"declaredObject":""},"11606":{"varMapping":{"__isSmartRef__":true,"id":11607},"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":11608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11607":{"this":{"__isSmartRef__":true,"id":6088}},"11608":{"timestamp":{"__isSmartRef__":true,"id":7792},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7789},"declaredObject":""},"11609":{"varMapping":{"__isSmartRef__":true,"id":11610},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":11611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11610":{"this":{"__isSmartRef__":true,"id":6088}},"11611":{"timestamp":{"__isSmartRef__":true,"id":7796},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7793},"declaredObject":""},"11612":{"varMapping":{"__isSmartRef__":true,"id":11613},"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":11614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11613":{"this":{"__isSmartRef__":true,"id":6088}},"11614":{"timestamp":{"__isSmartRef__":true,"id":7800},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7797},"declaredObject":""},"11615":{"varMapping":{"__isSmartRef__":true,"id":11616},"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":11617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11616":{"this":{"__isSmartRef__":true,"id":6088}},"11617":{"timestamp":{"__isSmartRef__":true,"id":7804},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7801},"declaredObject":""},"11618":{"varMapping":{"__isSmartRef__":true,"id":11619},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":11620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11619":{"this":{"__isSmartRef__":true,"id":6088}},"11620":{"timestamp":{"__isSmartRef__":true,"id":7808},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7805},"declaredObject":""},"11621":{"varMapping":{"__isSmartRef__":true,"id":11622},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":11623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11622":{"this":{"__isSmartRef__":true,"id":6088}},"11623":{"timestamp":{"__isSmartRef__":true,"id":7812},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7809},"declaredObject":""},"11624":{"varMapping":{"__isSmartRef__":true,"id":11625},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":11626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11625":{"this":{"__isSmartRef__":true,"id":6088}},"11626":{"timestamp":{"__isSmartRef__":true,"id":7816},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7813},"declaredObject":""},"11627":{"varMapping":{"__isSmartRef__":true,"id":11628},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":11633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11628":{"this":{"__isSmartRef__":true,"id":6088},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11629}},"11629":{"$super":{"__isSmartRef__":true,"id":11630}},"11630":{"varMapping":{"__isSmartRef__":true,"id":11631},"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":11632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11631":{"obj":{"__isSmartRef__":true,"id":6088},"name":"copyToPartsBinWithUserRequest"},"11632":{},"11633":{"timestamp":{"__isSmartRef__":true,"id":7824},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7817},"declaredObject":""},"11634":{"varMapping":{"__isSmartRef__":true,"id":11635},"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":11636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11635":{"this":{"__isSmartRef__":true,"id":6088}},"11636":{"timestamp":{"__isSmartRef__":true,"id":7828},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7825},"declaredObject":""},"11637":{"varMapping":{"__isSmartRef__":true,"id":11638},"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":11639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11638":{"this":{"__isSmartRef__":true,"id":6088}},"11639":{"timestamp":{"__isSmartRef__":true,"id":7832},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7829},"declaredObject":""},"11640":{"varMapping":{"__isSmartRef__":true,"id":11641},"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":11642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11641":{"this":{"__isSmartRef__":true,"id":6088}},"11642":{"timestamp":{"__isSmartRef__":true,"id":7836},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7833},"declaredObject":""},"11643":{"varMapping":{"__isSmartRef__":true,"id":11644},"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":11645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11644":{"this":{"__isSmartRef__":true,"id":6088}},"11645":{"timestamp":{"__isSmartRef__":true,"id":7840},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7837},"declaredObject":""},"11646":{"varMapping":{"__isSmartRef__":true,"id":11647},"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":11648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11647":{"this":{"__isSmartRef__":true,"id":6088}},"11648":{"timestamp":{"__isSmartRef__":true,"id":7844},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7841},"declaredObject":""},"11649":{"varMapping":{"__isSmartRef__":true,"id":11650},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11650":{"this":{"__isSmartRef__":true,"id":6088}},"11651":{"timestamp":{"__isSmartRef__":true,"id":7848},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7845},"declaredObject":""},"11652":{"varMapping":{"__isSmartRef__":true,"id":11653},"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":11654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11653":{"this":{"__isSmartRef__":true,"id":6088}},"11654":{"timestamp":{"__isSmartRef__":true,"id":7852},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7849},"declaredObject":""},"11655":{"varMapping":{"__isSmartRef__":true,"id":11656},"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":11657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11656":{"this":{"__isSmartRef__":true,"id":6088}},"11657":{"timestamp":{"__isSmartRef__":true,"id":7856},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7853},"declaredObject":""},"11658":{"varMapping":{"__isSmartRef__":true,"id":11659},"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":11660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11659":{"this":{"__isSmartRef__":true,"id":6088}},"11660":{"timestamp":{"__isSmartRef__":true,"id":7860},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7857},"declaredObject":""},"11661":{"varMapping":{"__isSmartRef__":true,"id":11662},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":11663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11662":{"this":{"__isSmartRef__":true,"id":6088}},"11663":{"timestamp":{"__isSmartRef__":true,"id":7864},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7861},"declaredObject":""},"11664":{"varMapping":{"__isSmartRef__":true,"id":11665},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":11666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11665":{"this":{"__isSmartRef__":true,"id":6088}},"11666":{"timestamp":{"__isSmartRef__":true,"id":7868},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7865},"declaredObject":""},"11667":{"varMapping":{"__isSmartRef__":true,"id":11668},"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":11669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11668":{"this":{"__isSmartRef__":true,"id":6088}},"11669":{"timestamp":{"__isSmartRef__":true,"id":7872},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7869},"declaredObject":""},"11670":{"varMapping":{"__isSmartRef__":true,"id":11671},"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":11672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11671":{"this":{"__isSmartRef__":true,"id":6088}},"11672":{"timestamp":{"__isSmartRef__":true,"id":7876},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7873},"declaredObject":""},"11673":{"varMapping":{"__isSmartRef__":true,"id":11674},"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":11675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11674":{"this":{"__isSmartRef__":true,"id":6088}},"11675":{"timestamp":{"__isSmartRef__":true,"id":7880},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7877},"declaredObject":""},"11676":{"varMapping":{"__isSmartRef__":true,"id":11677},"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":11678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11677":{"this":{"__isSmartRef__":true,"id":6088}},"11678":{"timestamp":{"__isSmartRef__":true,"id":7884},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7881},"declaredObject":""},"11679":{"varMapping":{"__isSmartRef__":true,"id":11680},"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":11681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11680":{"this":{"__isSmartRef__":true,"id":6088}},"11681":{"timestamp":{"__isSmartRef__":true,"id":7888},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7885},"declaredObject":""},"11682":{"varMapping":{"__isSmartRef__":true,"id":11683},"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":11684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11683":{"this":{"__isSmartRef__":true,"id":6088}},"11684":{"timestamp":{"__isSmartRef__":true,"id":7892},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7889},"declaredObject":""},"11685":{"varMapping":{"__isSmartRef__":true,"id":11686},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":11687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11686":{"this":{"__isSmartRef__":true,"id":6088}},"11687":{"timestamp":{"__isSmartRef__":true,"id":7896},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7893},"declaredObject":""},"11688":{"varMapping":{"__isSmartRef__":true,"id":11689},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":11690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11689":{"this":{"__isSmartRef__":true,"id":6088}},"11690":{"timestamp":{"__isSmartRef__":true,"id":7900},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":7897},"declaredObject":""},"11691":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11692},"derivationIds":[null,"0CA4E828-DD2A-4E84-A951-7DBD4A301B5D","D7D5271D-0DAD-4562-98E3-508F5831DF2F","20FA93FF-2E09-457F-814D-8F034D6B0E2F","D309FD7F-5995-414C-9466-F2D1246912B6","1F5A4C62-84D4-480B-A536-D26762C7BFDE","CCE81AA2-110F-441F-8CDB-F0B70151F766","1863761C-6E6D-4B81-B7A3-ECC0A33696A3","79FD514C-99F9-478C-B4AE-2F51FABD97FE","27D4A26F-12D7-46E3-9294-677C290712D4","679D234F-E0F4-4B5C-8811-793A615C14A5","A6995642-B49B-459E-A7F4-1CA99CB0A491","4FBCAF58-AA26-4461-A8A9-0386E438D7F1"],"id":"FE275C6B-0F95-49DA-A1B6-34E5A1A8CB04","eventHandler":{"__isSmartRef__":true,"id":11693},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"LavaTile1","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":11694},"moved":true,"isObstacle":true,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":5962},"prevScroll":[0,0],"eventsAreDisabled":false,"_PointerEvents":"auto","__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11713},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(485.6,685.3)"},"11692":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/lava.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(60.0,60.0)","_Padding":"lively.rect(0,0,0,0)"},"11693":{"morph":{"__isSmartRef__":true,"id":11691},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11694":{"partName":"LavaTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11695},{"__isSmartRef__":true,"id":11697},{"__isSmartRef__":true,"id":11699},{"__isSmartRef__":true,"id":11701},{"__isSmartRef__":true,"id":11703},{"__isSmartRef__":true,"id":11705},{"__isSmartRef__":true,"id":11707},{"__isSmartRef__":true,"id":11709},{"__isSmartRef__":true,"id":11711}],"migrationLevel":4,"revisionOnLoad":159354,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11695":{"date":{"__isSmartRef__":true,"id":11696},"author":"tessi","message":"no comment","id":"88062A77-A216-4157-B7EB-FDAB2D0E2FBC"},"11696":{"isSerializedDate":true,"string":"Fri May 04 2012 17:03:12 GMT+0200 (Central Europe Daylight Time)"},"11697":{"date":{"__isSmartRef__":true,"id":11698},"author":"timfelgentreff","message":"no comment","id":"216F150F-2DAA-4F72-8F4C-7359F2ADD356"},"11698":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:24 GMT+0200 (Central Europe Daylight Time)"},"11699":{"date":{"__isSmartRef__":true,"id":11700},"author":"timfelgentreff","message":"no comment","id":"E731D1A2-7EEE-4BBE-9B12-B141AE02B7D1"},"11700":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:48 GMT+0200 (Central Europe Daylight Time)"},"11701":{"date":{"__isSmartRef__":true,"id":11702},"author":"timfelgentreff","message":"no comment","id":"3A732801-0F03-4191-87FB-4C0A0C2BE29E"},"11702":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:50 GMT+0200 (Central Europe Daylight Time)"},"11703":{"date":{"__isSmartRef__":true,"id":11704},"author":"timfelgentreff","message":"no comment","id":"EE7E1C1A-2783-4DFF-8537-98BCB4FD59AC"},"11704":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:48 GMT+0200 (Central Europe Daylight Time)"},"11705":{"date":{"__isSmartRef__":true,"id":11706},"author":"tessi","message":"","id":"848E820C-2589-48C7-B52C-2C4FBB8D0567"},"11706":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:15:50 GMT+0200 (Central Europe Daylight Time)"},"11707":{"date":{"__isSmartRef__":true,"id":11708},"author":"lauritz","message":"","id":"5779A1E4-F39E-421E-A9E9-014B7DFC8A4E"},"11708":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:36 GMT+0200 (Central Europe Daylight Time)"},"11709":{"date":{"__isSmartRef__":true,"id":11710},"author":"timfelgentreff","message":"","id":"1EBE70B7-E9F0-49A3-9346-31D2D5401759"},"11710":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:30:50 GMT+0200 (Central Europe Daylight Time)"},"11711":{"date":{"__isSmartRef__":true,"id":11712},"author":"tessi","message":"","id":"9EB4E294-31AE-4983-9FD1-83B22BF0B2CD"},"11712":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:41:36 GMT+0200 (Central Europe Daylight Time)"},"11713":{"dropOn":{"__isSmartRef__":true,"id":11714},"shallowCopy":{"__isSmartRef__":true,"id":11721}},"11714":{"varMapping":{"__isSmartRef__":true,"id":11715},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11715":{"this":{"__isSmartRef__":true,"id":11691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11716}},"11716":{"$super":{"__isSmartRef__":true,"id":11717}},"11717":{"varMapping":{"__isSmartRef__":true,"id":11718},"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":11719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11718":{"obj":{"__isSmartRef__":true,"id":11691},"name":"dropOn"},"11719":{},"11720":{},"11721":{"varMapping":{"__isSmartRef__":true,"id":11722},"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":11723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11722":{"this":{"__isSmartRef__":true,"id":11691}},"11723":{"timestamp":{"__isSmartRef__":true,"id":11724},"user":"timfelgentreff","tags":[]},"11724":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:17 GMT+0200 (Central Europe Daylight Time)"},"11725":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"11726":{"options":{"__isSmartRef__":true,"id":11727}},"11727":{"override":["onDrag","onDragStart","onDragEnd"]},"11728":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11729":{"morph":{"__isSmartRef__":true,"id":5962},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11730":{"submorphs":[{"__isSmartRef__":true,"id":11731},{"__isSmartRef__":true,"id":11777},{"__isSmartRef__":true,"id":11819},{"__isSmartRef__":true,"id":11830},{"__isSmartRef__":true,"id":11850},{"__isSmartRef__":true,"id":11875},{"__isSmartRef__":true,"id":11917}],"scripts":[],"id":"E4619CC6-084F-4B4C-85C5-8A7EC9EEB012","shape":{"__isSmartRef__":true,"id":11937},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"PresentationContainerPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":11944},"eventHandler":{"__isSmartRef__":true,"id":11951},"attributeConnections":[{"__isSmartRef__":true,"id":11939}],"derivationIds":[127,"7CD62972-16C1-4F8A-8F2E-600619FE2304","95211AFF-AF55-4555-9896-2DD74A06412E","79BB65B7-C283-4035-807B-F44346FB992C","F0C99D75-2CB4-48F7-9029-C5B166D729DC","A909D3E5-1092-4CAB-9117-2B5560E7902B"],"layout":{"__isSmartRef__":true,"id":11952},"isBeingDragged":false,"prevScroll":[0,0],"isInLayoutCycle":false,"isCopyMorphRef":true,"morphRefId":1,"selectedItem":{"__isSmartRef__":true,"id":11953},"_ClipMode":"visible","__serializedExpressions__":["distanceToDragEvent","_Position"],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":14955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15101},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(233.9,-11.2)","_Position":"lively.pt(12.0,30.0)"},"11731":{"submorphs":[{"__isSmartRef__":true,"id":11732}],"scripts":[],"id":"DD6E635E-6F15-4764-9DF6-473ECCF1117B","shape":{"__isSmartRef__":true,"id":11737},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":11738},"lighterFill":{"__isSmartRef__":true,"id":11743},"label":{"__isSmartRef__":true,"id":11732},"name":"Button1","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":11748},"attributeConnections":[{"__isSmartRef__":true,"id":11749}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":11776},"derivationIds":[7251,"9F5BE72B-0D79-4591-B3C9-D7E94D3A8471","0C45BA2D-3DEC-4C52-8A26-A6442258A10E","E2FD8AB2-90A8-4E6D-9AFE-3328C47C25C1","EE6C85E9-4079-4236-ADA8-C8BE9209DF90","0C0D05B7-62A7-4C37-86E9-075CCBB89F0E"],"isCopyMorphRef":true,"morphRefId":1,"owner":{"__isSmartRef__":true,"id":11730},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"_ClipMode":"visible","isPressed":false,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(39.4,-13.8)","_Position":"lively.pt(-4.0,0.0)"},"11732":{"submorphs":[],"scripts":[],"id":"94A16C18-DF9D-4ACD-9579-4CB8F9F5C8B9","shape":{"__isSmartRef__":true,"id":11733},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":63,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":11731},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":11734}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":11736},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"DA97DD81-9124-4146-8A8A-F45FC267B564","B66A8A45-D0BF-4952-BA4F-34C971791910","7900B2BE-AF0B-4EFB-AE88-4B649B5A8B6B","775AA09B-C049-4567-A58F-41219B1DC335","F592A283-1CD3-4393-A42F-10EF095FB28F"],"_MinTextWidth":63,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11733":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(63.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11734":{"style":{"__isSmartRef__":true,"id":11735},"chunkOwner":{"__isSmartRef__":true,"id":11732},"storedString":"collect","_id":"_94","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11735":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11736":{"morph":{"__isSmartRef__":true,"id":11732},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11737":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":11738},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(63.0,22.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"11738":{"stops":[{"__isSmartRef__":true,"id":11739},{"__isSmartRef__":true,"id":11740},{"__isSmartRef__":true,"id":11741},{"__isSmartRef__":true,"id":11742}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11739":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"11740":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11741":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11742":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"11743":{"stops":[{"__isSmartRef__":true,"id":11744},{"__isSmartRef__":true,"id":11745},{"__isSmartRef__":true,"id":11746},{"__isSmartRef__":true,"id":11747}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11744":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"11745":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11746":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11747":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"11748":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11749":{"sourceObj":{"__isSmartRef__":true,"id":11731},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":11730},"targetMethodName":"collectSlides","visualConnector":{"__isSmartRef__":true,"id":11750},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"11750":{"submorphs":[{"__isSmartRef__":true,"id":11751}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11762},"derivationIds":[null],"id":"6E656A01-73D3-48FF-BCE1-AF6A9384A548","eventHandler":{"__isSmartRef__":true,"id":11765},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":11766},{"__isSmartRef__":true,"id":11767}],"con":{"__isSmartRef__":true,"id":11749},"showsMorphMenu":true,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11768},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11751":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11752},"derivationIds":[null],"id":"A490B92A-929A-482C-869A-83329F3BE11C","eventHandler":{"__isSmartRef__":true,"id":11757},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":11750},"_Rotation":-2.356194490192345,"showsHalos":false,"controlPoints":[{"__isSmartRef__":true,"id":11758},{"__isSmartRef__":true,"id":11759},{"__isSmartRef__":true,"id":11760},{"__isSmartRef__":true,"id":11761}],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"11752":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":11753},{"__isSmartRef__":true,"id":11754},{"__isSmartRef__":true,"id":11755},{"__isSmartRef__":true,"id":11756}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"11753":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11754":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11755":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11756":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11757":{"morph":{"__isSmartRef__":true,"id":11751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11758":{"morph":{"__isSmartRef__":true,"id":11751},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11759":{"morph":{"__isSmartRef__":true,"id":11751},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11760":{"morph":{"__isSmartRef__":true,"id":11751},"index":2,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11761":{"morph":{"__isSmartRef__":true,"id":11751},"index":3,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11762":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":11763},{"__isSmartRef__":true,"id":11764}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(11.0,11.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"11763":{"isAbsolute":true,"x":10,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11764":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11765":{"morph":{"__isSmartRef__":true,"id":11750},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11766":{"morph":{"__isSmartRef__":true,"id":11750},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11767":{"morph":{"__isSmartRef__":true,"id":11750},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":11751},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11768":{"morphMenuItems":{"__isSmartRef__":true,"id":11769}},"11769":{"varMapping":{"__isSmartRef__":true,"id":11770},"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":11775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11770":{"this":{"__isSmartRef__":true,"id":11750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11771}},"11771":{"$super":{"__isSmartRef__":true,"id":11772}},"11772":{"varMapping":{"__isSmartRef__":true,"id":11773},"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":11774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11773":{"obj":{"__isSmartRef__":true,"id":11750},"name":"morphMenuItems"},"11774":{},"11775":{},"11776":{"morph":{"__isSmartRef__":true,"id":11731},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11777":{"submorphs":[{"__isSmartRef__":true,"id":11778}],"scripts":[],"id":"56DB7D1A-6DB9-401D-BBD6-82CECF2593DD","shape":{"__isSmartRef__":true,"id":11783},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":11784},"lighterFill":{"__isSmartRef__":true,"id":11789},"label":{"__isSmartRef__":true,"id":11778},"name":"Button3","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":11794},"attributeConnections":[{"__isSmartRef__":true,"id":11795}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":11818},"derivationIds":[7251,"9F5BE72B-0D79-4591-B3C9-D7E94D3A8471","DDEB49A7-8493-4DD0-8AE0-2910A344FC45","5C1BEDEF-8A80-42C3-A2B1-6C3F6FB65FB4","61985B76-CC08-4E3E-8A6C-9B838418B971","352C600E-5283-4E32-A563-3802D984F519","455BB996-9E2F-426E-996D-28DAD8AA98B4"],"isCopyMorphRef":true,"morphRefId":1,"owner":{"__isSmartRef__":true,"id":11730},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"_ClipMode":"visible","__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(43.4,-17.8)","_Position":"lively.pt(60.0,0.0)"},"11778":{"submorphs":[],"scripts":[],"id":"546E38C9-FB8B-4644-B158-BDD56CAA9BB8","shape":{"__isSmartRef__":true,"id":11779},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":55,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":11777},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":11780}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":11782},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"DA97DD81-9124-4146-8A8A-F45FC267B564","BD882188-85F7-43BE-963E-8764464B2BB4","4EF2F8FD-9A30-49D8-9ED4-601D09755625","C6ACE99B-3A02-4391-9502-75FDDBA80750","B821C7F4-BEFD-488E-A649-CAE1A1D49816","74C172ED-8B56-40F4-A734-B5CB8533CC9D"],"_MinTextWidth":55,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11779":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(55.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11780":{"style":{"__isSmartRef__":true,"id":11781},"chunkOwner":{"__isSmartRef__":true,"id":11778},"storedString":"drop","_id":"_95","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11781":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11782":{"morph":{"__isSmartRef__":true,"id":11778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11783":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":11784},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(55.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"11784":{"stops":[{"__isSmartRef__":true,"id":11785},{"__isSmartRef__":true,"id":11786},{"__isSmartRef__":true,"id":11787},{"__isSmartRef__":true,"id":11788}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11785":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"11786":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11787":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11788":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"11789":{"stops":[{"__isSmartRef__":true,"id":11790},{"__isSmartRef__":true,"id":11791},{"__isSmartRef__":true,"id":11792},{"__isSmartRef__":true,"id":11793}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11790":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"11791":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11792":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11793":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"11794":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11795":{"sourceObj":{"__isSmartRef__":true,"id":11777},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":11730},"targetMethodName":"dropSlides","visualConnector":{"__isSmartRef__":true,"id":11796},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"11796":{"submorphs":[{"__isSmartRef__":true,"id":11797}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11804},"derivationIds":[null],"id":"ACB8F7C9-9967-4EBA-87DE-8F7CCBB12936","eventHandler":{"__isSmartRef__":true,"id":11807},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":11808},{"__isSmartRef__":true,"id":11809}],"con":{"__isSmartRef__":true,"id":11795},"showsMorphMenu":true,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11810},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11797":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11798},"derivationIds":[null],"id":"10E99CB5-659C-4BA5-9534-0F995A77482C","eventHandler":{"__isSmartRef__":true,"id":11803},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":11796},"_Rotation":-3.058451421701352,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"11798":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":11799},{"__isSmartRef__":true,"id":11800},{"__isSmartRef__":true,"id":11801},{"__isSmartRef__":true,"id":11802}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"11799":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11800":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11801":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11802":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11803":{"morph":{"__isSmartRef__":true,"id":11797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11804":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":11805},{"__isSmartRef__":true,"id":11806}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(121.0,11.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"11805":{"isAbsolute":true,"x":120,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11806":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11807":{"morph":{"__isSmartRef__":true,"id":11796},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11808":{"morph":{"__isSmartRef__":true,"id":11796},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11809":{"morph":{"__isSmartRef__":true,"id":11796},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":11797},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11810":{"morphMenuItems":{"__isSmartRef__":true,"id":11811}},"11811":{"varMapping":{"__isSmartRef__":true,"id":11812},"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":11817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11812":{"this":{"__isSmartRef__":true,"id":11796},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11813}},"11813":{"$super":{"__isSmartRef__":true,"id":11814}},"11814":{"varMapping":{"__isSmartRef__":true,"id":11815},"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":11816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11815":{"obj":{"__isSmartRef__":true,"id":11796},"name":"morphMenuItems"},"11816":{},"11817":{},"11818":{"morph":{"__isSmartRef__":true,"id":11777},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11819":{"submorphs":[{"__isSmartRef__":true,"id":11820}],"scripts":[],"id":"4FD58EAA-E254-47F1-BC83-CF6F36BF33B6","shape":{"__isSmartRef__":true,"id":11826},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ClipBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":11827},"eventHandler":{"__isSmartRef__":true,"id":11828},"derivationIds":[127,"C3A7D918-F554-4B6C-B2E6-1683129FB93A","C838EEE3-41EA-4D4A-9601-ED73C0418412","B3B783CE-E5A1-4718-A090-34EFB762B41F","AC0AB793-A7B8-45D8-8E2E-5113798F2A03","29E1BE42-8A4A-4E23-91CE-EDA36FD6B733"],"_ClipMode":"scroll","isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":11829},"prevScroll":[0,149],"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":11730},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(226.3,-14.8)","_Position":"lively.pt(-8.9,57.0)"},"11820":{"submorphs":[],"scripts":[],"id":"670B7AED-F818-4634-AFB5-A9823864B9AE","shape":{"__isSmartRef__":true,"id":11821},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Container","partsBinMetaInfo":{"__isSmartRef__":true,"id":11822},"eventHandler":{"__isSmartRef__":true,"id":11823},"derivationIds":[127,"7859EA19-DC52-44C7-9DEC-0BED7CBF952B","AAE1751E-BEFC-4D76-8B9D-ABDFBC25C4DF","F24DE043-7599-42EE-AA3A-A066976EC0A8","57AE2CB5-E85F-4E11-9BFE-DC7F2AD8506C","96973E8B-0328-420C-9F2C-998419D2B2A7"],"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":11824},"isInLayoutCycle":false,"prevScroll":[0,0],"_ClipMode":"visible","selectedItem":null,"isCopyMorphRef":true,"morphRefId":29,"__serializedExpressions__":["distanceToDragEvent","_Position"],"_Scale":0.27815539547587104,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":11819},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(209.6,-11.1)","_Position":"lively.pt(0.0,0.0)"},"11821":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1064.0,5.0)","_BorderColor":"Color.rgb(145,145,145)","_Fill":"Color.rgb(235,235,235)","_Padding":"lively.rect(0,0,0,0)"},"11822":{"partsSpaceName":"PartsBin/Basic","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","__SourceModuleName__":"Global.lively.PartsBin"},"11823":{"morph":{"__isSmartRef__":true,"id":11820},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11824":{"layouter":{"__isSmartRef__":true,"id":11825},"__serializedExpressions__":["extentWithoutPlaceholder"],"extentWithoutPlaceholder":"lively.pt(1064.0,7232.0)"},"11825":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":11820},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11826":{"_BorderWidth":0,"_ClipMode":"scroll","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(296.0,639.2)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"11827":{"partsSpaceName":"PartsBin/Basic","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","__SourceModuleName__":"Global.lively.PartsBin"},"11828":{"morph":{"__isSmartRef__":true,"id":11819},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11829":{"adjustForNewBounds":false,"resizeWidth":true,"resizeHeight":true},"11830":{"submorphs":[{"__isSmartRef__":true,"id":11831}],"scripts":[],"id":"334C0631-BE76-417C-91A8-849261C55690","shape":{"__isSmartRef__":true,"id":11836},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":11837},"lighterFill":{"__isSmartRef__":true,"id":11842},"label":{"__isSmartRef__":true,"id":11831},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":11847},"attributeConnections":[{"__isSmartRef__":true,"id":11848}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":11849},"derivationIds":[7251,"0FC69CF2-6E03-4558-B746-FC584C17FE41"],"owner":{"__isSmartRef__":true,"id":11730},"isCopyMorphRef":true,"morphRefId":1,"_Rotation":0,"_Scale":1,"_ClipMode":"visible","__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(146.0,30.0)","distanceToDragEvent":"lively.pt(35.4,-11.8)"},"11831":{"submorphs":[],"scripts":[],"id":"792D9E7A-9C53-4991-9FDD-C10A0AC7B598","shape":{"__isSmartRef__":true,"id":11832},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":19.081836163754133,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":11830},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":11833}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":11835},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"83D8C0C7-4C0E-4C28-9C34-7D3FD86BE1A3"],"_MinTextWidth":19.081836163754133,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11832":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.1,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11833":{"style":{"__isSmartRef__":true,"id":11834},"chunkOwner":{"__isSmartRef__":true,"id":11831},"storedString":"-","_id":"_401","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11834":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11835":{"morph":{"__isSmartRef__":true,"id":11831},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11836":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":11837},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.1,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"11837":{"stops":[{"__isSmartRef__":true,"id":11838},{"__isSmartRef__":true,"id":11839},{"__isSmartRef__":true,"id":11840},{"__isSmartRef__":true,"id":11841}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11838":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"11839":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11840":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11841":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"11842":{"stops":[{"__isSmartRef__":true,"id":11843},{"__isSmartRef__":true,"id":11844},{"__isSmartRef__":true,"id":11845},{"__isSmartRef__":true,"id":11846}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11843":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"11844":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11845":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11846":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"11847":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11848":{"sourceObj":{"__isSmartRef__":true,"id":11830},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":11730},"targetMethodName":"deleteCurrentSlide","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"11849":{"morph":{"__isSmartRef__":true,"id":11830},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11850":{"submorphs":[{"__isSmartRef__":true,"id":11851}],"scripts":[],"id":"3270FDCB-B7D2-4E41-98B7-7B1117153B98","shape":{"__isSmartRef__":true,"id":11856},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":11862},"lighterFill":{"__isSmartRef__":true,"id":11867},"label":{"__isSmartRef__":true,"id":11851},"name":"Button2","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":11872},"attributeConnections":[{"__isSmartRef__":true,"id":11873}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":11874},"derivationIds":[7251,"0FC69CF2-6E03-4558-B746-FC584C17FE41","D7AFAA7F-D054-4506-82A7-D210337816BE"],"isCopyMorphRef":true,"morphRefId":1,"owner":{"__isSmartRef__":true,"id":11730},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"_ClipMode":"visible","isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(120.0,30.0)","distanceToDragEvent":"lively.pt(34.4,-7.8)"},"11851":{"submorphs":[],"scripts":[],"id":"DB23A3C7-219C-4044-B238-203746122C26","shape":{"__isSmartRef__":true,"id":11852},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":19.081836163754133,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":11850},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":11853}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":11855},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"83D8C0C7-4C0E-4C28-9C34-7D3FD86BE1A3","51DA182A-95D7-420D-A43E-9F961E7001F7"],"_MinTextWidth":19.081836163754133,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11852":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.1,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"11853":{"style":{"__isSmartRef__":true,"id":11854},"chunkOwner":{"__isSmartRef__":true,"id":11851},"storedString":"+","_id":"_402","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11854":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11855":{"morph":{"__isSmartRef__":true,"id":11851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11856":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":11857},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.1,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"11857":{"stops":[{"__isSmartRef__":true,"id":11858},{"__isSmartRef__":true,"id":11859},{"__isSmartRef__":true,"id":11860},{"__isSmartRef__":true,"id":11861}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11858":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"11859":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"11860":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"11861":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"11862":{"stops":[{"__isSmartRef__":true,"id":11863},{"__isSmartRef__":true,"id":11864},{"__isSmartRef__":true,"id":11865},{"__isSmartRef__":true,"id":11866}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11863":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"11864":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11865":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11866":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"11867":{"stops":[{"__isSmartRef__":true,"id":11868},{"__isSmartRef__":true,"id":11869},{"__isSmartRef__":true,"id":11870},{"__isSmartRef__":true,"id":11871}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11868":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"11869":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11870":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11871":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"11872":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11873":{"sourceObj":{"__isSmartRef__":true,"id":11850},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":11730},"targetMethodName":"duplicteCurrentSlide","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"11874":{"morph":{"__isSmartRef__":true,"id":11850},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11875":{"submorphs":[{"__isSmartRef__":true,"id":11876}],"scripts":[],"id":"314F9E4F-C769-4123-B0FA-CB686C17941D","shape":{"__isSmartRef__":true,"id":11881},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":11882},"lighterFill":{"__isSmartRef__":true,"id":11887},"label":{"__isSmartRef__":true,"id":11876},"name":"Button4","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":11892},"attributeConnections":[{"__isSmartRef__":true,"id":11893}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":11916},"derivationIds":[7251,"9F5BE72B-0D79-4591-B3C9-D7E94D3A8471","DDEB49A7-8493-4DD0-8AE0-2910A344FC45","5C1BEDEF-8A80-42C3-A2B1-6C3F6FB65FB4","61985B76-CC08-4E3E-8A6C-9B838418B971","352C600E-5283-4E32-A563-3802D984F519","455BB996-9E2F-426E-996D-28DAD8AA98B4","A4CC4C54-7CD3-4626-8436-01426376AFE1"],"isCopyMorphRef":true,"morphRefId":1,"prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":11730},"_Rotation":0,"_Scale":1,"_ClipMode":"visible","isPressed":false,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(55.4,-9.8)","_Position":"lively.pt(120.0,0.0)"},"11876":{"submorphs":[],"scripts":[],"id":"B222D8A4-0813-43EF-BF4F-3F8C3E77C5F7","shape":{"__isSmartRef__":true,"id":11877},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":80,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":11875},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":11878}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":11880},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"DA97DD81-9124-4146-8A8A-F45FC267B564","BD882188-85F7-43BE-963E-8764464B2BB4","4EF2F8FD-9A30-49D8-9ED4-601D09755625","C6ACE99B-3A02-4391-9502-75FDDBA80750","B821C7F4-BEFD-488E-A649-CAE1A1D49816","74C172ED-8B56-40F4-A734-B5CB8533CC9D","BC07300B-894D-4BD2-B752-6E31AB02683E"],"_MinTextWidth":80,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11877":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(80.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"11878":{"style":{"__isSmartRef__":true,"id":11879},"chunkOwner":{"__isSmartRef__":true,"id":11876},"storedString":"drop items","_id":"_403","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11879":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11880":{"morph":{"__isSmartRef__":true,"id":11876},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11881":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":11882},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(80.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"11882":{"stops":[{"__isSmartRef__":true,"id":11883},{"__isSmartRef__":true,"id":11884},{"__isSmartRef__":true,"id":11885},{"__isSmartRef__":true,"id":11886}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11883":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"11884":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11885":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11886":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"11887":{"stops":[{"__isSmartRef__":true,"id":11888},{"__isSmartRef__":true,"id":11889},{"__isSmartRef__":true,"id":11890},{"__isSmartRef__":true,"id":11891}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11888":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"11889":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11890":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11891":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"11892":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11893":{"sourceObj":{"__isSmartRef__":true,"id":11875},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":11730},"targetMethodName":"dropItems","visualConnector":{"__isSmartRef__":true,"id":11894},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"11894":{"submorphs":[{"__isSmartRef__":true,"id":11895}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11902},"derivationIds":[null],"id":"F557E8D0-4F12-4856-A0BB-06CE0522E099","eventHandler":{"__isSmartRef__":true,"id":11905},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":11906},{"__isSmartRef__":true,"id":11907}],"con":{"__isSmartRef__":true,"id":11893},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11908},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11895":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11896},"derivationIds":[null],"id":"0113ADF3-B97B-4E0D-9081-4CE2C6A5E013","eventHandler":{"__isSmartRef__":true,"id":11901},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":11894},"_Rotation":-3.0841845389529934,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(-10.0,-10.0)"},"11896":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":11897},{"__isSmartRef__":true,"id":11898},{"__isSmartRef__":true,"id":11899},{"__isSmartRef__":true,"id":11900}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(17.0,13.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"11897":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11898":{"isAbsolute":true,"x":-11,"y":7,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11899":{"isAbsolute":true,"x":5,"y":1,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11900":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11901":{"morph":{"__isSmartRef__":true,"id":11895},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11902":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":11903},{"__isSmartRef__":true,"id":11904}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-11.0,-11.0)","_Extent":"lively.pt(175.0,11.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"11903":{"isAbsolute":true,"x":164,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11904":{"isAbsolute":true,"x":-10,"y":-10,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"11905":{"morph":{"__isSmartRef__":true,"id":11894},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11906":{"morph":{"__isSmartRef__":true,"id":11894},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11907":{"morph":{"__isSmartRef__":true,"id":11894},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":11895},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11908":{"morphMenuItems":{"__isSmartRef__":true,"id":11909}},"11909":{"varMapping":{"__isSmartRef__":true,"id":11910},"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":11915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11910":{"this":{"__isSmartRef__":true,"id":11894},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11911}},"11911":{"$super":{"__isSmartRef__":true,"id":11912}},"11912":{"varMapping":{"__isSmartRef__":true,"id":11913},"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":11914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11913":{"obj":{"__isSmartRef__":true,"id":11894},"name":"morphMenuItems"},"11914":{},"11915":{},"11916":{"morph":{"__isSmartRef__":true,"id":11875},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11917":{"submorphs":[{"__isSmartRef__":true,"id":11918}],"scripts":[],"id":"3C5AAB81-DD19-4A9A-B73B-CBC8AC891A94","shape":{"__isSmartRef__":true,"id":11923},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":11924},"lighterFill":{"__isSmartRef__":true,"id":11929},"label":{"__isSmartRef__":true,"id":11918},"name":"Button5","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":11934},"attributeConnections":[{"__isSmartRef__":true,"id":11935}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":11936},"derivationIds":[7251,"296E0E91-32D9-459A-ACE2-8D64B04BE675"],"owner":{"__isSmartRef__":true,"id":11730},"isCopyMorphRef":true,"morphRefId":1,"_Rotation":0,"_Scale":1,"_ClipMode":"visible","isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-2.6,28.2)","distanceToDragEvent":"lively.pt(54.9,-11.0)"},"11918":{"submorphs":[],"scripts":[],"id":"8729A378-0E5A-432D-95B9-18F09E1CF4C0","shape":{"__isSmartRef__":true,"id":11919},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":11917},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":11920}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":11922},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"47DED4CD-3820-42C7-A8A2-7C2C0B414387"],"_MinTextWidth":101,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11919":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11920":{"style":{"__isSmartRef__":true,"id":11921},"chunkOwner":{"__isSmartRef__":true,"id":11918},"storedString":"print","_id":"_404","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11921":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11922":{"morph":{"__isSmartRef__":true,"id":11918},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11923":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":11924},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"11924":{"stops":[{"__isSmartRef__":true,"id":11925},{"__isSmartRef__":true,"id":11926},{"__isSmartRef__":true,"id":11927},{"__isSmartRef__":true,"id":11928}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11925":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"11926":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11927":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"11928":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"11929":{"stops":[{"__isSmartRef__":true,"id":11930},{"__isSmartRef__":true,"id":11931},{"__isSmartRef__":true,"id":11932},{"__isSmartRef__":true,"id":11933}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"11930":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"11931":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11932":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"11933":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"11934":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11935":{"sourceObj":{"__isSmartRef__":true,"id":11917},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":11730},"targetMethodName":"printSlides","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"11936":{"morph":{"__isSmartRef__":true,"id":11917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11937":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","attributeConnections":[{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11940}],"doNotSerialize":["$$_Extent"],"doNotCopyProperties":["$$_Extent"],"__serializedExpressions__":["position","_BorderColor","_Fill","_Padding","_Position","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-10.0,-10.0)","_Extent":"lively.pt(300.0,712.1)"},"11938":{"sourceObj":{"__isSmartRef__":true,"id":11937},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":11730},"targetMethodName":"adjustScale","dependedBy":{"__isSmartRef__":true,"id":11939},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"11939":{"sourceObj":{"__isSmartRef__":true,"id":11730},"sourceAttrName":"extent","targetObj":{"__isSmartRef__":true,"id":11730},"targetMethodName":"adjustScale","dependendConnections":[{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11938},{"__isSmartRef__":true,"id":11940}],"attributeConnections":[{"__isSmartRef__":true,"id":11942}],"doNotSerialize":["$$varMapping"],"doNotCopyProperties":["$$varMapping"],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"11940":{"sourceObj":{"__isSmartRef__":true,"id":11937},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":11939},"targetMethodName":"update","varMapping":{"__isSmartRef__":true,"id":11941},"dependedBy":{"__isSmartRef__":true,"id":11939},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"11941":{"source":{"__isSmartRef__":true,"id":11937},"target":{"__isSmartRef__":true,"id":11939}},"11942":{"sourceObj":{"__isSmartRef__":true,"id":11939},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":11940},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":11943},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"11943":{"source":{"__isSmartRef__":true,"id":11939},"target":{"__isSmartRef__":true,"id":11940}},"11944":{"partsSpaceName":"PartsBin/Jens","comment":"A PresentationContainer can gather PageMorphs from a world and drop them all as needed.","migrationLevel":4,"partName":"EfficientLayerActivationPresentation","changes":[{"__isSmartRef__":true,"id":11945},{"__isSmartRef__":true,"id":11947},{"__isSmartRef__":true,"id":11949}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11945":{"date":{"__isSmartRef__":true,"id":11946},"author":"undefined","message":"initial version","id":"B650EF72-AE0A-4C8A-9B0C-C80F68DC57A9"},"11946":{"isSerializedDate":true,"string":"Sun Jan 15 2012 17:07:11 GMT+0100 (Central Europe Standard Time)"},"11947":{"date":{"__isSmartRef__":true,"id":11948},"author":"undefined","message":"Initial version","id":"95AD3738-9D3E-42A2-B781-7E7B5B037B52"},"11948":{"isSerializedDate":true,"string":"Sun Jan 15 2012 17:08:22 GMT+0100 (Central Europe Standard Time)"},"11949":{"date":{"__isSmartRef__":true,"id":11950},"author":"jenslincke","message":"","id":"24C86571-AB0A-4989-8759-E6F0BB334FD7"},"11950":{"isSerializedDate":true,"string":"Tue Feb 28 2012 11:33:34 GMT+0100 (Central Europe Standard Time)"},"11951":{"morph":{"__isSmartRef__":true,"id":11730},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11952":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"11953":{"submorphs":[{"__isSmartRef__":true,"id":11954}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13429},"derivationIds":[null,"304ECE78-3F3F-4D3D-B625-294072FA3A2F","A85D7AAB-D602-401E-ABCE-F8CC9742B5F5"],"id":"EE8CBC61-B973-4AC2-947C-3EAA53977CC1","eventHandler":{"__isSmartRef__":true,"id":13430},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isSlideContainer":true,"slide":{"__isSmartRef__":true,"id":13431},"pane":{"__isSmartRef__":true,"id":11730},"name":"PresentationItem for SWASlide49","showsHalos":false,"owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position"],"behaviorGroups":["Slides"],"prevScroll":[0,0],"_Rotation":0,"_Scale":0.3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14906},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withLayers":["Global.PreventDroppingLayer"],"_Position":"lively.pt(370.0,1820.0)"},"11954":{"submorphs":[{"__isSmartRef__":true,"id":11955},{"__isSmartRef__":true,"id":11961},{"__isSmartRef__":true,"id":11989},{"__isSmartRef__":true,"id":12010},{"__isSmartRef__":true,"id":12025},{"__isSmartRef__":true,"id":12046}],"scripts":[],"id":"4A2F1814-027A-4550-B2A6-5F8B268B96FC","shape":{"__isSmartRef__":true,"id":13424},"__layered_droppingEnabled__":false,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":13425},"draggingEnabled":true,"name":"SWASlide55","partsBinMetaInfo":{"__isSmartRef__":true,"id":13427},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":13428},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","789CEA66-A12E-40FF-AC81-D7F3CFFE2EC4","41752457-1C6D-4D59-8C10-85A5E4273D09","FE4A29A9-36C9-4D5B-B63A-79CBF7134C5C","477EB316-4191-40B8-A89B-AB13766A597C"],"prevScroll":[0,0],"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","eventsAreIgnored":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1,"grabbingEnabled":false,"_Visible":true,"__serializedExpressions__":["distanceToDragEvent","lastWorldPosition","_Position"],"owner":{"__isSmartRef__":true,"id":11953},"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(720.0,1820.0)","_Position":"lively.pt(10.0,10.0)"},"11955":{"submorphs":[],"scripts":[],"id":"B7B5CC5B-810A-4053-AD78-AC37793E4CED","shape":{"__isSmartRef__":true,"id":11956},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":11957},"textChunks":[{"__isSmartRef__":true,"id":11958}],"owner":{"__isSmartRef__":true,"id":11954},"charsReplaced":"Freedom Of Speech Copy","lastFindLoc":44,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11960},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","505CBC3C-4C95-4F83-817F-29CD515373B6","5E6EB100-4F2D-4B97-990E-A58638A04420","95457801-9378-400A-A593-F40B1E486E75","D00A8D94-BB31-4A8C-856E-85B87626B0E0"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"previousSelection":[4,4],"isBeingDragged":false,"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"11956":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"11957":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11958":{"style":{"__isSmartRef__":true,"id":11959},"chunkOwner":{"__isSmartRef__":true,"id":11955},"storedString":"Limitations","_id":"_222","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11959":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11960":{"morph":{"__isSmartRef__":true,"id":11955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11961":{"submorphs":[],"scripts":[],"id":"E2E2FB4E-0F97-4F1D-8DC1-588EAFD177D2","shape":{"__isSmartRef__":true,"id":11962},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":11963},"textChunks":[{"__isSmartRef__":true,"id":11964},{"__isSmartRef__":true,"id":11966},{"__isSmartRef__":true,"id":11968},{"__isSmartRef__":true,"id":11970},{"__isSmartRef__":true,"id":11972},{"__isSmartRef__":true,"id":11974},{"__isSmartRef__":true,"id":11976},{"__isSmartRef__":true,"id":11978},{"__isSmartRef__":true,"id":11980},{"__isSmartRef__":true,"id":11982},{"__isSmartRef__":true,"id":11984},{"__isSmartRef__":true,"id":11986}],"charsReplaced":"view / edit common scripts on all group members","lastFindLoc":255,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11988},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","574526A8-CA11-4A39-B12B-51B4635EC39A","00890A35-A0F3-4B1A-8877-362C266800C7","3E97DC8F-0CD0-4B26-9581-F7B21D06B6FB","C0044AED-E1D5-4135-A508-5DEAA56CCEF3"],"previousSelection":[182,183],"owner":{"__isSmartRef__":true,"id":11954},"priorSelectionRange":[146,183],"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(97.0,193.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)"},"11962":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,279.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"11963":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11964":{"style":{"__isSmartRef__":true,"id":11965},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":"","_id":"_724","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11965":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11966":{"style":{"__isSmartRef__":true,"id":11967},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":"■ ","_id":"_223","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11967":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11968":{"style":{"__isSmartRef__":true,"id":11969},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":"Persistent Groups\n","_id":"_224","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11969":{"fontSize":"27px","fontStyle":"normal","fontVariant":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","color":"rgb(0,0,0)","fontFamily":"Helvetica","fontWeight":"bold","textAlign":"-webkit-auto","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11970":{"style":{"__isSmartRef__":true,"id":11971},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":" - ","_id":"_225","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11971":{"color":"rgb(0,0,0)","fontFamily":"Helvetica","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"-webkit-auto","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11972":{"style":{"__isSmartRef__":true,"id":11973},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":"no explicit group objects\n","_id":"_226","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11973":{"color":"rgb(0,0,0)","fontFamily":"Helvetica","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"-webkit-auto","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11974":{"style":{"__isSmartRef__":true,"id":11975},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":" - group membership saved on morphs\n - group selection only incorporates present morphs\n","_id":"_227","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11975":{"color":"rgb(0,0,0)","fontFamily":"Helvetica","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"-webkit-auto","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11976":{"style":{"__isSmartRef__":true,"id":11977},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":"\n","_id":"_228","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11977":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11978":{"style":{"__isSmartRef__":true,"id":11979},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":"■ ","_id":"_229","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11979":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11980":{"style":{"__isSmartRef__":true,"id":11981},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":"Separate Editor\n","_id":"_230","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11981":{"fontSize":"27px","fontStyle":"normal","fontVariant":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","color":"rgb(0,0,0)","fontFamily":"Helvetica","textAlign":"-webkit-auto","textDecoration":"none","fontWeight":"bold","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11982":{"style":{"__isSmartRef__":true,"id":11983},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":" - changes to object editor not automatically merged\n","_id":"_231","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11983":{"fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","color":"rgb(0,0,0)","fontFamily":"Helvetica","textAlign":"-webkit-auto","backgroundColor":"rgb(255,255,255)","textDecoration":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11984":{"style":{"__isSmartRef__":true,"id":11985},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":"\n","_id":"_232","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11985":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11986":{"style":{"__isSmartRef__":true,"id":11987},"chunkOwner":{"__isSmartRef__":true,"id":11961},"storedString":"\n","_id":"_233","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11987":{"textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11988":{"morph":{"__isSmartRef__":true,"id":11961},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11989":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11990},"derivationIds":[null,"C91C7A1D-6475-460A-9934-50BFB3BDD0CA","235263A6-5B5D-4254-A5E0-0085E08EE8DA","E485717F-C711-4489-A08A-1C47955B74DB","5DEF033C-1B6E-42C8-8B64-539E7F671D31","EACDF281-597E-4798-8660-4584A590593D","9BC238B7-A19E-421A-A380-8FFFF13E0920","6EDCC590-DCBD-41AF-A867-491F3CA4F030"],"id":"6C859910-CD92-48B7-ADA8-B680CCEF2A4A","eventHandler":{"__isSmartRef__":true,"id":11991},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"ScientistCharacter3","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":11992},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":11954},"isBeingDragged":false,"_Rotation":0,"_Scale":2.214730942043113,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12005},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(903.0,339.1)"},"11990":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/scientist.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,20.0)","_Padding":"lively.rect(0,0,0,0)"},"11991":{"morph":{"__isSmartRef__":true,"id":11989},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11992":{"partName":"ScientistCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A scientist character who knows A LOT!!1","changes":[{"__isSmartRef__":true,"id":11993},{"__isSmartRef__":true,"id":11995},{"__isSmartRef__":true,"id":11997},{"__isSmartRef__":true,"id":11999},{"__isSmartRef__":true,"id":12001},{"__isSmartRef__":true,"id":12003}],"migrationLevel":4,"revisionOnLoad":156419,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11993":{"date":{"__isSmartRef__":true,"id":11994},"author":"timfelgentreff","message":"no comment","id":"BF38DA82-CAF7-4DEA-BCA5-B106FEFC0AFB"},"11994":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:37:24 GMT+0200 (Central Europe Daylight Time)"},"11995":{"date":{"__isSmartRef__":true,"id":11996},"author":"tessi","message":"typo","id":"34473741-0521-4BD1-BC93-DF88917EF5DF"},"11996":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:32:17 GMT+0200 (Central Europe Daylight Time)"},"11997":{"date":{"__isSmartRef__":true,"id":11998},"author":"tessi","message":"","id":"D21104FA-3310-44C8-9251-B7406894B2B7"},"11998":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:44:52 GMT+0200 (Central Europe Daylight Time)"},"11999":{"date":{"__isSmartRef__":true,"id":12000},"author":"tessi","message":"","id":"E2F64556-CA9B-4B95-8DB0-09CBBDC6C471"},"12000":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:03:16 GMT+0200 (Central Europe Daylight Time)"},"12001":{"date":{"__isSmartRef__":true,"id":12002},"author":"tessi","message":"Give our prof more sentences to say","id":"089204B1-6181-4182-B02B-87E94A452DE2"},"12002":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:06:46 GMT+0200 (Central Europe Daylight Time)"},"12003":{"date":{"__isSmartRef__":true,"id":12004},"author":"lauritz","message":"no comment","id":"D254F47E-8439-4032-A018-BAA865E7CD51"},"12004":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:26:32 GMT+0200 (Central Europe Daylight Time)"},"12005":{"soliloquize":{"__isSmartRef__":true,"id":12006}},"12006":{"varMapping":{"__isSmartRef__":true,"id":12007},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"I wanna make someone call me Prof. again\",\n \"Muharharhar!\",\n \"Why do these chemicals explode all the time?\",\n \"The world will be mine!\",\n \".. my toe tickles ..\",\n \"Back to the Lab!\",\n \"Things should have more labels on them!\",\n \"GreenIT - Muhahahr\",\n \"\\\"Dominate the world in seven days\\\"\\n this book looks interesting\",\n \"Hell yeah it's rocket science!\",\n \"darn..premise wrong,..again.\",\n \"I don't like people\",\n \"Theory of Everything!!\",\n \"An entropy cannot decrease in a closed system,\\nso I guess that's why there's\\n a hole in my sock\",\n \"As objects in motion tend to remain in motion\\nI fell down the stairs\",\n \"I have a degree in horribleness\",\n \"My application to the \\\"Evil League Of Evil\\\"\\nis still pending...\\nShould I call Bad Horse?\",\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":12008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12007":{"this":{"__isSmartRef__":true,"id":11989}},"12008":{"timestamp":{"__isSmartRef__":true,"id":12009},"user":"timfelgentreff","tags":[]},"12009":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:37:05 GMT+0200 (Central Europe Daylight Time)"},"12010":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12011},"derivationIds":[null,"DDEAC478-2517-4549-94EE-CDDC72BCB67A","7C9FE591-7783-4A14-A4C6-3202BFD06CDB","1880E48F-8410-43CD-B356-0A1E07E68A4A","8F707FA0-E74C-4D41-80B1-60499C0A2080"],"id":"2438BB67-A1E5-4116-B01B-B7B682E0E200","eventHandler":{"__isSmartRef__":true,"id":12012},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"OctocatCharacter4","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":12013},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":11954},"behaviorGroups":["Villains"],"_Rotation":0,"_Scale":2.214730942043113,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12020},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(883.9,130.6)"},"12011":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/octocat.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(32.0,32.0)","_Padding":"lively.rect(0,0,0,0)"},"12012":{"morph":{"__isSmartRef__":true,"id":12010},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12013":{"partName":"OctocatCharacter","requiredModules":[],"comment":"Look at me! I'm doing the octo dance!","changes":[{"__isSmartRef__":true,"id":12014},{"__isSmartRef__":true,"id":12016},{"__isSmartRef__":true,"id":12018}],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech/","revisionOnLoad":154726,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12014":{"date":{"__isSmartRef__":true,"id":12015},"author":"tessi","message":"octocat does not soliloquize (for now!?)","id":"0F039063-F9E3-4503-B1ED-C1C7C887679B"},"12015":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:04 GMT+0200 (Central Europe Daylight Time)"},"12016":{"date":{"__isSmartRef__":true,"id":12017},"author":"tessi","message":"","id":"977A2D23-B062-4F60-AB60-63CF3624D817"},"12017":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:33:30 GMT+0200 (Central Europe Daylight Time)"},"12018":{"date":{"__isSmartRef__":true,"id":12019},"author":"tessi","message":"","id":"F614B373-FE65-419F-AC36-21BCCE60AEE6"},"12019":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:36:27 GMT+0200 (Central Europe Daylight Time)"},"12020":{"soliloquize":{"__isSmartRef__":true,"id":12021}},"12021":{"varMapping":{"__isSmartRef__":true,"id":12022},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n undefined\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":12023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12022":{"this":{"__isSmartRef__":true,"id":12010}},"12023":{"timestamp":{"__isSmartRef__":true,"id":12024},"user":"tessi","tags":[]},"12024":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:38:40 GMT+0200 (Central Europe Daylight Time)"},"12025":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12026},"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","6C5B397A-4820-4CEE-9E4C-D1AB0FF3EC7B"],"id":"4F2AC8B3-BBF7-436C-9F84-CAC68ED3C2F1","eventHandler":{"__isSmartRef__":true,"id":12027},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"OgreCharacter6","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":12028},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":11954},"isBeingDragged":false,"behaviorGroups":["Villains"],"_Rotation":0,"_Scale":2.214730942043113,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12041},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(815.6,165.5)"},"12026":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/ogre.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(30.0,30.0)","_Padding":"lively.rect(0,0,0,0)"},"12027":{"morph":{"__isSmartRef__":true,"id":12025},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12028":{"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":12029},{"__isSmartRef__":true,"id":12031},{"__isSmartRef__":true,"id":12033},{"__isSmartRef__":true,"id":12035},{"__isSmartRef__":true,"id":12037},{"__isSmartRef__":true,"id":12039}],"migrationLevel":4,"revisionOnLoad":156416,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12029":{"date":{"__isSmartRef__":true,"id":12030},"author":"lauritz","message":"i've got to tell a thing or two","id":"70436981-18DC-4F38-8140-749232838288"},"12030":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:29 GMT+0200 (Central Europe Daylight Time)"},"12031":{"date":{"__isSmartRef__":true,"id":12032},"author":"tessi","message":"some more sentences for our lovely ogre","id":"CAA81E8E-2A04-4B19-A2A3-BDC1DE903D07"},"12032":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:41:46 GMT+0200 (Central Europe Daylight Time)"},"12033":{"date":{"__isSmartRef__":true,"id":12034},"author":"tessi","message":"","id":"037D4B98-0FC3-4F01-AAC5-1A7043695CDF"},"12034":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:42:21 GMT+0200 (Central Europe Daylight Time)"},"12035":{"date":{"__isSmartRef__":true,"id":12036},"author":"tessi","message":"","id":"27266C01-3C1A-49AC-ADAF-D4699D234741"},"12036":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:00 GMT+0200 (Central Europe Daylight Time)"},"12037":{"date":{"__isSmartRef__":true,"id":12038},"author":"tessi","message":"an ogre now talks some sentences when soliloquizing","id":"9B52F781-C25B-44D7-B07A-BF47EA424C08"},"12038":{"isSerializedDate":true,"string":"Sat Apr 21 2012 17:34:12 GMT+0200 (Central Europe Daylight Time)"},"12039":{"date":{"__isSmartRef__":true,"id":12040},"author":"lauritz","message":"no comment","id":"A49B0290-BC2D-4D41-9981-C0207ECC4EE5"},"12040":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:29:57 GMT+0200 (Central Europe Daylight Time)"},"12041":{"soliloquize":{"__isSmartRef__":true,"id":12042}},"12042":{"varMapping":{"__isSmartRef__":true,"id":12043},"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":12044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12043":{"this":{"__isSmartRef__":true,"id":12025}},"12044":{"timestamp":{"__isSmartRef__":true,"id":12045},"user":"lauritz","tags":[]},"12045":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:26:22 GMT+0200 (Central Europe Daylight Time)"},"12046":{"submorphs":[{"__isSmartRef__":true,"id":12047},{"__isSmartRef__":true,"id":13150},{"__isSmartRef__":true,"id":13179}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13255},"id":"3BA263A6-65D7-40BE-95D9-7ECA23959246","eventHandler":{"__isSmartRef__":true,"id":13256},"__layered_droppingEnabled__":false,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":13257},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":12047},"titleBar":{"__isSmartRef__":true,"id":13179},"collapsedTransform":{"__isSmartRef__":true,"id":13258},"expandedTransform":{"__isSmartRef__":true,"id":13259},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":13260},"name":"ObjectGroupEditor2","highlighted":true,"cameForward":false,"showsHalos":false,"isBeingDragged":false,"prevScroll":[0,0],"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","8B4BDA01-C023-405F-983C-BF7EB127DD1B"],"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":11954},"_Rotation":0,"_Scale":1.118439125731772,"__serializedExpressions__":["contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition","minSize","minExtent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13411},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(723.0,268.0)","expandedExtent":"lively.pt(729.0,365.0)","prevDragPos":"lively.pt(498.3,414.7)","expandedPosition":"lively.pt(26.0,125.0)","collapsedPosition":"lively.pt(21.0,92.9)","minSize":"lively.pt(500.0,300.0)","minExtent":"lively.pt(455.0,268.0)","_Position":"lively.pt(286.7,437.4)"},"12047":{"submorphs":[{"__isSmartRef__":true,"id":12048},{"__isSmartRef__":true,"id":12561},{"__isSmartRef__":true,"id":12567},{"__isSmartRef__":true,"id":12588},{"__isSmartRef__":true,"id":12282},{"__isSmartRef__":true,"id":12319},{"__isSmartRef__":true,"id":12614},{"__isSmartRef__":true,"id":12620},{"__isSmartRef__":true,"id":12677},{"__isSmartRef__":true,"id":12720},{"__isSmartRef__":true,"id":12901},{"__isSmartRef__":true,"id":12938}],"scripts":[{"__isSmartRef__":true,"id":13037}],"id":"CAD936ED-E8C5-4D02-93F1-CF916400F7F0","shape":{"__isSmartRef__":true,"id":13038},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":13039},"eventHandler":{"__isSmartRef__":true,"id":13042},"layout":{"__isSmartRef__":true,"id":13043},"target":{"__isSmartRef__":true,"id":12288},"scriptPane":{"__isSmartRef__":true,"id":12282},"scriptList":{"__isSmartRef__":true,"id":12048},"connectionList":{"__isSmartRef__":true,"id":12396},"morphSelector":{"__isSmartRef__":true,"id":12938},"changeIndicator":{"__isSmartRef__":true,"id":12319},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"tagChooser":{"__isSmartRef__":true,"id":12620},"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","EC990106-AC9D-4628-887B-2F9D829402AA"],"owner":{"__isSmartRef__":true,"id":12046},"partTests":{"__isSmartRef__":true,"id":13044},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":142,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13045},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(350.2,-3.2)","_Position":"lively.pt(1.0,21.5)"},"12048":{"submorphs":[],"scripts":[],"id":"941E5299-D835-4AB1-8EA2-E82C1D2AF3B0","shape":{"__isSmartRef__":true,"id":12049},"__layered_droppingEnabled__":false,"halosEnabled":true,"itemList":["-- ALL --"],"selectedLineNo":0,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":12050},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":12047},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":12051}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":12053},"doitContext":{"__isSmartRef__":true,"id":12054},"eventHandler":{"__isSmartRef__":true,"id":12552},"_FontSize":10,"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","39EAB9E1-15E5-4DE8-B742-AD41E69B1004"],"selection":"-- ALL --","changeTriggered":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12553},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,63.0)","distanceToDragEvent":"lively.pt(126.0,-14.4)"},"12049":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,169.5)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"12050":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12051":{"sourceObj":{"__isSmartRef__":true,"id":12048},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":12047},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12052},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12052":{"source":{"__isSmartRef__":true,"id":12048},"target":{"__isSmartRef__":true,"id":12047}},"12053":{"resizeHeight":true},"12054":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":12055},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":12056},"titleBar":{"__isSmartRef__":true,"id":12057},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":12122},"highlighted":true,"_Rotation":0,"_Scale":1,"showsHalos":false,"name":"ObjectEditor","target":{"__isSmartRef__":true,"id":12123},"partsBinMetaInfo":{"__isSmartRef__":true,"id":12281},"scriptList":{"__isSmartRef__":true,"id":12048},"scriptPane":{"__isSmartRef__":true,"id":12282},"classButton":{"__isSmartRef__":true,"id":12376},"connectionList":{"__isSmartRef__":true,"id":12396},"targetButton":{"__isSmartRef__":true,"id":12408},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"morphSelector":{"__isSmartRef__":true,"id":12426},"eventHandler":{"__isSmartRef__":true,"id":12499},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["contentOffset","expandedExtent","prevDragPos","expandedPosition","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12500},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","expandedExtent":"lively.pt(861.5,575.2)","prevDragPos":"lively.pt(613.0,129.0)","expandedPosition":"lively.pt(377.7,419.5)","_Position":"lively.pt(715.5,73.9)"},"12055":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":9.25,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Fill","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Extent":"lively.pt(981.0,585.2)","_BorderColor":"Color.rgb(0,0,0)"},"12056":{"adjustForNewBounds":true},"12057":{"submorphs":[{"__isSmartRef__":true,"id":12058},{"__isSmartRef__":true,"id":12063},{"__isSmartRef__":true,"id":12084},{"__isSmartRef__":true,"id":12099}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":12115},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12120},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":12054},"label":{"__isSmartRef__":true,"id":12058},"closeButton":{"__isSmartRef__":true,"id":12063},"menuButton":{"__isSmartRef__":true,"id":12084},"collapseButton":{"__isSmartRef__":true,"id":12099},"owner":null,"name":"ObjectEditorTitleBar","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":12121},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"12058":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":12059},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":12060}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":12057},"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":12062},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"12059":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(922.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12060":{"style":{"__isSmartRef__":true,"id":12061},"chunkOwner":{"__isSmartRef__":true,"id":12058},"storedString":"","_id":"_426","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12061":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12062":{"morph":{"__isSmartRef__":true,"id":12058},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12063":{"submorphs":[{"__isSmartRef__":true,"id":12064}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":12069},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12070},"lighterFill":{"__isSmartRef__":true,"id":12075},"label":{"__isSmartRef__":true,"id":12064},"owner":{"__isSmartRef__":true,"id":12057},"layout":{"__isSmartRef__":true,"id":12080},"attributeConnections":[{"__isSmartRef__":true,"id":12081},{"__isSmartRef__":true,"id":12082}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":12083},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(961.0,3.0)"},"12064":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":12065},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":12066}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12063},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":12068},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"12065":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12066":{"style":{"__isSmartRef__":true,"id":12067},"chunkOwner":{"__isSmartRef__":true,"id":12064},"storedString":"","_id":"_725","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12067":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12068":{"morph":{"__isSmartRef__":true,"id":12064},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12069":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":12070},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"12070":{"stops":[{"__isSmartRef__":true,"id":12071},{"__isSmartRef__":true,"id":12072},{"__isSmartRef__":true,"id":12073},{"__isSmartRef__":true,"id":12074}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12071":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"12072":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12073":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12074":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"12075":{"stops":[{"__isSmartRef__":true,"id":12076},{"__isSmartRef__":true,"id":12077},{"__isSmartRef__":true,"id":12078},{"__isSmartRef__":true,"id":12079}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12076":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12077":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12078":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12079":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12080":{"moveHorizontal":true},"12081":{"sourceObj":{"__isSmartRef__":true,"id":12063},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12054},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12082":{"sourceObj":{"__isSmartRef__":true,"id":12063},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12054},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12083":{"morph":{"__isSmartRef__":true,"id":12063},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12084":{"submorphs":[{"__isSmartRef__":true,"id":12085}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":12090},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12070},"lighterFill":{"__isSmartRef__":true,"id":12091},"label":{"__isSmartRef__":true,"id":12085},"owner":{"__isSmartRef__":true,"id":12057},"attributeConnections":[{"__isSmartRef__":true,"id":12096},{"__isSmartRef__":true,"id":12097}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":12098},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"12085":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":12086},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":12087}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12084},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":12089},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"12086":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12087":{"style":{"__isSmartRef__":true,"id":12088},"chunkOwner":{"__isSmartRef__":true,"id":12085},"storedString":"","_id":"_726","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12088":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12089":{"morph":{"__isSmartRef__":true,"id":12085},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12090":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":12070},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"12091":{"stops":[{"__isSmartRef__":true,"id":12092},{"__isSmartRef__":true,"id":12093},{"__isSmartRef__":true,"id":12094},{"__isSmartRef__":true,"id":12095}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12092":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12093":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12094":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12095":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12096":{"sourceObj":{"__isSmartRef__":true,"id":12084},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12054},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12097":{"sourceObj":{"__isSmartRef__":true,"id":12084},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12054},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12098":{"morph":{"__isSmartRef__":true,"id":12084},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12099":{"submorphs":[{"__isSmartRef__":true,"id":12100}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":12105},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12070},"lighterFill":{"__isSmartRef__":true,"id":12106},"label":{"__isSmartRef__":true,"id":12100},"owner":{"__isSmartRef__":true,"id":12057},"layout":{"__isSmartRef__":true,"id":12111},"attributeConnections":[{"__isSmartRef__":true,"id":12112},{"__isSmartRef__":true,"id":12113}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":12114},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(942.0,3.0)"},"12100":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":12101},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":12102}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12099},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":12104},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"12101":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12102":{"style":{"__isSmartRef__":true,"id":12103},"chunkOwner":{"__isSmartRef__":true,"id":12100},"storedString":"","_id":"_727","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12103":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12104":{"morph":{"__isSmartRef__":true,"id":12100},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12105":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":12070},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"12106":{"stops":[{"__isSmartRef__":true,"id":12107},{"__isSmartRef__":true,"id":12108},{"__isSmartRef__":true,"id":12109},{"__isSmartRef__":true,"id":12110}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12107":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12108":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12109":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12110":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12111":{"moveHorizontal":true},"12112":{"sourceObj":{"__isSmartRef__":true,"id":12099},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12054},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12113":{"sourceObj":{"__isSmartRef__":true,"id":12099},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12054},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12114":{"morph":{"__isSmartRef__":true,"id":12099},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12115":{"_BorderWidth":2,"_Fill":{"__isSmartRef__":true,"id":12116},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(981.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"12116":{"stops":[{"__isSmartRef__":true,"id":12117},{"__isSmartRef__":true,"id":12118},{"__isSmartRef__":true,"id":12119}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,1,0,-1)"},"12117":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"12118":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(230,230,230)"},"12119":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"12120":{"resizeWidth":true,"adjustForNewBounds":true},"12121":{"morph":{"__isSmartRef__":true,"id":12057},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12122":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12123":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12124},"id":394,"textChunks":[{"__isSmartRef__":true,"id":12125}],"eventHandler":{"__isSmartRef__":true,"id":12127},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12128},"layout":{"__isSmartRef__":true,"id":12200},"doitContext":{"__isSmartRef__":true,"id":12201},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"12124":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,200.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"12125":{"style":{"__isSmartRef__":true,"id":12126},"chunkOwner":{"__isSmartRef__":true,"id":12123},"storedString":"","_id":"_728","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12126":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12127":{"morph":{"__isSmartRef__":true,"id":12123},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12128":{"submorphs":[{"__isSmartRef__":true,"id":12123},{"__isSmartRef__":true,"id":12129}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12197},"id":395,"eventHandler":{"__isSmartRef__":true,"id":12198},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":12199},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":12123},"titleBar":{"__isSmartRef__":true,"id":12129},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"cameForward":false,"showsHalos":false,"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1234.0,448.0)","contentOffset":"lively.pt(0.0,22.0)","prevDragPos":"lively.pt(1478.0,453.0)"},"12129":{"submorphs":[{"__isSmartRef__":true,"id":12130},{"__isSmartRef__":true,"id":12136},{"__isSmartRef__":true,"id":12159},{"__isSmartRef__":true,"id":12176}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12194},"id":396,"eventHandler":{"__isSmartRef__":true,"id":12195},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12196},"windowMorph":{"__isSmartRef__":true,"id":12128},"label":{"__isSmartRef__":true,"id":12130},"closeButton":{"__isSmartRef__":true,"id":12136},"menuButton":{"__isSmartRef__":true,"id":12159},"collapseButton":{"__isSmartRef__":true,"id":12176},"owner":{"__isSmartRef__":true,"id":12128},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"12130":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12131},"id":397,"textChunks":[{"__isSmartRef__":true,"id":12132}],"eventHandler":{"__isSmartRef__":true,"id":12134},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":12135},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":12129},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"12131":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12132":{"style":{"__isSmartRef__":true,"id":12133},"chunkOwner":{"__isSmartRef__":true,"id":12130},"storedString":"","_id":"_729","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12133":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12134":{"morph":{"__isSmartRef__":true,"id":12130},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12135":{"resizeWidth":true},"12136":{"submorphs":[{"__isSmartRef__":true,"id":12137}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12142},"id":398,"eventHandler":{"__isSmartRef__":true,"id":12148},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12143},"lighterFill":{"__isSmartRef__":true,"id":12149},"label":{"__isSmartRef__":true,"id":12137},"owner":{"__isSmartRef__":true,"id":12129},"layout":{"__isSmartRef__":true,"id":12154},"attributeConnections":[{"__isSmartRef__":true,"id":12155},{"__isSmartRef__":true,"id":12157}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"12137":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12138},"id":399,"textChunks":[{"__isSmartRef__":true,"id":12139}],"eventHandler":{"__isSmartRef__":true,"id":12141},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12136},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"12138":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12139":{"style":{"__isSmartRef__":true,"id":12140},"chunkOwner":{"__isSmartRef__":true,"id":12137},"storedString":"","_id":"_730","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12140":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12141":{"morph":{"__isSmartRef__":true,"id":12137},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12142":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":12143},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"12143":{"stops":[{"__isSmartRef__":true,"id":12144},{"__isSmartRef__":true,"id":12145},{"__isSmartRef__":true,"id":12146},{"__isSmartRef__":true,"id":12147}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12144":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"12145":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12146":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12147":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"12148":{"morph":{"__isSmartRef__":true,"id":12136},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12149":{"stops":[{"__isSmartRef__":true,"id":12150},{"__isSmartRef__":true,"id":12151},{"__isSmartRef__":true,"id":12152},{"__isSmartRef__":true,"id":12153}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12150":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12151":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12152":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12153":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12154":{"moveHorizontal":true},"12155":{"sourceObj":{"__isSmartRef__":true,"id":12136},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12128},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12156},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12156":{"source":{"__isSmartRef__":true,"id":12136},"target":{"__isSmartRef__":true,"id":12128}},"12157":{"sourceObj":{"__isSmartRef__":true,"id":12136},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12128},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12158},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12158":{"source":{"__isSmartRef__":true,"id":12136},"target":{"__isSmartRef__":true,"id":12128}},"12159":{"submorphs":[{"__isSmartRef__":true,"id":12160}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12165},"id":400,"eventHandler":{"__isSmartRef__":true,"id":12166},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12143},"lighterFill":{"__isSmartRef__":true,"id":12167},"label":{"__isSmartRef__":true,"id":12160},"owner":{"__isSmartRef__":true,"id":12129},"attributeConnections":[{"__isSmartRef__":true,"id":12172},{"__isSmartRef__":true,"id":12174}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"12160":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12161},"id":401,"textChunks":[{"__isSmartRef__":true,"id":12162}],"eventHandler":{"__isSmartRef__":true,"id":12164},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12159},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"12161":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12162":{"style":{"__isSmartRef__":true,"id":12163},"chunkOwner":{"__isSmartRef__":true,"id":12160},"storedString":"","_id":"_731","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12163":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12164":{"morph":{"__isSmartRef__":true,"id":12160},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12165":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":12143},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"12166":{"morph":{"__isSmartRef__":true,"id":12159},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12167":{"stops":[{"__isSmartRef__":true,"id":12168},{"__isSmartRef__":true,"id":12169},{"__isSmartRef__":true,"id":12170},{"__isSmartRef__":true,"id":12171}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12168":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12169":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12170":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12171":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12172":{"sourceObj":{"__isSmartRef__":true,"id":12159},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12128},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12173},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12173":{"source":{"__isSmartRef__":true,"id":12159},"target":{"__isSmartRef__":true,"id":12128}},"12174":{"sourceObj":{"__isSmartRef__":true,"id":12159},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12128},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12175},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12175":{"source":{"__isSmartRef__":true,"id":12159},"target":{"__isSmartRef__":true,"id":12128}},"12176":{"submorphs":[{"__isSmartRef__":true,"id":12177}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12182},"id":402,"eventHandler":{"__isSmartRef__":true,"id":12183},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12143},"lighterFill":{"__isSmartRef__":true,"id":12184},"label":{"__isSmartRef__":true,"id":12177},"owner":{"__isSmartRef__":true,"id":12129},"layout":{"__isSmartRef__":true,"id":12189},"attributeConnections":[{"__isSmartRef__":true,"id":12190},{"__isSmartRef__":true,"id":12192}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"12177":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12178},"id":403,"textChunks":[{"__isSmartRef__":true,"id":12179}],"eventHandler":{"__isSmartRef__":true,"id":12181},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12176},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"12178":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12179":{"style":{"__isSmartRef__":true,"id":12180},"chunkOwner":{"__isSmartRef__":true,"id":12177},"storedString":"","_id":"_732","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12180":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12181":{"morph":{"__isSmartRef__":true,"id":12177},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12182":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":12143},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"12183":{"morph":{"__isSmartRef__":true,"id":12176},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12184":{"stops":[{"__isSmartRef__":true,"id":12185},{"__isSmartRef__":true,"id":12186},{"__isSmartRef__":true,"id":12187},{"__isSmartRef__":true,"id":12188}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12185":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12186":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12187":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12188":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12189":{"moveHorizontal":true},"12190":{"sourceObj":{"__isSmartRef__":true,"id":12176},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12128},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12191},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12191":{"source":{"__isSmartRef__":true,"id":12176},"target":{"__isSmartRef__":true,"id":12128}},"12192":{"sourceObj":{"__isSmartRef__":true,"id":12176},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12128},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12193},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12193":{"source":{"__isSmartRef__":true,"id":12176},"target":{"__isSmartRef__":true,"id":12128}},"12194":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":12116},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"12195":{"morph":{"__isSmartRef__":true,"id":12129},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12196":{"resizeWidth":true,"adjustForNewBounds":true},"12197":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)"},"12198":{"morph":{"__isSmartRef__":true,"id":12128},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12199":{"adjustForNewBounds":true},"12200":{"resizeWidth":true,"resizeHeight":true},"12201":{"submorphs":[{"__isSmartRef__":true,"id":12202},{"__isSmartRef__":true,"id":12209}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12276},"id":361,"eventHandler":{"__isSmartRef__":true,"id":12277},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":12278},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":12202},"titleBar":{"__isSmartRef__":true,"id":12209},"collapsedTransform":{"__isSmartRef__":true,"id":12279},"expandedTransform":{"__isSmartRef__":true,"id":12280},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"state":"shutdown","__serializedExpressions__":["_Position","contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1131.0,79.0)","contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(500.0,22.0)","expandedExtent":"lively.pt(500.0,222.0)","prevDragPos":"lively.pt(1507.0,76.0)","expandedPosition":"lively.pt(1131.0,79.0)","collapsedPosition":"lively.pt(1131.0,79.0)"},"12202":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12203},"id":360,"textChunks":[{"__isSmartRef__":true,"id":12204}],"eventHandler":{"__isSmartRef__":true,"id":12206},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12201},"layout":{"__isSmartRef__":true,"id":12207},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":12208}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"charsReplaced":"","lastFindLoc":15,"__serializedExpressions__":["_Padding","_Position"],"textString":"undefined","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"12203":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"12204":{"style":{"__isSmartRef__":true,"id":12205},"chunkOwner":{"__isSmartRef__":true,"id":12202},"_id":"_8430","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12205":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12206":{"morph":{"__isSmartRef__":true,"id":12202},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12207":{"resizeWidth":true,"resizeHeight":true},"12208":{"sourceObj":{"__isSmartRef__":true,"id":12202},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":12202},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12209":{"submorphs":[{"__isSmartRef__":true,"id":12210},{"__isSmartRef__":true,"id":12216},{"__isSmartRef__":true,"id":12234},{"__isSmartRef__":true,"id":12251}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12269},"id":362,"eventHandler":{"__isSmartRef__":true,"id":12274},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12275},"windowMorph":{"__isSmartRef__":true,"id":12201},"label":{"__isSmartRef__":true,"id":12210},"closeButton":{"__isSmartRef__":true,"id":12216},"menuButton":{"__isSmartRef__":true,"id":12234},"collapseButton":{"__isSmartRef__":true,"id":12251},"owner":{"__isSmartRef__":true,"id":12201},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"12210":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12211},"id":363,"textChunks":[{"__isSmartRef__":true,"id":12212}],"eventHandler":{"__isSmartRef__":true,"id":12214},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":12215},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":12209},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"12211":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12212":{"style":{"__isSmartRef__":true,"id":12213},"chunkOwner":{"__isSmartRef__":true,"id":12210},"storedString":"","_id":"_733","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12213":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12214":{"morph":{"__isSmartRef__":true,"id":12210},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12215":{"resizeWidth":true},"12216":{"submorphs":[{"__isSmartRef__":true,"id":12217}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12222},"id":364,"eventHandler":{"__isSmartRef__":true,"id":12223},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12143},"lighterFill":{"__isSmartRef__":true,"id":12224},"label":{"__isSmartRef__":true,"id":12217},"owner":{"__isSmartRef__":true,"id":12209},"layout":{"__isSmartRef__":true,"id":12229},"attributeConnections":[{"__isSmartRef__":true,"id":12230},{"__isSmartRef__":true,"id":12232}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"12217":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12218},"id":365,"textChunks":[{"__isSmartRef__":true,"id":12219}],"eventHandler":{"__isSmartRef__":true,"id":12221},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12216},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"12218":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12219":{"style":{"__isSmartRef__":true,"id":12220},"chunkOwner":{"__isSmartRef__":true,"id":12217},"storedString":"","_id":"_734","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12220":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12221":{"morph":{"__isSmartRef__":true,"id":12217},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12222":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":12143},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"12223":{"morph":{"__isSmartRef__":true,"id":12216},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12224":{"stops":[{"__isSmartRef__":true,"id":12225},{"__isSmartRef__":true,"id":12226},{"__isSmartRef__":true,"id":12227},{"__isSmartRef__":true,"id":12228}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12225":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12226":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12227":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12228":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12229":{"moveHorizontal":true},"12230":{"sourceObj":{"__isSmartRef__":true,"id":12216},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12201},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12231},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12231":{"source":{"__isSmartRef__":true,"id":12216},"target":{"__isSmartRef__":true,"id":12201}},"12232":{"sourceObj":{"__isSmartRef__":true,"id":12216},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12201},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12233},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12233":{"source":{"__isSmartRef__":true,"id":12216},"target":{"__isSmartRef__":true,"id":12201}},"12234":{"submorphs":[{"__isSmartRef__":true,"id":12235}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12240},"id":366,"eventHandler":{"__isSmartRef__":true,"id":12241},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12143},"lighterFill":{"__isSmartRef__":true,"id":12242},"label":{"__isSmartRef__":true,"id":12235},"owner":{"__isSmartRef__":true,"id":12209},"attributeConnections":[{"__isSmartRef__":true,"id":12247},{"__isSmartRef__":true,"id":12249}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"12235":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12236},"id":367,"textChunks":[{"__isSmartRef__":true,"id":12237}],"eventHandler":{"__isSmartRef__":true,"id":12239},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12234},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"12236":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12237":{"style":{"__isSmartRef__":true,"id":12238},"chunkOwner":{"__isSmartRef__":true,"id":12235},"storedString":"","_id":"_735","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12238":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12239":{"morph":{"__isSmartRef__":true,"id":12235},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12240":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":12143},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"12241":{"morph":{"__isSmartRef__":true,"id":12234},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12242":{"stops":[{"__isSmartRef__":true,"id":12243},{"__isSmartRef__":true,"id":12244},{"__isSmartRef__":true,"id":12245},{"__isSmartRef__":true,"id":12246}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12243":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12244":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12245":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12246":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12247":{"sourceObj":{"__isSmartRef__":true,"id":12234},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12201},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12248},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12248":{"source":{"__isSmartRef__":true,"id":12234},"target":{"__isSmartRef__":true,"id":12201}},"12249":{"sourceObj":{"__isSmartRef__":true,"id":12234},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12201},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12250},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12250":{"source":{"__isSmartRef__":true,"id":12234},"target":{"__isSmartRef__":true,"id":12201}},"12251":{"submorphs":[{"__isSmartRef__":true,"id":12252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12257},"id":368,"eventHandler":{"__isSmartRef__":true,"id":12258},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12143},"lighterFill":{"__isSmartRef__":true,"id":12259},"label":{"__isSmartRef__":true,"id":12252},"owner":{"__isSmartRef__":true,"id":12209},"layout":{"__isSmartRef__":true,"id":12264},"attributeConnections":[{"__isSmartRef__":true,"id":12265},{"__isSmartRef__":true,"id":12267}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"12252":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12253},"id":369,"textChunks":[{"__isSmartRef__":true,"id":12254}],"eventHandler":{"__isSmartRef__":true,"id":12256},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12251},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"12253":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"12254":{"style":{"__isSmartRef__":true,"id":12255},"chunkOwner":{"__isSmartRef__":true,"id":12252},"storedString":"","_id":"_736","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12255":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12256":{"morph":{"__isSmartRef__":true,"id":12252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12257":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":12143},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"12258":{"morph":{"__isSmartRef__":true,"id":12251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12259":{"stops":[{"__isSmartRef__":true,"id":12260},{"__isSmartRef__":true,"id":12261},{"__isSmartRef__":true,"id":12262},{"__isSmartRef__":true,"id":12263}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12260":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12261":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12262":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12263":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12264":{"moveHorizontal":true},"12265":{"sourceObj":{"__isSmartRef__":true,"id":12251},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12201},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12266},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12266":{"source":{"__isSmartRef__":true,"id":12251},"target":{"__isSmartRef__":true,"id":12201}},"12267":{"sourceObj":{"__isSmartRef__":true,"id":12251},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12201},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12268},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12268":{"source":{"__isSmartRef__":true,"id":12251},"target":{"__isSmartRef__":true,"id":12201}},"12269":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":12270},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"12270":{"stops":[{"__isSmartRef__":true,"id":12271},{"__isSmartRef__":true,"id":12272},{"__isSmartRef__":true,"id":12273}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12271":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"12272":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(243,243,243)"},"12273":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"12274":{"morph":{"__isSmartRef__":true,"id":12209},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12275":{"resizeWidth":true,"adjustForNewBounds":true},"12276":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)","_Position":"lively.pt(0.0,0.0)"},"12277":{"morph":{"__isSmartRef__":true,"id":12201},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12278":{"adjustForNewBounds":true},"12279":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12280":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12281":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12282":{"submorphs":[],"scripts":[],"id":"53A45C57-EC09-4CAB-A9D9-77F10260C505","shape":{"__isSmartRef__":true,"id":12283},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":403.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":12284}],"layout":{"__isSmartRef__":true,"id":12286},"showsHalos":false,"prevScroll":[0,0],"name":"ObjectEditorScriptPane","charsReplaced":"// changed at Wed Jun 13 2012 16:23:24 GMT+0200 (CEST) by tessi \nthis.addScript(function foo() {\n return \"foo!\";\n}).tag([\"tagged\"]);\n\n\n// changed at Wed Jun 13 2012 16:26:48 GMT+0200 (CEST) by tessi \nthis.addScript(function baz() {\n return \"icke\"\n}).tag([\"due\"])","lastFindLoc":270,"partsBinMetaInfo":{"__isSmartRef__":true,"id":12287},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":2,"doitContext":{"__isSmartRef__":true,"id":12288},"savedTextString":"// changed at Wed Jun 13 2012 16:23:24 GMT+0200 (CEST) by tessi \nthis.addScript(function foo() {\n return \"foo!\";\n}).tag([\"tagged\"]);\n\n// changed at Wed Jun 13 2012 16:26:48 GMT+0200 (CEST) by tessi \nthis.addScript(function baz() {\n return \"icke\"\n}).tag([\"due\"])","_Align":"left","lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":12317},"attributeConnections":[{"__isSmartRef__":true,"id":12318},{"__isSmartRef__":true,"id":12333}],"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"],"_MinTextWidth":403.0285365288845,"_MinTextHeight":null,"lastSaveSource":"","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":12047},"isCopyMorphRef":true,"morphRefId":151,"statusMorph":{"__isSmartRef__":true,"id":12334},"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","C851C4A2-D70C-4EC5-BC60-F47D7B4FB512"],"owner":{"__isSmartRef__":true,"id":12047},"syntaxHighlightingWhileTyping":true,"#startLetters":"enable","_syntaxHighlightTimeout":17539,"previousSelection":[73,80],"_WordBreak":"break-all","_lastSyntaxHighlightTime":9,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"textString":"undefined","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12339},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(341.2,-18.3)","_Position":"lively.pt(200.0,40.0)"},"12283":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(405.0,196.6)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"12284":{"style":{"__isSmartRef__":true,"id":12285},"chunkOwner":{"__isSmartRef__":true,"id":12282},"_id":"_8432","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12285":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,128)"},"12286":{"resizeWidth":true,"resizeHeight":true},"12287":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12288":{"__multi_selection_proxy__":true,"targets":[{"__isSmartRef__":true,"id":12025},{"__isSmartRef__":true,"id":12010}],"highlights":[],"name":"Villains","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12289}},"12289":{"setName":{"__isSmartRef__":true,"id":12290},"getName":{"__isSmartRef__":true,"id":12293},"push":{"__isSmartRef__":true,"id":12296},"getFunction":{"__isSmartRef__":true,"id":12299},"targetFunctions":{"__isSmartRef__":true,"id":12302},"privateTargetFunctions":{"__isSmartRef__":true,"id":12305},"highlight":{"__isSmartRef__":true,"id":12308},"removeHighlight":{"__isSmartRef__":true,"id":12311},"addScript":{"__isSmartRef__":true,"id":12314}},"12290":{"varMapping":{"__isSmartRef__":true,"id":12291},"source":"function (n) {\n this.name = n\n }","funcProperties":{"__isSmartRef__":true,"id":12292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12291":{"this":{"__isSmartRef__":true,"id":12288}},"12292":{},"12293":{"varMapping":{"__isSmartRef__":true,"id":12294},"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":12295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12294":{"this":{"__isSmartRef__":true,"id":12288}},"12295":{},"12296":{"varMapping":{"__isSmartRef__":true,"id":12297},"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":12298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12297":{"this":{"__isSmartRef__":true,"id":12288}},"12298":{},"12299":{"varMapping":{"__isSmartRef__":true,"id":12300},"source":"function (name) {\n var funcs = this.privateTargetFunctions()\n return funcs.find(function(f) { return f[0] === name })[1]\n }","funcProperties":{"__isSmartRef__":true,"id":12301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12300":{"this":{"__isSmartRef__":true,"id":12288}},"12301":{},"12302":{"varMapping":{"__isSmartRef__":true,"id":12303},"source":"function () {\n var funcs = this.privateTargetFunctions()\n return funcs.collect(function(f) { return f[0] });\n }","funcProperties":{"__isSmartRef__":true,"id":12304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12303":{"this":{"__isSmartRef__":true,"id":12288}},"12304":{},"12305":{"varMapping":{"__isSmartRef__":true,"id":12306},"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":12307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12306":{"this":{"__isSmartRef__":true,"id":12288}},"12307":{},"12308":{"varMapping":{"__isSmartRef__":true,"id":12309},"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":12310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12309":{"this":{"__isSmartRef__":true,"id":12288}},"12310":{},"12311":{"varMapping":{"__isSmartRef__":true,"id":12312},"source":"function () {\n this.highlights.each(function (h) {\n h.remove()\n })\n this.highlights = []\n }","funcProperties":{"__isSmartRef__":true,"id":12313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12312":{"this":{"__isSmartRef__":true,"id":12288}},"12313":{},"12314":{"varMapping":{"__isSmartRef__":true,"id":12315},"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":12316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12315":{"this":{"__isSmartRef__":true,"id":12288}},"12316":{},"12317":{"morph":{"__isSmartRef__":true,"id":12282},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12318":{"sourceObj":{"__isSmartRef__":true,"id":12282},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":12319},"targetMethodName":"indicateUnsavedChanges","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12319":{"submorphs":[],"scripts":[],"id":"E5F334BF-8067-4A06-9134-4841DF298CD9","shape":{"__isSmartRef__":true,"id":12320},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":12321},"eventHandler":{"__isSmartRef__":true,"id":12322},"owner":{"__isSmartRef__":true,"id":12047},"layout":{"__isSmartRef__":true,"id":12323},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"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","3DCD336D-EDD9-468F-B674-BAD72F189FB1"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","savedColor","alarmColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12324},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(597.0,40.0)","savedColor":"Color.rgb(0,0,0)","alarmColor":"Color.rgb(240,0,0)","distanceToDragEvent":"lively.pt(37.3,-17.5)"},"12320":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(8.6,9.7)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"12321":{"partsSpaceName":"PartsBin/Basic","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","__SourceModuleName__":"Global.lively.PartsBin"},"12322":{"morph":{"__isSmartRef__":true,"id":12319},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12323":{"moveHorizontal":true,"adjustForNewBounds":true},"12324":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":12325},"setColors":{"__isSmartRef__":true,"id":12329}},"12325":{"varMapping":{"__isSmartRef__":true,"id":12326},"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":12327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12326":{"this":{"__isSmartRef__":true,"id":12319}},"12327":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12328}},"12328":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (Central Europe Daylight Time)"},"12329":{"varMapping":{"__isSmartRef__":true,"id":12330},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":12331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12330":{"this":{"__isSmartRef__":true,"id":12319}},"12331":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":12332}},"12332":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (Central Europe Daylight Time)"},"12333":{"sourceObj":{"__isSmartRef__":true,"id":12282},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":12282},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12334":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12335},"id":553,"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":12336}],"eventHandler":{"__isSmartRef__":true,"id":12338},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","owner":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(295.5,225.3)","_TextColor":"Color.rgb(0,204,0)"},"12335":{"_ClipMode":"visible","_BorderWidth":1,"_StrokeOpacity":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,25.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)"},"12336":{"style":{"__isSmartRef__":true,"id":12337},"chunkOwner":{"__isSmartRef__":true,"id":12334},"storedString":"saved source","_id":"_234","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12337":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12338":{"morph":{"__isSmartRef__":true,"id":12334},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12339":{"doSave":{"__isSmartRef__":true,"id":12340},"boundEval":{"__isSmartRef__":true,"id":12348},"reset":{"__isSmartRef__":true,"id":12356},"display":{"__isSmartRef__":true,"id":12360},"hasChanged":{"__isSmartRef__":true,"id":12364},"setTarget":{"__isSmartRef__":true,"id":12368},"displayStatus":{"__isSmartRef__":true,"id":12372}},"12340":{"varMapping":{"__isSmartRef__":true,"id":12341},"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":12346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12341":{"this":{"__isSmartRef__":true,"id":12282},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12342}},"12342":{"$super":{"__isSmartRef__":true,"id":12343}},"12343":{"varMapping":{"__isSmartRef__":true,"id":12344},"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":12345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12344":{"obj":{"__isSmartRef__":true,"id":12282},"name":"doSave"},"12345":{},"12346":{"timestamp":{"__isSmartRef__":true,"id":12347},"user":"lauritz"},"12347":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (Central Europe Standard Time)"},"12348":{"varMapping":{"__isSmartRef__":true,"id":12349},"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":12354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12349":{"this":{"__isSmartRef__":true,"id":12282},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12350}},"12350":{"$super":{"__isSmartRef__":true,"id":12351}},"12351":{"varMapping":{"__isSmartRef__":true,"id":12352},"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":12353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12352":{"obj":{"__isSmartRef__":true,"id":12282},"name":"boundEval"},"12353":{},"12354":{"timestamp":{"__isSmartRef__":true,"id":12355},"user":"timfelgentreff","tags":[]},"12355":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:42:56 GMT+0200 (Central Europe Daylight Time)"},"12356":{"varMapping":{"__isSmartRef__":true,"id":12357},"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":12358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12357":{"this":{"__isSmartRef__":true,"id":12282}},"12358":{"timestamp":{"__isSmartRef__":true,"id":12359},"user":"cschuster","tags":[]},"12359":{"isSerializedDate":true,"string":"Wed May 16 2012 20:52:57 GMT+0200 (Central Europe Daylight Time)"},"12360":{"varMapping":{"__isSmartRef__":true,"id":12361},"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":12362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12361":{"this":{"__isSmartRef__":true,"id":12282}},"12362":{"timestamp":{"__isSmartRef__":true,"id":12363},"user":"lauritz","categories":[]},"12363":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (Central Europe Daylight Time)"},"12364":{"varMapping":{"__isSmartRef__":true,"id":12365},"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":12366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12365":{"this":{"__isSmartRef__":true,"id":12282}},"12366":{"timestamp":{"__isSmartRef__":true,"id":12367},"user":"lauritz","categories":[]},"12367":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (Central Europe Daylight Time)"},"12368":{"varMapping":{"__isSmartRef__":true,"id":12369},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":12370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12369":{"this":{"__isSmartRef__":true,"id":12282}},"12370":{"timestamp":{"__isSmartRef__":true,"id":12371},"user":"timfelgentreff","tags":[]},"12371":{"isSerializedDate":true,"string":"Thu Jun 07 2012 09:46:09 GMT+0200 (Central Europe Daylight Time)"},"12372":{"varMapping":{"__isSmartRef__":true,"id":12373},"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":12374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12373":{"this":{"__isSmartRef__":true,"id":12282}},"12374":{"timestamp":{"__isSmartRef__":true,"id":12375},"user":"lauritz","categories":[]},"12375":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (Central Europe Standard Time)"},"12376":{"submorphs":[{"__isSmartRef__":true,"id":12377}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":12382},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12383},"lighterFill":{"__isSmartRef__":true,"id":12388},"label":{"__isSmartRef__":true,"id":12377},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":12393},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":12394},"eventHandler":{"__isSmartRef__":true,"id":12395},"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(820.0,9.0)","padding":"lively.rect(5,0,0,0)"},"12377":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":12378},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":12376},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":12379}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":12381},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"12378":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,18.0)","_BorderColor":"Color.rgb(0,0,0)"},"12379":{"style":{"__isSmartRef__":true,"id":12380},"chunkOwner":{"__isSmartRef__":true,"id":12377},"storedString":"","_id":"_737","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12380":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12381":{"morph":{"__isSmartRef__":true,"id":12377},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12382":{"_Fill":{"__isSmartRef__":true,"id":12383},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"12383":{"stops":[{"__isSmartRef__":true,"id":12384},{"__isSmartRef__":true,"id":12385},{"__isSmartRef__":true,"id":12386},{"__isSmartRef__":true,"id":12387}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12384":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"12385":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12386":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12387":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"12388":{"stops":[{"__isSmartRef__":true,"id":12389},{"__isSmartRef__":true,"id":12390},{"__isSmartRef__":true,"id":12391},{"__isSmartRef__":true,"id":12392}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12389":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12390":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12391":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12392":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12393":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12394":{"moveHorizontal":true},"12395":{"morph":{"__isSmartRef__":true,"id":12376},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12396":{"submorphs":[],"scripts":[],"id":"01629635-B1A5-4223-ACB6-A17AE289CE05","shape":{"__isSmartRef__":true,"id":12397},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":["-- ALL --"],"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":12398},"_ClipMode":"auto","owner":null,"attributeConnections":[{"__isSmartRef__":true,"id":12399}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":12401},"eventHandler":{"__isSmartRef__":true,"id":12402},"_FontSize":10,"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"],"_Rotation":0,"_Scale":1,"changeTriggered":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12403},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,441.6)","distanceToDragEvent":"lively.pt(125.0,-17.1)"},"12397":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,74.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"12398":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12399":{"sourceObj":{"__isSmartRef__":true,"id":12396},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":12047},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12400},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12400":{"source":{"__isSmartRef__":true,"id":12396},"target":{"__isSmartRef__":true,"id":12047}},"12401":{"resizeHeight":false,"moveVertical":true},"12402":{"morph":{"__isSmartRef__":true,"id":12396},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12403":{"preselectItem":{"__isSmartRef__":true,"id":12404}},"12404":{"varMapping":{"__isSmartRef__":true,"id":12405},"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":12406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12405":{"this":{"__isSmartRef__":true,"id":12396}},"12406":{"timestamp":{"__isSmartRef__":true,"id":12407},"user":"lauritz"},"12407":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (Central Europe Standard Time)"},"12408":{"submorphs":[{"__isSmartRef__":true,"id":12409}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":12413},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12414},"lighterFill":{"__isSmartRef__":true,"id":12419},"label":{"__isSmartRef__":true,"id":12409},"attributeConnections":[{"__isSmartRef__":true,"id":12424}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":12425},"_Scale":1,"owner":null,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(215.0,35.0)","padding":"lively.rect(5,0,0,0)"},"12409":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":12410},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":12408},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":12411}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"12410":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(0,0,0)"},"12411":{"style":{"__isSmartRef__":true,"id":12412},"chunkOwner":{"__isSmartRef__":true,"id":12409},"storedString":"","_id":"_738","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12412":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12413":{"_Fill":{"__isSmartRef__":true,"id":12414},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"12414":{"stops":[{"__isSmartRef__":true,"id":12415},{"__isSmartRef__":true,"id":12416},{"__isSmartRef__":true,"id":12417},{"__isSmartRef__":true,"id":12418}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12415":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"12416":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12417":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12418":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"12419":{"stops":[{"__isSmartRef__":true,"id":12420},{"__isSmartRef__":true,"id":12421},{"__isSmartRef__":true,"id":12422},{"__isSmartRef__":true,"id":12423}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12420":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12421":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12422":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12423":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12424":{"sourceObj":{"__isSmartRef__":true,"id":12408},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12054},"targetMethodName":"chooseTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12425":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12426":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":12427},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":218,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":12428},"textChunks":[{"__isSmartRef__":true,"id":12429}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":12431}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"_Align":"left","eventHandler":{"__isSmartRef__":true,"id":12433},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":12434},"selection":{"__isSmartRef__":true,"id":12046},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":12453},"_Rotation":0,"_Scale":1,"savedTextString":"100","__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12454},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(200.0,10.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(153.9,-23.7)"},"12427":{"fill":null,"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(244,244,244)"},"12428":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12429":{"style":{"__isSmartRef__":true,"id":12430},"chunkOwner":{"__isSmartRef__":true,"id":12426},"storedString":"","_id":"_739","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12430":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12431":{"sourceObj":{"__isSmartRef__":true,"id":12426},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":12047},"targetMethodName":"setTarget","converterString":"function (name) { return $world.get(name)}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12432},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12432":{"source":{"__isSmartRef__":true,"id":12426},"target":{"__isSmartRef__":true,"id":12047}},"12433":{"morph":{"__isSmartRef__":true,"id":12426},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12434":{"createListMorph":{"__isSmartRef__":true,"id":12435},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":12437},"onMouseUp":{"__isSmartRef__":true,"id":12439},"resetConnections":{"__isSmartRef__":true,"id":12441},"setTargetToListSelection":{"__isSmartRef__":true,"id":12443},"setTargetOfPane":{"__isSmartRef__":true,"id":12445},"onBlur":{"__isSmartRef__":true,"id":12447},"reset":{"__isSmartRef__":true,"id":12449},"onMouseDown":{"__isSmartRef__":true,"id":12451}},"12435":{"time":{"__isSmartRef__":true,"id":12436},"user":"lauritz"},"12436":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (Central Europe Daylight Time)"},"12437":{"time":{"__isSmartRef__":true,"id":12438},"user":"lauritz"},"12438":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (Central Europe Daylight Time)"},"12439":{"time":{"__isSmartRef__":true,"id":12440},"user":"lauritz"},"12440":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (Central Europe Daylight Time)"},"12441":{"time":{"__isSmartRef__":true,"id":12442},"user":"lauritz"},"12442":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (Central Europe Daylight Time)"},"12443":{"time":{"__isSmartRef__":true,"id":12444},"user":"lauritz"},"12444":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (Central Europe Daylight Time)"},"12445":{"time":{"__isSmartRef__":true,"id":12446},"user":"lauritz"},"12446":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (Central Europe Daylight Time)"},"12447":{"time":{"__isSmartRef__":true,"id":12448},"user":"lauritz"},"12448":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (Central Europe Daylight Time)"},"12449":{"time":{"__isSmartRef__":true,"id":12450},"user":"lauritz"},"12450":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (Central Europe Daylight Time)"},"12451":{"time":{"__isSmartRef__":true,"id":12452},"user":"lauritz"},"12452":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (Central Europe Daylight Time)"},"12453":{},"12454":{"getList":{"__isSmartRef__":true,"id":12455},"setList":{"__isSmartRef__":true,"id":12458},"reset":{"__isSmartRef__":true,"id":12461},"example":{"__isSmartRef__":true,"id":12464},"removeList":{"__isSmartRef__":true,"id":12467},"onBlur":{"__isSmartRef__":true,"id":12470},"createListMorph":{"__isSmartRef__":true,"id":12477},"resetConnections":{"__isSmartRef__":true,"id":12480},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":12483},"setTargetToListSelection":{"__isSmartRef__":true,"id":12486},"setTargetOfPane":{"__isSmartRef__":true,"id":12489},"onMouseDown":{"__isSmartRef__":true,"id":12492}},"12455":{"varMapping":{"__isSmartRef__":true,"id":12456},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":12457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12456":{"this":{"__isSmartRef__":true,"id":12426}},"12457":{},"12458":{"varMapping":{"__isSmartRef__":true,"id":12459},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":12460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12459":{"this":{"__isSmartRef__":true,"id":12426}},"12460":{},"12461":{"varMapping":{"__isSmartRef__":true,"id":12462},"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":12463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12462":{"this":{"__isSmartRef__":true,"id":12426}},"12463":{},"12464":{"varMapping":{"__isSmartRef__":true,"id":12465},"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":12466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12465":{"this":{"__isSmartRef__":true,"id":12426}},"12466":{},"12467":{"varMapping":{"__isSmartRef__":true,"id":12468},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12468":{"this":{"__isSmartRef__":true,"id":12426}},"12469":{},"12470":{"varMapping":{"__isSmartRef__":true,"id":12471},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":12476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12471":{"this":{"__isSmartRef__":true,"id":12426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12472}},"12472":{"$super":{"__isSmartRef__":true,"id":12473}},"12473":{"varMapping":{"__isSmartRef__":true,"id":12474},"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":12475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12474":{"obj":{"__isSmartRef__":true,"id":12426},"name":"onBlur"},"12475":{},"12476":{},"12477":{"varMapping":{"__isSmartRef__":true,"id":12478},"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":12479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12478":{"this":{"__isSmartRef__":true,"id":12426}},"12479":{},"12480":{"varMapping":{"__isSmartRef__":true,"id":12481},"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":12482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12481":{"this":{"__isSmartRef__":true,"id":12426}},"12482":{},"12483":{"varMapping":{"__isSmartRef__":true,"id":12484},"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":12485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12484":{"this":{"__isSmartRef__":true,"id":12426}},"12485":{},"12486":{"varMapping":{"__isSmartRef__":true,"id":12487},"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":12488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12487":{"this":{"__isSmartRef__":true,"id":12426}},"12488":{},"12489":{"varMapping":{"__isSmartRef__":true,"id":12490},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":12491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12490":{"this":{"__isSmartRef__":true,"id":12426}},"12491":{},"12492":{"varMapping":{"__isSmartRef__":true,"id":12493},"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":12498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12493":{"this":{"__isSmartRef__":true,"id":12426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12494}},"12494":{"$super":{"__isSmartRef__":true,"id":12495}},"12495":{"varMapping":{"__isSmartRef__":true,"id":12496},"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":12497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12496":{"obj":{"__isSmartRef__":true,"id":12426},"name":"onMouseDown"},"12497":{},"12498":{},"12499":{"morph":{"__isSmartRef__":true,"id":12054},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12500":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":12501},"setTarget":{"__isSmartRef__":true,"id":12504},"generateSourceForScript":{"__isSmartRef__":true,"id":12507},"generateSourceForConnection":{"__isSmartRef__":true,"id":12510},"generateTargetCode":{"__isSmartRef__":true,"id":12513},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":12516},"displayJavaScriptSource":{"__isSmartRef__":true,"id":12519},"displaySourceForScript":{"__isSmartRef__":true,"id":12522},"displaySourceForConnection":{"__isSmartRef__":true,"id":12525},"newScript":{"__isSmartRef__":true,"id":12528},"newConnection":{"__isSmartRef__":true,"id":12531},"deleteSelectedScript":{"__isSmartRef__":true,"id":12534},"disconnectConnection":{"__isSmartRef__":true,"id":12537},"updateLists":{"__isSmartRef__":true,"id":12540},"displayInitialScript":{"__isSmartRef__":true,"id":12543},"reset":{"__isSmartRef__":true,"id":12546},"selectChangedContent":{"__isSmartRef__":true,"id":12549}},"12501":{"varMapping":{"__isSmartRef__":true,"id":12502},"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":12503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12502":{"this":{"__isSmartRef__":true,"id":12054}},"12503":{},"12504":{"varMapping":{"__isSmartRef__":true,"id":12505},"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":12506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12505":{"this":{"__isSmartRef__":true,"id":12054}},"12506":{},"12507":{"varMapping":{"__isSmartRef__":true,"id":12508},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":12509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12508":{"this":{"__isSmartRef__":true,"id":12054}},"12509":{},"12510":{"varMapping":{"__isSmartRef__":true,"id":12511},"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":12512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12511":{"this":{"__isSmartRef__":true,"id":12054}},"12512":{},"12513":{"varMapping":{"__isSmartRef__":true,"id":12514},"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":12515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12514":{"this":{"__isSmartRef__":true,"id":12054}},"12515":{},"12516":{"varMapping":{"__isSmartRef__":true,"id":12517},"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":12518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12517":{"this":{"__isSmartRef__":true,"id":12054}},"12518":{},"12519":{"varMapping":{"__isSmartRef__":true,"id":12520},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":12521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12520":{"this":{"__isSmartRef__":true,"id":12054}},"12521":{},"12522":{"varMapping":{"__isSmartRef__":true,"id":12523},"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":12524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12523":{"this":{"__isSmartRef__":true,"id":12054}},"12524":{},"12525":{"varMapping":{"__isSmartRef__":true,"id":12526},"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":12527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12526":{"this":{"__isSmartRef__":true,"id":12054}},"12527":{},"12528":{"varMapping":{"__isSmartRef__":true,"id":12529},"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":12530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12529":{"this":{"__isSmartRef__":true,"id":12054}},"12530":{},"12531":{"varMapping":{"__isSmartRef__":true,"id":12532},"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":12533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12532":{"this":{"__isSmartRef__":true,"id":12054}},"12533":{},"12534":{"varMapping":{"__isSmartRef__":true,"id":12535},"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":12536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12535":{"this":{"__isSmartRef__":true,"id":12054}},"12536":{},"12537":{"varMapping":{"__isSmartRef__":true,"id":12538},"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":12539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12538":{"this":{"__isSmartRef__":true,"id":12054}},"12539":{},"12540":{"varMapping":{"__isSmartRef__":true,"id":12541},"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":12542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12541":{"this":{"__isSmartRef__":true,"id":12054}},"12542":{},"12543":{"varMapping":{"__isSmartRef__":true,"id":12544},"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":12545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12544":{"this":{"__isSmartRef__":true,"id":12054}},"12545":{},"12546":{"varMapping":{"__isSmartRef__":true,"id":12547},"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":12548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12547":{"this":{"__isSmartRef__":true,"id":12054}},"12548":{},"12549":{"varMapping":{"__isSmartRef__":true,"id":12550},"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 ' + 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":12717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12712":{"this":{"__isSmartRef__":true,"id":12696},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12713}},"12713":{"$super":{"__isSmartRef__":true,"id":12714}},"12714":{"varMapping":{"__isSmartRef__":true,"id":12715},"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":12716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12715":{"obj":{"__isSmartRef__":true,"id":12696},"name":"morphMenuItems"},"12716":{},"12717":{},"12718":{"morph":{"__isSmartRef__":true,"id":12677},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12719":{"centeredHorizontal":false,"moveHorizontal":true},"12720":{"submorphs":[{"__isSmartRef__":true,"id":12721},{"__isSmartRef__":true,"id":12728}],"scripts":[],"id":"60F25921-DE88-4B14-89E5-811EE8E230A9","shape":{"__isSmartRef__":true,"id":12731},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12732},"lighterFill":{"__isSmartRef__":true,"id":12737},"label":{"__isSmartRef__":true,"id":12721},"name":"MagnifierButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":12742},"attributeConnections":[{"__isSmartRef__":true,"id":12745}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":12746},"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","DC44CBF5-1303-4D4A-B0BC-A1845C31C3F3"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":12047},"highlightRectangle":{"__isSmartRef__":true,"id":12747},"isCopyMorphRef":true,"morphRefId":1,"#startLetters":"highlightRectangle","prevScroll":[0,0],"isPressed":false,"_Rotation":0,"_Scale":0.9920279440699439,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12828},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(464.5,8.5)","distanceToDragEvent":"lively.pt(37.9,-7.9)"},"12721":{"submorphs":[],"scripts":[],"id":"AB69D436-D910-49C5-90DA-A7A76530BF12","shape":{"__isSmartRef__":true,"id":12722},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":24,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":12720},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":12723},{"__isSmartRef__":true,"id":12725}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":12727},"_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","AFA4C07C-7056-4D2B-BCCC-65533AAEF572"],"_MinTextWidth":24,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"12722":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"12723":{"style":{"__isSmartRef__":true,"id":12724},"chunkOwner":{"__isSmartRef__":true,"id":12721},"storedString":"","_id":"_740","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12724":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12725":{"style":{"__isSmartRef__":true,"id":12726},"chunkOwner":{"__isSmartRef__":true,"id":12721},"storedString":"","_id":"_741","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12726":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12727":{"morph":{"__isSmartRef__":true,"id":12721},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12728":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12729},"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","32F48414-9902-49CC-B89F-B70C7188F5E5"],"id":"09BE3C2B-88A1-48E1-8B48-EFCC5BEA4E39","eventHandler":{"__isSmartRef__":true,"id":12730},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":12720},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","isCopyMorphRef":true,"morphRefId":161,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-3.0,0.0)","distanceToDragEvent":"lively.pt(39.9,-9.0)"},"12729":{"_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==","_NodeClass":["image"],"_NodeId":"29E543E0-AE93-493A-A694-FC1C330D0544","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(29.0,29.0)","_Padding":"lively.rect(0,0,0,0)"},"12730":{"morph":{"__isSmartRef__":true,"id":12728},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12731":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":12732},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"12732":{"stops":[{"__isSmartRef__":true,"id":12733},{"__isSmartRef__":true,"id":12734},{"__isSmartRef__":true,"id":12735},{"__isSmartRef__":true,"id":12736}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12733":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"12734":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12735":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12736":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"12737":{"stops":[{"__isSmartRef__":true,"id":12738},{"__isSmartRef__":true,"id":12739},{"__isSmartRef__":true,"id":12740},{"__isSmartRef__":true,"id":12741}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12738":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12739":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12740":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12741":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12742":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":12743}],"revisionOnLoad":154251,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12743":{"date":{"__isSmartRef__":true,"id":12744},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"12744":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (Central Europe Daylight Time)"},"12745":{"sourceObj":{"__isSmartRef__":true,"id":12720},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12720},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12746":{"morph":{"__isSmartRef__":true,"id":12720},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12747":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":12748},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":12749},"eventHandler":{"__isSmartRef__":true,"id":12790},"attributeConnections":[{"__isSmartRef__":true,"id":12791},{"__isSmartRef__":true,"id":12792},{"__isSmartRef__":true,"id":12793}],"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":12794},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"","eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","_Rotation":0,"_Scale":1.0060210561262526,"owner":null,"magnifierButton":{"__isSmartRef__":true,"id":12720},"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12799},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"12748":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.2597,"_BorderStyle":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(5000.0,3000.0)","_BorderColor":"Color.rgb(204,0,0)","_Fill":"Color.rgb(58,0,255)","_Padding":"lively.rect(0,0,0,0)"},"12749":{"partsSpaceName":"PartsBin/Tools","comment":"A rectangle which highlights the object under the first hand of the world","migrationLevel":4,"partName":"HighlightRectangle","changes":[{"__isSmartRef__":true,"id":12750},{"__isSmartRef__":true,"id":12752},{"__isSmartRef__":true,"id":12754},{"__isSmartRef__":true,"id":12756},{"__isSmartRef__":true,"id":12758},{"__isSmartRef__":true,"id":12760},{"__isSmartRef__":true,"id":12762},{"__isSmartRef__":true,"id":12764},{"__isSmartRef__":true,"id":12766},{"__isSmartRef__":true,"id":12768},{"__isSmartRef__":true,"id":12770},{"__isSmartRef__":true,"id":12772},{"__isSmartRef__":true,"id":12774},{"__isSmartRef__":true,"id":12776},{"__isSmartRef__":true,"id":12778},{"__isSmartRef__":true,"id":12780},{"__isSmartRef__":true,"id":12782},{"__isSmartRef__":true,"id":12784},{"__isSmartRef__":true,"id":12786},{"__isSmartRef__":true,"id":12788}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12750":{"date":{"__isSmartRef__":true,"id":12751},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"12751":{"isSerializedDate":true,"string":"Thu May 24 2012 17:04:54 GMT+0200 (Central Europe Daylight Time)"},"12752":{"date":{"__isSmartRef__":true,"id":12753},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"12753":{"isSerializedDate":true,"string":"Thu May 24 2012 16:57:13 GMT+0200 (Central Europe Daylight Time)"},"12754":{"date":{"__isSmartRef__":true,"id":12755},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"12755":{"isSerializedDate":true,"string":"Thu May 24 2012 16:23:11 GMT+0200 (Central Europe Daylight Time)"},"12756":{"date":{"__isSmartRef__":true,"id":12757},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"12757":{"isSerializedDate":true,"string":"Thu May 24 2012 14:46:08 GMT+0200 (Central Europe Daylight Time)"},"12758":{"date":{"__isSmartRef__":true,"id":12759},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"12759":{"isSerializedDate":true,"string":"Thu May 24 2012 14:39:50 GMT+0200 (Central Europe Daylight Time)"},"12760":{"date":{"__isSmartRef__":true,"id":12761},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"12761":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"12762":{"date":{"__isSmartRef__":true,"id":12763},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"12763":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"12764":{"date":{"__isSmartRef__":true,"id":12765},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"12765":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"12766":{"date":{"__isSmartRef__":true,"id":12767},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"12767":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"12768":{"date":{"__isSmartRef__":true,"id":12769},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"12769":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"12770":{"date":{"__isSmartRef__":true,"id":12771},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"12771":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"12772":{"date":{"__isSmartRef__":true,"id":12773},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"12773":{"isSerializedDate":true,"string":"Thu May 24 2012 13:58:01 GMT+0200 (Central Europe Daylight Time)"},"12774":{"date":{"__isSmartRef__":true,"id":12775},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"12775":{"isSerializedDate":true,"string":"Thu May 24 2012 14:07:32 GMT+0200 (Central Europe Daylight Time)"},"12776":{"date":{"__isSmartRef__":true,"id":12777},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"12777":{"isSerializedDate":true,"string":"Thu May 24 2012 15:34:59 GMT+0200 (Central Europe Daylight Time)"},"12778":{"date":{"__isSmartRef__":true,"id":12779},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"12779":{"isSerializedDate":true,"string":"Thu May 24 2012 16:34:29 GMT+0200 (Central Europe Daylight Time)"},"12780":{"date":{"__isSmartRef__":true,"id":12781},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"12781":{"isSerializedDate":true,"string":"Thu May 24 2012 16:45:49 GMT+0200 (Central Europe Daylight Time)"},"12782":{"date":{"__isSmartRef__":true,"id":12783},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"12783":{"isSerializedDate":true,"string":"Thu May 24 2012 16:47:20 GMT+0200 (Central Europe Daylight Time)"},"12784":{"date":{"__isSmartRef__":true,"id":12785},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"12785":{"isSerializedDate":true,"string":"Thu May 24 2012 16:51:06 GMT+0200 (Central Europe Daylight Time)"},"12786":{"date":{"__isSmartRef__":true,"id":12787},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"12787":{"isSerializedDate":true,"string":"Thu May 24 2012 16:52:10 GMT+0200 (Central Europe Daylight Time)"},"12788":{"date":{"__isSmartRef__":true,"id":12789},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"12789":{"isSerializedDate":true,"string":"Thu May 24 2012 16:59:39 GMT+0200 (Central Europe Daylight Time)"},"12790":{"morph":{"__isSmartRef__":true,"id":12747},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12791":{"sourceObj":{"__isSmartRef__":true,"id":12747},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":12747},"targetMethodName":"updateOnMove","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12792":{"sourceObj":{"__isSmartRef__":true,"id":12747},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":12720},"targetMethodName":"setTarget","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12793":{"sourceObj":{"__isSmartRef__":true,"id":12747},"sourceAttrName":"onKeyPress","targetObj":{"__isSmartRef__":true,"id":12720},"targetMethodName":"onRectangleKeyPress","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12794":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12795}},"12795":{"test01IsMorph":{"__isSmartRef__":true,"id":12796}},"12796":{"varMapping":{"__isSmartRef__":true,"id":12797},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":12798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12797":{"this":{"__isSmartRef__":true,"id":12794}},"12798":{},"12799":{"update":{"__isSmartRef__":true,"id":12800},"coveredMorph":{"__isSmartRef__":true,"id":12804},"updateOnMove":{"__isSmartRef__":true,"id":12808},"bringToFront":{"__isSmartRef__":true,"id":12812},"onKeyUp":{"__isSmartRef__":true,"id":12820}},"12800":{"varMapping":{"__isSmartRef__":true,"id":12801},"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":12802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12801":{"this":{"__isSmartRef__":true,"id":12747}},"12802":{"timestamp":{"__isSmartRef__":true,"id":12803},"user":"timfelgentreff","tags":[]},"12803":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:09:28 GMT+0200 (Central Europe Daylight Time)"},"12804":{"varMapping":{"__isSmartRef__":true,"id":12805},"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":12806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12805":{"this":{"__isSmartRef__":true,"id":12747}},"12806":{"timestamp":{"__isSmartRef__":true,"id":12807},"user":"timfelgentreff","tags":[]},"12807":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:40 GMT+0200 (Central Europe Daylight Time)"},"12808":{"varMapping":{"__isSmartRef__":true,"id":12809},"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":12810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12809":{"this":{"__isSmartRef__":true,"id":12747}},"12810":{"timestamp":{"__isSmartRef__":true,"id":12811},"user":"tessi","tags":[]},"12811":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:56:41 GMT+0200 (Central Europe Daylight Time)"},"12812":{"varMapping":{"__isSmartRef__":true,"id":12813},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000\n}","funcProperties":{"__isSmartRef__":true,"id":12818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12813":{"this":{"__isSmartRef__":true,"id":12747},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12814}},"12814":{"$super":{"__isSmartRef__":true,"id":12815}},"12815":{"varMapping":{"__isSmartRef__":true,"id":12816},"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":12817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12816":{"obj":{"__isSmartRef__":true,"id":12747},"name":"bringToFront"},"12817":{},"12818":{"timestamp":{"__isSmartRef__":true,"id":12819},"user":"lauritz","tags":[]},"12819":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:28:10 GMT+0200 (Central Europe Daylight Time)"},"12820":{"varMapping":{"__isSmartRef__":true,"id":12821},"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":12826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12821":{"this":{"__isSmartRef__":true,"id":12747},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12822}},"12822":{"$super":{"__isSmartRef__":true,"id":12823}},"12823":{"varMapping":{"__isSmartRef__":true,"id":12824},"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":12825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12824":{"obj":{"__isSmartRef__":true,"id":12747},"name":"onKeyUp"},"12825":{},"12826":{"timestamp":{"__isSmartRef__":true,"id":12827},"user":"tessi","tags":[]},"12827":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:10 GMT+0200 (Central Europe Daylight Time)"},"12828":{"onFire":{"__isSmartRef__":true,"id":12829},"onMouseMove":{"__isSmartRef__":true,"id":12833},"onMouseOut":{"__isSmartRef__":true,"id":12841},"reset":{"__isSmartRef__":true,"id":12849},"isTracking":{"__isSmartRef__":true,"id":12853},"isHighlighting":{"__isSmartRef__":true,"id":12857},"currentTarget":{"__isSmartRef__":true,"id":12861},"setTarget":{"__isSmartRef__":true,"id":12865},"currentTargetIsMultiSelection":{"__isSmartRef__":true,"id":12869},"newMultiSelection":{"__isSmartRef__":true,"id":12873},"newGreenRectangle":{"__isSmartRef__":true,"id":12877},"stopTracking":{"__isSmartRef__":true,"id":12881},"startTracking":{"__isSmartRef__":true,"id":12885},"stopHighlighting":{"__isSmartRef__":true,"id":12889},"startHighlighting":{"__isSmartRef__":true,"id":12893},"onRectangleKeyPress":{"__isSmartRef__":true,"id":12897}},"12829":{"varMapping":{"__isSmartRef__":true,"id":12830},"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":12831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12830":{"this":{"__isSmartRef__":true,"id":12720}},"12831":{"timestamp":{"__isSmartRef__":true,"id":12832},"user":"timfelgentreff","tags":[]},"12832":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:10:52 GMT+0200 (Central Europe Daylight Time)"},"12833":{"varMapping":{"__isSmartRef__":true,"id":12834},"source":"function onMouseMove(evt) {\n if (!this.isHighlighting()) {\n this.startHighlighting()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12834":{"this":{"__isSmartRef__":true,"id":12720},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12835}},"12835":{"$super":{"__isSmartRef__":true,"id":12836}},"12836":{"varMapping":{"__isSmartRef__":true,"id":12837},"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":12838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12837":{"obj":{"__isSmartRef__":true,"id":12720},"name":"onMouseMove"},"12838":{},"12839":{"timestamp":{"__isSmartRef__":true,"id":12840},"user":"timfelgentreff","tags":[]},"12840":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:53:50 GMT+0200 (Central Europe Daylight Time)"},"12841":{"varMapping":{"__isSmartRef__":true,"id":12842},"source":"function onMouseOut() {\n this.stopHighlighting()\n}","funcProperties":{"__isSmartRef__":true,"id":12847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12842":{"this":{"__isSmartRef__":true,"id":12720},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12843}},"12843":{"$super":{"__isSmartRef__":true,"id":12844}},"12844":{"varMapping":{"__isSmartRef__":true,"id":12845},"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":12846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12845":{"obj":{"__isSmartRef__":true,"id":12720},"name":"onMouseOut"},"12846":{},"12847":{"timestamp":{"__isSmartRef__":true,"id":12848},"user":"timfelgentreff","tags":[]},"12848":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:55:09 GMT+0200 (Central Europe Daylight Time)"},"12849":{"varMapping":{"__isSmartRef__":true,"id":12850},"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":12851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12850":{"this":{"__isSmartRef__":true,"id":12720}},"12851":{"timestamp":{"__isSmartRef__":true,"id":12852},"user":"tessi","tags":[]},"12852":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:54:48 GMT+0200 (Central Europe Daylight Time)"},"12853":{"varMapping":{"__isSmartRef__":true,"id":12854},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection\n}","funcProperties":{"__isSmartRef__":true,"id":12855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12854":{"this":{"__isSmartRef__":true,"id":12720}},"12855":{"timestamp":{"__isSmartRef__":true,"id":12856},"user":"lauritz","tags":["state"]},"12856":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:04:17 GMT+0200 (Central Europe Daylight Time)"},"12857":{"varMapping":{"__isSmartRef__":true,"id":12858},"source":"function isHighlighting() {\n return !!this.greenRectangle\n}","funcProperties":{"__isSmartRef__":true,"id":12859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12858":{"this":{"__isSmartRef__":true,"id":12720}},"12859":{"timestamp":{"__isSmartRef__":true,"id":12860},"user":"timfelgentreff","tags":["state"]},"12860":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:52:02 GMT+0200 (Central Europe Daylight Time)"},"12861":{"varMapping":{"__isSmartRef__":true,"id":12862},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":12863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12862":{"this":{"__isSmartRef__":true,"id":12720}},"12863":{"timestamp":{"__isSmartRef__":true,"id":12864},"user":"lauritz","tags":[]},"12864":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:26:02 GMT+0200 (Central Europe Daylight Time)"},"12865":{"varMapping":{"__isSmartRef__":true,"id":12866},"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":12867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12866":{"this":{"__isSmartRef__":true,"id":12720}},"12867":{"timestamp":{"__isSmartRef__":true,"id":12868},"user":"timfelgentreff","tags":["selecting"]},"12868":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:38:48 GMT+0200 (Central Europe Daylight Time)"},"12869":{"varMapping":{"__isSmartRef__":true,"id":12870},"source":"function currentTargetIsMultiSelection() {\n return !!(this.currentTarget() && this.currentTarget().__multi_selection_proxy__)\n}","funcProperties":{"__isSmartRef__":true,"id":12871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12870":{"this":{"__isSmartRef__":true,"id":12720}},"12871":{"timestamp":{"__isSmartRef__":true,"id":12872},"user":"tessi","tags":[]},"12872":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:31:43 GMT+0200 (Central Europe Daylight Time)"},"12873":{"varMapping":{"__isSmartRef__":true,"id":12874},"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 }\n\n Functions.own(ms).each(function (name) { ms[name].asScriptOf(ms, name) })\n return ms\n}","funcProperties":{"__isSmartRef__":true,"id":12875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12874":{"this":{"__isSmartRef__":true,"id":12720}},"12875":{"timestamp":{"__isSmartRef__":true,"id":12876},"user":"timfelgentreff","tags":[]},"12876":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:12:40 GMT+0200 (Central Europe Daylight Time)"},"12877":{"varMapping":{"__isSmartRef__":true,"id":12878},"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":12879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12878":{"this":{"__isSmartRef__":true,"id":12720}},"12879":{"timestamp":{"__isSmartRef__":true,"id":12880},"user":"timfelgentreff","tags":["hovering"]},"12880":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:50 GMT+0200 (Central Europe Daylight Time)"},"12881":{"varMapping":{"__isSmartRef__":true,"id":12882},"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":12883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12882":{"this":{"__isSmartRef__":true,"id":12720}},"12883":{"timestamp":{"__isSmartRef__":true,"id":12884},"user":"tessi","tags":[]},"12884":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:47:06 GMT+0200 (Central Europe Daylight Time)"},"12885":{"varMapping":{"__isSmartRef__":true,"id":12886},"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":12887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12886":{"this":{"__isSmartRef__":true,"id":12720}},"12887":{"timestamp":{"__isSmartRef__":true,"id":12888},"user":"tessi","tags":[]},"12888":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:45:33 GMT+0200 (Central Europe Daylight Time)"},"12889":{"varMapping":{"__isSmartRef__":true,"id":12890},"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":12891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12890":{"this":{"__isSmartRef__":true,"id":12720}},"12891":{"timestamp":{"__isSmartRef__":true,"id":12892},"user":"timfelgentreff","tags":["hovering"]},"12892":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:07:19 GMT+0200 (Central Europe Daylight Time)"},"12893":{"varMapping":{"__isSmartRef__":true,"id":12894},"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":12895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12894":{"this":{"__isSmartRef__":true,"id":12720}},"12895":{"timestamp":{"__isSmartRef__":true,"id":12896},"user":"tessi","tags":["hovering"]},"12896":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:30:59 GMT+0200 (Central Europe Daylight Time)"},"12897":{"varMapping":{"__isSmartRef__":true,"id":12898},"source":"function onRectangleKeyPress() {\n debugger\n}","funcProperties":{"__isSmartRef__":true,"id":12899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12898":{"this":{"__isSmartRef__":true,"id":12720}},"12899":{"timestamp":{"__isSmartRef__":true,"id":12900},"user":"tessi","tags":[]},"12900":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:40:02 GMT+0200 (Central Europe Daylight Time)"},"12901":{"submorphs":[{"__isSmartRef__":true,"id":12902},{"__isSmartRef__":true,"id":12907}],"scripts":[],"id":"CE1FAC52-4A19-4DD4-B63D-4C756FAD27B6","shape":{"__isSmartRef__":true,"id":12910},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12916},"lighterFill":{"__isSmartRef__":true,"id":12921},"label":{"__isSmartRef__":true,"id":12902},"name":"NameGroupButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":12926},"attributeConnections":[{"__isSmartRef__":true,"id":12931}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":12932},"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","94D98FE0-B431-499D-A806-CB8CB87259B0"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":12047},"_Visible":true,"isCopyMorphRef":true,"morphRefId":162,"isPressed":false,"_Rotation":0,"_Scale":0.990044880209748,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12933},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(490.0,9.5)","distanceToDragEvent":"lively.pt(69.1,-14.0)"},"12902":{"submorphs":[],"scripts":[],"id":"32A0BAC2-674E-4374-8BC6-0EA7DC0EF636","shape":{"__isSmartRef__":true,"id":12903},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":106.05027610358519,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":12901},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":12904}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":12906},"_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","DE8F1A25-16C0-465C-BA0E-20AD7042DA34"],"_MinTextWidth":106.05027610358519,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"12903":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(106.1,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"12904":{"style":{"__isSmartRef__":true,"id":12905},"chunkOwner":{"__isSmartRef__":true,"id":12902},"storedString":" Name group","_id":"_241","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12905":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12906":{"morph":{"__isSmartRef__":true,"id":12902},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12907":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12908},"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","58E30E5E-EC53-42E2-AD90-DEFEADAC573C"],"id":"D44BD658-3106-45F7-BA36-AAA334F6DF20","eventHandler":{"__isSmartRef__":true,"id":12909},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":12901},"name":"document_rename.png","showsHalos":false,"isCopyMorphRef":true,"morphRefId":163,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-0.9,3.0)","distanceToDragEvent":"lively.pt(39.0,-10.0)"},"12908":{"_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==","_NodeClass":["morph","image"],"_NodeId":"morph-59b9c10f-5e4e-48be-ac11-e220b20ea1a9","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,16.0)","_Padding":"lively.rect(0,0,0,0)"},"12909":{"morph":{"__isSmartRef__":true,"id":12907},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12910":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":12911},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(106.1,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"12911":{"stops":[{"__isSmartRef__":true,"id":12912},{"__isSmartRef__":true,"id":12913},{"__isSmartRef__":true,"id":12914},{"__isSmartRef__":true,"id":12915}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12912":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"12913":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"12914":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"12915":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"12916":{"stops":[{"__isSmartRef__":true,"id":12917},{"__isSmartRef__":true,"id":12918},{"__isSmartRef__":true,"id":12919},{"__isSmartRef__":true,"id":12920}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12917":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"12918":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12919":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12920":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"12921":{"stops":[{"__isSmartRef__":true,"id":12922},{"__isSmartRef__":true,"id":12923},{"__isSmartRef__":true,"id":12924},{"__isSmartRef__":true,"id":12925}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12922":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12923":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12924":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12925":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12926":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":12927},{"__isSmartRef__":true,"id":12929}],"revisionOnLoad":170561,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12927":{"date":{"__isSmartRef__":true,"id":12928},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"12928":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (Central Europe Daylight Time)"},"12929":{"date":{"__isSmartRef__":true,"id":12930},"author":"huberthesse","message":"Restore scriptable button","id":"7DCED89C-C162-4A42-94E3-6B4D2CBA4932"},"12930":{"isSerializedDate":true,"string":"Tue Jun 12 2012 11:12:07 GMT+0200 (Central Europe Daylight Time)"},"12931":{"sourceObj":{"__isSmartRef__":true,"id":12901},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12901},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12932":{"morph":{"__isSmartRef__":true,"id":12901},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12933":{"onFire":{"__isSmartRef__":true,"id":12934}},"12934":{"varMapping":{"__isSmartRef__":true,"id":12935},"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":12936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12935":{"this":{"__isSmartRef__":true,"id":12901}},"12936":{"timestamp":{"__isSmartRef__":true,"id":12937},"user":"timfelgentreff","tags":[]},"12937":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:04:34 GMT+0200 (Central Europe Daylight Time)"},"12938":{"submorphs":[{"__isSmartRef__":true,"id":12939}],"scripts":[],"id":"86C4D5B1-CDD6-4562-8E0D-2C1839807CF5","shape":{"__isSmartRef__":true,"id":12945},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12946},"lighterFill":{"__isSmartRef__":true,"id":12951},"label":{"__isSmartRef__":true,"id":12939},"showsHalos":false,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":12956},"list":[],"eventHandler":{"__isSmartRef__":true,"id":12957},"owner":{"__isSmartRef__":true,"id":12047},"textString":"","selection":{"__isSmartRef__":true,"id":12958},"_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","DC19EF7D-02BE-4889-B94E-9E56EB37E619"],"#startLetters":"getBounds()","isCopyMorphRef":true,"morphRefId":153,"isPressed":false,"_Rotation":0,"_Scale":1.0000000000000002,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12964},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(237.2,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"12939":{"submorphs":[],"scripts":[],"id":"C2A1EFEA-3474-4A8E-908A-343EA6149CAD","shape":{"__isSmartRef__":true,"id":12940},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":12938},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":12941}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":12943}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":12944},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":14,"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","EBB5DE1B-9CC4-41EF-A699-F0C5B8457980"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"12940":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"12941":{"style":{"__isSmartRef__":true,"id":12942},"chunkOwner":{"__isSmartRef__":true,"id":12939},"storedString":"Villains [2]","_id":"_242","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12942":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12943":{"sourceObj":{"__isSmartRef__":true,"id":12939},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":12938},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12944":{"morph":{"__isSmartRef__":true,"id":12939},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12945":{"_Fill":{"__isSmartRef__":true,"id":12946},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"12946":{"stops":[{"__isSmartRef__":true,"id":12947},{"__isSmartRef__":true,"id":12948},{"__isSmartRef__":true,"id":12949},{"__isSmartRef__":true,"id":12950}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12947":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"12948":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12949":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"12950":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"12951":{"stops":[{"__isSmartRef__":true,"id":12952},{"__isSmartRef__":true,"id":12953},{"__isSmartRef__":true,"id":12954},{"__isSmartRef__":true,"id":12955}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"12952":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"12953":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12954":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"12955":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"12956":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12957":{"morph":{"__isSmartRef__":true,"id":12938},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12958":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":12959},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":12960},"textChunks":[{"__isSmartRef__":true,"id":12961}],"eventHandler":{"__isSmartRef__":true,"id":12963},"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,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"12959":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"12960":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12961":{"style":{"__isSmartRef__":true,"id":12962},"chunkOwner":{"__isSmartRef__":true,"id":12958},"storedString":"","_id":"_742","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12962":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12963":{"morph":{"__isSmartRef__":true,"id":12958},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12964":{"createListMorph":{"__isSmartRef__":true,"id":12965},"removeList":{"__isSmartRef__":true,"id":12969},"reset":{"__isSmartRef__":true,"id":12973},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":12977},"onMouseDown":{"__isSmartRef__":true,"id":12981},"setTargetOfPane":{"__isSmartRef__":true,"id":12989},"setTargetToListSelection":{"__isSmartRef__":true,"id":12993},"onBlur":{"__isSmartRef__":true,"id":12997},"setTarget":{"__isSmartRef__":true,"id":13005},"setTargetOnSelection":{"__isSmartRef__":true,"id":13009},"getItems":{"__isSmartRef__":true,"id":13013},"createGroupTree":{"__isSmartRef__":true,"id":13017},"createWorldTree":{"__isSmartRef__":true,"id":13021},"highlightCurrentTarget":{"__isSmartRef__":true,"id":13025},"setHighlight":{"__isSmartRef__":true,"id":13029},"removeHighlight":{"__isSmartRef__":true,"id":13033}},"12965":{"varMapping":{"__isSmartRef__":true,"id":12966},"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":12967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12966":{"this":{"__isSmartRef__":true,"id":12938}},"12967":{"timestamp":{"__isSmartRef__":true,"id":12968},"user":"lauritz","tags":[]},"12968":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:49:08 GMT+0200 (Central Europe Daylight Time)"},"12969":{"varMapping":{"__isSmartRef__":true,"id":12970},"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":12971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12970":{"this":{"__isSmartRef__":true,"id":12938}},"12971":{"timestamp":{"__isSmartRef__":true,"id":12972},"user":"timfelgentreff","tags":[]},"12972":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:43:28 GMT+0200 (Central Europe Daylight Time)"},"12973":{"varMapping":{"__isSmartRef__":true,"id":12974},"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":12975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12974":{"this":{"__isSmartRef__":true,"id":12938}},"12975":{"timestamp":{"__isSmartRef__":true,"id":12976},"user":"lauritz","tags":[]},"12976":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (Central Europe Standard Time)"},"12977":{"varMapping":{"__isSmartRef__":true,"id":12978},"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":12979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12978":{"this":{"__isSmartRef__":true,"id":12938}},"12979":{"timestamp":{"__isSmartRef__":true,"id":12980},"user":"timfelgentreff","tags":[]},"12980":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:22:44 GMT+0200 (Central Europe Daylight Time)"},"12981":{"varMapping":{"__isSmartRef__":true,"id":12982},"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":12987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12982":{"this":{"__isSmartRef__":true,"id":12938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12983}},"12983":{"$super":{"__isSmartRef__":true,"id":12984}},"12984":{"varMapping":{"__isSmartRef__":true,"id":12985},"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":12986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12985":{"obj":{"__isSmartRef__":true,"id":12938},"name":"onMouseDown"},"12986":{},"12987":{"timestamp":{"__isSmartRef__":true,"id":12988},"user":"timfelgentreff","tags":[]},"12988":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:03:45 GMT+0200 (Central Europe Daylight Time)"},"12989":{"varMapping":{"__isSmartRef__":true,"id":12990},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":12991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12990":{"this":{"__isSmartRef__":true,"id":12938}},"12991":{"timestamp":{"__isSmartRef__":true,"id":12992},"user":"lauritz","tags":[]},"12992":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (Central Europe Standard Time)"},"12993":{"varMapping":{"__isSmartRef__":true,"id":12994},"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":12995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12994":{"this":{"__isSmartRef__":true,"id":12938}},"12995":{"timestamp":{"__isSmartRef__":true,"id":12996},"user":"lauritz","tags":[]},"12996":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (Central Europe Standard Time)"},"12997":{"varMapping":{"__isSmartRef__":true,"id":12998},"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":13003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12998":{"this":{"__isSmartRef__":true,"id":12938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12999}},"12999":{"$super":{"__isSmartRef__":true,"id":13000}},"13000":{"varMapping":{"__isSmartRef__":true,"id":13001},"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":13002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13001":{"obj":{"__isSmartRef__":true,"id":12938},"name":"onBlur"},"13002":{},"13003":{"timestamp":{"__isSmartRef__":true,"id":13004},"user":"timfelgentreff","tags":[]},"13004":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:01:12 GMT+0200 (Central Europe Daylight Time)"},"13005":{"varMapping":{"__isSmartRef__":true,"id":13006},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":13007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13006":{"this":{"__isSmartRef__":true,"id":12938}},"13007":{"timestamp":{"__isSmartRef__":true,"id":13008},"user":"lauritz","tags":[]},"13008":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (Central Europe Standard Time)"},"13009":{"varMapping":{"__isSmartRef__":true,"id":13010},"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":13011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13010":{"this":{"__isSmartRef__":true,"id":12938}},"13011":{"timestamp":{"__isSmartRef__":true,"id":13012},"user":"lauritz","tags":[]},"13012":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (Central Europe Standard Time)"},"13013":{"varMapping":{"__isSmartRef__":true,"id":13014},"source":"function getItems() {\n var worldEntry = this.createWorldTree(),\n groups = this.createGroupTree()\n\n return {children: [groups, worldEntry]};\n}","funcProperties":{"__isSmartRef__":true,"id":13015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13014":{"this":{"__isSmartRef__":true,"id":12938}},"13015":{"timestamp":{"__isSmartRef__":true,"id":13016},"user":"timfelgentreff","tags":[]},"13016":{"isSerializedDate":true,"string":"Mon Jun 18 2012 20:56:14 GMT+0200 (Central Europe Daylight Time)"},"13017":{"varMapping":{"__isSmartRef__":true,"id":13018},"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":13019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13018":{"this":{"__isSmartRef__":true,"id":12938}},"13019":{"timestamp":{"__isSmartRef__":true,"id":13020},"user":"timfelgentreff","tags":[]},"13020":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:27:07 GMT+0200 (Central Europe Daylight Time)"},"13021":{"varMapping":{"__isSmartRef__":true,"id":13022},"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":13023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13022":{"this":{"__isSmartRef__":true,"id":12938}},"13023":{"timestamp":{"__isSmartRef__":true,"id":13024},"user":"timfelgentreff","tags":[]},"13024":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:48:12 GMT+0200 (Central Europe Daylight Time)"},"13025":{"varMapping":{"__isSmartRef__":true,"id":13026},"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":13027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13026":{"this":{"__isSmartRef__":true,"id":12938}},"13027":{"timestamp":{"__isSmartRef__":true,"id":13028},"user":"timfelgentreff","tags":[]},"13028":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:41:55 GMT+0200 (Central Europe Daylight Time)"},"13029":{"varMapping":{"__isSmartRef__":true,"id":13030},"source":"function setHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":13031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13030":{"this":{"__isSmartRef__":true,"id":12938}},"13031":{"timestamp":{"__isSmartRef__":true,"id":13032},"user":"timfelgentreff","tags":[]},"13032":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:42:05 GMT+0200 (Central Europe Daylight Time)"},"13033":{"varMapping":{"__isSmartRef__":true,"id":13034},"source":"function removeHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":13035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13034":{"this":{"__isSmartRef__":true,"id":12938}},"13035":{"timestamp":{"__isSmartRef__":true,"id":13036},"user":"timfelgentreff","tags":[]},"13036":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:46:05 GMT+0200 (Central Europe Daylight Time)"},"13037":{"target":{"__isSmartRef__":true,"id":12047},"selector":"update","args":[],"stopped":false,"tickTime":500,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"13038":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(623.0,247.6)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"13039":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":13040}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13040":{"date":{"__isSmartRef__":true,"id":13041},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"13041":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (Central Europe Daylight Time)"},"13042":{"morph":{"__isSmartRef__":true,"id":12047},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13043":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"13044":{},"13045":{"displayInitialScript":{"__isSmartRef__":true,"id":13046},"displayJavaScriptSource":{"__isSmartRef__":true,"id":13050},"displaySourceForConnection":{"__isSmartRef__":true,"id":13054},"displaySourceForScript":{"__isSmartRef__":true,"id":13058},"generateSourceForConnection":{"__isSmartRef__":true,"id":13062},"generateSourceForScript":{"__isSmartRef__":true,"id":13066},"generateTargetCode":{"__isSmartRef__":true,"id":13070},"newConnection":{"__isSmartRef__":true,"id":13074},"newScript":{"__isSmartRef__":true,"id":13078},"reset":{"__isSmartRef__":true,"id":13082},"selectChangedContent":{"__isSmartRef__":true,"id":13086},"setTarget":{"__isSmartRef__":true,"id":13090},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":13094},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":13098},"updateLists":{"__isSmartRef__":true,"id":13102},"onShutdown":{"__isSmartRef__":true,"id":13106},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":13110},"update":{"__isSmartRef__":true,"id":13114},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":13118},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":13122},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":13126},"printTags":{"__isSmartRef__":true,"id":13134},"setTag":{"__isSmartRef__":true,"id":13138},"runScript":{"__isSmartRef__":true,"id":13142},"openPartTestRunner":{"__isSmartRef__":true,"id":13146}},"13046":{"varMapping":{"__isSmartRef__":true,"id":13047},"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":13048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13047":{"this":{"__isSmartRef__":true,"id":12047}},"13048":{"timestamp":{"__isSmartRef__":true,"id":13049},"user":"lauritz","tags":[]},"13049":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (Central Europe Standard Time)"},"13050":{"varMapping":{"__isSmartRef__":true,"id":13051},"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":13052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13051":{"this":{"__isSmartRef__":true,"id":12047}},"13052":{"timestamp":{"__isSmartRef__":true,"id":13053},"user":"lauritz","tags":[]},"13053":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"13054":{"varMapping":{"__isSmartRef__":true,"id":13055},"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":13056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13055":{"this":{"__isSmartRef__":true,"id":12047}},"13056":{"timestamp":{"__isSmartRef__":true,"id":13057},"user":"conradcalmez","tags":[]},"13057":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (Central Europe Standard Time)"},"13058":{"varMapping":{"__isSmartRef__":true,"id":13059},"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":13060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13059":{"this":{"__isSmartRef__":true,"id":12047}},"13060":{"timestamp":{"__isSmartRef__":true,"id":13061},"user":"lauritz","tags":[]},"13061":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (Central Europe Standard Time)"},"13062":{"varMapping":{"__isSmartRef__":true,"id":13063},"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":13064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13063":{"this":{"__isSmartRef__":true,"id":12047}},"13064":{"timestamp":{"__isSmartRef__":true,"id":13065},"user":"lauritz","tags":[]},"13065":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"13066":{"varMapping":{"__isSmartRef__":true,"id":13067},"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":13068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13067":{"this":{"__isSmartRef__":true,"id":12047}},"13068":{"timestamp":{"__isSmartRef__":true,"id":13069},"user":"tessi","tags":[]},"13069":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:17:15 GMT+0200 (Central Europe Daylight Time)"},"13070":{"varMapping":{"__isSmartRef__":true,"id":13071},"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":13072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13071":{"this":{"__isSmartRef__":true,"id":12047}},"13072":{"timestamp":{"__isSmartRef__":true,"id":13073},"user":"lauritz","tags":[]},"13073":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"13074":{"varMapping":{"__isSmartRef__":true,"id":13075},"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":13076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13075":{"this":{"__isSmartRef__":true,"id":12047}},"13076":{"timestamp":{"__isSmartRef__":true,"id":13077},"user":"lauritz","tags":[]},"13077":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"13078":{"varMapping":{"__isSmartRef__":true,"id":13079},"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":13080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13079":{"this":{"__isSmartRef__":true,"id":12047}},"13080":{"timestamp":{"__isSmartRef__":true,"id":13081},"user":"lauritz","tags":[]},"13081":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (Central Europe Standard Time)"},"13082":{"varMapping":{"__isSmartRef__":true,"id":13083},"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":13084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13083":{"this":{"__isSmartRef__":true,"id":12047}},"13084":{"timestamp":{"__isSmartRef__":true,"id":13085},"user":"conradcalmez","tags":[]},"13085":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (Central Europe Standard Time)"},"13086":{"varMapping":{"__isSmartRef__":true,"id":13087},"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":13092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13091":{"this":{"__isSmartRef__":true,"id":12047}},"13092":{"timestamp":{"__isSmartRef__":true,"id":13093},"user":"timfelgentreff","tags":[]},"13093":{"isSerializedDate":true,"string":"Mon Jun 18 2012 18:44:44 GMT+0200 (Central Europe Daylight Time)"},"13094":{"varMapping":{"__isSmartRef__":true,"id":13095},"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":13096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13095":{"this":{"__isSmartRef__":true,"id":12047}},"13096":{"timestamp":{"__isSmartRef__":true,"id":13097},"user":"lauritz","tags":[]},"13097":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"13098":{"varMapping":{"__isSmartRef__":true,"id":13099},"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":13100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13099":{"this":{"__isSmartRef__":true,"id":12047}},"13100":{"timestamp":{"__isSmartRef__":true,"id":13101},"user":"lauritz","tags":[]},"13101":{"isSerializedDate":true,"string":"Thu Jun 07 2012 15:55:01 GMT+0200 (Central Europe Daylight Time)"},"13102":{"varMapping":{"__isSmartRef__":true,"id":13103},"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":13104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13103":{"this":{"__isSmartRef__":true,"id":12047}},"13104":{"timestamp":{"__isSmartRef__":true,"id":13105},"user":"lauritz","tags":[]},"13105":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"13106":{"varMapping":{"__isSmartRef__":true,"id":13107},"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":13108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13107":{"this":{"__isSmartRef__":true,"id":12047}},"13108":{"timestamp":{"__isSmartRef__":true,"id":13109},"user":"lauritz","tags":[]},"13109":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"13110":{"varMapping":{"__isSmartRef__":true,"id":13111},"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":13112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13111":{"this":{"__isSmartRef__":true,"id":12047}},"13112":{"timestamp":{"__isSmartRef__":true,"id":13113},"user":"lauritz","tags":[]},"13113":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:52:56 GMT+0100 (Central Europe Standard Time)"},"13114":{"varMapping":{"__isSmartRef__":true,"id":13115},"source":"function update() {\n // alias to conform to convention\n this.updateLists();\n}","funcProperties":{"__isSmartRef__":true,"id":13116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13115":{"this":{"__isSmartRef__":true,"id":12047}},"13116":{"timestamp":{"__isSmartRef__":true,"id":13117},"user":"lauritz","tags":[]},"13117":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"13118":{"varMapping":{"__isSmartRef__":true,"id":13119},"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":13120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13119":{"this":{"__isSmartRef__":true,"id":12047}},"13120":{"timestamp":{"__isSmartRef__":true,"id":13121},"user":"lauritz","tags":[]},"13121":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:03:17 GMT+0100 (Central Europe Standard Time)"},"13122":{"varMapping":{"__isSmartRef__":true,"id":13123},"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":13124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13123":{"this":{"__isSmartRef__":true,"id":12047}},"13124":{"timestamp":{"__isSmartRef__":true,"id":13125},"user":"lauritz","tags":[]},"13125":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:41:00 GMT+0100 (Central Europe Standard Time)"},"13126":{"varMapping":{"__isSmartRef__":true,"id":13127},"source":"function copyToPartsBinWithUserRequest() {\n this.owner.copyToPartsBinWithUserRequest();\n}","funcProperties":{"__isSmartRef__":true,"id":13132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13127":{"this":{"__isSmartRef__":true,"id":12047},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13128}},"13128":{"$super":{"__isSmartRef__":true,"id":13129}},"13129":{"varMapping":{"__isSmartRef__":true,"id":13130},"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":13131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13130":{"obj":{"__isSmartRef__":true,"id":12047},"name":"copyToPartsBinWithUserRequest"},"13131":{},"13132":{"timestamp":{"__isSmartRef__":true,"id":13133},"user":"lauritz","tags":[]},"13133":{"isSerializedDate":true,"string":"Thu Nov 17 2011 20:04:19 GMT+0100 (Central Europe Standard Time)"},"13134":{"varMapping":{"__isSmartRef__":true,"id":13135},"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":13136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13135":{"this":{"__isSmartRef__":true,"id":12047}},"13136":{"timestamp":{"__isSmartRef__":true,"id":13137},"user":"lauritz","tags":[]},"13137":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:33:20 GMT+0100 (Central Europe Standard Time)"},"13138":{"varMapping":{"__isSmartRef__":true,"id":13139},"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":13140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13139":{"this":{"__isSmartRef__":true,"id":12047}},"13140":{"timestamp":{"__isSmartRef__":true,"id":13141},"user":"lauritz","tags":[]},"13141":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:35 GMT+0100 (Central Europe Standard Time)"},"13142":{"varMapping":{"__isSmartRef__":true,"id":13143},"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":13144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13143":{"this":{"__isSmartRef__":true,"id":12047}},"13144":{"timestamp":{"__isSmartRef__":true,"id":13145},"user":"conradcalmez","tags":[]},"13145":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:53:29 GMT+0100 (Central Europe Standard Time)"},"13146":{"varMapping":{"__isSmartRef__":true,"id":13147},"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":13148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13147":{"this":{"__isSmartRef__":true,"id":12047}},"13148":{"timestamp":{"__isSmartRef__":true,"id":13149},"user":"jenslincke","tags":[]},"13149":{"isSerializedDate":true,"string":"Wed Mar 14 2012 15:48:07 GMT+0100 (Central Europe Standard Time)"},"13150":{"submorphs":[],"scripts":[],"id":"90D39B3C-123D-4785-A582-479589D23BBC","shape":{"__isSmartRef__":true,"id":13151},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ResizeCorner4","partsBinMetaInfo":{"__isSmartRef__":true,"id":13152},"__layered_draggingEnabled__":true,"dragStartPoint":null,"originalTargetExtent":null,"eventHandler":{"__isSmartRef__":true,"id":13153},"owner":{"__isSmartRef__":true,"id":12046},"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","CE1FF1F2-DE2D-441C-BCCE-EF6A394DB871"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","originalExtent","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13154},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(610.0,254.0)","originalExtent":"lively.pt(239.0,138.0)","distanceToDragEvent":"lively.pt(42.3,-22.8)"},"13151":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(13.0,14.0)","_BorderColor":"Color.rgb(145,145,145)","_Fill":"Color.rgb(66,66,66)","_Padding":"lively.rect(0,0,0,0)"},"13152":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13153":{"morph":{"__isSmartRef__":true,"id":13150},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13154":{"onDrag":{"__isSmartRef__":true,"id":13155},"onDragEnd":{"__isSmartRef__":true,"id":13163},"onDragStart":{"__isSmartRef__":true,"id":13171}},"13155":{"varMapping":{"__isSmartRef__":true,"id":13156},"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":13161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13156":{"this":{"__isSmartRef__":true,"id":13150},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13157}},"13157":{"$super":{"__isSmartRef__":true,"id":13158}},"13158":{"varMapping":{"__isSmartRef__":true,"id":13159},"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":13160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13159":{"obj":{"__isSmartRef__":true,"id":13150},"name":"onDrag"},"13160":{},"13161":{"timestamp":{"__isSmartRef__":true,"id":13162},"user":"lauritz"},"13162":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Central Europe Standard Time)"},"13163":{"varMapping":{"__isSmartRef__":true,"id":13164},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13164":{"this":{"__isSmartRef__":true,"id":13150},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13165}},"13165":{"$super":{"__isSmartRef__":true,"id":13166}},"13166":{"varMapping":{"__isSmartRef__":true,"id":13167},"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":13168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13167":{"obj":{"__isSmartRef__":true,"id":13150},"name":"onDragEnd"},"13168":{},"13169":{"timestamp":{"__isSmartRef__":true,"id":13170},"user":"lauritz"},"13170":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Central Europe Standard Time)"},"13171":{"varMapping":{"__isSmartRef__":true,"id":13172},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":13177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13172":{"this":{"__isSmartRef__":true,"id":13150},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13173}},"13173":{"$super":{"__isSmartRef__":true,"id":13174}},"13174":{"varMapping":{"__isSmartRef__":true,"id":13175},"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":13176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13175":{"obj":{"__isSmartRef__":true,"id":13150},"name":"onDragStart"},"13176":{},"13177":{"timestamp":{"__isSmartRef__":true,"id":13178},"user":"lauritz"},"13178":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:35 GMT+0100 (Central Europe Standard Time)"},"13179":{"submorphs":[{"__isSmartRef__":true,"id":13180},{"__isSmartRef__":true,"id":13186},{"__isSmartRef__":true,"id":13209},{"__isSmartRef__":true,"id":13231}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13249},"id":"2909D2F9-F40D-4A21-A128-6A76777EEBDA","eventHandler":{"__isSmartRef__":true,"id":13253},"__layered_droppingEnabled__":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13254},"windowMorph":{"__isSmartRef__":true,"id":12046},"label":{"__isSmartRef__":true,"id":13180},"closeButton":{"__isSmartRef__":true,"id":13186},"menuButton":{"__isSmartRef__":true,"id":13209},"collapseButton":{"__isSmartRef__":true,"id":13231},"owner":{"__isSmartRef__":true,"id":12046},"prevScroll":[0,0],"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","D7C289EF-5F68-4373-BAE3-3A0939CD083C"],"_ClipMode":"visible","#startLetters":"","_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"13180":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13181},"id":"BAEAA700-FAEF-41C0-B73C-CF3156DBA3C2","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13182}],"eventHandler":{"__isSmartRef__":true,"id":13184},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":14,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":13185},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":13179},"_MaxTextWidth":564,"_MinTextWidth":564,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"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","92A86FF5-FBAB-4A6C-AC88-8A10B3F88023"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(20.0,3.0)","_TextColor":"Color.rgb(102,102,102)"},"13181":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(564.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"13182":{"style":{"__isSmartRef__":true,"id":13183},"chunkOwner":{"__isSmartRef__":true,"id":13180},"_id":"_8433","storedString":"ObjectEditor (WebDev'12)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13183":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13184":{"morph":{"__isSmartRef__":true,"id":13180},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13185":{"resizeWidth":true},"13186":{"submorphs":[{"__isSmartRef__":true,"id":13187}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13192},"id":"DF888499-E417-4080-895C-6DCE1392B0D6","eventHandler":{"__isSmartRef__":true,"id":13198},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13193},"lighterFill":{"__isSmartRef__":true,"id":13199},"label":{"__isSmartRef__":true,"id":13187},"owner":{"__isSmartRef__":true,"id":13179},"layout":{"__isSmartRef__":true,"id":13204},"attributeConnections":[{"__isSmartRef__":true,"id":13205},{"__isSmartRef__":true,"id":13207}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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","8A4EF63C-D7A7-4227-93BD-6DF1356EC2E6"],"_ClipMode":"visible","showsHalos":false,"isPressed":false,"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(603.0,3.0)"},"13187":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13188},"id":"935C29F0-3EE9-4FE3-AA8C-67261B07DBDF","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13189}],"eventHandler":{"__isSmartRef__":true,"id":13191},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13186},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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","E3861972-5B35-4554-8E15-695361AD5324"],"showsHalos":false,"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"13188":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"13189":{"style":{"__isSmartRef__":true,"id":13190},"chunkOwner":{"__isSmartRef__":true,"id":13187},"storedString":"X","_id":"_244","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13190":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13191":{"morph":{"__isSmartRef__":true,"id":13187},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13192":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13193},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"13193":{"stops":[{"__isSmartRef__":true,"id":13194},{"__isSmartRef__":true,"id":13195},{"__isSmartRef__":true,"id":13196},{"__isSmartRef__":true,"id":13197}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13194":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"13195":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13196":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13197":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"13198":{"morph":{"__isSmartRef__":true,"id":13186},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13199":{"stops":[{"__isSmartRef__":true,"id":13200},{"__isSmartRef__":true,"id":13201},{"__isSmartRef__":true,"id":13202},{"__isSmartRef__":true,"id":13203}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13200":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13201":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13202":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13203":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13204":{"moveHorizontal":true},"13205":{"sourceObj":{"__isSmartRef__":true,"id":13186},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12046},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13206},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13206":{"source":{"__isSmartRef__":true,"id":13186},"target":{"__isSmartRef__":true,"id":12046}},"13207":{"sourceObj":{"__isSmartRef__":true,"id":13186},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12046},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13208},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13208":{"source":{"__isSmartRef__":true,"id":13186},"target":{"__isSmartRef__":true,"id":12046}},"13209":{"submorphs":[{"__isSmartRef__":true,"id":13210}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13215},"id":"8E34A125-7B46-44CD-AD8E-866EB6DF0139","eventHandler":{"__isSmartRef__":true,"id":13221},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13193},"lighterFill":{"__isSmartRef__":true,"id":13222},"label":{"__isSmartRef__":true,"id":13210},"owner":{"__isSmartRef__":true,"id":13179},"attributeConnections":[{"__isSmartRef__":true,"id":13227},{"__isSmartRef__":true,"id":13229}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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","51FF8B7E-E252-411B-9820-2131A230DEE5"],"_ClipMode":"visible","isPressed":false,"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"13210":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13211},"id":"C7AA4C2A-1274-4426-B6AE-3939468E6BCB","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13212}],"eventHandler":{"__isSmartRef__":true,"id":13214},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13209},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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","8B6BF0DF-CE92-4754-8C15-4CE48D06283A"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"13211":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"13212":{"style":{"__isSmartRef__":true,"id":13213},"chunkOwner":{"__isSmartRef__":true,"id":13210},"storedString":"M","_id":"_245","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13213":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13214":{"morph":{"__isSmartRef__":true,"id":13210},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13215":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13216},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"13216":{"stops":[{"__isSmartRef__":true,"id":13217},{"__isSmartRef__":true,"id":13218},{"__isSmartRef__":true,"id":13219},{"__isSmartRef__":true,"id":13220}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13217":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"13218":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"13219":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"13220":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"13221":{"morph":{"__isSmartRef__":true,"id":13209},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13222":{"stops":[{"__isSmartRef__":true,"id":13223},{"__isSmartRef__":true,"id":13224},{"__isSmartRef__":true,"id":13225},{"__isSmartRef__":true,"id":13226}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13223":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13224":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13225":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13226":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13227":{"sourceObj":{"__isSmartRef__":true,"id":13209},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12046},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13228},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13228":{"source":{"__isSmartRef__":true,"id":13209},"target":{"__isSmartRef__":true,"id":12046}},"13229":{"sourceObj":{"__isSmartRef__":true,"id":13209},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12046},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13230},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13230":{"source":{"__isSmartRef__":true,"id":13209},"target":{"__isSmartRef__":true,"id":12046}},"13231":{"submorphs":[{"__isSmartRef__":true,"id":13232}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13237},"id":"9EF08E12-18D3-415F-8CC5-286DE1F84313","eventHandler":{"__isSmartRef__":true,"id":13238},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13193},"lighterFill":{"__isSmartRef__":true,"id":13239},"label":{"__isSmartRef__":true,"id":13232},"owner":{"__isSmartRef__":true,"id":13179},"layout":{"__isSmartRef__":true,"id":13244},"attributeConnections":[{"__isSmartRef__":true,"id":13245},{"__isSmartRef__":true,"id":13247}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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","2DA68C95-F0A6-4A1E-B140-25B795EBD04B"],"_ClipMode":"visible","isPressed":false,"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(584.0,3.0)"},"13232":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13233},"id":"1E372C0D-E244-438A-9748-0966DA0B5DC2","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13234}],"eventHandler":{"__isSmartRef__":true,"id":13236},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13231},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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","DE8F75A8-6EBA-43F0-A178-1039F31A204E"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"13233":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"13234":{"style":{"__isSmartRef__":true,"id":13235},"chunkOwner":{"__isSmartRef__":true,"id":13232},"storedString":"–","_id":"_246","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13235":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13236":{"morph":{"__isSmartRef__":true,"id":13232},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13237":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13193},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"13238":{"morph":{"__isSmartRef__":true,"id":13231},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13239":{"stops":[{"__isSmartRef__":true,"id":13240},{"__isSmartRef__":true,"id":13241},{"__isSmartRef__":true,"id":13242},{"__isSmartRef__":true,"id":13243}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13240":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13241":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13242":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13243":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13244":{"moveHorizontal":true},"13245":{"sourceObj":{"__isSmartRef__":true,"id":13231},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":12046},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13246},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13246":{"source":{"__isSmartRef__":true,"id":13231},"target":{"__isSmartRef__":true,"id":12046}},"13247":{"sourceObj":{"__isSmartRef__":true,"id":13231},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12046},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13248},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13248":{"source":{"__isSmartRef__":true,"id":13231},"target":{"__isSmartRef__":true,"id":12046}},"13249":{"_ClipMode":"visible","_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":13250},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(623.0,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(102,102,102)"},"13250":{"stops":[{"__isSmartRef__":true,"id":13251},{"__isSmartRef__":true,"id":13252}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13251":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"13252":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13253":{"morph":{"__isSmartRef__":true,"id":13179},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13254":{"resizeWidth":true,"adjustForNewBounds":true},"13255":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_ClipMode":"visible","__serializedExpressions__":["_Extent","_Position","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(623.0,268.0)","_Position":"lively.pt(0.0,0.0)","_Padding":"lively.rect(0,0,0,0)"},"13256":{"morph":{"__isSmartRef__":true,"id":12046},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13257":{"adjustForNewBounds":true},"13258":{"a":1,"b":0,"c":0,"d":1,"e":21,"f":92.89999999999998,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"13259":{"a":1.0040100200350561,"b":0,"c":0,"d":1.0040100200350561,"e":25.958169966165087,"f":125.02070906988553,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"13260":{"migrationLevel":4,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a morph, or a group of morphs.","partName":"ObjectGroupEditor","changes":[{"__isSmartRef__":true,"id":13261},{"__isSmartRef__":true,"id":13263},{"__isSmartRef__":true,"id":13265},{"__isSmartRef__":true,"id":13267},{"__isSmartRef__":true,"id":13269},{"__isSmartRef__":true,"id":13271},{"__isSmartRef__":true,"id":13273},{"__isSmartRef__":true,"id":13275},{"__isSmartRef__":true,"id":13277},{"__isSmartRef__":true,"id":13279},{"__isSmartRef__":true,"id":13281},{"__isSmartRef__":true,"id":13283},{"__isSmartRef__":true,"id":13285},{"__isSmartRef__":true,"id":13287},{"__isSmartRef__":true,"id":13289},{"__isSmartRef__":true,"id":13291},{"__isSmartRef__":true,"id":13293},{"__isSmartRef__":true,"id":13295},{"__isSmartRef__":true,"id":13297},{"__isSmartRef__":true,"id":13299},{"__isSmartRef__":true,"id":13301},{"__isSmartRef__":true,"id":13303},{"__isSmartRef__":true,"id":13305},{"__isSmartRef__":true,"id":13307},{"__isSmartRef__":true,"id":13309},{"__isSmartRef__":true,"id":13311},{"__isSmartRef__":true,"id":13313},{"__isSmartRef__":true,"id":13315},{"__isSmartRef__":true,"id":13317},{"__isSmartRef__":true,"id":13319},{"__isSmartRef__":true,"id":13321},{"__isSmartRef__":true,"id":13323},{"__isSmartRef__":true,"id":13325},{"__isSmartRef__":true,"id":13327},{"__isSmartRef__":true,"id":13329},{"__isSmartRef__":true,"id":13331},{"__isSmartRef__":true,"id":13333},{"__isSmartRef__":true,"id":13335},{"__isSmartRef__":true,"id":13337},{"__isSmartRef__":true,"id":13339},{"__isSmartRef__":true,"id":13341},{"__isSmartRef__":true,"id":13343},{"__isSmartRef__":true,"id":13345},{"__isSmartRef__":true,"id":13347},{"__isSmartRef__":true,"id":13349},{"__isSmartRef__":true,"id":13351},{"__isSmartRef__":true,"id":13353},{"__isSmartRef__":true,"id":13355},{"__isSmartRef__":true,"id":13357},{"__isSmartRef__":true,"id":13359},{"__isSmartRef__":true,"id":13361},{"__isSmartRef__":true,"id":13363},{"__isSmartRef__":true,"id":13365},{"__isSmartRef__":true,"id":13367},{"__isSmartRef__":true,"id":13369},{"__isSmartRef__":true,"id":13371},{"__isSmartRef__":true,"id":13373},{"__isSmartRef__":true,"id":13375},{"__isSmartRef__":true,"id":13377},{"__isSmartRef__":true,"id":13379},{"__isSmartRef__":true,"id":13381},{"__isSmartRef__":true,"id":13383},{"__isSmartRef__":true,"id":13385},{"__isSmartRef__":true,"id":13387},{"__isSmartRef__":true,"id":13389},{"__isSmartRef__":true,"id":13391},{"__isSmartRef__":true,"id":13393},{"__isSmartRef__":true,"id":13395},{"__isSmartRef__":true,"id":13397},{"__isSmartRef__":true,"id":13399},{"__isSmartRef__":true,"id":13401},{"__isSmartRef__":true,"id":13403},{"__isSmartRef__":true,"id":13405},{"__isSmartRef__":true,"id":13407},{"__isSmartRef__":true,"id":13409}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13261":{"date":{"__isSmartRef__":true,"id":13262},"author":"lauritz","message":"reflected relocation of the tree widget","id":"C2F5A421-34F4-4F59-897F-B71A43FCB6E6"},"13262":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:51:17 GMT+0200 (Central Europe Daylight Time)"},"13263":{"date":{"__isSmartRef__":true,"id":13264},"author":"timfelgentreff","message":"shift-multi-selection in scenegraph tree","id":"06F870D2-4E2C-49D4-B02D-9B3D16C03EEB"},"13264":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:49:25 GMT+0200 (Central Europe Daylight Time)"},"13265":{"date":{"__isSmartRef__":true,"id":13266},"author":"lauritz","message":"changed title to clarify","id":"A5FE4F60-1BA4-4FDE-A872-70D815D6C99E"},"13266":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:29:57 GMT+0200 (Central Europe Daylight Time)"},"13267":{"date":{"__isSmartRef__":true,"id":13268},"author":"timfelgentreff","message":"automatic expand and highlight","id":"02EF2B1D-F704-4EB5-A81A-FAAD2F85470D"},"13268":{"isSerializedDate":true,"string":"Tue Jun 19 2012 09:32:59 GMT+0200 (Central Europe Daylight Time)"},"13269":{"date":{"__isSmartRef__":true,"id":13270},"author":"timfelgentreff","message":"use tree for submorphs","id":"592A118B-2713-4C06-B820-22DB62E43D16"},"13270":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:41:30 GMT+0200 (Central Europe Daylight Time)"},"13271":{"date":{"__isSmartRef__":true,"id":13272},"author":"timfelgentreff","message":"hide \"Name group\" button by default","id":"617D6A4B-7BD3-4B7B-9913-CC650DC7BA6A"},"13272":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:46:11 GMT+0200 (Central Europe Daylight Time)"},"13273":{"date":{"__isSmartRef__":true,"id":13274},"author":"timfelgentreff","message":"introduce evaluation for groups. returns multiple results if result is `this' dependent","id":"E459B71C-5114-40F2-A11E-34A42A4CA50C"},"13274":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:45:09 GMT+0200 (Central Europe Daylight Time)"},"13275":{"date":{"__isSmartRef__":true,"id":13276},"author":"timfelgentreff","message":"fix issue with uniqueness","id":"863C36B3-EC03-45B1-9D36-7EB092A00EFE"},"13276":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:23:01 GMT+0200 (Central Europe Daylight Time)"},"13277":{"date":{"__isSmartRef__":true,"id":13278},"author":"timfelgentreff","message":"implement saving and retrieving of groups, using tags on the morphs","id":"854E44DD-C527-406E-81A6-87D1FDFF499B"},"13278":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:09:18 GMT+0200 (Central Europe Daylight Time)"},"13279":{"date":{"__isSmartRef__":true,"id":13280},"author":"tessi","message":"Stop Magnifier-Selection-Thingy if Esc-Key was pressed","id":"F59C88F0-0708-483D-89BA-2D926B22BC5E"},"13280":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:59 GMT+0200 (Central Europe Daylight Time)"},"13281":{"date":{"__isSmartRef__":true,"id":13282},"author":"tessi","message":"Fix hover on empty target","id":"E65D513E-8719-46CD-BA22-F1F8A6C6904B"},"13282":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:32:55 GMT+0200 (Central Europe Daylight Time)"},"13283":{"date":{"__isSmartRef__":true,"id":13284},"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"},"13284":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:29:36 GMT+0200 (Central Europe Daylight Time)"},"13285":{"date":{"__isSmartRef__":true,"id":13286},"author":"lauritz","message":"fix bad interaction b/w highlight and tracking in magnifier","id":"0970265D-1552-4376-8999-F6847141362C"},"13286":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:07:40 GMT+0200 (Central Europe Daylight Time)"},"13287":{"date":{"__isSmartRef__":true,"id":13288},"author":"lauritz","message":"","id":"667CB328-3FE7-46B6-BD5A-FA4763544BC6"},"13288":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:29:52 GMT+0200 (Central Europe Daylight Time)"},"13289":{"date":{"__isSmartRef__":true,"id":13290},"author":"lauritz","message":"fixed magnifier-tool: highlight-rectangle property of the object, now.","id":"9301C445-2961-4C51-8D35-8FF338F0CD19"},"13290":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:25:01 GMT+0200 (Central Europe Daylight Time)"},"13291":{"date":{"__isSmartRef__":true,"id":13292},"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"},"13292":{"isSerializedDate":true,"string":"Wed Jun 06 2012 16:21:44 GMT+0200 (Central Europe Daylight Time)"},"13293":{"date":{"__isSmartRef__":true,"id":13294},"author":"lauritz","message":"hover over the magnifier button to see the current target","id":"9E6C0152-723A-43B1-8EF8-A3C2F15F5EBA"},"13294":{"isSerializedDate":true,"string":"Tue May 29 2012 13:18:56 GMT+0200 (Central Europe Daylight Time)"},"13295":{"date":{"__isSmartRef__":true,"id":13296},"author":"lauritz","message":"reduced global variable usage","id":"2FCB8ACB-CA90-4236-A8DF-D77F631C6CA9"},"13296":{"isSerializedDate":true,"string":"Tue May 29 2012 13:10:35 GMT+0200 (Central Europe Daylight Time)"},"13297":{"date":{"__isSmartRef__":true,"id":13298},"author":"timfelgentreff","message":"no comment","id":"D66996F5-54A4-4923-8D9E-3FC049EA2D32"},"13298":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:35 GMT+0200 (Central Europe Daylight Time)"},"13299":{"date":{"__isSmartRef__":true,"id":13300},"author":"timfelgentreff","message":"no comment","id":"27293AFB-6616-4516-B2FB-BB688F7ADB2D"},"13300":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:19 GMT+0200 (Central Europe Daylight Time)"},"13301":{"date":{"__isSmartRef__":true,"id":13302},"author":"fbo","message":"No more addScript and better support for Firefox","id":"C6D736FA-5748-448D-A6A0-6068A9BA9A34"},"13302":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:15:21 GMT+0200 (Central Europe Daylight Time)"},"13303":{"date":{"__isSmartRef__":true,"id":13304},"author":"fbo","message":"No more addScript and better support for Firefox","id":"2AC82901-2DCD-4921-B6F9-78B05D3D671C"},"13304":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:14:35 GMT+0200 (Central Europe Daylight Time)"},"13305":{"date":{"__isSmartRef__":true,"id":13306},"author":"fabian","message":"","id":"00E45103-9D78-4178-A58F-03896AFF5CA3"},"13306":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:55:32 GMT+0100 (Central Europe Standard Time)"},"13307":{"date":{"__isSmartRef__":true,"id":13308},"author":"fabian","message":"","id":"31CF7B42-DEAF-4A50-A5A2-6745A92BF6DC"},"13308":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:48:03 GMT+0100 (Central Europe Standard Time)"},"13309":{"date":{"__isSmartRef__":true,"id":13310},"author":"fabian","message":"","id":"FABA3850-E4EF-4888-BCE9-BB4F9EC9C2D4"},"13310":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:37:50 GMT+0100 (Central Europe Standard Time)"},"13311":{"date":{"__isSmartRef__":true,"id":13312},"author":"fabian","message":"","id":"350CA522-AD08-42D8-BB89-DA7D8BCAD0FB"},"13312":{"isSerializedDate":true,"string":"Wed Mar 07 2012 21:27:57 GMT+0100 (Central Europe Standard Time)"},"13313":{"date":{"__isSmartRef__":true,"id":13314},"author":"fabian","message":"","id":"D2F5383B-1F99-477E-A66E-D92928DB7540"},"13314":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:52:22 GMT+0100 (Central Europe Standard Time)"},"13315":{"date":{"__isSmartRef__":true,"id":13316},"author":"undefined","message":"","id":"121C044E-8723-4B1F-A9C5-54E73422CD05"},"13316":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:40:16 GMT+0100 (Central Europe Standard Time)"},"13317":{"date":{"__isSmartRef__":true,"id":13318},"author":"fabian","message":"","id":"1A435460-69B4-469B-909F-F2F395B97C4D"},"13318":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:09:30 GMT+0100 (Central Europe Standard Time)"},"13319":{"date":{"__isSmartRef__":true,"id":13320},"author":"fabian","message":"","id":"7D345E64-F67F-4266-AB55-590EB143327A"},"13320":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:08:57 GMT+0100 (Central Europe Standard Time)"},"13321":{"date":{"__isSmartRef__":true,"id":13322},"author":"fbo","message":"","id":"EBED707C-49B0-4E5F-9DD8-FF84007B435E"},"13322":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:47:59 GMT+0100 (Central Europe Standard Time)"},"13323":{"date":{"__isSmartRef__":true,"id":13324},"author":"conradcalmez","message":"set selection of lists to null","id":"1C918344-7895-4714-9F8E-2BCC837250CA"},"13324":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:00:56 GMT+0100 (Central Europe Standard Time)"},"13325":{"date":{"__isSmartRef__":true,"id":13326},"author":"conradcalmez","message":"added run button for trying out methods","id":"D21502DF-B383-45AA-8DB2-16D6A4C7DFC0"},"13326":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:15 GMT+0100 (Central Europe Standard Time)"},"13327":{"date":{"__isSmartRef__":true,"id":13328},"author":"robertkrahn","message":"show scripts even if they are wrapped","id":"6F608C14-369B-49D6-8E91-81B35ABB14DE"},"13328":{"isSerializedDate":true,"string":"Fri Jan 27 2012 17:50:40 GMT+0100 (Central Europe Standard Time)"},"13329":{"date":{"__isSmartRef__":true,"id":13330},"author":"lauritz","message":"","id":"72E0F00D-53A7-43E9-AD7B-E34F485BC75E"},"13330":{"isSerializedDate":true,"string":"Fri Jan 06 2012 07:15:04 GMT+0100 (Central Europe Standard Time)"},"13331":{"date":{"__isSmartRef__":true,"id":13332},"author":"lauritz","message":"top-most entry of the tag list is \"all\" now.","id":"62D12D9E-7F42-40CC-BB5B-162130454572"},"13332":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:28:30 GMT+0100 (Central Europe Standard Time)"},"13333":{"date":{"__isSmartRef__":true,"id":13334},"author":"lauritz","message":"sorted tag list.","id":"597DB7EB-1788-42DC-A64F-E061D7B831EC"},"13334":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:23:14 GMT+0100 (Central Europe Standard Time)"},"13335":{"date":{"__isSmartRef__":true,"id":13336},"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"},"13336":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:04:53 GMT+0100 (Central Europe Standard Time)"},"13337":{"date":{"__isSmartRef__":true,"id":13338},"author":"lauritz","message":"removed a workaround","id":"9AC9A97B-E63C-4C24-BCAF-6DC61C3A677C"},"13338":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:56:45 GMT+0100 (Central Europe Standard Time)"},"13339":{"date":{"__isSmartRef__":true,"id":13340},"author":"lauritz","message":"workaround for issue #161 - target morph list is scrollable","id":"7D5DAE37-46E2-4C63-8008-AA553CD6B1E9"},"13340":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:13:13 GMT+0100 (Central Europe Standard Time)"},"13341":{"date":{"__isSmartRef__":true,"id":13342},"author":"lauritz","message":"fixed a bug regarding anonymous morphs.","id":"30C42CB6-324C-455D-8B3E-828A80325027"},"13342":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:31:58 GMT+0100 (Central Europe Standard Time)"},"13343":{"date":{"__isSmartRef__":true,"id":13344},"author":"lauritz","message":"fixed a defect (weeeeeird property caused an error on deserialization of copies)","id":"F6F92336-29F4-4FB4-B597-B8EF12E2922E"},"13344":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:55:11 GMT+0100 (Central Europe Standard Time)"},"13345":{"date":{"__isSmartRef__":true,"id":13346},"author":"lauritz","message":"renamed .categorize to .tag","id":"470CD024-16F9-4221-B2D7-87FAC17B198B"},"13346":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:44:44 GMT+0100 (Central Europe Standard Time)"},"13347":{"date":{"__isSmartRef__":true,"id":13348},"author":"lauritz","message":"added a border to notifications, centered notification text","id":"D1DDACFE-EC70-45FB-8178-0A93C8DC81F1"},"13348":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:02:14 GMT+0100 (Central Europe Standard Time)"},"13349":{"date":{"__isSmartRef__":true,"id":13350},"author":"lauritz","message":"removed a missed debugger statement. corrected setting of target.","id":"BD747202-2BE7-4560-8EB2-DBA586BAD46F"},"13350":{"isSerializedDate":true,"string":"Fri Nov 18 2011 20:19:07 GMT+0100 (Central Europe Standard Time)"},"13351":{"date":{"__isSmartRef__":true,"id":13352},"author":"lauritz","message":"set a minExtent","id":"85B641E5-15C6-4C6D-BE9A-F4F96E347258"},"13352":{"isSerializedDate":true,"string":"Tue Nov 15 2011 20:12:45 GMT+0100 (Central Europe Standard Time)"},"13353":{"date":{"__isSmartRef__":true,"id":13354},"author":"jenslincke","message":"set min extent to pt(500,300)","id":"20634435-660B-4E80-93FF-8B8C4F5E0453"},"13354":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:44:45 GMT+0100 (Central Europe Standard Time)"},"13355":{"date":{"__isSmartRef__":true,"id":13356},"author":"jenslincke","message":"bring resize handle to front","id":"996D26BC-8567-486E-B114-A9041230543D"},"13356":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:41:36 GMT+0100 (Central Europe Standard Time)"},"13357":{"date":{"__isSmartRef__":true,"id":13358},"author":"lauritz","message":"Locked down submorphs of the editor pane. Grabbing and dragging disabled. "},"13358":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:36:22 GMT+0200 (Central Europe Daylight Time)"},"13359":{"date":{"__isSmartRef__":true,"id":13360},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"13360":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:40:22 GMT+0200 (Central Europe Daylight Time)"},"13361":{"date":{"__isSmartRef__":true,"id":13362},"author":"lauritz","message":"added confirmation before removal of scripts or connections.","id":"00B5B7BA-FC00-4B1C-A967-B8A38B05EEA8"},"13362":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:42:28 GMT+0100 (Central Europe Standard Time)"},"13363":{"date":{"__isSmartRef__":true,"id":13364},"author":"lauritz","message":"two more checks on attempts to remove scripts or connections.","id":"ED9F0090-C36C-4BC6-8FD2-A6FB60C7A0B2"},"13364":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:47:27 GMT+0100 (Central Europe Standard Time)"},"13365":{"date":{"__isSmartRef__":true,"id":13366},"author":"lauritz","message":"layout adaptions","id":"6F1AEBDC-EED3-4CE0-B84C-F4DD4DA784C5"},"13366":{"isSerializedDate":true,"string":"Wed Nov 16 2011 02:12:15 GMT+0100 (Central Europe Standard Time)"},"13367":{"date":{"__isSmartRef__":true,"id":13368},"author":"lauritz","message":"Refactoring of script annotations (now at scripts not morphs). Added category tagging. Layout changes.","id":"1A9DA32B-8A1D-4CCF-92CB-47462F8CF117"},"13368":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:22:54 GMT+0100 (Central Europe Standard Time)"},"13369":{"date":{"__isSmartRef__":true,"id":13370},"author":"jenslincke","message":"- reset title bar and borders","id":"8CE7DA3C-5C83-4151-A3A7-7B41D1C555BD"},"13370":{"isSerializedDate":true,"string":"Fri Nov 18 2011 15:26:49 GMT+0100 (Central Europe Standard Time)"},"13371":{"date":{"__isSmartRef__":true,"id":13372},"author":"lauritz","message":"fixed a bug (onBlur event handling) and added the world to the target chooser","id":"A8C151D4-0767-44E0-B586-090EA305BDF5"},"13372":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:14:00 GMT+0100 (Central Europe Standard Time)"},"13373":{"date":{"__isSmartRef__":true,"id":13374},"author":"lauritz","message":"adapted layout of notifications","id":"1C01FAB9-AD9A-44B5-BAF1-EC06408A767E"},"13374":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:26:48 GMT+0100 (Central Europe Standard Time)"},"13375":{"date":{"__isSmartRef__":true,"id":13376},"author":"lauritz","message":"changed label \"Category:\" to \"Tag:\".","id":"DBC877ED-0328-44A8-A46D-FE83C935797F"},"13376":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:50:45 GMT+0100 (Central Europe Standard Time)"},"13377":{"date":{"__isSmartRef__":true,"id":13378},"author":"bsiegmund","message":"Run Button now moving when window is resized","id":"9ECA7B2B-8322-42C5-8EFA-49AC432960B4"},"13378":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:36:10 GMT+0100 (Central Europe Standard Time)"},"13379":{"date":{"__isSmartRef__":true,"id":13380},"author":"sstamm","message":"added save button","id":"3A85D0AF-64E0-40C7-8C4E-61CD462F3971"},"13380":{"isSerializedDate":true,"string":"Fri Feb 03 2012 11:45:18 GMT+0100 (Central Europe Standard Time)"},"13381":{"date":{"__isSmartRef__":true,"id":13382},"author":"fabian","message":"","id":"6FF4CD6F-6C92-449F-B2CA-20BFACE54E7A"},"13382":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:37:11 GMT+0100 (Central Europe Standard Time)"},"13383":{"date":{"__isSmartRef__":true,"id":13384},"author":"fabian","message":"","id":"112A906B-C79A-4CF2-BD2A-EEF9A6731634"},"13384":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:42:40 GMT+0100 (Central Europe Standard Time)"},"13385":{"date":{"__isSmartRef__":true,"id":13386},"author":"fabian","message":"","id":"EE9D6061-DD05-4FC8-B53A-21B93B9F5535"},"13386":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:57:12 GMT+0100 (Central Europe Standard Time)"},"13387":{"date":{"__isSmartRef__":true,"id":13388},"author":"fabian","message":"","id":"AEB64F75-685C-4BB8-8C69-D8EC60CBA91D"},"13388":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:14:57 GMT+0100 (Central Europe Standard Time)"},"13389":{"date":{"__isSmartRef__":true,"id":13390},"author":"fabian","message":"","id":"0714BC73-548D-4AF3-9A61-32FEE36C9B1F"},"13390":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:34:16 GMT+0100 (Central Europe Standard Time)"},"13391":{"date":{"__isSmartRef__":true,"id":13392},"author":"fabian","message":"","id":"E39C79D4-9E74-47BA-A6EA-D0B861EB411D"},"13392":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:46:13 GMT+0100 (Central Europe Standard Time)"},"13393":{"date":{"__isSmartRef__":true,"id":13394},"author":"fabian","message":"","id":"50D90B40-1175-48A3-AC0E-10AC8884288A"},"13394":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:51:00 GMT+0100 (Central Europe Standard Time)"},"13395":{"date":{"__isSmartRef__":true,"id":13396},"author":"robertkrahn","message":"- Tags text morph now is a input line, fixed a bug in generateSourceForScript()","id":"485A3064-009C-4A89-875B-D3BF1B1C0606"},"13396":{"isSerializedDate":true,"string":"Thu Mar 08 2012 19:12:32 GMT+0100 (Central Europe Standard Time)"},"13397":{"date":{"__isSmartRef__":true,"id":13398},"author":"fbo","message":"No more addScript and better support for Firefox","id":"1BC8E4F5-9621-43E1-9451-35E018A8B06F"},"13398":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:16:30 GMT+0200 (Central Europe Daylight Time)"},"13399":{"date":{"__isSmartRef__":true,"id":13400},"author":"robertkrahn","message":"restored old version for addressing immediate save problems","id":"63323F27-08DC-499B-80D6-A700A30FE6BA"},"13400":{"isSerializedDate":true,"string":"Thu Apr 26 2012 22:03:48 GMT+0200 (Central Europe Daylight Time)"},"13401":{"date":{"__isSmartRef__":true,"id":13402},"author":"timfelgentreff","message":"no comment","id":"6D83027E-EC28-4497-A29F-E48051BD74FA"},"13402":{"isSerializedDate":true,"string":"Thu May 24 2012 16:54:16 GMT+0200 (Central Europe Daylight Time)"},"13403":{"date":{"__isSmartRef__":true,"id":13404},"author":"timfelgentreff","message":"Add a magnifiying glass to select target (similar to developer tools DOM selection)","id":"D9409D32-738F-4916-BA02-82C040C9891B"},"13404":{"isSerializedDate":true,"string":"Thu May 24 2012 17:21:39 GMT+0200 (Central Europe Daylight Time)"},"13405":{"date":{"__isSmartRef__":true,"id":13406},"author":"lauritz","message":"added cschusters's Widget.js module to this part's PartsBinMetaInfo.requiredModules","id":"CDFDF35E-A6AC-4ABC-8ADC-567B3CC55F6B"},"13406":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:11:02 GMT+0200 (Central Europe Daylight Time)"},"13407":{"date":{"__isSmartRef__":true,"id":13408},"author":"tessi","message":"select target-dropwdownlist instead of \"Target\"-Label when clicking on the dropdownlist","id":"8744030E-7C35-4B0D-9619-DDF542E951E3"},"13408":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:21:25 GMT+0200 (Central Europe Daylight Time)"},"13409":{"date":{"__isSmartRef__":true,"id":13410},"author":"timfelgentreff","message":"resize initially","id":"6D0DAD13-A4E6-4FC7-AB01-0CBD3CBE6FEE"},"13410":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:26:37 GMT+0200 (Central Europe Daylight Time)"},"13411":{"setTarget":{"__isSmartRef__":true,"id":13412},"reset":{"__isSmartRef__":true,"id":13416},"onShutdown":{"__isSmartRef__":true,"id":13420}},"13412":{"varMapping":{"__isSmartRef__":true,"id":13413},"source":"function setTarget(t) {\n this.targetMorph.setTarget(t);\n}","funcProperties":{"__isSmartRef__":true,"id":13414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13413":{"this":{"__isSmartRef__":true,"id":12046}},"13414":{"timestamp":{"__isSmartRef__":true,"id":13415},"user":"lauritz","categories":[]},"13415":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Central Europe Standard Time)"},"13416":{"varMapping":{"__isSmartRef__":true,"id":13417},"source":"function reset() {\n this.targetMorph.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":13418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13417":{"this":{"__isSmartRef__":true,"id":12046}},"13418":{"timestamp":{"__isSmartRef__":true,"id":13419},"user":"lauritz","categories":[]},"13419":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Central Europe Standard Time)"},"13420":{"varMapping":{"__isSmartRef__":true,"id":13421},"source":"function onShutdown() {\n this.targetMorph.onShutdown();\n}","funcProperties":{"__isSmartRef__":true,"id":13422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13421":{"this":{"__isSmartRef__":true,"id":12046}},"13422":{"timestamp":{"__isSmartRef__":true,"id":13423},"user":"lauritz","categories":[]},"13423":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:25:16 GMT+0200 (Central Europe Daylight Time)"},"13424":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"13425":{"options":{"__isSmartRef__":true,"id":13426}},"13426":{"override":["onDrag","onDragStart","onDragEnd"]},"13427":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13428":{"morph":{"__isSmartRef__":true,"id":11954},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13429":{"_BorderWidth":10,"_BorderColor":null,"__serializedExpressions__":["_Fill","_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(204,204,204)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1044.0,788.0)","_Padding":"lively.rect(0,0,0,0)"},"13430":{"morph":{"__isSmartRef__":true,"id":11953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13431":{"submorphs":[{"__isSmartRef__":true,"id":13432},{"__isSmartRef__":true,"id":13438},{"__isSmartRef__":true,"id":13466},{"__isSmartRef__":true,"id":13487},{"__isSmartRef__":true,"id":13502},{"__isSmartRef__":true,"id":13523}],"scripts":[],"id":"477EB316-4191-40B8-A89B-AB13766A597C","shape":{"__isSmartRef__":true,"id":14901},"__layered_droppingEnabled__":true,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":14902},"draggingEnabled":true,"name":"SWASlide53","partsBinMetaInfo":{"__isSmartRef__":true,"id":14904},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":14905},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","789CEA66-A12E-40FF-AC81-D7F3CFFE2EC4","41752457-1C6D-4D59-8C10-85A5E4273D09","FE4A29A9-36C9-4D5B-B63A-79CBF7134C5C"],"prevScroll":[0,0],"eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","eventsAreIgnored":false,"_ClipMode":"visible","owner":null,"__serializedExpressions__":["distanceToDragEvent","lastWorldPosition","_Position"],"_Rotation":0,"_Scale":1,"grabbingEnabled":false,"_Visible":true,"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(720.0,1820.0)","_Position":"lively.pt(10.0,10.0)"},"13432":{"submorphs":[],"scripts":[],"id":"D00A8D94-BB31-4A8C-856E-85B87626B0E0","shape":{"__isSmartRef__":true,"id":13433},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":13434},"textChunks":[{"__isSmartRef__":true,"id":13435}],"owner":{"__isSmartRef__":true,"id":13431},"charsReplaced":"Freedom Of Speech Copy","lastFindLoc":44,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13437},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","505CBC3C-4C95-4F83-817F-29CD515373B6","5E6EB100-4F2D-4B97-990E-A58638A04420","95457801-9378-400A-A593-F40B1E486E75"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"previousSelection":[4,4],"isBeingDragged":false,"__serializedExpressions__":["_Position","textColor","_TextColor"],"_Rotation":0,"_Scale":1.001001001001001,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"13433":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"13434":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13435":{"style":{"__isSmartRef__":true,"id":13436},"chunkOwner":{"__isSmartRef__":true,"id":13432},"storedString":"Limitations","_id":"_222","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13436":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13437":{"morph":{"__isSmartRef__":true,"id":13432},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13438":{"submorphs":[],"scripts":[],"id":"C0044AED-E1D5-4135-A508-5DEAA56CCEF3","shape":{"__isSmartRef__":true,"id":13439},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":13440},"textChunks":[{"__isSmartRef__":true,"id":13441},{"__isSmartRef__":true,"id":13443},{"__isSmartRef__":true,"id":13445},{"__isSmartRef__":true,"id":13447},{"__isSmartRef__":true,"id":13449},{"__isSmartRef__":true,"id":13451},{"__isSmartRef__":true,"id":13453},{"__isSmartRef__":true,"id":13455},{"__isSmartRef__":true,"id":13457},{"__isSmartRef__":true,"id":13459},{"__isSmartRef__":true,"id":13461},{"__isSmartRef__":true,"id":13463}],"charsReplaced":"view / edit common scripts on all group members","lastFindLoc":255,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13465},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","574526A8-CA11-4A39-B12B-51B4635EC39A","00890A35-A0F3-4B1A-8877-362C266800C7","3E97DC8F-0CD0-4B26-9581-F7B21D06B6FB"],"previousSelection":[182,183],"owner":{"__isSmartRef__":true,"id":13431},"priorSelectionRange":[146,183],"__serializedExpressions__":["_Position","textColor","_TextColor"],"_Rotation":0,"_Scale":1.001001001001001,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(97.0,193.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)"},"13439":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,279.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"13440":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13441":{"style":{"__isSmartRef__":true,"id":13442},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":"","_id":"_724","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13442":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13443":{"style":{"__isSmartRef__":true,"id":13444},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":"■ ","_id":"_223","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13444":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13445":{"style":{"__isSmartRef__":true,"id":13446},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":"Persistent Groups\n","_id":"_224","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13446":{"fontSize":"27px","fontStyle":"normal","fontVariant":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","color":"rgb(0,0,0)","fontFamily":"Helvetica","fontWeight":"bold","textAlign":"-webkit-auto","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13447":{"style":{"__isSmartRef__":true,"id":13448},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":" - ","_id":"_225","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13448":{"color":"rgb(0,0,0)","fontFamily":"Helvetica","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"-webkit-auto","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13449":{"style":{"__isSmartRef__":true,"id":13450},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":"no explicit group objects\n","_id":"_226","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13450":{"color":"rgb(0,0,0)","fontFamily":"Helvetica","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"-webkit-auto","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13451":{"style":{"__isSmartRef__":true,"id":13452},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":" - group membership saved on morphs\n - group selection only incorporates present morphs\n","_id":"_227","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13452":{"color":"rgb(0,0,0)","fontFamily":"Helvetica","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"-webkit-auto","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13453":{"style":{"__isSmartRef__":true,"id":13454},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":"\n","_id":"_228","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13454":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13455":{"style":{"__isSmartRef__":true,"id":13456},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":"■ ","_id":"_229","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13456":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13457":{"style":{"__isSmartRef__":true,"id":13458},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":"Separate Editor\n","_id":"_230","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13458":{"fontSize":"27px","fontStyle":"normal","fontVariant":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","color":"rgb(0,0,0)","fontFamily":"Helvetica","textAlign":"-webkit-auto","textDecoration":"none","fontWeight":"bold","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13459":{"style":{"__isSmartRef__":true,"id":13460},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":" - changes to object editor not automatically merged\n","_id":"_231","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13460":{"fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","color":"rgb(0,0,0)","fontFamily":"Helvetica","textAlign":"-webkit-auto","backgroundColor":"rgb(255,255,255)","textDecoration":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13461":{"style":{"__isSmartRef__":true,"id":13462},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":"\n","_id":"_232","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13462":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","textDecoration":"none","backgroundColor":"rgb(255,255,255)","float":"none","outlineStyle":"none","outlineWidth":"initial","outlineColor":"initial","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13463":{"style":{"__isSmartRef__":true,"id":13464},"chunkOwner":{"__isSmartRef__":true,"id":13438},"storedString":"\n","_id":"_233","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13464":{"textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13465":{"morph":{"__isSmartRef__":true,"id":13438},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13466":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13467},"derivationIds":[null,"C91C7A1D-6475-460A-9934-50BFB3BDD0CA","235263A6-5B5D-4254-A5E0-0085E08EE8DA","E485717F-C711-4489-A08A-1C47955B74DB","5DEF033C-1B6E-42C8-8B64-539E7F671D31","EACDF281-597E-4798-8660-4584A590593D","9BC238B7-A19E-421A-A380-8FFFF13E0920"],"id":"6EDCC590-DCBD-41AF-A867-491F3CA4F030","eventHandler":{"__isSmartRef__":true,"id":13468},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"ScientistCharacter3","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":13469},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":13431},"isBeingDragged":false,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":2.214730942043113,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13482},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(903.0,339.1)"},"13467":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/scientist.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,20.0)","_Padding":"lively.rect(0,0,0,0)"},"13468":{"morph":{"__isSmartRef__":true,"id":13466},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13469":{"partName":"ScientistCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A scientist character who knows A LOT!!1","changes":[{"__isSmartRef__":true,"id":13470},{"__isSmartRef__":true,"id":13472},{"__isSmartRef__":true,"id":13474},{"__isSmartRef__":true,"id":13476},{"__isSmartRef__":true,"id":13478},{"__isSmartRef__":true,"id":13480}],"migrationLevel":4,"revisionOnLoad":156419,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13470":{"date":{"__isSmartRef__":true,"id":13471},"author":"timfelgentreff","message":"no comment","id":"BF38DA82-CAF7-4DEA-BCA5-B106FEFC0AFB"},"13471":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:37:24 GMT+0200 (Central Europe Daylight Time)"},"13472":{"date":{"__isSmartRef__":true,"id":13473},"author":"tessi","message":"typo","id":"34473741-0521-4BD1-BC93-DF88917EF5DF"},"13473":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:32:17 GMT+0200 (Central Europe Daylight Time)"},"13474":{"date":{"__isSmartRef__":true,"id":13475},"author":"tessi","message":"","id":"D21104FA-3310-44C8-9251-B7406894B2B7"},"13475":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:44:52 GMT+0200 (Central Europe Daylight Time)"},"13476":{"date":{"__isSmartRef__":true,"id":13477},"author":"tessi","message":"","id":"E2F64556-CA9B-4B95-8DB0-09CBBDC6C471"},"13477":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:03:16 GMT+0200 (Central Europe Daylight Time)"},"13478":{"date":{"__isSmartRef__":true,"id":13479},"author":"tessi","message":"Give our prof more sentences to say","id":"089204B1-6181-4182-B02B-87E94A452DE2"},"13479":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:06:46 GMT+0200 (Central Europe Daylight Time)"},"13480":{"date":{"__isSmartRef__":true,"id":13481},"author":"lauritz","message":"no comment","id":"D254F47E-8439-4032-A018-BAA865E7CD51"},"13481":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:26:32 GMT+0200 (Central Europe Daylight Time)"},"13482":{"soliloquize":{"__isSmartRef__":true,"id":13483}},"13483":{"varMapping":{"__isSmartRef__":true,"id":13484},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"I wanna make someone call me Prof. again\",\n \"Muharharhar!\",\n \"Why do these chemicals explode all the time?\",\n \"The world will be mine!\",\n \".. my toe tickles ..\",\n \"Back to the Lab!\",\n \"Things should have more labels on them!\",\n \"GreenIT - Muhahahr\",\n \"\\\"Dominate the world in seven days\\\"\\n this book looks interesting\",\n \"Hell yeah it's rocket science!\",\n \"darn..premise wrong,..again.\",\n \"I don't like people\",\n \"Theory of Everything!!\",\n \"An entropy cannot decrease in a closed system,\\nso I guess that's why there's\\n a hole in my sock\",\n \"As objects in motion tend to remain in motion\\nI fell down the stairs\",\n \"I have a degree in horribleness\",\n \"My application to the \\\"Evil League Of Evil\\\"\\nis still pending...\\nShould I call Bad Horse?\",\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":13485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13484":{"this":{"__isSmartRef__":true,"id":13466}},"13485":{"timestamp":{"__isSmartRef__":true,"id":13486},"user":"timfelgentreff","tags":[]},"13486":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:37:05 GMT+0200 (Central Europe Daylight Time)"},"13487":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13488},"derivationIds":[null,"DDEAC478-2517-4549-94EE-CDDC72BCB67A","7C9FE591-7783-4A14-A4C6-3202BFD06CDB","1880E48F-8410-43CD-B356-0A1E07E68A4A"],"id":"8F707FA0-E74C-4D41-80B1-60499C0A2080","eventHandler":{"__isSmartRef__":true,"id":13489},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"OctocatCharacter4","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":13490},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":13431},"behaviorGroups":["Villains"],"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":2.214730942043113,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13497},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(883.9,130.6)"},"13488":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/octocat.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(32.0,32.0)","_Padding":"lively.rect(0,0,0,0)"},"13489":{"morph":{"__isSmartRef__":true,"id":13487},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13490":{"partName":"OctocatCharacter","requiredModules":[],"comment":"Look at me! I'm doing the octo dance!","changes":[{"__isSmartRef__":true,"id":13491},{"__isSmartRef__":true,"id":13493},{"__isSmartRef__":true,"id":13495}],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech/","revisionOnLoad":154726,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13491":{"date":{"__isSmartRef__":true,"id":13492},"author":"tessi","message":"octocat does not soliloquize (for now!?)","id":"0F039063-F9E3-4503-B1ED-C1C7C887679B"},"13492":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:04 GMT+0200 (Central Europe Daylight Time)"},"13493":{"date":{"__isSmartRef__":true,"id":13494},"author":"tessi","message":"","id":"977A2D23-B062-4F60-AB60-63CF3624D817"},"13494":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:33:30 GMT+0200 (Central Europe Daylight Time)"},"13495":{"date":{"__isSmartRef__":true,"id":13496},"author":"tessi","message":"","id":"F614B373-FE65-419F-AC36-21BCCE60AEE6"},"13496":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:36:27 GMT+0200 (Central Europe Daylight Time)"},"13497":{"soliloquize":{"__isSmartRef__":true,"id":13498}},"13498":{"varMapping":{"__isSmartRef__":true,"id":13499},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n undefined\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":13500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13499":{"this":{"__isSmartRef__":true,"id":13487}},"13500":{"timestamp":{"__isSmartRef__":true,"id":13501},"user":"tessi","tags":[]},"13501":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:38:40 GMT+0200 (Central Europe Daylight Time)"},"13502":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13503},"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":"6C5B397A-4820-4CEE-9E4C-D1AB0FF3EC7B","eventHandler":{"__isSmartRef__":true,"id":13504},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"OgreCharacter6","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":13505},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":13431},"isBeingDragged":false,"behaviorGroups":["Villains"],"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":2.214730942043113,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13518},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(815.6,165.5)"},"13503":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/ogre.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(30.0,30.0)","_Padding":"lively.rect(0,0,0,0)"},"13504":{"morph":{"__isSmartRef__":true,"id":13502},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13505":{"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":13506},{"__isSmartRef__":true,"id":13508},{"__isSmartRef__":true,"id":13510},{"__isSmartRef__":true,"id":13512},{"__isSmartRef__":true,"id":13514},{"__isSmartRef__":true,"id":13516}],"migrationLevel":4,"revisionOnLoad":156416,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13506":{"date":{"__isSmartRef__":true,"id":13507},"author":"lauritz","message":"i've got to tell a thing or two","id":"70436981-18DC-4F38-8140-749232838288"},"13507":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:29 GMT+0200 (Central Europe Daylight Time)"},"13508":{"date":{"__isSmartRef__":true,"id":13509},"author":"tessi","message":"some more sentences for our lovely ogre","id":"CAA81E8E-2A04-4B19-A2A3-BDC1DE903D07"},"13509":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:41:46 GMT+0200 (Central Europe Daylight Time)"},"13510":{"date":{"__isSmartRef__":true,"id":13511},"author":"tessi","message":"","id":"037D4B98-0FC3-4F01-AAC5-1A7043695CDF"},"13511":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:42:21 GMT+0200 (Central Europe Daylight Time)"},"13512":{"date":{"__isSmartRef__":true,"id":13513},"author":"tessi","message":"","id":"27266C01-3C1A-49AC-ADAF-D4699D234741"},"13513":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:00 GMT+0200 (Central Europe Daylight Time)"},"13514":{"date":{"__isSmartRef__":true,"id":13515},"author":"tessi","message":"an ogre now talks some sentences when soliloquizing","id":"9B52F781-C25B-44D7-B07A-BF47EA424C08"},"13515":{"isSerializedDate":true,"string":"Sat Apr 21 2012 17:34:12 GMT+0200 (Central Europe Daylight Time)"},"13516":{"date":{"__isSmartRef__":true,"id":13517},"author":"lauritz","message":"no comment","id":"A49B0290-BC2D-4D41-9981-C0207ECC4EE5"},"13517":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:29:57 GMT+0200 (Central Europe Daylight Time)"},"13518":{"soliloquize":{"__isSmartRef__":true,"id":13519}},"13519":{"varMapping":{"__isSmartRef__":true,"id":13520},"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":13521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13520":{"this":{"__isSmartRef__":true,"id":13502}},"13521":{"timestamp":{"__isSmartRef__":true,"id":13522},"user":"lauritz","tags":[]},"13522":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:26:22 GMT+0200 (Central Europe Daylight Time)"},"13523":{"submorphs":[{"__isSmartRef__":true,"id":13524},{"__isSmartRef__":true,"id":14627},{"__isSmartRef__":true,"id":14656}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14732},"id":"8B4BDA01-C023-405F-983C-BF7EB127DD1B","eventHandler":{"__isSmartRef__":true,"id":14733},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":14734},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":13524},"titleBar":{"__isSmartRef__":true,"id":14656},"collapsedTransform":{"__isSmartRef__":true,"id":14735},"expandedTransform":{"__isSmartRef__":true,"id":14736},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":14737},"name":"ObjectGroupEditor2","highlighted":true,"cameForward":false,"showsHalos":false,"isBeingDragged":false,"prevScroll":[0,0],"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"],"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":13431},"__serializedExpressions__":["contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition","minSize","minExtent","_Position"],"_Rotation":0,"_Scale":1.118439125731772,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14888},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(723.0,268.0)","expandedExtent":"lively.pt(729.0,365.0)","prevDragPos":"lively.pt(498.3,414.7)","expandedPosition":"lively.pt(26.0,125.0)","collapsedPosition":"lively.pt(21.0,92.9)","minSize":"lively.pt(500.0,300.0)","minExtent":"lively.pt(455.0,268.0)","_Position":"lively.pt(286.7,437.4)"},"13524":{"submorphs":[{"__isSmartRef__":true,"id":13525},{"__isSmartRef__":true,"id":14038},{"__isSmartRef__":true,"id":14044},{"__isSmartRef__":true,"id":14065},{"__isSmartRef__":true,"id":13759},{"__isSmartRef__":true,"id":13796},{"__isSmartRef__":true,"id":14091},{"__isSmartRef__":true,"id":14097},{"__isSmartRef__":true,"id":14154},{"__isSmartRef__":true,"id":14197},{"__isSmartRef__":true,"id":14378},{"__isSmartRef__":true,"id":14415}],"scripts":[{"__isSmartRef__":true,"id":14514}],"id":"EC990106-AC9D-4628-887B-2F9D829402AA","shape":{"__isSmartRef__":true,"id":14515},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":14516},"eventHandler":{"__isSmartRef__":true,"id":14519},"layout":{"__isSmartRef__":true,"id":14520},"target":{"__isSmartRef__":true,"id":13765},"scriptPane":{"__isSmartRef__":true,"id":13759},"scriptList":{"__isSmartRef__":true,"id":13525},"connectionList":{"__isSmartRef__":true,"id":13873},"morphSelector":{"__isSmartRef__":true,"id":14415},"changeIndicator":{"__isSmartRef__":true,"id":13796},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"tagChooser":{"__isSmartRef__":true,"id":14097},"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"],"owner":{"__isSmartRef__":true,"id":13523},"partTests":{"__isSmartRef__":true,"id":14521},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":142,"__serializedExpressions__":["distanceToDragEvent","_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14522},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(350.2,-3.2)","_Position":"lively.pt(1.0,21.5)"},"13525":{"submorphs":[],"scripts":[],"id":"39EAB9E1-15E5-4DE8-B742-AD41E69B1004","shape":{"__isSmartRef__":true,"id":13526},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":["-- ALL --"],"selectedLineNo":0,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":13527},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":13524},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":13528}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":13530},"doitContext":{"__isSmartRef__":true,"id":13531},"eventHandler":{"__isSmartRef__":true,"id":14029},"_FontSize":10,"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"],"selection":"-- ALL --","changeTriggered":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14030},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,63.0)","distanceToDragEvent":"lively.pt(126.0,-14.4)"},"13526":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,169.5)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"13527":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13528":{"sourceObj":{"__isSmartRef__":true,"id":13525},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":13524},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13529},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13529":{"source":{"__isSmartRef__":true,"id":13525},"target":{"__isSmartRef__":true,"id":13524}},"13530":{"resizeHeight":true},"13531":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":13532},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":13533},"titleBar":{"__isSmartRef__":true,"id":13534},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":13599},"highlighted":true,"_Rotation":0,"_Scale":1,"showsHalos":false,"name":"ObjectEditor","target":{"__isSmartRef__":true,"id":13600},"partsBinMetaInfo":{"__isSmartRef__":true,"id":13758},"scriptList":{"__isSmartRef__":true,"id":13525},"scriptPane":{"__isSmartRef__":true,"id":13759},"classButton":{"__isSmartRef__":true,"id":13853},"connectionList":{"__isSmartRef__":true,"id":13873},"targetButton":{"__isSmartRef__":true,"id":13885},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"morphSelector":{"__isSmartRef__":true,"id":13903},"eventHandler":{"__isSmartRef__":true,"id":13976},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["contentOffset","expandedExtent","prevDragPos","expandedPosition","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","expandedExtent":"lively.pt(861.5,575.2)","prevDragPos":"lively.pt(613.0,129.0)","expandedPosition":"lively.pt(377.7,419.5)","_Position":"lively.pt(715.5,73.9)"},"13532":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":9.25,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Fill","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Extent":"lively.pt(981.0,585.2)","_BorderColor":"Color.rgb(0,0,0)"},"13533":{"adjustForNewBounds":true},"13534":{"submorphs":[{"__isSmartRef__":true,"id":13535},{"__isSmartRef__":true,"id":13540},{"__isSmartRef__":true,"id":13561},{"__isSmartRef__":true,"id":13576}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":13592},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13597},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":13531},"label":{"__isSmartRef__":true,"id":13535},"closeButton":{"__isSmartRef__":true,"id":13540},"menuButton":{"__isSmartRef__":true,"id":13561},"collapseButton":{"__isSmartRef__":true,"id":13576},"owner":null,"name":"ObjectEditorTitleBar","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":13598},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"13535":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":13536},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":13537}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":13534},"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":13539},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"13536":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(922.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13537":{"style":{"__isSmartRef__":true,"id":13538},"chunkOwner":{"__isSmartRef__":true,"id":13535},"storedString":"","_id":"_426","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13538":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13539":{"morph":{"__isSmartRef__":true,"id":13535},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13540":{"submorphs":[{"__isSmartRef__":true,"id":13541}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":13546},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13547},"lighterFill":{"__isSmartRef__":true,"id":13552},"label":{"__isSmartRef__":true,"id":13541},"owner":{"__isSmartRef__":true,"id":13534},"layout":{"__isSmartRef__":true,"id":13557},"attributeConnections":[{"__isSmartRef__":true,"id":13558},{"__isSmartRef__":true,"id":13559}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":13560},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(961.0,3.0)"},"13541":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":13542},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":13543}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13540},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":13545},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"13542":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13543":{"style":{"__isSmartRef__":true,"id":13544},"chunkOwner":{"__isSmartRef__":true,"id":13541},"storedString":"","_id":"_725","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13544":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13545":{"morph":{"__isSmartRef__":true,"id":13541},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13546":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13547},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"13547":{"stops":[{"__isSmartRef__":true,"id":13548},{"__isSmartRef__":true,"id":13549},{"__isSmartRef__":true,"id":13550},{"__isSmartRef__":true,"id":13551}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13548":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"13549":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13550":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13551":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"13552":{"stops":[{"__isSmartRef__":true,"id":13553},{"__isSmartRef__":true,"id":13554},{"__isSmartRef__":true,"id":13555},{"__isSmartRef__":true,"id":13556}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13553":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13554":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13555":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13556":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13557":{"moveHorizontal":true},"13558":{"sourceObj":{"__isSmartRef__":true,"id":13540},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13531},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13559":{"sourceObj":{"__isSmartRef__":true,"id":13540},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13531},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13560":{"morph":{"__isSmartRef__":true,"id":13540},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13561":{"submorphs":[{"__isSmartRef__":true,"id":13562}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":13567},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13547},"lighterFill":{"__isSmartRef__":true,"id":13568},"label":{"__isSmartRef__":true,"id":13562},"owner":{"__isSmartRef__":true,"id":13534},"attributeConnections":[{"__isSmartRef__":true,"id":13573},{"__isSmartRef__":true,"id":13574}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":13575},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"13562":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":13563},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":13564}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13561},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":13566},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"13563":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13564":{"style":{"__isSmartRef__":true,"id":13565},"chunkOwner":{"__isSmartRef__":true,"id":13562},"storedString":"","_id":"_726","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13565":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13566":{"morph":{"__isSmartRef__":true,"id":13562},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13567":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13547},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"13568":{"stops":[{"__isSmartRef__":true,"id":13569},{"__isSmartRef__":true,"id":13570},{"__isSmartRef__":true,"id":13571},{"__isSmartRef__":true,"id":13572}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13569":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13570":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13571":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13572":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13573":{"sourceObj":{"__isSmartRef__":true,"id":13561},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13531},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13574":{"sourceObj":{"__isSmartRef__":true,"id":13561},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13531},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13575":{"morph":{"__isSmartRef__":true,"id":13561},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13576":{"submorphs":[{"__isSmartRef__":true,"id":13577}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":13582},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13547},"lighterFill":{"__isSmartRef__":true,"id":13583},"label":{"__isSmartRef__":true,"id":13577},"owner":{"__isSmartRef__":true,"id":13534},"layout":{"__isSmartRef__":true,"id":13588},"attributeConnections":[{"__isSmartRef__":true,"id":13589},{"__isSmartRef__":true,"id":13590}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":13591},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(942.0,3.0)"},"13577":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":13578},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":13579}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13576},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":13581},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"13578":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13579":{"style":{"__isSmartRef__":true,"id":13580},"chunkOwner":{"__isSmartRef__":true,"id":13577},"storedString":"","_id":"_727","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13580":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13581":{"morph":{"__isSmartRef__":true,"id":13577},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13582":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13547},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"13583":{"stops":[{"__isSmartRef__":true,"id":13584},{"__isSmartRef__":true,"id":13585},{"__isSmartRef__":true,"id":13586},{"__isSmartRef__":true,"id":13587}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13584":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13585":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13586":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13587":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13588":{"moveHorizontal":true},"13589":{"sourceObj":{"__isSmartRef__":true,"id":13576},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13531},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13590":{"sourceObj":{"__isSmartRef__":true,"id":13576},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13531},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13591":{"morph":{"__isSmartRef__":true,"id":13576},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13592":{"_BorderWidth":2,"_Fill":{"__isSmartRef__":true,"id":13593},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(981.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"13593":{"stops":[{"__isSmartRef__":true,"id":13594},{"__isSmartRef__":true,"id":13595},{"__isSmartRef__":true,"id":13596}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,1,0,-1)"},"13594":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"13595":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(230,230,230)"},"13596":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"13597":{"resizeWidth":true,"adjustForNewBounds":true},"13598":{"morph":{"__isSmartRef__":true,"id":13534},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13599":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"13600":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13601},"id":394,"textChunks":[{"__isSmartRef__":true,"id":13602}],"eventHandler":{"__isSmartRef__":true,"id":13604},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13605},"layout":{"__isSmartRef__":true,"id":13677},"doitContext":{"__isSmartRef__":true,"id":13678},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"13601":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,200.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"13602":{"style":{"__isSmartRef__":true,"id":13603},"chunkOwner":{"__isSmartRef__":true,"id":13600},"storedString":"","_id":"_728","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13603":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13604":{"morph":{"__isSmartRef__":true,"id":13600},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13605":{"submorphs":[{"__isSmartRef__":true,"id":13600},{"__isSmartRef__":true,"id":13606}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13674},"id":395,"eventHandler":{"__isSmartRef__":true,"id":13675},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":13676},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":13600},"titleBar":{"__isSmartRef__":true,"id":13606},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"cameForward":false,"showsHalos":false,"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1234.0,448.0)","contentOffset":"lively.pt(0.0,22.0)","prevDragPos":"lively.pt(1478.0,453.0)"},"13606":{"submorphs":[{"__isSmartRef__":true,"id":13607},{"__isSmartRef__":true,"id":13613},{"__isSmartRef__":true,"id":13636},{"__isSmartRef__":true,"id":13653}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13671},"id":396,"eventHandler":{"__isSmartRef__":true,"id":13672},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13673},"windowMorph":{"__isSmartRef__":true,"id":13605},"label":{"__isSmartRef__":true,"id":13607},"closeButton":{"__isSmartRef__":true,"id":13613},"menuButton":{"__isSmartRef__":true,"id":13636},"collapseButton":{"__isSmartRef__":true,"id":13653},"owner":{"__isSmartRef__":true,"id":13605},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"13607":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13608},"id":397,"textChunks":[{"__isSmartRef__":true,"id":13609}],"eventHandler":{"__isSmartRef__":true,"id":13611},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":13612},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":13606},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"13608":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13609":{"style":{"__isSmartRef__":true,"id":13610},"chunkOwner":{"__isSmartRef__":true,"id":13607},"storedString":"","_id":"_729","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13610":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13611":{"morph":{"__isSmartRef__":true,"id":13607},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13612":{"resizeWidth":true},"13613":{"submorphs":[{"__isSmartRef__":true,"id":13614}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13619},"id":398,"eventHandler":{"__isSmartRef__":true,"id":13625},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13620},"lighterFill":{"__isSmartRef__":true,"id":13626},"label":{"__isSmartRef__":true,"id":13614},"owner":{"__isSmartRef__":true,"id":13606},"layout":{"__isSmartRef__":true,"id":13631},"attributeConnections":[{"__isSmartRef__":true,"id":13632},{"__isSmartRef__":true,"id":13634}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"13614":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13615},"id":399,"textChunks":[{"__isSmartRef__":true,"id":13616}],"eventHandler":{"__isSmartRef__":true,"id":13618},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13613},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"13615":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13616":{"style":{"__isSmartRef__":true,"id":13617},"chunkOwner":{"__isSmartRef__":true,"id":13614},"storedString":"","_id":"_730","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13617":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13618":{"morph":{"__isSmartRef__":true,"id":13614},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13619":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13620},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"13620":{"stops":[{"__isSmartRef__":true,"id":13621},{"__isSmartRef__":true,"id":13622},{"__isSmartRef__":true,"id":13623},{"__isSmartRef__":true,"id":13624}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13621":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"13622":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13623":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13624":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"13625":{"morph":{"__isSmartRef__":true,"id":13613},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13626":{"stops":[{"__isSmartRef__":true,"id":13627},{"__isSmartRef__":true,"id":13628},{"__isSmartRef__":true,"id":13629},{"__isSmartRef__":true,"id":13630}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13627":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13628":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13629":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13630":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13631":{"moveHorizontal":true},"13632":{"sourceObj":{"__isSmartRef__":true,"id":13613},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13605},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13633},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13633":{"source":{"__isSmartRef__":true,"id":13613},"target":{"__isSmartRef__":true,"id":13605}},"13634":{"sourceObj":{"__isSmartRef__":true,"id":13613},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13605},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13635},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13635":{"source":{"__isSmartRef__":true,"id":13613},"target":{"__isSmartRef__":true,"id":13605}},"13636":{"submorphs":[{"__isSmartRef__":true,"id":13637}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13642},"id":400,"eventHandler":{"__isSmartRef__":true,"id":13643},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13620},"lighterFill":{"__isSmartRef__":true,"id":13644},"label":{"__isSmartRef__":true,"id":13637},"owner":{"__isSmartRef__":true,"id":13606},"attributeConnections":[{"__isSmartRef__":true,"id":13649},{"__isSmartRef__":true,"id":13651}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"13637":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13638},"id":401,"textChunks":[{"__isSmartRef__":true,"id":13639}],"eventHandler":{"__isSmartRef__":true,"id":13641},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13636},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"13638":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13639":{"style":{"__isSmartRef__":true,"id":13640},"chunkOwner":{"__isSmartRef__":true,"id":13637},"storedString":"","_id":"_731","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13640":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13641":{"morph":{"__isSmartRef__":true,"id":13637},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13642":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13620},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"13643":{"morph":{"__isSmartRef__":true,"id":13636},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13644":{"stops":[{"__isSmartRef__":true,"id":13645},{"__isSmartRef__":true,"id":13646},{"__isSmartRef__":true,"id":13647},{"__isSmartRef__":true,"id":13648}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13645":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13646":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13647":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13648":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13649":{"sourceObj":{"__isSmartRef__":true,"id":13636},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13605},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13650},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13650":{"source":{"__isSmartRef__":true,"id":13636},"target":{"__isSmartRef__":true,"id":13605}},"13651":{"sourceObj":{"__isSmartRef__":true,"id":13636},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13605},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13652":{"source":{"__isSmartRef__":true,"id":13636},"target":{"__isSmartRef__":true,"id":13605}},"13653":{"submorphs":[{"__isSmartRef__":true,"id":13654}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13659},"id":402,"eventHandler":{"__isSmartRef__":true,"id":13660},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13620},"lighterFill":{"__isSmartRef__":true,"id":13661},"label":{"__isSmartRef__":true,"id":13654},"owner":{"__isSmartRef__":true,"id":13606},"layout":{"__isSmartRef__":true,"id":13666},"attributeConnections":[{"__isSmartRef__":true,"id":13667},{"__isSmartRef__":true,"id":13669}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"13654":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13655},"id":403,"textChunks":[{"__isSmartRef__":true,"id":13656}],"eventHandler":{"__isSmartRef__":true,"id":13658},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13653},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"13655":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13656":{"style":{"__isSmartRef__":true,"id":13657},"chunkOwner":{"__isSmartRef__":true,"id":13654},"storedString":"","_id":"_732","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13657":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13658":{"morph":{"__isSmartRef__":true,"id":13654},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13659":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13620},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"13660":{"morph":{"__isSmartRef__":true,"id":13653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13661":{"stops":[{"__isSmartRef__":true,"id":13662},{"__isSmartRef__":true,"id":13663},{"__isSmartRef__":true,"id":13664},{"__isSmartRef__":true,"id":13665}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13662":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13663":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13664":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13665":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13666":{"moveHorizontal":true},"13667":{"sourceObj":{"__isSmartRef__":true,"id":13653},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13605},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13668},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13668":{"source":{"__isSmartRef__":true,"id":13653},"target":{"__isSmartRef__":true,"id":13605}},"13669":{"sourceObj":{"__isSmartRef__":true,"id":13653},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13605},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13670},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13670":{"source":{"__isSmartRef__":true,"id":13653},"target":{"__isSmartRef__":true,"id":13605}},"13671":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":13593},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"13672":{"morph":{"__isSmartRef__":true,"id":13606},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13673":{"resizeWidth":true,"adjustForNewBounds":true},"13674":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)"},"13675":{"morph":{"__isSmartRef__":true,"id":13605},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13676":{"adjustForNewBounds":true},"13677":{"resizeWidth":true,"resizeHeight":true},"13678":{"submorphs":[{"__isSmartRef__":true,"id":13679},{"__isSmartRef__":true,"id":13686}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13753},"id":361,"eventHandler":{"__isSmartRef__":true,"id":13754},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":13755},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":13679},"titleBar":{"__isSmartRef__":true,"id":13686},"collapsedTransform":{"__isSmartRef__":true,"id":13756},"expandedTransform":{"__isSmartRef__":true,"id":13757},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"state":"shutdown","__serializedExpressions__":["_Position","contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1131.0,79.0)","contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(500.0,22.0)","expandedExtent":"lively.pt(500.0,222.0)","prevDragPos":"lively.pt(1507.0,76.0)","expandedPosition":"lively.pt(1131.0,79.0)","collapsedPosition":"lively.pt(1131.0,79.0)"},"13679":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13680},"id":360,"textChunks":[{"__isSmartRef__":true,"id":13681}],"eventHandler":{"__isSmartRef__":true,"id":13683},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13678},"layout":{"__isSmartRef__":true,"id":13684},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":13685}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"charsReplaced":"","lastFindLoc":15,"__serializedExpressions__":["_Padding","_Position"],"textString":"undefined","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"13680":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"13681":{"style":{"__isSmartRef__":true,"id":13682},"chunkOwner":{"__isSmartRef__":true,"id":13679},"_id":"_4","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13682":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13683":{"morph":{"__isSmartRef__":true,"id":13679},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13684":{"resizeWidth":true,"resizeHeight":true},"13685":{"sourceObj":{"__isSmartRef__":true,"id":13679},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":13679},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13686":{"submorphs":[{"__isSmartRef__":true,"id":13687},{"__isSmartRef__":true,"id":13693},{"__isSmartRef__":true,"id":13711},{"__isSmartRef__":true,"id":13728}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13746},"id":362,"eventHandler":{"__isSmartRef__":true,"id":13751},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13752},"windowMorph":{"__isSmartRef__":true,"id":13678},"label":{"__isSmartRef__":true,"id":13687},"closeButton":{"__isSmartRef__":true,"id":13693},"menuButton":{"__isSmartRef__":true,"id":13711},"collapseButton":{"__isSmartRef__":true,"id":13728},"owner":{"__isSmartRef__":true,"id":13678},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"13687":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13688},"id":363,"textChunks":[{"__isSmartRef__":true,"id":13689}],"eventHandler":{"__isSmartRef__":true,"id":13691},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":13692},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":13686},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"13688":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13689":{"style":{"__isSmartRef__":true,"id":13690},"chunkOwner":{"__isSmartRef__":true,"id":13687},"storedString":"","_id":"_733","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13690":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13691":{"morph":{"__isSmartRef__":true,"id":13687},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13692":{"resizeWidth":true},"13693":{"submorphs":[{"__isSmartRef__":true,"id":13694}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13699},"id":364,"eventHandler":{"__isSmartRef__":true,"id":13700},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13620},"lighterFill":{"__isSmartRef__":true,"id":13701},"label":{"__isSmartRef__":true,"id":13694},"owner":{"__isSmartRef__":true,"id":13686},"layout":{"__isSmartRef__":true,"id":13706},"attributeConnections":[{"__isSmartRef__":true,"id":13707},{"__isSmartRef__":true,"id":13709}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"13694":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13695},"id":365,"textChunks":[{"__isSmartRef__":true,"id":13696}],"eventHandler":{"__isSmartRef__":true,"id":13698},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13693},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"13695":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13696":{"style":{"__isSmartRef__":true,"id":13697},"chunkOwner":{"__isSmartRef__":true,"id":13694},"storedString":"","_id":"_734","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13697":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13698":{"morph":{"__isSmartRef__":true,"id":13694},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13699":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13620},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"13700":{"morph":{"__isSmartRef__":true,"id":13693},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13701":{"stops":[{"__isSmartRef__":true,"id":13702},{"__isSmartRef__":true,"id":13703},{"__isSmartRef__":true,"id":13704},{"__isSmartRef__":true,"id":13705}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13702":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13703":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13704":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13705":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13706":{"moveHorizontal":true},"13707":{"sourceObj":{"__isSmartRef__":true,"id":13693},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13678},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13708},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13708":{"source":{"__isSmartRef__":true,"id":13693},"target":{"__isSmartRef__":true,"id":13678}},"13709":{"sourceObj":{"__isSmartRef__":true,"id":13693},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13678},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13710},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13710":{"source":{"__isSmartRef__":true,"id":13693},"target":{"__isSmartRef__":true,"id":13678}},"13711":{"submorphs":[{"__isSmartRef__":true,"id":13712}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13717},"id":366,"eventHandler":{"__isSmartRef__":true,"id":13718},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13620},"lighterFill":{"__isSmartRef__":true,"id":13719},"label":{"__isSmartRef__":true,"id":13712},"owner":{"__isSmartRef__":true,"id":13686},"attributeConnections":[{"__isSmartRef__":true,"id":13724},{"__isSmartRef__":true,"id":13726}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"13712":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13713},"id":367,"textChunks":[{"__isSmartRef__":true,"id":13714}],"eventHandler":{"__isSmartRef__":true,"id":13716},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13711},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"13713":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13714":{"style":{"__isSmartRef__":true,"id":13715},"chunkOwner":{"__isSmartRef__":true,"id":13712},"storedString":"","_id":"_735","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13715":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13716":{"morph":{"__isSmartRef__":true,"id":13712},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13717":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13620},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"13718":{"morph":{"__isSmartRef__":true,"id":13711},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13719":{"stops":[{"__isSmartRef__":true,"id":13720},{"__isSmartRef__":true,"id":13721},{"__isSmartRef__":true,"id":13722},{"__isSmartRef__":true,"id":13723}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13720":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13721":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13722":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13723":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13724":{"sourceObj":{"__isSmartRef__":true,"id":13711},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13678},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13725},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13725":{"source":{"__isSmartRef__":true,"id":13711},"target":{"__isSmartRef__":true,"id":13678}},"13726":{"sourceObj":{"__isSmartRef__":true,"id":13711},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13678},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13727},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13727":{"source":{"__isSmartRef__":true,"id":13711},"target":{"__isSmartRef__":true,"id":13678}},"13728":{"submorphs":[{"__isSmartRef__":true,"id":13729}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13734},"id":368,"eventHandler":{"__isSmartRef__":true,"id":13735},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13620},"lighterFill":{"__isSmartRef__":true,"id":13736},"label":{"__isSmartRef__":true,"id":13729},"owner":{"__isSmartRef__":true,"id":13686},"layout":{"__isSmartRef__":true,"id":13741},"attributeConnections":[{"__isSmartRef__":true,"id":13742},{"__isSmartRef__":true,"id":13744}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"13729":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13730},"id":369,"textChunks":[{"__isSmartRef__":true,"id":13731}],"eventHandler":{"__isSmartRef__":true,"id":13733},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13728},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"13730":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"13731":{"style":{"__isSmartRef__":true,"id":13732},"chunkOwner":{"__isSmartRef__":true,"id":13729},"storedString":"","_id":"_736","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13732":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13733":{"morph":{"__isSmartRef__":true,"id":13729},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13734":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":13620},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"13735":{"morph":{"__isSmartRef__":true,"id":13728},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13736":{"stops":[{"__isSmartRef__":true,"id":13737},{"__isSmartRef__":true,"id":13738},{"__isSmartRef__":true,"id":13739},{"__isSmartRef__":true,"id":13740}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13737":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13738":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13739":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13740":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13741":{"moveHorizontal":true},"13742":{"sourceObj":{"__isSmartRef__":true,"id":13728},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13678},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13743},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13743":{"source":{"__isSmartRef__":true,"id":13728},"target":{"__isSmartRef__":true,"id":13678}},"13744":{"sourceObj":{"__isSmartRef__":true,"id":13728},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13678},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13745},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13745":{"source":{"__isSmartRef__":true,"id":13728},"target":{"__isSmartRef__":true,"id":13678}},"13746":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":13747},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"13747":{"stops":[{"__isSmartRef__":true,"id":13748},{"__isSmartRef__":true,"id":13749},{"__isSmartRef__":true,"id":13750}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13748":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"13749":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(243,243,243)"},"13750":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"13751":{"morph":{"__isSmartRef__":true,"id":13686},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13752":{"resizeWidth":true,"adjustForNewBounds":true},"13753":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)","_Position":"lively.pt(0.0,0.0)"},"13754":{"morph":{"__isSmartRef__":true,"id":13678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13755":{"adjustForNewBounds":true},"13756":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"13757":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"13758":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13759":{"submorphs":[],"scripts":[],"id":"C851C4A2-D70C-4EC5-BC60-F47D7B4FB512","shape":{"__isSmartRef__":true,"id":13760},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":403.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":13761}],"layout":{"__isSmartRef__":true,"id":13763},"showsHalos":false,"prevScroll":[0,0],"name":"ObjectEditorScriptPane","charsReplaced":"// changed at Wed Jun 13 2012 16:23:24 GMT+0200 (CEST) by tessi \nthis.addScript(function foo() {\n return \"foo!\";\n}).tag([\"tagged\"]);\n\n\n// changed at Wed Jun 13 2012 16:26:48 GMT+0200 (CEST) by tessi \nthis.addScript(function baz() {\n return \"icke\"\n}).tag([\"due\"])","lastFindLoc":270,"partsBinMetaInfo":{"__isSmartRef__":true,"id":13764},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":2,"doitContext":{"__isSmartRef__":true,"id":13765},"savedTextString":"// changed at Wed Jun 13 2012 16:23:24 GMT+0200 (CEST) by tessi \nthis.addScript(function foo() {\n return \"foo!\";\n}).tag([\"tagged\"]);\n\n// changed at Wed Jun 13 2012 16:26:48 GMT+0200 (CEST) by tessi \nthis.addScript(function baz() {\n return \"icke\"\n}).tag([\"due\"])","_Align":"left","lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":13794},"attributeConnections":[{"__isSmartRef__":true,"id":13795},{"__isSmartRef__":true,"id":13810}],"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"],"_MinTextWidth":403.0285365288845,"_MinTextHeight":null,"lastSaveSource":"","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":13524},"isCopyMorphRef":true,"morphRefId":151,"statusMorph":{"__isSmartRef__":true,"id":13811},"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"],"owner":{"__isSmartRef__":true,"id":13524},"syntaxHighlightingWhileTyping":true,"#startLetters":"enable","_syntaxHighlightTimeout":17539,"previousSelection":[73,80],"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"textString":"undefined","_WordBreak":"break-all","_lastSyntaxHighlightTime":5,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13816},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(341.2,-18.3)","_Position":"lively.pt(200.0,40.0)"},"13760":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(405.0,196.6)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"13761":{"style":{"__isSmartRef__":true,"id":13762},"chunkOwner":{"__isSmartRef__":true,"id":13759},"_id":"_910","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13762":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,128)"},"13763":{"resizeWidth":true,"resizeHeight":true},"13764":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13765":{"__multi_selection_proxy__":true,"targets":[{"__isSmartRef__":true,"id":13502},{"__isSmartRef__":true,"id":13487}],"highlights":[],"name":"Villains","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13766}},"13766":{"setName":{"__isSmartRef__":true,"id":13767},"getName":{"__isSmartRef__":true,"id":13770},"push":{"__isSmartRef__":true,"id":13773},"getFunction":{"__isSmartRef__":true,"id":13776},"targetFunctions":{"__isSmartRef__":true,"id":13779},"privateTargetFunctions":{"__isSmartRef__":true,"id":13782},"highlight":{"__isSmartRef__":true,"id":13785},"removeHighlight":{"__isSmartRef__":true,"id":13788},"addScript":{"__isSmartRef__":true,"id":13791}},"13767":{"varMapping":{"__isSmartRef__":true,"id":13768},"source":"function (n) {\n this.name = n\n }","funcProperties":{"__isSmartRef__":true,"id":13769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13768":{"this":{"__isSmartRef__":true,"id":13765}},"13769":{},"13770":{"varMapping":{"__isSmartRef__":true,"id":13771},"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":13772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13771":{"this":{"__isSmartRef__":true,"id":13765}},"13772":{},"13773":{"varMapping":{"__isSmartRef__":true,"id":13774},"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":13775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13774":{"this":{"__isSmartRef__":true,"id":13765}},"13775":{},"13776":{"varMapping":{"__isSmartRef__":true,"id":13777},"source":"function (name) {\n var funcs = this.privateTargetFunctions()\n return funcs.find(function(f) { return f[0] === name })[1]\n }","funcProperties":{"__isSmartRef__":true,"id":13778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13777":{"this":{"__isSmartRef__":true,"id":13765}},"13778":{},"13779":{"varMapping":{"__isSmartRef__":true,"id":13780},"source":"function () {\n var funcs = this.privateTargetFunctions()\n return funcs.collect(function(f) { return f[0] });\n }","funcProperties":{"__isSmartRef__":true,"id":13781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13780":{"this":{"__isSmartRef__":true,"id":13765}},"13781":{},"13782":{"varMapping":{"__isSmartRef__":true,"id":13783},"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":13784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13783":{"this":{"__isSmartRef__":true,"id":13765}},"13784":{},"13785":{"varMapping":{"__isSmartRef__":true,"id":13786},"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":13787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13786":{"this":{"__isSmartRef__":true,"id":13765}},"13787":{},"13788":{"varMapping":{"__isSmartRef__":true,"id":13789},"source":"function () {\n this.highlights.each(function (h) {\n h.remove()\n })\n this.highlights = []\n }","funcProperties":{"__isSmartRef__":true,"id":13790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13789":{"this":{"__isSmartRef__":true,"id":13765}},"13790":{},"13791":{"varMapping":{"__isSmartRef__":true,"id":13792},"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":13793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13792":{"this":{"__isSmartRef__":true,"id":13765}},"13793":{},"13794":{"morph":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13795":{"sourceObj":{"__isSmartRef__":true,"id":13759},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":13796},"targetMethodName":"indicateUnsavedChanges","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13796":{"submorphs":[],"scripts":[],"id":"3DCD336D-EDD9-468F-B674-BAD72F189FB1","shape":{"__isSmartRef__":true,"id":13797},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":13798},"eventHandler":{"__isSmartRef__":true,"id":13799},"owner":{"__isSmartRef__":true,"id":13524},"layout":{"__isSmartRef__":true,"id":13800},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"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"],"_ClipMode":"visible","__serializedExpressions__":["_Position","savedColor","alarmColor","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13801},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(597.0,40.0)","savedColor":"Color.rgb(0,0,0)","alarmColor":"Color.rgb(240,0,0)","distanceToDragEvent":"lively.pt(37.3,-17.5)"},"13797":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(8.6,9.7)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"13798":{"partsSpaceName":"PartsBin/Basic","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","__SourceModuleName__":"Global.lively.PartsBin"},"13799":{"morph":{"__isSmartRef__":true,"id":13796},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13800":{"moveHorizontal":true,"adjustForNewBounds":true},"13801":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":13802},"setColors":{"__isSmartRef__":true,"id":13806}},"13802":{"varMapping":{"__isSmartRef__":true,"id":13803},"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":13804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13803":{"this":{"__isSmartRef__":true,"id":13796}},"13804":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":13805}},"13805":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (Central Europe Daylight Time)"},"13806":{"varMapping":{"__isSmartRef__":true,"id":13807},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":13808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13807":{"this":{"__isSmartRef__":true,"id":13796}},"13808":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":13809}},"13809":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (Central Europe Daylight Time)"},"13810":{"sourceObj":{"__isSmartRef__":true,"id":13759},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":13759},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13811":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13812},"id":553,"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13813}],"eventHandler":{"__isSmartRef__":true,"id":13815},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","owner":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(295.5,225.3)","_TextColor":"Color.rgb(0,204,0)"},"13812":{"_ClipMode":"visible","_BorderWidth":1,"_StrokeOpacity":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,25.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)"},"13813":{"style":{"__isSmartRef__":true,"id":13814},"chunkOwner":{"__isSmartRef__":true,"id":13811},"storedString":"saved source","_id":"_234","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13814":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13815":{"morph":{"__isSmartRef__":true,"id":13811},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13816":{"doSave":{"__isSmartRef__":true,"id":13817},"boundEval":{"__isSmartRef__":true,"id":13825},"reset":{"__isSmartRef__":true,"id":13833},"display":{"__isSmartRef__":true,"id":13837},"hasChanged":{"__isSmartRef__":true,"id":13841},"setTarget":{"__isSmartRef__":true,"id":13845},"displayStatus":{"__isSmartRef__":true,"id":13849}},"13817":{"varMapping":{"__isSmartRef__":true,"id":13818},"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":13823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13818":{"this":{"__isSmartRef__":true,"id":13759},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13819}},"13819":{"$super":{"__isSmartRef__":true,"id":13820}},"13820":{"varMapping":{"__isSmartRef__":true,"id":13821},"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":13822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13821":{"obj":{"__isSmartRef__":true,"id":13759},"name":"doSave"},"13822":{},"13823":{"timestamp":{"__isSmartRef__":true,"id":13824},"user":"lauritz"},"13824":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (Central Europe Standard Time)"},"13825":{"varMapping":{"__isSmartRef__":true,"id":13826},"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":13831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13826":{"this":{"__isSmartRef__":true,"id":13759},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13827}},"13827":{"$super":{"__isSmartRef__":true,"id":13828}},"13828":{"varMapping":{"__isSmartRef__":true,"id":13829},"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":13830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13829":{"obj":{"__isSmartRef__":true,"id":13759},"name":"boundEval"},"13830":{},"13831":{"timestamp":{"__isSmartRef__":true,"id":13832},"user":"timfelgentreff","tags":[]},"13832":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:42:56 GMT+0200 (Central Europe Daylight Time)"},"13833":{"varMapping":{"__isSmartRef__":true,"id":13834},"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":13835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13834":{"this":{"__isSmartRef__":true,"id":13759}},"13835":{"timestamp":{"__isSmartRef__":true,"id":13836},"user":"cschuster","tags":[]},"13836":{"isSerializedDate":true,"string":"Wed May 16 2012 20:52:57 GMT+0200 (Central Europe Daylight Time)"},"13837":{"varMapping":{"__isSmartRef__":true,"id":13838},"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":13839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13838":{"this":{"__isSmartRef__":true,"id":13759}},"13839":{"timestamp":{"__isSmartRef__":true,"id":13840},"user":"lauritz","categories":[]},"13840":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (Central Europe Daylight Time)"},"13841":{"varMapping":{"__isSmartRef__":true,"id":13842},"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":13843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13842":{"this":{"__isSmartRef__":true,"id":13759}},"13843":{"timestamp":{"__isSmartRef__":true,"id":13844},"user":"lauritz","categories":[]},"13844":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (Central Europe Daylight Time)"},"13845":{"varMapping":{"__isSmartRef__":true,"id":13846},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":13847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13846":{"this":{"__isSmartRef__":true,"id":13759}},"13847":{"timestamp":{"__isSmartRef__":true,"id":13848},"user":"timfelgentreff","tags":[]},"13848":{"isSerializedDate":true,"string":"Thu Jun 07 2012 09:46:09 GMT+0200 (Central Europe Daylight Time)"},"13849":{"varMapping":{"__isSmartRef__":true,"id":13850},"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":13851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13850":{"this":{"__isSmartRef__":true,"id":13759}},"13851":{"timestamp":{"__isSmartRef__":true,"id":13852},"user":"lauritz","categories":[]},"13852":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (Central Europe Standard Time)"},"13853":{"submorphs":[{"__isSmartRef__":true,"id":13854}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":13859},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13860},"lighterFill":{"__isSmartRef__":true,"id":13865},"label":{"__isSmartRef__":true,"id":13854},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":13870},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":13871},"eventHandler":{"__isSmartRef__":true,"id":13872},"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(820.0,9.0)","padding":"lively.rect(5,0,0,0)"},"13854":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":13855},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":13853},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":13856}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":13858},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"13855":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,18.0)","_BorderColor":"Color.rgb(0,0,0)"},"13856":{"style":{"__isSmartRef__":true,"id":13857},"chunkOwner":{"__isSmartRef__":true,"id":13854},"storedString":"","_id":"_737","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13857":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13858":{"morph":{"__isSmartRef__":true,"id":13854},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13859":{"_Fill":{"__isSmartRef__":true,"id":13860},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"13860":{"stops":[{"__isSmartRef__":true,"id":13861},{"__isSmartRef__":true,"id":13862},{"__isSmartRef__":true,"id":13863},{"__isSmartRef__":true,"id":13864}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13861":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"13862":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13863":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13864":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"13865":{"stops":[{"__isSmartRef__":true,"id":13866},{"__isSmartRef__":true,"id":13867},{"__isSmartRef__":true,"id":13868},{"__isSmartRef__":true,"id":13869}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13866":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13867":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13868":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13869":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13870":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13871":{"moveHorizontal":true},"13872":{"morph":{"__isSmartRef__":true,"id":13853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13873":{"submorphs":[],"scripts":[],"id":"01629635-B1A5-4223-ACB6-A17AE289CE05","shape":{"__isSmartRef__":true,"id":13874},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":["-- ALL --"],"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":13875},"_ClipMode":"auto","owner":null,"attributeConnections":[{"__isSmartRef__":true,"id":13876}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":13878},"eventHandler":{"__isSmartRef__":true,"id":13879},"_FontSize":10,"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"],"_Rotation":0,"_Scale":1,"changeTriggered":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13880},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,441.6)","distanceToDragEvent":"lively.pt(125.0,-17.1)"},"13874":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,74.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"13875":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13876":{"sourceObj":{"__isSmartRef__":true,"id":13873},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":13524},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13877},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13877":{"source":{"__isSmartRef__":true,"id":13873},"target":{"__isSmartRef__":true,"id":13524}},"13878":{"resizeHeight":false,"moveVertical":true},"13879":{"morph":{"__isSmartRef__":true,"id":13873},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13880":{"preselectItem":{"__isSmartRef__":true,"id":13881}},"13881":{"varMapping":{"__isSmartRef__":true,"id":13882},"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":13883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13882":{"this":{"__isSmartRef__":true,"id":13873}},"13883":{"timestamp":{"__isSmartRef__":true,"id":13884},"user":"lauritz"},"13884":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (Central Europe Standard Time)"},"13885":{"submorphs":[{"__isSmartRef__":true,"id":13886}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":13890},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13891},"lighterFill":{"__isSmartRef__":true,"id":13896},"label":{"__isSmartRef__":true,"id":13886},"attributeConnections":[{"__isSmartRef__":true,"id":13901}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":13902},"_Scale":1,"owner":null,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(215.0,35.0)","padding":"lively.rect(5,0,0,0)"},"13886":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":13887},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":13885},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":13888}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"13887":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(0,0,0)"},"13888":{"style":{"__isSmartRef__":true,"id":13889},"chunkOwner":{"__isSmartRef__":true,"id":13886},"storedString":"","_id":"_738","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13889":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13890":{"_Fill":{"__isSmartRef__":true,"id":13891},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"13891":{"stops":[{"__isSmartRef__":true,"id":13892},{"__isSmartRef__":true,"id":13893},{"__isSmartRef__":true,"id":13894},{"__isSmartRef__":true,"id":13895}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13892":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"13893":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13894":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"13895":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"13896":{"stops":[{"__isSmartRef__":true,"id":13897},{"__isSmartRef__":true,"id":13898},{"__isSmartRef__":true,"id":13899},{"__isSmartRef__":true,"id":13900}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"13897":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"13898":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13899":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"13900":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"13901":{"sourceObj":{"__isSmartRef__":true,"id":13885},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13531},"targetMethodName":"chooseTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13902":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13903":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":13904},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":218,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":13905},"textChunks":[{"__isSmartRef__":true,"id":13906}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":13908}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"_Align":"left","eventHandler":{"__isSmartRef__":true,"id":13910},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":13911},"selection":{"__isSmartRef__":true,"id":13523},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":13930},"_Rotation":0,"_Scale":1,"savedTextString":"100","__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13931},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(200.0,10.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(153.9,-23.7)"},"13904":{"fill":null,"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(244,244,244)"},"13905":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13906":{"style":{"__isSmartRef__":true,"id":13907},"chunkOwner":{"__isSmartRef__":true,"id":13903},"storedString":"","_id":"_739","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13907":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13908":{"sourceObj":{"__isSmartRef__":true,"id":13903},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":13524},"targetMethodName":"setTarget","converterString":"function (name) { return $world.get(name)}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13909},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"13909":{"source":{"__isSmartRef__":true,"id":13903},"target":{"__isSmartRef__":true,"id":13524}},"13910":{"morph":{"__isSmartRef__":true,"id":13903},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13911":{"createListMorph":{"__isSmartRef__":true,"id":13912},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":13914},"onMouseUp":{"__isSmartRef__":true,"id":13916},"resetConnections":{"__isSmartRef__":true,"id":13918},"setTargetToListSelection":{"__isSmartRef__":true,"id":13920},"setTargetOfPane":{"__isSmartRef__":true,"id":13922},"onBlur":{"__isSmartRef__":true,"id":13924},"reset":{"__isSmartRef__":true,"id":13926},"onMouseDown":{"__isSmartRef__":true,"id":13928}},"13912":{"time":{"__isSmartRef__":true,"id":13913},"user":"lauritz"},"13913":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (Central Europe Daylight Time)"},"13914":{"time":{"__isSmartRef__":true,"id":13915},"user":"lauritz"},"13915":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (Central Europe Daylight Time)"},"13916":{"time":{"__isSmartRef__":true,"id":13917},"user":"lauritz"},"13917":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (Central Europe Daylight Time)"},"13918":{"time":{"__isSmartRef__":true,"id":13919},"user":"lauritz"},"13919":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (Central Europe Daylight Time)"},"13920":{"time":{"__isSmartRef__":true,"id":13921},"user":"lauritz"},"13921":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (Central Europe Daylight Time)"},"13922":{"time":{"__isSmartRef__":true,"id":13923},"user":"lauritz"},"13923":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (Central Europe Daylight Time)"},"13924":{"time":{"__isSmartRef__":true,"id":13925},"user":"lauritz"},"13925":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (Central Europe Daylight Time)"},"13926":{"time":{"__isSmartRef__":true,"id":13927},"user":"lauritz"},"13927":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (Central Europe Daylight Time)"},"13928":{"time":{"__isSmartRef__":true,"id":13929},"user":"lauritz"},"13929":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (Central Europe Daylight Time)"},"13930":{},"13931":{"getList":{"__isSmartRef__":true,"id":13932},"setList":{"__isSmartRef__":true,"id":13935},"reset":{"__isSmartRef__":true,"id":13938},"example":{"__isSmartRef__":true,"id":13941},"removeList":{"__isSmartRef__":true,"id":13944},"onBlur":{"__isSmartRef__":true,"id":13947},"createListMorph":{"__isSmartRef__":true,"id":13954},"resetConnections":{"__isSmartRef__":true,"id":13957},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":13960},"setTargetToListSelection":{"__isSmartRef__":true,"id":13963},"setTargetOfPane":{"__isSmartRef__":true,"id":13966},"onMouseDown":{"__isSmartRef__":true,"id":13969}},"13932":{"varMapping":{"__isSmartRef__":true,"id":13933},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":13934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13933":{"this":{"__isSmartRef__":true,"id":13903}},"13934":{},"13935":{"varMapping":{"__isSmartRef__":true,"id":13936},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":13937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13936":{"this":{"__isSmartRef__":true,"id":13903}},"13937":{},"13938":{"varMapping":{"__isSmartRef__":true,"id":13939},"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":13940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13939":{"this":{"__isSmartRef__":true,"id":13903}},"13940":{},"13941":{"varMapping":{"__isSmartRef__":true,"id":13942},"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":13943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13942":{"this":{"__isSmartRef__":true,"id":13903}},"13943":{},"13944":{"varMapping":{"__isSmartRef__":true,"id":13945},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13945":{"this":{"__isSmartRef__":true,"id":13903}},"13946":{},"13947":{"varMapping":{"__isSmartRef__":true,"id":13948},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":13953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13948":{"this":{"__isSmartRef__":true,"id":13903},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13949}},"13949":{"$super":{"__isSmartRef__":true,"id":13950}},"13950":{"varMapping":{"__isSmartRef__":true,"id":13951},"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":13952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13951":{"obj":{"__isSmartRef__":true,"id":13903},"name":"onBlur"},"13952":{},"13953":{},"13954":{"varMapping":{"__isSmartRef__":true,"id":13955},"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":13956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13955":{"this":{"__isSmartRef__":true,"id":13903}},"13956":{},"13957":{"varMapping":{"__isSmartRef__":true,"id":13958},"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":13959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13958":{"this":{"__isSmartRef__":true,"id":13903}},"13959":{},"13960":{"varMapping":{"__isSmartRef__":true,"id":13961},"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":13962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13961":{"this":{"__isSmartRef__":true,"id":13903}},"13962":{},"13963":{"varMapping":{"__isSmartRef__":true,"id":13964},"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":13965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13964":{"this":{"__isSmartRef__":true,"id":13903}},"13965":{},"13966":{"varMapping":{"__isSmartRef__":true,"id":13967},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":13968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13967":{"this":{"__isSmartRef__":true,"id":13903}},"13968":{},"13969":{"varMapping":{"__isSmartRef__":true,"id":13970},"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":13975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13970":{"this":{"__isSmartRef__":true,"id":13903},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13971}},"13971":{"$super":{"__isSmartRef__":true,"id":13972}},"13972":{"varMapping":{"__isSmartRef__":true,"id":13973},"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":13974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13973":{"obj":{"__isSmartRef__":true,"id":13903},"name":"onMouseDown"},"13974":{},"13975":{},"13976":{"morph":{"__isSmartRef__":true,"id":13531},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13977":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":13978},"setTarget":{"__isSmartRef__":true,"id":13981},"generateSourceForScript":{"__isSmartRef__":true,"id":13984},"generateSourceForConnection":{"__isSmartRef__":true,"id":13987},"generateTargetCode":{"__isSmartRef__":true,"id":13990},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":13993},"displayJavaScriptSource":{"__isSmartRef__":true,"id":13996},"displaySourceForScript":{"__isSmartRef__":true,"id":13999},"displaySourceForConnection":{"__isSmartRef__":true,"id":14002},"newScript":{"__isSmartRef__":true,"id":14005},"newConnection":{"__isSmartRef__":true,"id":14008},"deleteSelectedScript":{"__isSmartRef__":true,"id":14011},"disconnectConnection":{"__isSmartRef__":true,"id":14014},"updateLists":{"__isSmartRef__":true,"id":14017},"displayInitialScript":{"__isSmartRef__":true,"id":14020},"reset":{"__isSmartRef__":true,"id":14023},"selectChangedContent":{"__isSmartRef__":true,"id":14026}},"13978":{"varMapping":{"__isSmartRef__":true,"id":13979},"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":13980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13979":{"this":{"__isSmartRef__":true,"id":13531}},"13980":{},"13981":{"varMapping":{"__isSmartRef__":true,"id":13982},"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":13983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13982":{"this":{"__isSmartRef__":true,"id":13531}},"13983":{},"13984":{"varMapping":{"__isSmartRef__":true,"id":13985},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":13986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13985":{"this":{"__isSmartRef__":true,"id":13531}},"13986":{},"13987":{"varMapping":{"__isSmartRef__":true,"id":13988},"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":13989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13988":{"this":{"__isSmartRef__":true,"id":13531}},"13989":{},"13990":{"varMapping":{"__isSmartRef__":true,"id":13991},"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":13992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13991":{"this":{"__isSmartRef__":true,"id":13531}},"13992":{},"13993":{"varMapping":{"__isSmartRef__":true,"id":13994},"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":13995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13994":{"this":{"__isSmartRef__":true,"id":13531}},"13995":{},"13996":{"varMapping":{"__isSmartRef__":true,"id":13997},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":13998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13997":{"this":{"__isSmartRef__":true,"id":13531}},"13998":{},"13999":{"varMapping":{"__isSmartRef__":true,"id":14000},"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":14001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14000":{"this":{"__isSmartRef__":true,"id":13531}},"14001":{},"14002":{"varMapping":{"__isSmartRef__":true,"id":14003},"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":14004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14003":{"this":{"__isSmartRef__":true,"id":13531}},"14004":{},"14005":{"varMapping":{"__isSmartRef__":true,"id":14006},"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":14007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14006":{"this":{"__isSmartRef__":true,"id":13531}},"14007":{},"14008":{"varMapping":{"__isSmartRef__":true,"id":14009},"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":14010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14009":{"this":{"__isSmartRef__":true,"id":13531}},"14010":{},"14011":{"varMapping":{"__isSmartRef__":true,"id":14012},"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":14013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14012":{"this":{"__isSmartRef__":true,"id":13531}},"14013":{},"14014":{"varMapping":{"__isSmartRef__":true,"id":14015},"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":14016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14015":{"this":{"__isSmartRef__":true,"id":13531}},"14016":{},"14017":{"varMapping":{"__isSmartRef__":true,"id":14018},"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":14019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14018":{"this":{"__isSmartRef__":true,"id":13531}},"14019":{},"14020":{"varMapping":{"__isSmartRef__":true,"id":14021},"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":14022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14021":{"this":{"__isSmartRef__":true,"id":13531}},"14022":{},"14023":{"varMapping":{"__isSmartRef__":true,"id":14024},"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":14025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14024":{"this":{"__isSmartRef__":true,"id":13531}},"14025":{},"14026":{"varMapping":{"__isSmartRef__":true,"id":14027},"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 ' + 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":14194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14189":{"this":{"__isSmartRef__":true,"id":14173},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14190}},"14190":{"$super":{"__isSmartRef__":true,"id":14191}},"14191":{"varMapping":{"__isSmartRef__":true,"id":14192},"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":14193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14192":{"obj":{"__isSmartRef__":true,"id":14173},"name":"morphMenuItems"},"14193":{},"14194":{},"14195":{"morph":{"__isSmartRef__":true,"id":14154},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14196":{"centeredHorizontal":false,"moveHorizontal":true},"14197":{"submorphs":[{"__isSmartRef__":true,"id":14198},{"__isSmartRef__":true,"id":14205}],"scripts":[],"id":"DC44CBF5-1303-4D4A-B0BC-A1845C31C3F3","shape":{"__isSmartRef__":true,"id":14208},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14209},"lighterFill":{"__isSmartRef__":true,"id":14214},"label":{"__isSmartRef__":true,"id":14198},"name":"MagnifierButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":14219},"attributeConnections":[{"__isSmartRef__":true,"id":14222}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":14223},"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"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":13524},"highlightRectangle":{"__isSmartRef__":true,"id":14224},"isCopyMorphRef":true,"morphRefId":1,"#startLetters":"highlightRectangle","prevScroll":[0,0],"isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":0.9920279440699439,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14305},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(464.5,8.5)","distanceToDragEvent":"lively.pt(37.9,-7.9)"},"14198":{"submorphs":[],"scripts":[],"id":"AFA4C07C-7056-4D2B-BCCC-65533AAEF572","shape":{"__isSmartRef__":true,"id":14199},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":24,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":14197},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":14200},{"__isSmartRef__":true,"id":14202}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":14204},"_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"],"_MinTextWidth":24,"_MinTextHeight":null,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"14199":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"14200":{"style":{"__isSmartRef__":true,"id":14201},"chunkOwner":{"__isSmartRef__":true,"id":14198},"storedString":"","_id":"_740","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14201":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14202":{"style":{"__isSmartRef__":true,"id":14203},"chunkOwner":{"__isSmartRef__":true,"id":14198},"storedString":"","_id":"_741","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14203":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14204":{"morph":{"__isSmartRef__":true,"id":14198},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14205":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14206},"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"],"id":"32F48414-9902-49CC-B89F-B70C7188F5E5","eventHandler":{"__isSmartRef__":true,"id":14207},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":14197},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","isCopyMorphRef":true,"morphRefId":161,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-3.0,0.0)","distanceToDragEvent":"lively.pt(39.9,-9.0)"},"14206":{"_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==","_NodeClass":["image"],"_NodeId":"29E543E0-AE93-493A-A694-FC1C330D0544","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(29.0,29.0)","_Padding":"lively.rect(0,0,0,0)"},"14207":{"morph":{"__isSmartRef__":true,"id":14205},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14208":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":14209},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"14209":{"stops":[{"__isSmartRef__":true,"id":14210},{"__isSmartRef__":true,"id":14211},{"__isSmartRef__":true,"id":14212},{"__isSmartRef__":true,"id":14213}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14210":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"14211":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14212":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14213":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"14214":{"stops":[{"__isSmartRef__":true,"id":14215},{"__isSmartRef__":true,"id":14216},{"__isSmartRef__":true,"id":14217},{"__isSmartRef__":true,"id":14218}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14215":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"14216":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14217":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14218":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"14219":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":14220}],"revisionOnLoad":154251,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14220":{"date":{"__isSmartRef__":true,"id":14221},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"14221":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (Central Europe Daylight Time)"},"14222":{"sourceObj":{"__isSmartRef__":true,"id":14197},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14197},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14223":{"morph":{"__isSmartRef__":true,"id":14197},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14224":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":14225},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":14226},"eventHandler":{"__isSmartRef__":true,"id":14267},"attributeConnections":[{"__isSmartRef__":true,"id":14268},{"__isSmartRef__":true,"id":14269},{"__isSmartRef__":true,"id":14270}],"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":14271},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"","eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","_Rotation":0,"_Scale":1.0060210561262526,"owner":null,"magnifierButton":{"__isSmartRef__":true,"id":14197},"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14276},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"14225":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.2597,"_BorderStyle":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(5000.0,3000.0)","_BorderColor":"Color.rgb(204,0,0)","_Fill":"Color.rgb(58,0,255)","_Padding":"lively.rect(0,0,0,0)"},"14226":{"partsSpaceName":"PartsBin/Tools","comment":"A rectangle which highlights the object under the first hand of the world","migrationLevel":4,"partName":"HighlightRectangle","changes":[{"__isSmartRef__":true,"id":14227},{"__isSmartRef__":true,"id":14229},{"__isSmartRef__":true,"id":14231},{"__isSmartRef__":true,"id":14233},{"__isSmartRef__":true,"id":14235},{"__isSmartRef__":true,"id":14237},{"__isSmartRef__":true,"id":14239},{"__isSmartRef__":true,"id":14241},{"__isSmartRef__":true,"id":14243},{"__isSmartRef__":true,"id":14245},{"__isSmartRef__":true,"id":14247},{"__isSmartRef__":true,"id":14249},{"__isSmartRef__":true,"id":14251},{"__isSmartRef__":true,"id":14253},{"__isSmartRef__":true,"id":14255},{"__isSmartRef__":true,"id":14257},{"__isSmartRef__":true,"id":14259},{"__isSmartRef__":true,"id":14261},{"__isSmartRef__":true,"id":14263},{"__isSmartRef__":true,"id":14265}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14227":{"date":{"__isSmartRef__":true,"id":14228},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"14228":{"isSerializedDate":true,"string":"Thu May 24 2012 17:04:54 GMT+0200 (Central Europe Daylight Time)"},"14229":{"date":{"__isSmartRef__":true,"id":14230},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"14230":{"isSerializedDate":true,"string":"Thu May 24 2012 16:57:13 GMT+0200 (Central Europe Daylight Time)"},"14231":{"date":{"__isSmartRef__":true,"id":14232},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"14232":{"isSerializedDate":true,"string":"Thu May 24 2012 16:23:11 GMT+0200 (Central Europe Daylight Time)"},"14233":{"date":{"__isSmartRef__":true,"id":14234},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"14234":{"isSerializedDate":true,"string":"Thu May 24 2012 14:46:08 GMT+0200 (Central Europe Daylight Time)"},"14235":{"date":{"__isSmartRef__":true,"id":14236},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"14236":{"isSerializedDate":true,"string":"Thu May 24 2012 14:39:50 GMT+0200 (Central Europe Daylight Time)"},"14237":{"date":{"__isSmartRef__":true,"id":14238},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"14238":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"14239":{"date":{"__isSmartRef__":true,"id":14240},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"14240":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"14241":{"date":{"__isSmartRef__":true,"id":14242},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"14242":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"14243":{"date":{"__isSmartRef__":true,"id":14244},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"14244":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"14245":{"date":{"__isSmartRef__":true,"id":14246},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"14246":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"14247":{"date":{"__isSmartRef__":true,"id":14248},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"14248":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"14249":{"date":{"__isSmartRef__":true,"id":14250},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"14250":{"isSerializedDate":true,"string":"Thu May 24 2012 13:58:01 GMT+0200 (Central Europe Daylight Time)"},"14251":{"date":{"__isSmartRef__":true,"id":14252},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"14252":{"isSerializedDate":true,"string":"Thu May 24 2012 14:07:32 GMT+0200 (Central Europe Daylight Time)"},"14253":{"date":{"__isSmartRef__":true,"id":14254},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"14254":{"isSerializedDate":true,"string":"Thu May 24 2012 15:34:59 GMT+0200 (Central Europe Daylight Time)"},"14255":{"date":{"__isSmartRef__":true,"id":14256},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"14256":{"isSerializedDate":true,"string":"Thu May 24 2012 16:34:29 GMT+0200 (Central Europe Daylight Time)"},"14257":{"date":{"__isSmartRef__":true,"id":14258},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"14258":{"isSerializedDate":true,"string":"Thu May 24 2012 16:45:49 GMT+0200 (Central Europe Daylight Time)"},"14259":{"date":{"__isSmartRef__":true,"id":14260},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"14260":{"isSerializedDate":true,"string":"Thu May 24 2012 16:47:20 GMT+0200 (Central Europe Daylight Time)"},"14261":{"date":{"__isSmartRef__":true,"id":14262},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"14262":{"isSerializedDate":true,"string":"Thu May 24 2012 16:51:06 GMT+0200 (Central Europe Daylight Time)"},"14263":{"date":{"__isSmartRef__":true,"id":14264},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"14264":{"isSerializedDate":true,"string":"Thu May 24 2012 16:52:10 GMT+0200 (Central Europe Daylight Time)"},"14265":{"date":{"__isSmartRef__":true,"id":14266},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"14266":{"isSerializedDate":true,"string":"Thu May 24 2012 16:59:39 GMT+0200 (Central Europe Daylight Time)"},"14267":{"morph":{"__isSmartRef__":true,"id":14224},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14268":{"sourceObj":{"__isSmartRef__":true,"id":14224},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":14224},"targetMethodName":"updateOnMove","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14269":{"sourceObj":{"__isSmartRef__":true,"id":14224},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":14197},"targetMethodName":"setTarget","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14270":{"sourceObj":{"__isSmartRef__":true,"id":14224},"sourceAttrName":"onKeyPress","targetObj":{"__isSmartRef__":true,"id":14197},"targetMethodName":"onRectangleKeyPress","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14271":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14272}},"14272":{"test01IsMorph":{"__isSmartRef__":true,"id":14273}},"14273":{"varMapping":{"__isSmartRef__":true,"id":14274},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":14275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14274":{"this":{"__isSmartRef__":true,"id":14271}},"14275":{},"14276":{"update":{"__isSmartRef__":true,"id":14277},"coveredMorph":{"__isSmartRef__":true,"id":14281},"updateOnMove":{"__isSmartRef__":true,"id":14285},"bringToFront":{"__isSmartRef__":true,"id":14289},"onKeyUp":{"__isSmartRef__":true,"id":14297}},"14277":{"varMapping":{"__isSmartRef__":true,"id":14278},"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":14279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14278":{"this":{"__isSmartRef__":true,"id":14224}},"14279":{"timestamp":{"__isSmartRef__":true,"id":14280},"user":"timfelgentreff","tags":[]},"14280":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:09:28 GMT+0200 (Central Europe Daylight Time)"},"14281":{"varMapping":{"__isSmartRef__":true,"id":14282},"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":14283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14282":{"this":{"__isSmartRef__":true,"id":14224}},"14283":{"timestamp":{"__isSmartRef__":true,"id":14284},"user":"timfelgentreff","tags":[]},"14284":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:40 GMT+0200 (Central Europe Daylight Time)"},"14285":{"varMapping":{"__isSmartRef__":true,"id":14286},"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":14287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14286":{"this":{"__isSmartRef__":true,"id":14224}},"14287":{"timestamp":{"__isSmartRef__":true,"id":14288},"user":"tessi","tags":[]},"14288":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:56:41 GMT+0200 (Central Europe Daylight Time)"},"14289":{"varMapping":{"__isSmartRef__":true,"id":14290},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000\n}","funcProperties":{"__isSmartRef__":true,"id":14295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14290":{"this":{"__isSmartRef__":true,"id":14224},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14291}},"14291":{"$super":{"__isSmartRef__":true,"id":14292}},"14292":{"varMapping":{"__isSmartRef__":true,"id":14293},"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":14294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14293":{"obj":{"__isSmartRef__":true,"id":14224},"name":"bringToFront"},"14294":{},"14295":{"timestamp":{"__isSmartRef__":true,"id":14296},"user":"lauritz","tags":[]},"14296":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:28:10 GMT+0200 (Central Europe Daylight Time)"},"14297":{"varMapping":{"__isSmartRef__":true,"id":14298},"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":14303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14298":{"this":{"__isSmartRef__":true,"id":14224},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14299}},"14299":{"$super":{"__isSmartRef__":true,"id":14300}},"14300":{"varMapping":{"__isSmartRef__":true,"id":14301},"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":14302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14301":{"obj":{"__isSmartRef__":true,"id":14224},"name":"onKeyUp"},"14302":{},"14303":{"timestamp":{"__isSmartRef__":true,"id":14304},"user":"tessi","tags":[]},"14304":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:10 GMT+0200 (Central Europe Daylight Time)"},"14305":{"onFire":{"__isSmartRef__":true,"id":14306},"onMouseMove":{"__isSmartRef__":true,"id":14310},"onMouseOut":{"__isSmartRef__":true,"id":14318},"reset":{"__isSmartRef__":true,"id":14326},"isTracking":{"__isSmartRef__":true,"id":14330},"isHighlighting":{"__isSmartRef__":true,"id":14334},"currentTarget":{"__isSmartRef__":true,"id":14338},"setTarget":{"__isSmartRef__":true,"id":14342},"currentTargetIsMultiSelection":{"__isSmartRef__":true,"id":14346},"newMultiSelection":{"__isSmartRef__":true,"id":14350},"newGreenRectangle":{"__isSmartRef__":true,"id":14354},"stopTracking":{"__isSmartRef__":true,"id":14358},"startTracking":{"__isSmartRef__":true,"id":14362},"stopHighlighting":{"__isSmartRef__":true,"id":14366},"startHighlighting":{"__isSmartRef__":true,"id":14370},"onRectangleKeyPress":{"__isSmartRef__":true,"id":14374}},"14306":{"varMapping":{"__isSmartRef__":true,"id":14307},"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":14308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14307":{"this":{"__isSmartRef__":true,"id":14197}},"14308":{"timestamp":{"__isSmartRef__":true,"id":14309},"user":"timfelgentreff","tags":[]},"14309":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:10:52 GMT+0200 (Central Europe Daylight Time)"},"14310":{"varMapping":{"__isSmartRef__":true,"id":14311},"source":"function onMouseMove(evt) {\n if (!this.isHighlighting()) {\n this.startHighlighting()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14311":{"this":{"__isSmartRef__":true,"id":14197},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14312}},"14312":{"$super":{"__isSmartRef__":true,"id":14313}},"14313":{"varMapping":{"__isSmartRef__":true,"id":14314},"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":14315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14314":{"obj":{"__isSmartRef__":true,"id":14197},"name":"onMouseMove"},"14315":{},"14316":{"timestamp":{"__isSmartRef__":true,"id":14317},"user":"timfelgentreff","tags":[]},"14317":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:53:50 GMT+0200 (Central Europe Daylight Time)"},"14318":{"varMapping":{"__isSmartRef__":true,"id":14319},"source":"function onMouseOut() {\n this.stopHighlighting()\n}","funcProperties":{"__isSmartRef__":true,"id":14324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14319":{"this":{"__isSmartRef__":true,"id":14197},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14320}},"14320":{"$super":{"__isSmartRef__":true,"id":14321}},"14321":{"varMapping":{"__isSmartRef__":true,"id":14322},"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":14323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14322":{"obj":{"__isSmartRef__":true,"id":14197},"name":"onMouseOut"},"14323":{},"14324":{"timestamp":{"__isSmartRef__":true,"id":14325},"user":"timfelgentreff","tags":[]},"14325":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:55:09 GMT+0200 (Central Europe Daylight Time)"},"14326":{"varMapping":{"__isSmartRef__":true,"id":14327},"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":14328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14327":{"this":{"__isSmartRef__":true,"id":14197}},"14328":{"timestamp":{"__isSmartRef__":true,"id":14329},"user":"tessi","tags":[]},"14329":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:54:48 GMT+0200 (Central Europe Daylight Time)"},"14330":{"varMapping":{"__isSmartRef__":true,"id":14331},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection\n}","funcProperties":{"__isSmartRef__":true,"id":14332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14331":{"this":{"__isSmartRef__":true,"id":14197}},"14332":{"timestamp":{"__isSmartRef__":true,"id":14333},"user":"lauritz","tags":["state"]},"14333":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:04:17 GMT+0200 (Central Europe Daylight Time)"},"14334":{"varMapping":{"__isSmartRef__":true,"id":14335},"source":"function isHighlighting() {\n return !!this.greenRectangle\n}","funcProperties":{"__isSmartRef__":true,"id":14336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14335":{"this":{"__isSmartRef__":true,"id":14197}},"14336":{"timestamp":{"__isSmartRef__":true,"id":14337},"user":"timfelgentreff","tags":["state"]},"14337":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:52:02 GMT+0200 (Central Europe Daylight Time)"},"14338":{"varMapping":{"__isSmartRef__":true,"id":14339},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":14340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14339":{"this":{"__isSmartRef__":true,"id":14197}},"14340":{"timestamp":{"__isSmartRef__":true,"id":14341},"user":"lauritz","tags":[]},"14341":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:26:02 GMT+0200 (Central Europe Daylight Time)"},"14342":{"varMapping":{"__isSmartRef__":true,"id":14343},"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":14344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14343":{"this":{"__isSmartRef__":true,"id":14197}},"14344":{"timestamp":{"__isSmartRef__":true,"id":14345},"user":"timfelgentreff","tags":["selecting"]},"14345":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:38:48 GMT+0200 (Central Europe Daylight Time)"},"14346":{"varMapping":{"__isSmartRef__":true,"id":14347},"source":"function currentTargetIsMultiSelection() {\n return !!(this.currentTarget() && this.currentTarget().__multi_selection_proxy__)\n}","funcProperties":{"__isSmartRef__":true,"id":14348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14347":{"this":{"__isSmartRef__":true,"id":14197}},"14348":{"timestamp":{"__isSmartRef__":true,"id":14349},"user":"tessi","tags":[]},"14349":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:31:43 GMT+0200 (Central Europe Daylight Time)"},"14350":{"varMapping":{"__isSmartRef__":true,"id":14351},"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 }\n\n Functions.own(ms).each(function (name) { ms[name].asScriptOf(ms, name) })\n return ms\n}","funcProperties":{"__isSmartRef__":true,"id":14352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14351":{"this":{"__isSmartRef__":true,"id":14197}},"14352":{"timestamp":{"__isSmartRef__":true,"id":14353},"user":"timfelgentreff","tags":[]},"14353":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:12:40 GMT+0200 (Central Europe Daylight Time)"},"14354":{"varMapping":{"__isSmartRef__":true,"id":14355},"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":14356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14355":{"this":{"__isSmartRef__":true,"id":14197}},"14356":{"timestamp":{"__isSmartRef__":true,"id":14357},"user":"timfelgentreff","tags":["hovering"]},"14357":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:50 GMT+0200 (Central Europe Daylight Time)"},"14358":{"varMapping":{"__isSmartRef__":true,"id":14359},"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":14360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14359":{"this":{"__isSmartRef__":true,"id":14197}},"14360":{"timestamp":{"__isSmartRef__":true,"id":14361},"user":"tessi","tags":[]},"14361":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:47:06 GMT+0200 (Central Europe Daylight Time)"},"14362":{"varMapping":{"__isSmartRef__":true,"id":14363},"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":14364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14363":{"this":{"__isSmartRef__":true,"id":14197}},"14364":{"timestamp":{"__isSmartRef__":true,"id":14365},"user":"tessi","tags":[]},"14365":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:45:33 GMT+0200 (Central Europe Daylight Time)"},"14366":{"varMapping":{"__isSmartRef__":true,"id":14367},"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":14368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14367":{"this":{"__isSmartRef__":true,"id":14197}},"14368":{"timestamp":{"__isSmartRef__":true,"id":14369},"user":"timfelgentreff","tags":["hovering"]},"14369":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:07:19 GMT+0200 (Central Europe Daylight Time)"},"14370":{"varMapping":{"__isSmartRef__":true,"id":14371},"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":14372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14371":{"this":{"__isSmartRef__":true,"id":14197}},"14372":{"timestamp":{"__isSmartRef__":true,"id":14373},"user":"tessi","tags":["hovering"]},"14373":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:30:59 GMT+0200 (Central Europe Daylight Time)"},"14374":{"varMapping":{"__isSmartRef__":true,"id":14375},"source":"function onRectangleKeyPress() {\n debugger\n}","funcProperties":{"__isSmartRef__":true,"id":14376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14375":{"this":{"__isSmartRef__":true,"id":14197}},"14376":{"timestamp":{"__isSmartRef__":true,"id":14377},"user":"tessi","tags":[]},"14377":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:40:02 GMT+0200 (Central Europe Daylight Time)"},"14378":{"submorphs":[{"__isSmartRef__":true,"id":14379},{"__isSmartRef__":true,"id":14384}],"scripts":[],"id":"94D98FE0-B431-499D-A806-CB8CB87259B0","shape":{"__isSmartRef__":true,"id":14387},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14393},"lighterFill":{"__isSmartRef__":true,"id":14398},"label":{"__isSmartRef__":true,"id":14379},"name":"NameGroupButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":14403},"attributeConnections":[{"__isSmartRef__":true,"id":14408}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":14409},"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"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":13524},"_Visible":true,"isCopyMorphRef":true,"morphRefId":162,"isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":0.990044880209748,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14410},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(490.0,9.5)","distanceToDragEvent":"lively.pt(69.1,-14.0)"},"14379":{"submorphs":[],"scripts":[],"id":"DE8F1A25-16C0-465C-BA0E-20AD7042DA34","shape":{"__isSmartRef__":true,"id":14380},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":106.05027610358519,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":14378},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":14381}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":14383},"_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"],"_MinTextWidth":106.05027610358519,"_MinTextHeight":null,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"14380":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(106.1,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"14381":{"style":{"__isSmartRef__":true,"id":14382},"chunkOwner":{"__isSmartRef__":true,"id":14379},"storedString":" Name group","_id":"_241","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14382":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14383":{"morph":{"__isSmartRef__":true,"id":14379},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14384":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14385},"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"],"id":"58E30E5E-EC53-42E2-AD90-DEFEADAC573C","eventHandler":{"__isSmartRef__":true,"id":14386},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":14378},"name":"document_rename.png","showsHalos":false,"isCopyMorphRef":true,"morphRefId":163,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-0.9,3.0)","distanceToDragEvent":"lively.pt(39.0,-10.0)"},"14385":{"_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==","_NodeClass":["morph","image"],"_NodeId":"morph-59b9c10f-5e4e-48be-ac11-e220b20ea1a9","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,16.0)","_Padding":"lively.rect(0,0,0,0)"},"14386":{"morph":{"__isSmartRef__":true,"id":14384},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14387":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":14388},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(106.1,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"14388":{"stops":[{"__isSmartRef__":true,"id":14389},{"__isSmartRef__":true,"id":14390},{"__isSmartRef__":true,"id":14391},{"__isSmartRef__":true,"id":14392}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14389":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"14390":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"14391":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"14392":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"14393":{"stops":[{"__isSmartRef__":true,"id":14394},{"__isSmartRef__":true,"id":14395},{"__isSmartRef__":true,"id":14396},{"__isSmartRef__":true,"id":14397}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14394":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"14395":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14396":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14397":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"14398":{"stops":[{"__isSmartRef__":true,"id":14399},{"__isSmartRef__":true,"id":14400},{"__isSmartRef__":true,"id":14401},{"__isSmartRef__":true,"id":14402}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14399":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"14400":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14401":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14402":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"14403":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":14404},{"__isSmartRef__":true,"id":14406}],"revisionOnLoad":170561,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14404":{"date":{"__isSmartRef__":true,"id":14405},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"14405":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (Central Europe Daylight Time)"},"14406":{"date":{"__isSmartRef__":true,"id":14407},"author":"huberthesse","message":"Restore scriptable button","id":"7DCED89C-C162-4A42-94E3-6B4D2CBA4932"},"14407":{"isSerializedDate":true,"string":"Tue Jun 12 2012 11:12:07 GMT+0200 (Central Europe Daylight Time)"},"14408":{"sourceObj":{"__isSmartRef__":true,"id":14378},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14378},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14409":{"morph":{"__isSmartRef__":true,"id":14378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14410":{"onFire":{"__isSmartRef__":true,"id":14411}},"14411":{"varMapping":{"__isSmartRef__":true,"id":14412},"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":14413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14412":{"this":{"__isSmartRef__":true,"id":14378}},"14413":{"timestamp":{"__isSmartRef__":true,"id":14414},"user":"timfelgentreff","tags":[]},"14414":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:04:34 GMT+0200 (Central Europe Daylight Time)"},"14415":{"submorphs":[{"__isSmartRef__":true,"id":14416}],"scripts":[],"id":"DC19EF7D-02BE-4889-B94E-9E56EB37E619","shape":{"__isSmartRef__":true,"id":14422},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14423},"lighterFill":{"__isSmartRef__":true,"id":14428},"label":{"__isSmartRef__":true,"id":14416},"showsHalos":false,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":14433},"list":[],"eventHandler":{"__isSmartRef__":true,"id":14434},"owner":{"__isSmartRef__":true,"id":13524},"textString":"","selection":{"__isSmartRef__":true,"id":14435},"_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"],"#startLetters":"getBounds()","isCopyMorphRef":true,"morphRefId":153,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"_Rotation":0,"_Scale":1.0000000000000002,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14441},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(237.2,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"14416":{"submorphs":[],"scripts":[],"id":"EBB5DE1B-9CC4-41EF-A699-F0C5B8457980","shape":{"__isSmartRef__":true,"id":14417},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":14415},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":14418}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":14420}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":14421},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":14,"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"],"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"_WordBreak":"break-all","_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"14417":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"14418":{"style":{"__isSmartRef__":true,"id":14419},"chunkOwner":{"__isSmartRef__":true,"id":14416},"storedString":"Villains [2]","_id":"_242","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14419":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14420":{"sourceObj":{"__isSmartRef__":true,"id":14416},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":14415},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14421":{"morph":{"__isSmartRef__":true,"id":14416},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14422":{"_Fill":{"__isSmartRef__":true,"id":14423},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"14423":{"stops":[{"__isSmartRef__":true,"id":14424},{"__isSmartRef__":true,"id":14425},{"__isSmartRef__":true,"id":14426},{"__isSmartRef__":true,"id":14427}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14424":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"14425":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14426":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14427":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"14428":{"stops":[{"__isSmartRef__":true,"id":14429},{"__isSmartRef__":true,"id":14430},{"__isSmartRef__":true,"id":14431},{"__isSmartRef__":true,"id":14432}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14429":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"14430":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14431":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14432":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"14433":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14434":{"morph":{"__isSmartRef__":true,"id":14415},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14435":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":14436},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":14437},"textChunks":[{"__isSmartRef__":true,"id":14438}],"eventHandler":{"__isSmartRef__":true,"id":14440},"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,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"14436":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"14437":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14438":{"style":{"__isSmartRef__":true,"id":14439},"chunkOwner":{"__isSmartRef__":true,"id":14435},"storedString":"","_id":"_742","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14439":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14440":{"morph":{"__isSmartRef__":true,"id":14435},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14441":{"createListMorph":{"__isSmartRef__":true,"id":14442},"removeList":{"__isSmartRef__":true,"id":14446},"reset":{"__isSmartRef__":true,"id":14450},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":14454},"onMouseDown":{"__isSmartRef__":true,"id":14458},"setTargetOfPane":{"__isSmartRef__":true,"id":14466},"setTargetToListSelection":{"__isSmartRef__":true,"id":14470},"onBlur":{"__isSmartRef__":true,"id":14474},"setTarget":{"__isSmartRef__":true,"id":14482},"setTargetOnSelection":{"__isSmartRef__":true,"id":14486},"getItems":{"__isSmartRef__":true,"id":14490},"createGroupTree":{"__isSmartRef__":true,"id":14494},"createWorldTree":{"__isSmartRef__":true,"id":14498},"highlightCurrentTarget":{"__isSmartRef__":true,"id":14502},"setHighlight":{"__isSmartRef__":true,"id":14506},"removeHighlight":{"__isSmartRef__":true,"id":14510}},"14442":{"varMapping":{"__isSmartRef__":true,"id":14443},"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":14444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14443":{"this":{"__isSmartRef__":true,"id":14415}},"14444":{"timestamp":{"__isSmartRef__":true,"id":14445},"user":"lauritz","tags":[]},"14445":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:49:08 GMT+0200 (Central Europe Daylight Time)"},"14446":{"varMapping":{"__isSmartRef__":true,"id":14447},"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":14448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14447":{"this":{"__isSmartRef__":true,"id":14415}},"14448":{"timestamp":{"__isSmartRef__":true,"id":14449},"user":"timfelgentreff","tags":[]},"14449":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:43:28 GMT+0200 (Central Europe Daylight Time)"},"14450":{"varMapping":{"__isSmartRef__":true,"id":14451},"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":14452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14451":{"this":{"__isSmartRef__":true,"id":14415}},"14452":{"timestamp":{"__isSmartRef__":true,"id":14453},"user":"lauritz","tags":[]},"14453":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (Central Europe Standard Time)"},"14454":{"varMapping":{"__isSmartRef__":true,"id":14455},"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":14456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14455":{"this":{"__isSmartRef__":true,"id":14415}},"14456":{"timestamp":{"__isSmartRef__":true,"id":14457},"user":"timfelgentreff","tags":[]},"14457":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:22:44 GMT+0200 (Central Europe Daylight Time)"},"14458":{"varMapping":{"__isSmartRef__":true,"id":14459},"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":14464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14459":{"this":{"__isSmartRef__":true,"id":14415},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14460}},"14460":{"$super":{"__isSmartRef__":true,"id":14461}},"14461":{"varMapping":{"__isSmartRef__":true,"id":14462},"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":14463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14462":{"obj":{"__isSmartRef__":true,"id":14415},"name":"onMouseDown"},"14463":{},"14464":{"timestamp":{"__isSmartRef__":true,"id":14465},"user":"timfelgentreff","tags":[]},"14465":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:03:45 GMT+0200 (Central Europe Daylight Time)"},"14466":{"varMapping":{"__isSmartRef__":true,"id":14467},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":14468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14467":{"this":{"__isSmartRef__":true,"id":14415}},"14468":{"timestamp":{"__isSmartRef__":true,"id":14469},"user":"lauritz","tags":[]},"14469":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (Central Europe Standard Time)"},"14470":{"varMapping":{"__isSmartRef__":true,"id":14471},"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":14472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14471":{"this":{"__isSmartRef__":true,"id":14415}},"14472":{"timestamp":{"__isSmartRef__":true,"id":14473},"user":"lauritz","tags":[]},"14473":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (Central Europe Standard Time)"},"14474":{"varMapping":{"__isSmartRef__":true,"id":14475},"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":14480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14475":{"this":{"__isSmartRef__":true,"id":14415},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14476}},"14476":{"$super":{"__isSmartRef__":true,"id":14477}},"14477":{"varMapping":{"__isSmartRef__":true,"id":14478},"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":14479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14478":{"obj":{"__isSmartRef__":true,"id":14415},"name":"onBlur"},"14479":{},"14480":{"timestamp":{"__isSmartRef__":true,"id":14481},"user":"timfelgentreff","tags":[]},"14481":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:01:12 GMT+0200 (Central Europe Daylight Time)"},"14482":{"varMapping":{"__isSmartRef__":true,"id":14483},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":14484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14483":{"this":{"__isSmartRef__":true,"id":14415}},"14484":{"timestamp":{"__isSmartRef__":true,"id":14485},"user":"lauritz","tags":[]},"14485":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (Central Europe Standard Time)"},"14486":{"varMapping":{"__isSmartRef__":true,"id":14487},"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":14488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14487":{"this":{"__isSmartRef__":true,"id":14415}},"14488":{"timestamp":{"__isSmartRef__":true,"id":14489},"user":"lauritz","tags":[]},"14489":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (Central Europe Standard Time)"},"14490":{"varMapping":{"__isSmartRef__":true,"id":14491},"source":"function getItems() {\n var worldEntry = this.createWorldTree(),\n groups = this.createGroupTree()\n\n return {children: [groups, worldEntry]};\n}","funcProperties":{"__isSmartRef__":true,"id":14492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14491":{"this":{"__isSmartRef__":true,"id":14415}},"14492":{"timestamp":{"__isSmartRef__":true,"id":14493},"user":"timfelgentreff","tags":[]},"14493":{"isSerializedDate":true,"string":"Mon Jun 18 2012 20:56:14 GMT+0200 (Central Europe Daylight Time)"},"14494":{"varMapping":{"__isSmartRef__":true,"id":14495},"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":14496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14495":{"this":{"__isSmartRef__":true,"id":14415}},"14496":{"timestamp":{"__isSmartRef__":true,"id":14497},"user":"timfelgentreff","tags":[]},"14497":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:27:07 GMT+0200 (Central Europe Daylight Time)"},"14498":{"varMapping":{"__isSmartRef__":true,"id":14499},"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":14500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14499":{"this":{"__isSmartRef__":true,"id":14415}},"14500":{"timestamp":{"__isSmartRef__":true,"id":14501},"user":"timfelgentreff","tags":[]},"14501":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:48:12 GMT+0200 (Central Europe Daylight Time)"},"14502":{"varMapping":{"__isSmartRef__":true,"id":14503},"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":14504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14503":{"this":{"__isSmartRef__":true,"id":14415}},"14504":{"timestamp":{"__isSmartRef__":true,"id":14505},"user":"timfelgentreff","tags":[]},"14505":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:41:55 GMT+0200 (Central Europe Daylight Time)"},"14506":{"varMapping":{"__isSmartRef__":true,"id":14507},"source":"function setHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":14508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14507":{"this":{"__isSmartRef__":true,"id":14415}},"14508":{"timestamp":{"__isSmartRef__":true,"id":14509},"user":"timfelgentreff","tags":[]},"14509":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:42:05 GMT+0200 (Central Europe Daylight Time)"},"14510":{"varMapping":{"__isSmartRef__":true,"id":14511},"source":"function removeHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":14512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14511":{"this":{"__isSmartRef__":true,"id":14415}},"14512":{"timestamp":{"__isSmartRef__":true,"id":14513},"user":"timfelgentreff","tags":[]},"14513":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:46:05 GMT+0200 (Central Europe Daylight Time)"},"14514":{"target":{"__isSmartRef__":true,"id":13524},"selector":"update","args":[],"stopped":true,"tickTime":500,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"14515":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(623.0,247.6)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"14516":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":14517}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14517":{"date":{"__isSmartRef__":true,"id":14518},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"14518":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (Central Europe Daylight Time)"},"14519":{"morph":{"__isSmartRef__":true,"id":13524},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14520":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"14521":{},"14522":{"displayInitialScript":{"__isSmartRef__":true,"id":14523},"displayJavaScriptSource":{"__isSmartRef__":true,"id":14527},"displaySourceForConnection":{"__isSmartRef__":true,"id":14531},"displaySourceForScript":{"__isSmartRef__":true,"id":14535},"generateSourceForConnection":{"__isSmartRef__":true,"id":14539},"generateSourceForScript":{"__isSmartRef__":true,"id":14543},"generateTargetCode":{"__isSmartRef__":true,"id":14547},"newConnection":{"__isSmartRef__":true,"id":14551},"newScript":{"__isSmartRef__":true,"id":14555},"reset":{"__isSmartRef__":true,"id":14559},"selectChangedContent":{"__isSmartRef__":true,"id":14563},"setTarget":{"__isSmartRef__":true,"id":14567},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":14571},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":14575},"updateLists":{"__isSmartRef__":true,"id":14579},"onShutdown":{"__isSmartRef__":true,"id":14583},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":14587},"update":{"__isSmartRef__":true,"id":14591},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":14595},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":14599},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":14603},"printTags":{"__isSmartRef__":true,"id":14611},"setTag":{"__isSmartRef__":true,"id":14615},"runScript":{"__isSmartRef__":true,"id":14619},"openPartTestRunner":{"__isSmartRef__":true,"id":14623}},"14523":{"varMapping":{"__isSmartRef__":true,"id":14524},"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":14525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14524":{"this":{"__isSmartRef__":true,"id":13524}},"14525":{"timestamp":{"__isSmartRef__":true,"id":14526},"user":"lauritz","tags":[]},"14526":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (Central Europe Standard Time)"},"14527":{"varMapping":{"__isSmartRef__":true,"id":14528},"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":14529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14528":{"this":{"__isSmartRef__":true,"id":13524}},"14529":{"timestamp":{"__isSmartRef__":true,"id":14530},"user":"lauritz","tags":[]},"14530":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"14531":{"varMapping":{"__isSmartRef__":true,"id":14532},"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":14533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14532":{"this":{"__isSmartRef__":true,"id":13524}},"14533":{"timestamp":{"__isSmartRef__":true,"id":14534},"user":"conradcalmez","tags":[]},"14534":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (Central Europe Standard Time)"},"14535":{"varMapping":{"__isSmartRef__":true,"id":14536},"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":14537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14536":{"this":{"__isSmartRef__":true,"id":13524}},"14537":{"timestamp":{"__isSmartRef__":true,"id":14538},"user":"lauritz","tags":[]},"14538":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (Central Europe Standard Time)"},"14539":{"varMapping":{"__isSmartRef__":true,"id":14540},"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":14541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14540":{"this":{"__isSmartRef__":true,"id":13524}},"14541":{"timestamp":{"__isSmartRef__":true,"id":14542},"user":"lauritz","tags":[]},"14542":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"14543":{"varMapping":{"__isSmartRef__":true,"id":14544},"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":14545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14544":{"this":{"__isSmartRef__":true,"id":13524}},"14545":{"timestamp":{"__isSmartRef__":true,"id":14546},"user":"tessi","tags":[]},"14546":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:17:15 GMT+0200 (Central Europe Daylight Time)"},"14547":{"varMapping":{"__isSmartRef__":true,"id":14548},"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":14549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14548":{"this":{"__isSmartRef__":true,"id":13524}},"14549":{"timestamp":{"__isSmartRef__":true,"id":14550},"user":"lauritz","tags":[]},"14550":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"14551":{"varMapping":{"__isSmartRef__":true,"id":14552},"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":14553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14552":{"this":{"__isSmartRef__":true,"id":13524}},"14553":{"timestamp":{"__isSmartRef__":true,"id":14554},"user":"lauritz","tags":[]},"14554":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"14555":{"varMapping":{"__isSmartRef__":true,"id":14556},"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":14557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14556":{"this":{"__isSmartRef__":true,"id":13524}},"14557":{"timestamp":{"__isSmartRef__":true,"id":14558},"user":"lauritz","tags":[]},"14558":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (Central Europe Standard Time)"},"14559":{"varMapping":{"__isSmartRef__":true,"id":14560},"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":14561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14560":{"this":{"__isSmartRef__":true,"id":13524}},"14561":{"timestamp":{"__isSmartRef__":true,"id":14562},"user":"conradcalmez","tags":[]},"14562":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (Central Europe Standard Time)"},"14563":{"varMapping":{"__isSmartRef__":true,"id":14564},"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":14569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14568":{"this":{"__isSmartRef__":true,"id":13524}},"14569":{"timestamp":{"__isSmartRef__":true,"id":14570},"user":"timfelgentreff","tags":[]},"14570":{"isSerializedDate":true,"string":"Mon Jun 18 2012 18:44:44 GMT+0200 (Central Europe Daylight Time)"},"14571":{"varMapping":{"__isSmartRef__":true,"id":14572},"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":14573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14572":{"this":{"__isSmartRef__":true,"id":13524}},"14573":{"timestamp":{"__isSmartRef__":true,"id":14574},"user":"lauritz","tags":[]},"14574":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"14575":{"varMapping":{"__isSmartRef__":true,"id":14576},"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":14577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14576":{"this":{"__isSmartRef__":true,"id":13524}},"14577":{"timestamp":{"__isSmartRef__":true,"id":14578},"user":"lauritz","tags":[]},"14578":{"isSerializedDate":true,"string":"Thu Jun 07 2012 15:55:01 GMT+0200 (Central Europe Daylight Time)"},"14579":{"varMapping":{"__isSmartRef__":true,"id":14580},"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":14581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14580":{"this":{"__isSmartRef__":true,"id":13524}},"14581":{"timestamp":{"__isSmartRef__":true,"id":14582},"user":"lauritz","tags":[]},"14582":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"14583":{"varMapping":{"__isSmartRef__":true,"id":14584},"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":14585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14584":{"this":{"__isSmartRef__":true,"id":13524}},"14585":{"timestamp":{"__isSmartRef__":true,"id":14586},"user":"lauritz","tags":[]},"14586":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"14587":{"varMapping":{"__isSmartRef__":true,"id":14588},"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":14589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14588":{"this":{"__isSmartRef__":true,"id":13524}},"14589":{"timestamp":{"__isSmartRef__":true,"id":14590},"user":"lauritz","tags":[]},"14590":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:52:56 GMT+0100 (Central Europe Standard Time)"},"14591":{"varMapping":{"__isSmartRef__":true,"id":14592},"source":"function update() {\n // alias to conform to convention\n this.updateLists();\n}","funcProperties":{"__isSmartRef__":true,"id":14593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14592":{"this":{"__isSmartRef__":true,"id":13524}},"14593":{"timestamp":{"__isSmartRef__":true,"id":14594},"user":"lauritz","tags":[]},"14594":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"14595":{"varMapping":{"__isSmartRef__":true,"id":14596},"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":14597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14596":{"this":{"__isSmartRef__":true,"id":13524}},"14597":{"timestamp":{"__isSmartRef__":true,"id":14598},"user":"lauritz","tags":[]},"14598":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:03:17 GMT+0100 (Central Europe Standard Time)"},"14599":{"varMapping":{"__isSmartRef__":true,"id":14600},"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":14601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14600":{"this":{"__isSmartRef__":true,"id":13524}},"14601":{"timestamp":{"__isSmartRef__":true,"id":14602},"user":"lauritz","tags":[]},"14602":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:41:00 GMT+0100 (Central Europe Standard Time)"},"14603":{"varMapping":{"__isSmartRef__":true,"id":14604},"source":"function copyToPartsBinWithUserRequest() {\n this.owner.copyToPartsBinWithUserRequest();\n}","funcProperties":{"__isSmartRef__":true,"id":14609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14604":{"this":{"__isSmartRef__":true,"id":13524},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14605}},"14605":{"$super":{"__isSmartRef__":true,"id":14606}},"14606":{"varMapping":{"__isSmartRef__":true,"id":14607},"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":14608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14607":{"obj":{"__isSmartRef__":true,"id":13524},"name":"copyToPartsBinWithUserRequest"},"14608":{},"14609":{"timestamp":{"__isSmartRef__":true,"id":14610},"user":"lauritz","tags":[]},"14610":{"isSerializedDate":true,"string":"Thu Nov 17 2011 20:04:19 GMT+0100 (Central Europe Standard Time)"},"14611":{"varMapping":{"__isSmartRef__":true,"id":14612},"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":14613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14612":{"this":{"__isSmartRef__":true,"id":13524}},"14613":{"timestamp":{"__isSmartRef__":true,"id":14614},"user":"lauritz","tags":[]},"14614":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:33:20 GMT+0100 (Central Europe Standard Time)"},"14615":{"varMapping":{"__isSmartRef__":true,"id":14616},"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":14617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14616":{"this":{"__isSmartRef__":true,"id":13524}},"14617":{"timestamp":{"__isSmartRef__":true,"id":14618},"user":"lauritz","tags":[]},"14618":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:35 GMT+0100 (Central Europe Standard Time)"},"14619":{"varMapping":{"__isSmartRef__":true,"id":14620},"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":14621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14620":{"this":{"__isSmartRef__":true,"id":13524}},"14621":{"timestamp":{"__isSmartRef__":true,"id":14622},"user":"conradcalmez","tags":[]},"14622":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:53:29 GMT+0100 (Central Europe Standard Time)"},"14623":{"varMapping":{"__isSmartRef__":true,"id":14624},"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":14625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14624":{"this":{"__isSmartRef__":true,"id":13524}},"14625":{"timestamp":{"__isSmartRef__":true,"id":14626},"user":"jenslincke","tags":[]},"14626":{"isSerializedDate":true,"string":"Wed Mar 14 2012 15:48:07 GMT+0100 (Central Europe Standard Time)"},"14627":{"submorphs":[],"scripts":[],"id":"CE1FF1F2-DE2D-441C-BCCE-EF6A394DB871","shape":{"__isSmartRef__":true,"id":14628},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ResizeCorner4","partsBinMetaInfo":{"__isSmartRef__":true,"id":14629},"__layered_draggingEnabled__":true,"dragStartPoint":null,"originalTargetExtent":null,"eventHandler":{"__isSmartRef__":true,"id":14630},"owner":{"__isSmartRef__":true,"id":13523},"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"],"_ClipMode":"visible","__serializedExpressions__":["_Position","originalExtent","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14631},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(610.0,254.0)","originalExtent":"lively.pt(239.0,138.0)","distanceToDragEvent":"lively.pt(42.3,-22.8)"},"14628":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(13.0,14.0)","_BorderColor":"Color.rgb(145,145,145)","_Fill":"Color.rgb(66,66,66)","_Padding":"lively.rect(0,0,0,0)"},"14629":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14630":{"morph":{"__isSmartRef__":true,"id":14627},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14631":{"onDrag":{"__isSmartRef__":true,"id":14632},"onDragEnd":{"__isSmartRef__":true,"id":14640},"onDragStart":{"__isSmartRef__":true,"id":14648}},"14632":{"varMapping":{"__isSmartRef__":true,"id":14633},"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":14638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14633":{"this":{"__isSmartRef__":true,"id":14627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14634}},"14634":{"$super":{"__isSmartRef__":true,"id":14635}},"14635":{"varMapping":{"__isSmartRef__":true,"id":14636},"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":14637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14636":{"obj":{"__isSmartRef__":true,"id":14627},"name":"onDrag"},"14637":{},"14638":{"timestamp":{"__isSmartRef__":true,"id":14639},"user":"lauritz"},"14639":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Central Europe Standard Time)"},"14640":{"varMapping":{"__isSmartRef__":true,"id":14641},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":14646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14641":{"this":{"__isSmartRef__":true,"id":14627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14642}},"14642":{"$super":{"__isSmartRef__":true,"id":14643}},"14643":{"varMapping":{"__isSmartRef__":true,"id":14644},"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":14645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14644":{"obj":{"__isSmartRef__":true,"id":14627},"name":"onDragEnd"},"14645":{},"14646":{"timestamp":{"__isSmartRef__":true,"id":14647},"user":"lauritz"},"14647":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Central Europe Standard Time)"},"14648":{"varMapping":{"__isSmartRef__":true,"id":14649},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":14654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14649":{"this":{"__isSmartRef__":true,"id":14627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14650}},"14650":{"$super":{"__isSmartRef__":true,"id":14651}},"14651":{"varMapping":{"__isSmartRef__":true,"id":14652},"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":14653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14652":{"obj":{"__isSmartRef__":true,"id":14627},"name":"onDragStart"},"14653":{},"14654":{"timestamp":{"__isSmartRef__":true,"id":14655},"user":"lauritz"},"14655":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:35 GMT+0100 (Central Europe Standard Time)"},"14656":{"submorphs":[{"__isSmartRef__":true,"id":14657},{"__isSmartRef__":true,"id":14663},{"__isSmartRef__":true,"id":14686},{"__isSmartRef__":true,"id":14708}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14726},"id":"D7C289EF-5F68-4373-BAE3-3A0939CD083C","eventHandler":{"__isSmartRef__":true,"id":14730},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":14731},"windowMorph":{"__isSmartRef__":true,"id":13523},"label":{"__isSmartRef__":true,"id":14657},"closeButton":{"__isSmartRef__":true,"id":14663},"menuButton":{"__isSmartRef__":true,"id":14686},"collapseButton":{"__isSmartRef__":true,"id":14708},"owner":{"__isSmartRef__":true,"id":13523},"prevScroll":[0,0],"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"],"_ClipMode":"visible","#startLetters":"","__serializedExpressions__":["_Position"],"_Scale":1,"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"14657":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14658},"id":"92A86FF5-FBAB-4A6C-AC88-8A10B3F88023","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14659}],"eventHandler":{"__isSmartRef__":true,"id":14661},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":14,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":14662},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":14656},"_MaxTextWidth":564,"_MinTextWidth":564,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"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"],"__serializedExpressions__":["_Position","_TextColor"],"_WordBreak":"break-all","_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(20.0,3.0)","_TextColor":"Color.rgb(102,102,102)"},"14658":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(564.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"14659":{"style":{"__isSmartRef__":true,"id":14660},"chunkOwner":{"__isSmartRef__":true,"id":14657},"storedString":"ObjectEditor (WebDev'12)","_id":"_243","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14660":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14661":{"morph":{"__isSmartRef__":true,"id":14657},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14662":{"resizeWidth":true},"14663":{"submorphs":[{"__isSmartRef__":true,"id":14664}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14669},"id":"8A4EF63C-D7A7-4227-93BD-6DF1356EC2E6","eventHandler":{"__isSmartRef__":true,"id":14675},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14670},"lighterFill":{"__isSmartRef__":true,"id":14676},"label":{"__isSmartRef__":true,"id":14664},"owner":{"__isSmartRef__":true,"id":14656},"layout":{"__isSmartRef__":true,"id":14681},"attributeConnections":[{"__isSmartRef__":true,"id":14682},{"__isSmartRef__":true,"id":14684}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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"],"_ClipMode":"visible","showsHalos":false,"isPressed":false,"__serializedExpressions__":["_Position"],"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(603.0,3.0)"},"14664":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14665},"id":"E3861972-5B35-4554-8E15-695361AD5324","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14666}],"eventHandler":{"__isSmartRef__":true,"id":14668},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14663},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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"],"showsHalos":false,"__serializedExpressions__":["_Position"],"_WordBreak":"break-all","_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"14665":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"14666":{"style":{"__isSmartRef__":true,"id":14667},"chunkOwner":{"__isSmartRef__":true,"id":14664},"storedString":"X","_id":"_244","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14667":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14668":{"morph":{"__isSmartRef__":true,"id":14664},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14669":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":14670},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"14670":{"stops":[{"__isSmartRef__":true,"id":14671},{"__isSmartRef__":true,"id":14672},{"__isSmartRef__":true,"id":14673},{"__isSmartRef__":true,"id":14674}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14671":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"14672":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14673":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14674":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"14675":{"morph":{"__isSmartRef__":true,"id":14663},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14676":{"stops":[{"__isSmartRef__":true,"id":14677},{"__isSmartRef__":true,"id":14678},{"__isSmartRef__":true,"id":14679},{"__isSmartRef__":true,"id":14680}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14677":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"14678":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14679":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14680":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"14681":{"moveHorizontal":true},"14682":{"sourceObj":{"__isSmartRef__":true,"id":14663},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13523},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14683},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14683":{"source":{"__isSmartRef__":true,"id":14663},"target":{"__isSmartRef__":true,"id":13523}},"14684":{"sourceObj":{"__isSmartRef__":true,"id":14663},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13523},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14685},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14685":{"source":{"__isSmartRef__":true,"id":14663},"target":{"__isSmartRef__":true,"id":13523}},"14686":{"submorphs":[{"__isSmartRef__":true,"id":14687}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14692},"id":"51FF8B7E-E252-411B-9820-2131A230DEE5","eventHandler":{"__isSmartRef__":true,"id":14698},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14670},"lighterFill":{"__isSmartRef__":true,"id":14699},"label":{"__isSmartRef__":true,"id":14687},"owner":{"__isSmartRef__":true,"id":14656},"attributeConnections":[{"__isSmartRef__":true,"id":14704},{"__isSmartRef__":true,"id":14706}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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"],"_ClipMode":"visible","isPressed":false,"__serializedExpressions__":["_Position"],"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"14687":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14688},"id":"8B6BF0DF-CE92-4754-8C15-4CE48D06283A","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14689}],"eventHandler":{"__isSmartRef__":true,"id":14691},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14686},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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"],"__serializedExpressions__":["_Position"],"_WordBreak":"break-all","_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"14688":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"14689":{"style":{"__isSmartRef__":true,"id":14690},"chunkOwner":{"__isSmartRef__":true,"id":14687},"storedString":"M","_id":"_245","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14690":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14691":{"morph":{"__isSmartRef__":true,"id":14687},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14692":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":14693},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"14693":{"stops":[{"__isSmartRef__":true,"id":14694},{"__isSmartRef__":true,"id":14695},{"__isSmartRef__":true,"id":14696},{"__isSmartRef__":true,"id":14697}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14694":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"14695":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"14696":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"14697":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"14698":{"morph":{"__isSmartRef__":true,"id":14686},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14699":{"stops":[{"__isSmartRef__":true,"id":14700},{"__isSmartRef__":true,"id":14701},{"__isSmartRef__":true,"id":14702},{"__isSmartRef__":true,"id":14703}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14700":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"14701":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14702":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14703":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"14704":{"sourceObj":{"__isSmartRef__":true,"id":14686},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13523},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14705},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14705":{"source":{"__isSmartRef__":true,"id":14686},"target":{"__isSmartRef__":true,"id":13523}},"14706":{"sourceObj":{"__isSmartRef__":true,"id":14686},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13523},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14707},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14707":{"source":{"__isSmartRef__":true,"id":14686},"target":{"__isSmartRef__":true,"id":13523}},"14708":{"submorphs":[{"__isSmartRef__":true,"id":14709}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14714},"id":"2DA68C95-F0A6-4A1E-B140-25B795EBD04B","eventHandler":{"__isSmartRef__":true,"id":14715},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14670},"lighterFill":{"__isSmartRef__":true,"id":14716},"label":{"__isSmartRef__":true,"id":14709},"owner":{"__isSmartRef__":true,"id":14656},"layout":{"__isSmartRef__":true,"id":14721},"attributeConnections":[{"__isSmartRef__":true,"id":14722},{"__isSmartRef__":true,"id":14724}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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"],"_ClipMode":"visible","isPressed":false,"__serializedExpressions__":["_Position"],"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(584.0,3.0)"},"14709":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14710},"id":"DE8F75A8-6EBA-43F0-A178-1039F31A204E","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14711}],"eventHandler":{"__isSmartRef__":true,"id":14713},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14708},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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"],"__serializedExpressions__":["_Position"],"_WordBreak":"break-all","_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"14710":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"14711":{"style":{"__isSmartRef__":true,"id":14712},"chunkOwner":{"__isSmartRef__":true,"id":14709},"storedString":"–","_id":"_246","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14712":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14713":{"morph":{"__isSmartRef__":true,"id":14709},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14714":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":14670},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"14715":{"morph":{"__isSmartRef__":true,"id":14708},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14716":{"stops":[{"__isSmartRef__":true,"id":14717},{"__isSmartRef__":true,"id":14718},{"__isSmartRef__":true,"id":14719},{"__isSmartRef__":true,"id":14720}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14717":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"14718":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14719":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14720":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"14721":{"moveHorizontal":true},"14722":{"sourceObj":{"__isSmartRef__":true,"id":14708},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13523},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14723},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14723":{"source":{"__isSmartRef__":true,"id":14708},"target":{"__isSmartRef__":true,"id":13523}},"14724":{"sourceObj":{"__isSmartRef__":true,"id":14708},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13523},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14725},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14725":{"source":{"__isSmartRef__":true,"id":14708},"target":{"__isSmartRef__":true,"id":13523}},"14726":{"_ClipMode":"visible","_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":14727},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(623.0,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(102,102,102)"},"14727":{"stops":[{"__isSmartRef__":true,"id":14728},{"__isSmartRef__":true,"id":14729}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14728":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"14729":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14730":{"morph":{"__isSmartRef__":true,"id":14656},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14731":{"resizeWidth":true,"adjustForNewBounds":true},"14732":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_ClipMode":"visible","__serializedExpressions__":["_Extent","_Position","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(623.0,268.0)","_Position":"lively.pt(0.0,0.0)","_Padding":"lively.rect(0,0,0,0)"},"14733":{"morph":{"__isSmartRef__":true,"id":13523},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14734":{"adjustForNewBounds":true},"14735":{"a":1,"b":0,"c":0,"d":1,"e":21,"f":92.89999999999998,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"14736":{"a":1.0040100200350561,"b":0,"c":0,"d":1.0040100200350561,"e":25.958169966165087,"f":125.02070906988553,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"14737":{"migrationLevel":4,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a morph, or a group of morphs.","partName":"ObjectGroupEditor","changes":[{"__isSmartRef__":true,"id":14738},{"__isSmartRef__":true,"id":14740},{"__isSmartRef__":true,"id":14742},{"__isSmartRef__":true,"id":14744},{"__isSmartRef__":true,"id":14746},{"__isSmartRef__":true,"id":14748},{"__isSmartRef__":true,"id":14750},{"__isSmartRef__":true,"id":14752},{"__isSmartRef__":true,"id":14754},{"__isSmartRef__":true,"id":14756},{"__isSmartRef__":true,"id":14758},{"__isSmartRef__":true,"id":14760},{"__isSmartRef__":true,"id":14762},{"__isSmartRef__":true,"id":14764},{"__isSmartRef__":true,"id":14766},{"__isSmartRef__":true,"id":14768},{"__isSmartRef__":true,"id":14770},{"__isSmartRef__":true,"id":14772},{"__isSmartRef__":true,"id":14774},{"__isSmartRef__":true,"id":14776},{"__isSmartRef__":true,"id":14778},{"__isSmartRef__":true,"id":14780},{"__isSmartRef__":true,"id":14782},{"__isSmartRef__":true,"id":14784},{"__isSmartRef__":true,"id":14786},{"__isSmartRef__":true,"id":14788},{"__isSmartRef__":true,"id":14790},{"__isSmartRef__":true,"id":14792},{"__isSmartRef__":true,"id":14794},{"__isSmartRef__":true,"id":14796},{"__isSmartRef__":true,"id":14798},{"__isSmartRef__":true,"id":14800},{"__isSmartRef__":true,"id":14802},{"__isSmartRef__":true,"id":14804},{"__isSmartRef__":true,"id":14806},{"__isSmartRef__":true,"id":14808},{"__isSmartRef__":true,"id":14810},{"__isSmartRef__":true,"id":14812},{"__isSmartRef__":true,"id":14814},{"__isSmartRef__":true,"id":14816},{"__isSmartRef__":true,"id":14818},{"__isSmartRef__":true,"id":14820},{"__isSmartRef__":true,"id":14822},{"__isSmartRef__":true,"id":14824},{"__isSmartRef__":true,"id":14826},{"__isSmartRef__":true,"id":14828},{"__isSmartRef__":true,"id":14830},{"__isSmartRef__":true,"id":14832},{"__isSmartRef__":true,"id":14834},{"__isSmartRef__":true,"id":14836},{"__isSmartRef__":true,"id":14838},{"__isSmartRef__":true,"id":14840},{"__isSmartRef__":true,"id":14842},{"__isSmartRef__":true,"id":14844},{"__isSmartRef__":true,"id":14846},{"__isSmartRef__":true,"id":14848},{"__isSmartRef__":true,"id":14850},{"__isSmartRef__":true,"id":14852},{"__isSmartRef__":true,"id":14854},{"__isSmartRef__":true,"id":14856},{"__isSmartRef__":true,"id":14858},{"__isSmartRef__":true,"id":14860},{"__isSmartRef__":true,"id":14862},{"__isSmartRef__":true,"id":14864},{"__isSmartRef__":true,"id":14866},{"__isSmartRef__":true,"id":14868},{"__isSmartRef__":true,"id":14870},{"__isSmartRef__":true,"id":14872},{"__isSmartRef__":true,"id":14874},{"__isSmartRef__":true,"id":14876},{"__isSmartRef__":true,"id":14878},{"__isSmartRef__":true,"id":14880},{"__isSmartRef__":true,"id":14882},{"__isSmartRef__":true,"id":14884},{"__isSmartRef__":true,"id":14886}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14738":{"date":{"__isSmartRef__":true,"id":14739},"author":"lauritz","message":"reflected relocation of the tree widget","id":"C2F5A421-34F4-4F59-897F-B71A43FCB6E6"},"14739":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:51:17 GMT+0200 (Central Europe Daylight Time)"},"14740":{"date":{"__isSmartRef__":true,"id":14741},"author":"timfelgentreff","message":"shift-multi-selection in scenegraph tree","id":"06F870D2-4E2C-49D4-B02D-9B3D16C03EEB"},"14741":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:49:25 GMT+0200 (Central Europe Daylight Time)"},"14742":{"date":{"__isSmartRef__":true,"id":14743},"author":"lauritz","message":"changed title to clarify","id":"A5FE4F60-1BA4-4FDE-A872-70D815D6C99E"},"14743":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:29:57 GMT+0200 (Central Europe Daylight Time)"},"14744":{"date":{"__isSmartRef__":true,"id":14745},"author":"timfelgentreff","message":"automatic expand and highlight","id":"02EF2B1D-F704-4EB5-A81A-FAAD2F85470D"},"14745":{"isSerializedDate":true,"string":"Tue Jun 19 2012 09:32:59 GMT+0200 (Central Europe Daylight Time)"},"14746":{"date":{"__isSmartRef__":true,"id":14747},"author":"timfelgentreff","message":"use tree for submorphs","id":"592A118B-2713-4C06-B820-22DB62E43D16"},"14747":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:41:30 GMT+0200 (Central Europe Daylight Time)"},"14748":{"date":{"__isSmartRef__":true,"id":14749},"author":"timfelgentreff","message":"hide \"Name group\" button by default","id":"617D6A4B-7BD3-4B7B-9913-CC650DC7BA6A"},"14749":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:46:11 GMT+0200 (Central Europe Daylight Time)"},"14750":{"date":{"__isSmartRef__":true,"id":14751},"author":"timfelgentreff","message":"introduce evaluation for groups. returns multiple results if result is `this' dependent","id":"E459B71C-5114-40F2-A11E-34A42A4CA50C"},"14751":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:45:09 GMT+0200 (Central Europe Daylight Time)"},"14752":{"date":{"__isSmartRef__":true,"id":14753},"author":"timfelgentreff","message":"fix issue with uniqueness","id":"863C36B3-EC03-45B1-9D36-7EB092A00EFE"},"14753":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:23:01 GMT+0200 (Central Europe Daylight Time)"},"14754":{"date":{"__isSmartRef__":true,"id":14755},"author":"timfelgentreff","message":"implement saving and retrieving of groups, using tags on the morphs","id":"854E44DD-C527-406E-81A6-87D1FDFF499B"},"14755":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:09:18 GMT+0200 (Central Europe Daylight Time)"},"14756":{"date":{"__isSmartRef__":true,"id":14757},"author":"tessi","message":"Stop Magnifier-Selection-Thingy if Esc-Key was pressed","id":"F59C88F0-0708-483D-89BA-2D926B22BC5E"},"14757":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:59 GMT+0200 (Central Europe Daylight Time)"},"14758":{"date":{"__isSmartRef__":true,"id":14759},"author":"tessi","message":"Fix hover on empty target","id":"E65D513E-8719-46CD-BA22-F1F8A6C6904B"},"14759":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:32:55 GMT+0200 (Central Europe Daylight Time)"},"14760":{"date":{"__isSmartRef__":true,"id":14761},"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"},"14761":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:29:36 GMT+0200 (Central Europe Daylight Time)"},"14762":{"date":{"__isSmartRef__":true,"id":14763},"author":"lauritz","message":"fix bad interaction b/w highlight and tracking in magnifier","id":"0970265D-1552-4376-8999-F6847141362C"},"14763":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:07:40 GMT+0200 (Central Europe Daylight Time)"},"14764":{"date":{"__isSmartRef__":true,"id":14765},"author":"lauritz","message":"","id":"667CB328-3FE7-46B6-BD5A-FA4763544BC6"},"14765":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:29:52 GMT+0200 (Central Europe Daylight Time)"},"14766":{"date":{"__isSmartRef__":true,"id":14767},"author":"lauritz","message":"fixed magnifier-tool: highlight-rectangle property of the object, now.","id":"9301C445-2961-4C51-8D35-8FF338F0CD19"},"14767":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:25:01 GMT+0200 (Central Europe Daylight Time)"},"14768":{"date":{"__isSmartRef__":true,"id":14769},"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"},"14769":{"isSerializedDate":true,"string":"Wed Jun 06 2012 16:21:44 GMT+0200 (Central Europe Daylight Time)"},"14770":{"date":{"__isSmartRef__":true,"id":14771},"author":"lauritz","message":"hover over the magnifier button to see the current target","id":"9E6C0152-723A-43B1-8EF8-A3C2F15F5EBA"},"14771":{"isSerializedDate":true,"string":"Tue May 29 2012 13:18:56 GMT+0200 (Central Europe Daylight Time)"},"14772":{"date":{"__isSmartRef__":true,"id":14773},"author":"lauritz","message":"reduced global variable usage","id":"2FCB8ACB-CA90-4236-A8DF-D77F631C6CA9"},"14773":{"isSerializedDate":true,"string":"Tue May 29 2012 13:10:35 GMT+0200 (Central Europe Daylight Time)"},"14774":{"date":{"__isSmartRef__":true,"id":14775},"author":"timfelgentreff","message":"no comment","id":"D66996F5-54A4-4923-8D9E-3FC049EA2D32"},"14775":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:35 GMT+0200 (Central Europe Daylight Time)"},"14776":{"date":{"__isSmartRef__":true,"id":14777},"author":"timfelgentreff","message":"no comment","id":"27293AFB-6616-4516-B2FB-BB688F7ADB2D"},"14777":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:19 GMT+0200 (Central Europe Daylight Time)"},"14778":{"date":{"__isSmartRef__":true,"id":14779},"author":"fbo","message":"No more addScript and better support for Firefox","id":"C6D736FA-5748-448D-A6A0-6068A9BA9A34"},"14779":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:15:21 GMT+0200 (Central Europe Daylight Time)"},"14780":{"date":{"__isSmartRef__":true,"id":14781},"author":"fbo","message":"No more addScript and better support for Firefox","id":"2AC82901-2DCD-4921-B6F9-78B05D3D671C"},"14781":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:14:35 GMT+0200 (Central Europe Daylight Time)"},"14782":{"date":{"__isSmartRef__":true,"id":14783},"author":"fabian","message":"","id":"00E45103-9D78-4178-A58F-03896AFF5CA3"},"14783":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:55:32 GMT+0100 (Central Europe Standard Time)"},"14784":{"date":{"__isSmartRef__":true,"id":14785},"author":"fabian","message":"","id":"31CF7B42-DEAF-4A50-A5A2-6745A92BF6DC"},"14785":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:48:03 GMT+0100 (Central Europe Standard Time)"},"14786":{"date":{"__isSmartRef__":true,"id":14787},"author":"fabian","message":"","id":"FABA3850-E4EF-4888-BCE9-BB4F9EC9C2D4"},"14787":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:37:50 GMT+0100 (Central Europe Standard Time)"},"14788":{"date":{"__isSmartRef__":true,"id":14789},"author":"fabian","message":"","id":"350CA522-AD08-42D8-BB89-DA7D8BCAD0FB"},"14789":{"isSerializedDate":true,"string":"Wed Mar 07 2012 21:27:57 GMT+0100 (Central Europe Standard Time)"},"14790":{"date":{"__isSmartRef__":true,"id":14791},"author":"fabian","message":"","id":"D2F5383B-1F99-477E-A66E-D92928DB7540"},"14791":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:52:22 GMT+0100 (Central Europe Standard Time)"},"14792":{"date":{"__isSmartRef__":true,"id":14793},"author":"undefined","message":"","id":"121C044E-8723-4B1F-A9C5-54E73422CD05"},"14793":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:40:16 GMT+0100 (Central Europe Standard Time)"},"14794":{"date":{"__isSmartRef__":true,"id":14795},"author":"fabian","message":"","id":"1A435460-69B4-469B-909F-F2F395B97C4D"},"14795":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:09:30 GMT+0100 (Central Europe Standard Time)"},"14796":{"date":{"__isSmartRef__":true,"id":14797},"author":"fabian","message":"","id":"7D345E64-F67F-4266-AB55-590EB143327A"},"14797":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:08:57 GMT+0100 (Central Europe Standard Time)"},"14798":{"date":{"__isSmartRef__":true,"id":14799},"author":"fbo","message":"","id":"EBED707C-49B0-4E5F-9DD8-FF84007B435E"},"14799":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:47:59 GMT+0100 (Central Europe Standard Time)"},"14800":{"date":{"__isSmartRef__":true,"id":14801},"author":"conradcalmez","message":"set selection of lists to null","id":"1C918344-7895-4714-9F8E-2BCC837250CA"},"14801":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:00:56 GMT+0100 (Central Europe Standard Time)"},"14802":{"date":{"__isSmartRef__":true,"id":14803},"author":"conradcalmez","message":"added run button for trying out methods","id":"D21502DF-B383-45AA-8DB2-16D6A4C7DFC0"},"14803":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:15 GMT+0100 (Central Europe Standard Time)"},"14804":{"date":{"__isSmartRef__":true,"id":14805},"author":"robertkrahn","message":"show scripts even if they are wrapped","id":"6F608C14-369B-49D6-8E91-81B35ABB14DE"},"14805":{"isSerializedDate":true,"string":"Fri Jan 27 2012 17:50:40 GMT+0100 (Central Europe Standard Time)"},"14806":{"date":{"__isSmartRef__":true,"id":14807},"author":"lauritz","message":"","id":"72E0F00D-53A7-43E9-AD7B-E34F485BC75E"},"14807":{"isSerializedDate":true,"string":"Fri Jan 06 2012 07:15:04 GMT+0100 (Central Europe Standard Time)"},"14808":{"date":{"__isSmartRef__":true,"id":14809},"author":"lauritz","message":"top-most entry of the tag list is \"all\" now.","id":"62D12D9E-7F42-40CC-BB5B-162130454572"},"14809":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:28:30 GMT+0100 (Central Europe Standard Time)"},"14810":{"date":{"__isSmartRef__":true,"id":14811},"author":"lauritz","message":"sorted tag list.","id":"597DB7EB-1788-42DC-A64F-E061D7B831EC"},"14811":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:23:14 GMT+0100 (Central Europe Standard Time)"},"14812":{"date":{"__isSmartRef__":true,"id":14813},"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"},"14813":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:04:53 GMT+0100 (Central Europe Standard Time)"},"14814":{"date":{"__isSmartRef__":true,"id":14815},"author":"lauritz","message":"removed a workaround","id":"9AC9A97B-E63C-4C24-BCAF-6DC61C3A677C"},"14815":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:56:45 GMT+0100 (Central Europe Standard Time)"},"14816":{"date":{"__isSmartRef__":true,"id":14817},"author":"lauritz","message":"workaround for issue #161 - target morph list is scrollable","id":"7D5DAE37-46E2-4C63-8008-AA553CD6B1E9"},"14817":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:13:13 GMT+0100 (Central Europe Standard Time)"},"14818":{"date":{"__isSmartRef__":true,"id":14819},"author":"lauritz","message":"fixed a bug regarding anonymous morphs.","id":"30C42CB6-324C-455D-8B3E-828A80325027"},"14819":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:31:58 GMT+0100 (Central Europe Standard Time)"},"14820":{"date":{"__isSmartRef__":true,"id":14821},"author":"lauritz","message":"fixed a defect (weeeeeird property caused an error on deserialization of copies)","id":"F6F92336-29F4-4FB4-B597-B8EF12E2922E"},"14821":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:55:11 GMT+0100 (Central Europe Standard Time)"},"14822":{"date":{"__isSmartRef__":true,"id":14823},"author":"lauritz","message":"renamed .categorize to .tag","id":"470CD024-16F9-4221-B2D7-87FAC17B198B"},"14823":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:44:44 GMT+0100 (Central Europe Standard Time)"},"14824":{"date":{"__isSmartRef__":true,"id":14825},"author":"lauritz","message":"added a border to notifications, centered notification text","id":"D1DDACFE-EC70-45FB-8178-0A93C8DC81F1"},"14825":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:02:14 GMT+0100 (Central Europe Standard Time)"},"14826":{"date":{"__isSmartRef__":true,"id":14827},"author":"lauritz","message":"removed a missed debugger statement. corrected setting of target.","id":"BD747202-2BE7-4560-8EB2-DBA586BAD46F"},"14827":{"isSerializedDate":true,"string":"Fri Nov 18 2011 20:19:07 GMT+0100 (Central Europe Standard Time)"},"14828":{"date":{"__isSmartRef__":true,"id":14829},"author":"lauritz","message":"set a minExtent","id":"85B641E5-15C6-4C6D-BE9A-F4F96E347258"},"14829":{"isSerializedDate":true,"string":"Tue Nov 15 2011 20:12:45 GMT+0100 (Central Europe Standard Time)"},"14830":{"date":{"__isSmartRef__":true,"id":14831},"author":"jenslincke","message":"set min extent to pt(500,300)","id":"20634435-660B-4E80-93FF-8B8C4F5E0453"},"14831":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:44:45 GMT+0100 (Central Europe Standard Time)"},"14832":{"date":{"__isSmartRef__":true,"id":14833},"author":"jenslincke","message":"bring resize handle to front","id":"996D26BC-8567-486E-B114-A9041230543D"},"14833":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:41:36 GMT+0100 (Central Europe Standard Time)"},"14834":{"date":{"__isSmartRef__":true,"id":14835},"author":"lauritz","message":"Locked down submorphs of the editor pane. Grabbing and dragging disabled. "},"14835":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:36:22 GMT+0200 (Central Europe Daylight Time)"},"14836":{"date":{"__isSmartRef__":true,"id":14837},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"14837":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:40:22 GMT+0200 (Central Europe Daylight Time)"},"14838":{"date":{"__isSmartRef__":true,"id":14839},"author":"lauritz","message":"added confirmation before removal of scripts or connections.","id":"00B5B7BA-FC00-4B1C-A967-B8A38B05EEA8"},"14839":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:42:28 GMT+0100 (Central Europe Standard Time)"},"14840":{"date":{"__isSmartRef__":true,"id":14841},"author":"lauritz","message":"two more checks on attempts to remove scripts or connections.","id":"ED9F0090-C36C-4BC6-8FD2-A6FB60C7A0B2"},"14841":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:47:27 GMT+0100 (Central Europe Standard Time)"},"14842":{"date":{"__isSmartRef__":true,"id":14843},"author":"lauritz","message":"layout adaptions","id":"6F1AEBDC-EED3-4CE0-B84C-F4DD4DA784C5"},"14843":{"isSerializedDate":true,"string":"Wed Nov 16 2011 02:12:15 GMT+0100 (Central Europe Standard Time)"},"14844":{"date":{"__isSmartRef__":true,"id":14845},"author":"lauritz","message":"Refactoring of script annotations (now at scripts not morphs). Added category tagging. Layout changes.","id":"1A9DA32B-8A1D-4CCF-92CB-47462F8CF117"},"14845":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:22:54 GMT+0100 (Central Europe Standard Time)"},"14846":{"date":{"__isSmartRef__":true,"id":14847},"author":"jenslincke","message":"- reset title bar and borders","id":"8CE7DA3C-5C83-4151-A3A7-7B41D1C555BD"},"14847":{"isSerializedDate":true,"string":"Fri Nov 18 2011 15:26:49 GMT+0100 (Central Europe Standard Time)"},"14848":{"date":{"__isSmartRef__":true,"id":14849},"author":"lauritz","message":"fixed a bug (onBlur event handling) and added the world to the target chooser","id":"A8C151D4-0767-44E0-B586-090EA305BDF5"},"14849":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:14:00 GMT+0100 (Central Europe Standard Time)"},"14850":{"date":{"__isSmartRef__":true,"id":14851},"author":"lauritz","message":"adapted layout of notifications","id":"1C01FAB9-AD9A-44B5-BAF1-EC06408A767E"},"14851":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:26:48 GMT+0100 (Central Europe Standard Time)"},"14852":{"date":{"__isSmartRef__":true,"id":14853},"author":"lauritz","message":"changed label \"Category:\" to \"Tag:\".","id":"DBC877ED-0328-44A8-A46D-FE83C935797F"},"14853":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:50:45 GMT+0100 (Central Europe Standard Time)"},"14854":{"date":{"__isSmartRef__":true,"id":14855},"author":"bsiegmund","message":"Run Button now moving when window is resized","id":"9ECA7B2B-8322-42C5-8EFA-49AC432960B4"},"14855":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:36:10 GMT+0100 (Central Europe Standard Time)"},"14856":{"date":{"__isSmartRef__":true,"id":14857},"author":"sstamm","message":"added save button","id":"3A85D0AF-64E0-40C7-8C4E-61CD462F3971"},"14857":{"isSerializedDate":true,"string":"Fri Feb 03 2012 11:45:18 GMT+0100 (Central Europe Standard Time)"},"14858":{"date":{"__isSmartRef__":true,"id":14859},"author":"fabian","message":"","id":"6FF4CD6F-6C92-449F-B2CA-20BFACE54E7A"},"14859":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:37:11 GMT+0100 (Central Europe Standard Time)"},"14860":{"date":{"__isSmartRef__":true,"id":14861},"author":"fabian","message":"","id":"112A906B-C79A-4CF2-BD2A-EEF9A6731634"},"14861":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:42:40 GMT+0100 (Central Europe Standard Time)"},"14862":{"date":{"__isSmartRef__":true,"id":14863},"author":"fabian","message":"","id":"EE9D6061-DD05-4FC8-B53A-21B93B9F5535"},"14863":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:57:12 GMT+0100 (Central Europe Standard Time)"},"14864":{"date":{"__isSmartRef__":true,"id":14865},"author":"fabian","message":"","id":"AEB64F75-685C-4BB8-8C69-D8EC60CBA91D"},"14865":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:14:57 GMT+0100 (Central Europe Standard Time)"},"14866":{"date":{"__isSmartRef__":true,"id":14867},"author":"fabian","message":"","id":"0714BC73-548D-4AF3-9A61-32FEE36C9B1F"},"14867":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:34:16 GMT+0100 (Central Europe Standard Time)"},"14868":{"date":{"__isSmartRef__":true,"id":14869},"author":"fabian","message":"","id":"E39C79D4-9E74-47BA-A6EA-D0B861EB411D"},"14869":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:46:13 GMT+0100 (Central Europe Standard Time)"},"14870":{"date":{"__isSmartRef__":true,"id":14871},"author":"fabian","message":"","id":"50D90B40-1175-48A3-AC0E-10AC8884288A"},"14871":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:51:00 GMT+0100 (Central Europe Standard Time)"},"14872":{"date":{"__isSmartRef__":true,"id":14873},"author":"robertkrahn","message":"- Tags text morph now is a input line, fixed a bug in generateSourceForScript()","id":"485A3064-009C-4A89-875B-D3BF1B1C0606"},"14873":{"isSerializedDate":true,"string":"Thu Mar 08 2012 19:12:32 GMT+0100 (Central Europe Standard Time)"},"14874":{"date":{"__isSmartRef__":true,"id":14875},"author":"fbo","message":"No more addScript and better support for Firefox","id":"1BC8E4F5-9621-43E1-9451-35E018A8B06F"},"14875":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:16:30 GMT+0200 (Central Europe Daylight Time)"},"14876":{"date":{"__isSmartRef__":true,"id":14877},"author":"robertkrahn","message":"restored old version for addressing immediate save problems","id":"63323F27-08DC-499B-80D6-A700A30FE6BA"},"14877":{"isSerializedDate":true,"string":"Thu Apr 26 2012 22:03:48 GMT+0200 (Central Europe Daylight Time)"},"14878":{"date":{"__isSmartRef__":true,"id":14879},"author":"timfelgentreff","message":"no comment","id":"6D83027E-EC28-4497-A29F-E48051BD74FA"},"14879":{"isSerializedDate":true,"string":"Thu May 24 2012 16:54:16 GMT+0200 (Central Europe Daylight Time)"},"14880":{"date":{"__isSmartRef__":true,"id":14881},"author":"timfelgentreff","message":"Add a magnifiying glass to select target (similar to developer tools DOM selection)","id":"D9409D32-738F-4916-BA02-82C040C9891B"},"14881":{"isSerializedDate":true,"string":"Thu May 24 2012 17:21:39 GMT+0200 (Central Europe Daylight Time)"},"14882":{"date":{"__isSmartRef__":true,"id":14883},"author":"lauritz","message":"added cschusters's Widget.js module to this part's PartsBinMetaInfo.requiredModules","id":"CDFDF35E-A6AC-4ABC-8ADC-567B3CC55F6B"},"14883":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:11:02 GMT+0200 (Central Europe Daylight Time)"},"14884":{"date":{"__isSmartRef__":true,"id":14885},"author":"tessi","message":"select target-dropwdownlist instead of \"Target\"-Label when clicking on the dropdownlist","id":"8744030E-7C35-4B0D-9619-DDF542E951E3"},"14885":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:21:25 GMT+0200 (Central Europe Daylight Time)"},"14886":{"date":{"__isSmartRef__":true,"id":14887},"author":"timfelgentreff","message":"resize initially","id":"6D0DAD13-A4E6-4FC7-AB01-0CBD3CBE6FEE"},"14887":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:26:37 GMT+0200 (Central Europe Daylight Time)"},"14888":{"setTarget":{"__isSmartRef__":true,"id":14889},"reset":{"__isSmartRef__":true,"id":14893},"onShutdown":{"__isSmartRef__":true,"id":14897}},"14889":{"varMapping":{"__isSmartRef__":true,"id":14890},"source":"function setTarget(t) {\n this.targetMorph.setTarget(t);\n}","funcProperties":{"__isSmartRef__":true,"id":14891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14890":{"this":{"__isSmartRef__":true,"id":13523}},"14891":{"timestamp":{"__isSmartRef__":true,"id":14892},"user":"lauritz","categories":[]},"14892":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Central Europe Standard Time)"},"14893":{"varMapping":{"__isSmartRef__":true,"id":14894},"source":"function reset() {\n this.targetMorph.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":14895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14894":{"this":{"__isSmartRef__":true,"id":13523}},"14895":{"timestamp":{"__isSmartRef__":true,"id":14896},"user":"lauritz","categories":[]},"14896":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Central Europe Standard Time)"},"14897":{"varMapping":{"__isSmartRef__":true,"id":14898},"source":"function onShutdown() {\n this.targetMorph.onShutdown();\n}","funcProperties":{"__isSmartRef__":true,"id":14899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14898":{"this":{"__isSmartRef__":true,"id":13523}},"14899":{"timestamp":{"__isSmartRef__":true,"id":14900},"user":"lauritz","categories":[]},"14900":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:25:16 GMT+0200 (Central Europe Daylight Time)"},"14901":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"14902":{"options":{"__isSmartRef__":true,"id":14903}},"14903":{"override":["onDrag","onDragStart","onDragEnd"]},"14904":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14905":{"morph":{"__isSmartRef__":true,"id":13431},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14906":{"copy":{"__isSmartRef__":true,"id":14907},"onDropOn":{"__isSmartRef__":true,"id":14915},"onMouseUp":{"__isSmartRef__":true,"id":14923},"onDragStart":{"__isSmartRef__":true,"id":14931},"onDragEnd":{"__isSmartRef__":true,"id":14939},"showItem":{"__isSmartRef__":true,"id":14947},"getPane":{"__isSmartRef__":true,"id":14951}},"14907":{"varMapping":{"__isSmartRef__":true,"id":14908},"source":"function copy() {\n var result = $super();\n result.pane = null\n // keep that invariant....\n result.slide = result.submorphs.first();\n var title = result.get('title');\n if (title && title.textString) title.textString += ' Copy';\n result.setBorderColor(Color.gray)\n return result\n }","funcProperties":{"__isSmartRef__":true,"id":14913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14908":{"this":{"__isSmartRef__":true,"id":11953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14909}},"14909":{"$super":{"__isSmartRef__":true,"id":14910}},"14910":{"varMapping":{"__isSmartRef__":true,"id":14911},"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":14912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14911":{"obj":{"__isSmartRef__":true,"id":11953},"name":"copy"},"14912":{},"14913":{"timestamp":{"__isSmartRef__":true,"id":14914},"user":"jenslincke","tags":[]},"14914":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:27 GMT+0200 (Central Europe Daylight Time)"},"14915":{"varMapping":{"__isSmartRef__":true,"id":14916},"source":"function onDropOn(morph) {\n if (morph.name == 'Container') {\n morph.get('PresentationContainerPane').onAddSlideItem(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14916":{"this":{"__isSmartRef__":true,"id":11953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14917}},"14917":{"$super":{"__isSmartRef__":true,"id":14918}},"14918":{"varMapping":{"__isSmartRef__":true,"id":14919},"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":14920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14919":{"obj":{"__isSmartRef__":true,"id":11953},"name":"onDropOn"},"14920":{},"14921":{"timestamp":{"__isSmartRef__":true,"id":14922},"user":"jenslincke","tags":[]},"14922":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:27 GMT+0200 (Central Europe Daylight Time)"},"14923":{"varMapping":{"__isSmartRef__":true,"id":14924},"source":"function onMouseUp(evt) { \n var pane = this.getPane()\n if (!pane) return;\n pane.onItemMouseUp(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":14929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14924":{"this":{"__isSmartRef__":true,"id":11953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14925}},"14925":{"$super":{"__isSmartRef__":true,"id":14926}},"14926":{"varMapping":{"__isSmartRef__":true,"id":14927},"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":14928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14927":{"obj":{"__isSmartRef__":true,"id":11953},"name":"onMouseUp"},"14928":{},"14929":{"timestamp":{"__isSmartRef__":true,"id":14930},"user":"jenslincke","tags":[]},"14930":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:27 GMT+0200 (Central Europe Daylight Time)"},"14931":{"varMapping":{"__isSmartRef__":true,"id":14932},"source":"function onDragStart(evt) { \n\n var pane = this.getPane()\n if (!pane) {\n evt.hand.grabMorph(this)\n return;\n };\n return pane.onItemDragStart(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":14937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14932":{"this":{"__isSmartRef__":true,"id":11953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14933}},"14933":{"$super":{"__isSmartRef__":true,"id":14934}},"14934":{"varMapping":{"__isSmartRef__":true,"id":14935},"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":14936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14935":{"obj":{"__isSmartRef__":true,"id":11953},"name":"onDragStart"},"14936":{},"14937":{"timestamp":{"__isSmartRef__":true,"id":14938},"user":"jenslincke","tags":[]},"14938":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:27 GMT+0200 (Central Europe Daylight Time)"},"14939":{"varMapping":{"__isSmartRef__":true,"id":14940},"source":"function onDragEnd(evt) { \n var pane = this.getPane()\n\n if (!pane) return;\n return pane.onItemDragEnd(this, evt)\n}","funcProperties":{"__isSmartRef__":true,"id":14945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14940":{"this":{"__isSmartRef__":true,"id":11953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14941}},"14941":{"$super":{"__isSmartRef__":true,"id":14942}},"14942":{"varMapping":{"__isSmartRef__":true,"id":14943},"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":14944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14943":{"obj":{"__isSmartRef__":true,"id":11953},"name":"onDragEnd"},"14944":{},"14945":{"timestamp":{"__isSmartRef__":true,"id":14946},"user":"jenslincke","tags":[]},"14946":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:27 GMT+0200 (Central Europe Daylight Time)"},"14947":{"varMapping":{"__isSmartRef__":true,"id":14948},"source":"function showItem() { \n this.addMorph(this.slide);\n this.slide.disableEvents();\n this.slide.setPosition(pt(10,10))\n this.slide.setScale(1)\n }","funcProperties":{"__isSmartRef__":true,"id":14949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14948":{"this":{"__isSmartRef__":true,"id":11953}},"14949":{"timestamp":{"__isSmartRef__":true,"id":14950},"user":"jenslincke","tags":[]},"14950":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:27 GMT+0200 (Central Europe Daylight Time)"},"14951":{"varMapping":{"__isSmartRef__":true,"id":14952},"source":"function getPane() {\n return this.get('PresentationContainerPane')\n}","funcProperties":{"__isSmartRef__":true,"id":14953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14952":{"this":{"__isSmartRef__":true,"id":11953}},"14953":{"timestamp":{"__isSmartRef__":true,"id":14954},"user":"jenslincke","tags":[]},"14954":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:27 GMT+0200 (Central Europe Daylight Time)"},"14955":{"submorphs":[{"__isSmartRef__":true,"id":14956},{"__isSmartRef__":true,"id":11730},{"__isSmartRef__":true,"id":15032}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15075},"derivationIds":[null,"CA3F0871-5106-430D-BA4E-EA4C12C0982E","28565BB0-AD7D-472A-B0D8-092F982317F0","0A2FD1AD-2018-4036-865A-838434BE3BCF","BED02CE5-8543-4531-ACB6-2368FE4A9390","66DE1D04-A7B7-4DCE-9AE0-BF760E6E1D40"],"id":"ED0BBFFE-4D3B-4ACC-A84A-A8045A3BB7E7","eventHandler":{"__isSmartRef__":true,"id":15076},"__layered_droppingEnabled__":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":15077},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":11730},"titleBar":{"__isSmartRef__":true,"id":14956},"collapsedTransform":{"__isSmartRef__":true,"id":15078},"expandedTransform":{"__isSmartRef__":true,"id":15079},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15080},"name":"PresentationContainer","highlighted":true,"isBeingDragged":false,"showsHalos":false,"prevScroll":[0,0],"headRevision":141798,"moved":true,"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":3,"helperMorphs":[{"__isSmartRef__":true,"id":15032}],"state":"shutdown","__serializedExpressions__":["contentOffset","collapsedExtent","expandedExtent","prevDragPos","minExtent","distanceToDragEvent","expandedPosition","collapsedPosition","_Position"],"_Scale":1,"_Rotation":0,"owner":null,"_StyleClassNames":["highlighted"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,21.0)","collapsedExtent":"lively.pt(300.0,22.0)","expandedExtent":"lively.pt(300.0,732.1)","prevDragPos":"lively.pt(771.6,69.1)","minExtent":"lively.pt(100.0,200.0)","distanceToDragEvent":"lively.pt(146.4,17.2)","expandedPosition":"lively.pt(980.0,10.0)","collapsedPosition":"lively.pt(980.0,10.0)","_Position":"lively.pt(740.5,59.8)"},"14956":{"submorphs":[{"__isSmartRef__":true,"id":14957},{"__isSmartRef__":true,"id":14963},{"__isSmartRef__":true,"id":14986},{"__isSmartRef__":true,"id":15003}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15026},"derivationIds":[null,"38BA97F0-EDAD-43B1-B62A-11B6F6CC78A8","31D8B748-2F8F-4EE7-8430-5D6A2013A7FC","702932CE-990E-4DF7-B72F-874FA2AE5D88","78C5DF4A-D36D-4BDA-A636-1184FEFCCBDC","137E3507-61BE-47CF-8C6A-550220C7ABBD"],"id":"DBC9DC4F-77CB-4BDA-8190-EB9CA1446ABB","eventHandler":{"__isSmartRef__":true,"id":15030},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":15031},"windowMorph":{"__isSmartRef__":true,"id":14955},"label":{"__isSmartRef__":true,"id":14957},"closeButton":{"__isSmartRef__":true,"id":14963},"menuButton":{"__isSmartRef__":true,"id":14986},"collapseButton":{"__isSmartRef__":true,"id":15003},"owner":{"__isSmartRef__":true,"id":14955},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"showsHalos":false,"_ClipMode":"visible","__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(2.0,0.0)"},"14957":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14958},"derivationIds":[null,"F0E73824-AC46-49DD-84B6-9B273FB3A9E8","95B45CA6-253A-4582-87CF-ACCF7C7435B6","2263476D-9CDA-4A76-ADFB-8E3FF6E0164B","40577A95-9165-4A1E-AE11-C33DE9FE26B3","E1D2A1F4-3B0C-4F86-B914-D171D0E54B67"],"id":"48DA21B6-E308-42F8-A8B0-BE7F553C00EC","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14959}],"eventHandler":{"__isSmartRef__":true,"id":14961},"grabbingEnabled":false,"__layered_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":14962},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":14956},"_MaxTextWidth":241,"_MinTextWidth":241,"_MaxTextHeight":null,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"prevScroll":[0,0],"_WordBreak":"break-all","__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(20.0,3.0)"},"14958":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(241.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"14959":{"style":{"__isSmartRef__":true,"id":14960},"chunkOwner":{"__isSmartRef__":true,"id":14957},"_id":"_433","storedString":"PresentationContainer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14960":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14961":{"morph":{"__isSmartRef__":true,"id":14957},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14962":{"resizeWidth":true},"14963":{"submorphs":[{"__isSmartRef__":true,"id":14964}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14969},"derivationIds":[null,"AED9C114-B7AD-45FB-BBF5-0B6B4BAAB1DB","BCC69249-B074-4272-973F-BD74148C322F","E8648C9B-86A5-42D7-B9E0-F28BEEA106C6","74DE151E-4DCA-4CC6-8696-4A9D817F5D22","473A9712-D911-4C3A-A4AB-2B19FB83901C"],"id":"A99F4862-392D-4FA0-8ABD-2073F36C1BE5","eventHandler":{"__isSmartRef__":true,"id":14975},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14970},"lighterFill":{"__isSmartRef__":true,"id":14976},"label":{"__isSmartRef__":true,"id":14964},"owner":{"__isSmartRef__":true,"id":14956},"layout":{"__isSmartRef__":true,"id":14981},"attributeConnections":[{"__isSmartRef__":true,"id":14982},{"__isSmartRef__":true,"id":14984}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_ClipMode":"visible","__serializedExpressions__":["_Position"],"isPressed":false,"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(280.0,3.0)"},"14964":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14965},"derivationIds":[null,"35203402-F3AC-43B8-BA0E-09EF867C3565","EE9DD396-C74C-4D11-8131-4D9F8DF9C5FC","081F5679-05AB-47A0-AA30-DC69E13ACF6F","2C52CAF8-8592-45F4-B0F9-36400C538DA7","AC8B9B1F-0D7D-4B16-B670-BB61AD82C2E1"],"id":"F8CE4D87-FD19-4D13-A2DF-A0C9520D51C6","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14966}],"eventHandler":{"__isSmartRef__":true,"id":14968},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14963},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_WordBreak":"break-all","__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"14965":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"14966":{"style":{"__isSmartRef__":true,"id":14967},"chunkOwner":{"__isSmartRef__":true,"id":14964},"storedString":"X","_id":"_91","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14967":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14968":{"morph":{"__isSmartRef__":true,"id":14964},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14969":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":14970},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"14970":{"stops":[{"__isSmartRef__":true,"id":14971},{"__isSmartRef__":true,"id":14972},{"__isSmartRef__":true,"id":14973},{"__isSmartRef__":true,"id":14974}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14971":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"14972":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14973":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"14974":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"14975":{"morph":{"__isSmartRef__":true,"id":14963},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14976":{"stops":[{"__isSmartRef__":true,"id":14977},{"__isSmartRef__":true,"id":14978},{"__isSmartRef__":true,"id":14979},{"__isSmartRef__":true,"id":14980}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14977":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"14978":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14979":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14980":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"14981":{"moveHorizontal":true},"14982":{"sourceObj":{"__isSmartRef__":true,"id":14963},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14955},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14983},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14983":{"source":{"__isSmartRef__":true,"id":14963},"target":{"__isSmartRef__":true,"id":14955}},"14984":{"sourceObj":{"__isSmartRef__":true,"id":14963},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14955},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14985},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"14985":{"source":{"__isSmartRef__":true,"id":14963},"target":{"__isSmartRef__":true,"id":14955}},"14986":{"submorphs":[{"__isSmartRef__":true,"id":14987}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14992},"derivationIds":[null,"65A4DB91-F438-4A1A-B663-039FFACF94A4","30FDD41B-3BE5-4A3B-BDA5-ECA1188BB6A7","F462E203-F3A2-4399-842E-E4D8BF552BC8","B33DC2E3-057D-4B4A-A694-43EFA08351A3","4529FE44-7EE3-4972-B27C-186D1E7FFB16"],"id":"9A8EBB94-8E8E-4B32-9F4A-15A8D6522649","eventHandler":{"__isSmartRef__":true,"id":14993},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14970},"lighterFill":{"__isSmartRef__":true,"id":14994},"label":{"__isSmartRef__":true,"id":14987},"owner":{"__isSmartRef__":true,"id":14956},"attributeConnections":[{"__isSmartRef__":true,"id":14999},{"__isSmartRef__":true,"id":15001}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_ClipMode":"visible","__serializedExpressions__":["_Position"],"isPressed":false,"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"14987":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14988},"derivationIds":[null,"C28DAC19-BA93-4F61-BA1F-C650DA10AA78","60B7D795-B523-4A05-92F7-17D0D210B119","4D64B4A9-9696-43D8-8189-05A5D54FE37F","E3F61F85-3CD0-4FB0-B679-AD75F43BD030","23AFD965-7477-47B6-ADEF-5935719AAA40"],"id":"01249184-C2C3-485A-91E4-9F1D7E660374","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14989}],"eventHandler":{"__isSmartRef__":true,"id":14991},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14986},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_WordBreak":"break-all","__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"14988":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"14989":{"style":{"__isSmartRef__":true,"id":14990},"chunkOwner":{"__isSmartRef__":true,"id":14987},"storedString":"M","_id":"_92","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14990":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14991":{"morph":{"__isSmartRef__":true,"id":14987},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14992":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":14970},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"14993":{"morph":{"__isSmartRef__":true,"id":14986},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14994":{"stops":[{"__isSmartRef__":true,"id":14995},{"__isSmartRef__":true,"id":14996},{"__isSmartRef__":true,"id":14997},{"__isSmartRef__":true,"id":14998}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"14995":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"14996":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14997":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"14998":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"14999":{"sourceObj":{"__isSmartRef__":true,"id":14986},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14955},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":15000},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"15000":{"source":{"__isSmartRef__":true,"id":14986},"target":{"__isSmartRef__":true,"id":14955}},"15001":{"sourceObj":{"__isSmartRef__":true,"id":14986},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14955},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":15002},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"15002":{"source":{"__isSmartRef__":true,"id":14986},"target":{"__isSmartRef__":true,"id":14955}},"15003":{"submorphs":[{"__isSmartRef__":true,"id":15004}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15009},"derivationIds":[null,"02FF491B-53C5-47F3-8AFF-6D81883E7B61","4E83DE1B-43FF-4924-B908-49285B065564","32160C21-1B42-4876-8695-7857C51C8475","7B898693-F681-4185-89DE-555D7731A5EC","89EEA6C0-E545-470C-8A7E-D0F2630931EB"],"id":"8A19DD66-0A88-4E40-977E-F1DB4F4981A3","eventHandler":{"__isSmartRef__":true,"id":15015},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14970},"lighterFill":{"__isSmartRef__":true,"id":15016},"label":{"__isSmartRef__":true,"id":15004},"owner":{"__isSmartRef__":true,"id":14956},"layout":{"__isSmartRef__":true,"id":15021},"attributeConnections":[{"__isSmartRef__":true,"id":15022},{"__isSmartRef__":true,"id":15024}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"prevScroll":[0,0],"_ClipMode":"visible","isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(261.0,3.0)"},"15004":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15005},"derivationIds":[null,"7EC15CE2-8BCE-4692-A57B-62C4B0291C20","5E03E68F-0F6B-4079-9CBC-BD8AB63D5CD8","266834E9-5923-459B-8122-891A889235A4","41A34129-3D98-48AE-A2AF-C4892BF16AAE","383C3675-7D0E-42FB-B3BB-A975FC08883D"],"id":"B56E203D-885F-4E8B-A153-6952DE36FF1E","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":15006}],"eventHandler":{"__isSmartRef__":true,"id":15008},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":15003},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"_WordBreak":"break-all","__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"15005":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"15006":{"style":{"__isSmartRef__":true,"id":15007},"chunkOwner":{"__isSmartRef__":true,"id":15004},"storedString":"–","_id":"_93","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15007":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15008":{"morph":{"__isSmartRef__":true,"id":15004},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15009":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":15010},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"15010":{"stops":[{"__isSmartRef__":true,"id":15011},{"__isSmartRef__":true,"id":15012},{"__isSmartRef__":true,"id":15013},{"__isSmartRef__":true,"id":15014}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"15011":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"15012":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"15013":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"15014":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"15015":{"morph":{"__isSmartRef__":true,"id":15003},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15016":{"stops":[{"__isSmartRef__":true,"id":15017},{"__isSmartRef__":true,"id":15018},{"__isSmartRef__":true,"id":15019},{"__isSmartRef__":true,"id":15020}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"15017":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"15018":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"15019":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"15020":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"15021":{"moveHorizontal":true},"15022":{"sourceObj":{"__isSmartRef__":true,"id":15003},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14955},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":15023},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"15023":{"source":{"__isSmartRef__":true,"id":15003},"target":{"__isSmartRef__":true,"id":14955}},"15024":{"sourceObj":{"__isSmartRef__":true,"id":15003},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14955},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":15025},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"15025":{"source":{"__isSmartRef__":true,"id":15003},"target":{"__isSmartRef__":true,"id":14955}},"15026":{"_ClipMode":"visible","_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":15027},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(300.0,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(102,102,102)"},"15027":{"stops":[{"__isSmartRef__":true,"id":15028},{"__isSmartRef__":true,"id":15029}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"15028":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"15029":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(163,163,163)"},"15030":{"morph":{"__isSmartRef__":true,"id":14956},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15031":{"resizeWidth":true,"adjustForNewBounds":true},"15032":{"submorphs":[],"scripts":[],"id":"94597957-084F-4DDC-842E-1F9378978822","shape":{"__isSmartRef__":true,"id":15033},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":15034},"draggingEnabled":true,"dragStartPoint":null,"originalTargetExtent":null,"eventHandler":{"__isSmartRef__":true,"id":15035},"originalTargetInnerBounds":null,"isResizeCorner":true,"relativeOrigin":null,"derivationIds":[7147,"16E962DF-21E9-4FE6-8B9B-953F0E908113","ADD0B5C0-0DC6-4D8E-9C2A-0EC7E3C71F21","82D27E4A-A9D9-444D-8288-D29D1AF371CD","C2345F0B-B28B-4B62-9E5A-30E708586322"],"moved":true,"attributeConnections":[{"__isSmartRef__":true,"id":15036}],"doNotSerialize":["$$cornerName"],"doNotCopyProperties":["$$cornerName"],"originalTargetBounds":null,"owner":{"__isSmartRef__":true,"id":14955},"prevScroll":[0,0],"cornerName":"bottomRight","_Rotation":0,"_Scale":1,"_ClipMode":"visible","__serializedExpressions__":["_Position","originalExtent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15037},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(292.0,722.1)","originalExtent":"lively.pt(239.0,138.0)"},"15033":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(10.0,10.0)","_BorderColor":"Color.rgb(145,145,145)","_Fill":"Color.rgb(66,66,66)","_Padding":"lively.rect(0,0,0,0)"},"15034":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Resize an object without using halos.","partName":"ResizeCorner","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15035":{"morph":{"__isSmartRef__":true,"id":15032},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15036":{"sourceObj":{"__isSmartRef__":true,"id":15032},"sourceAttrName":"cornerName","targetObj":{"__isSmartRef__":true,"id":15032},"targetMethodName":"alignToOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"15037":{"onDrag":{"__isSmartRef__":true,"id":15038},"onDragEnd":{"__isSmartRef__":true,"id":15046},"onDragStart":{"__isSmartRef__":true,"id":15054},"reset":{"__isSmartRef__":true,"id":15062},"morphMenuItems":{"__isSmartRef__":true,"id":15065},"alignToOwner":{"__isSmartRef__":true,"id":15072}},"15038":{"varMapping":{"__isSmartRef__":true,"id":15039},"source":"function onDrag(evt) {\n // alert(\"onDrag\")\n // this.owner.setPosition(pt(0,0))\n // this.owner.setOrigin(pt(0,0))\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n \n // moveDelta = moveDelta.maxPt(pt(0,0))\n var ownerExtent = this.owner.getExtent();\n\n // TODO does not work\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n if (maxDelta == 0) return;\n var factor = ownerExtent.x / ownerExtent.y\n moveDelta = pt(maxDelta * factor, maxDelta )\n }\n var accessor = \"with\" + this.cornerName.charAt(0).toUpperCase() + this.cornerName.substring(1);\n\n var newCorner = this.originalTargetBounds[this.cornerName]().addPt(moveDelta);\n var newBounds = this.originalTargetBounds[accessor ](newCorner);\n\n this.owner.setBounds(newBounds);\n \n // var newExtent = this.originalTargetExtent.addPt(moveDelta)\n // alertOK(\"new extent\" + newExtent)\n // this.owner.setExtent(newExtent);\n this.owner.submorphs.select(function(ea) {\n return ea.isResizeCorner\n }).invoke('alignToOwner');\n if (this.owner.halos) {\n this.owner.halos.invoke('alignAtTarget')\n }\n // alertOK(\"relative \" + this.relativeOrigin)\n var newOrigin = pt(0,0).extent(this.owner.getExtent()).relativeToAbsPoint(this.relativeOrigin)\n\n // TODO IMPLEMENT updating the origin does not work yet\n // this.owner.setOrigin(newOrigin);\n // alertOK(\"new origin \" + newOrigin)\n\n}","funcProperties":{"__isSmartRef__":true,"id":15044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15039":{"this":{"__isSmartRef__":true,"id":15032},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15040}},"15040":{"$super":{"__isSmartRef__":true,"id":15041}},"15041":{"varMapping":{"__isSmartRef__":true,"id":15042},"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":15043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15042":{"obj":{"__isSmartRef__":true,"id":15032},"name":"onDrag"},"15043":{},"15044":{"timestamp":{"__isSmartRef__":true,"id":15045},"user":"sstamm","tags":[]},"15045":{"isSerializedDate":true,"string":"Thu Feb 23 2012 12:08:52 GMT+0100 (Central Europe Standard Time)"},"15046":{"varMapping":{"__isSmartRef__":true,"id":15047},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetBounds = null;\n this.relativeOrigin = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15047":{"this":{"__isSmartRef__":true,"id":15032},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15048}},"15048":{"$super":{"__isSmartRef__":true,"id":15049}},"15049":{"varMapping":{"__isSmartRef__":true,"id":15050},"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":15051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15050":{"obj":{"__isSmartRef__":true,"id":15032},"name":"onDragEnd"},"15051":{},"15052":{"timestamp":{"__isSmartRef__":true,"id":15053},"user":"sstamm","tags":[]},"15053":{"isSerializedDate":true,"string":"Thu Feb 23 2012 12:09:00 GMT+0100 (Central Europe Standard Time)"},"15054":{"varMapping":{"__isSmartRef__":true,"id":15055},"source":"function onDragStart(evt) {\n var absToRelativePoint = function (r, absPt) {\n\t\treturn new Point(\n\t\t\t(absPt.x - r.x) / r.width,\n\t\t\t(absPt.y - r.y) / r.height)\n\t}\n // absToRelativePoint(new Rectangle(10,10,100,100), pt(20,20))\n // absToRelativePoint(new Rectangle(10,10,100,100), pt(0,0))\n // absToRelativePoint(new Rectangle(-100,-100,200,200), pt(0,0))\n\n\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetBounds= this.owner.bounds();\n this.relativeOrigin = absToRelativePoint(pt(0,0).extent(this.owner.getExtent()), this.owner.getOrigin())\n}","funcProperties":{"__isSmartRef__":true,"id":15060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15055":{"this":{"__isSmartRef__":true,"id":15032},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15056}},"15056":{"$super":{"__isSmartRef__":true,"id":15057}},"15057":{"varMapping":{"__isSmartRef__":true,"id":15058},"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":15059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15058":{"obj":{"__isSmartRef__":true,"id":15032},"name":"onDragStart"},"15059":{},"15060":{"timestamp":{"__isSmartRef__":true,"id":15061},"user":"sstamm","tags":[]},"15061":{"isSerializedDate":true,"string":"Thu Feb 23 2012 12:08:40 GMT+0100 (Central Europe Standard Time)"},"15062":{"varMapping":{"__isSmartRef__":true,"id":15063},"source":"function reset() {\n this.isResizeCorner = true\n this.cornerName = 'bottomRight'\n this.setExtent(pt(10,10));\n this.setPosition(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":15064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15063":{"this":{"__isSmartRef__":true,"id":15032}},"15064":{},"15065":{"varMapping":{"__isSmartRef__":true,"id":15066},"source":"function morphMenuItems() {\n return $super().concat([\n [\"corner\", [\n [\"top left\", function() { this.cornerName = 'topLeft'}.bind(this)],\n [\"top right\", function() { this.cornerName = 'topRight'}.bind(this)],\n [\"bottom right\", function() { this.cornerName = 'bottomRight'}.bind(this)],\n [\"bottom left\", function() { this.cornerName = 'bottomLeft'}.bind(this)],\n ]]\n ])\t\n}","funcProperties":{"__isSmartRef__":true,"id":15071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15066":{"this":{"__isSmartRef__":true,"id":15032},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15067}},"15067":{"$super":{"__isSmartRef__":true,"id":15068}},"15068":{"varMapping":{"__isSmartRef__":true,"id":15069},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":15070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15069":{"obj":{"__isSmartRef__":true,"id":15032},"name":"morphMenuItems"},"15070":{},"15071":{},"15072":{"varMapping":{"__isSmartRef__":true,"id":15073},"source":"function alignToOwner() {\n this.align(this.bounds()[this.cornerName](), this.owner.shape.bounds()[this.cornerName]() )\n}","funcProperties":{"__isSmartRef__":true,"id":15074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15073":{"this":{"__isSmartRef__":true,"id":15032}},"15074":{},"15075":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Padding","_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_Extent":"lively.pt(300.0,732.1)","_Position":"lively.pt(2.0,0.0)"},"15076":{"morph":{"__isSmartRef__":true,"id":14955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15077":{"adjustForNewBounds":true},"15078":{"a":1,"b":0,"c":0,"d":1,"e":980,"f":10,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15079":{"a":1,"b":0,"c":0,"d":1,"e":980,"f":10,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15080":{"partsSpaceName":"PartsBin/Presenting/","comment":"A PresentationContainer can gather PageMorphs from a world and drop them all as needed.","migrationLevel":4,"partName":"PresentationContainer","changes":[{"__isSmartRef__":true,"id":15081},{"__isSmartRef__":true,"id":15083},{"__isSmartRef__":true,"id":15085},{"__isSmartRef__":true,"id":15087},{"__isSmartRef__":true,"id":15089},{"__isSmartRef__":true,"id":15091},{"__isSmartRef__":true,"id":15093},{"__isSmartRef__":true,"id":15095},{"__isSmartRef__":true,"id":15097},{"__isSmartRef__":true,"id":15099}],"revisionOnLoad":150820,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15081":{"date":{"__isSmartRef__":true,"id":15082},"author":"jenslincke","message":"","id":"6DB05C37-CCBE-4B57-9469-B705F43896F1"},"15082":{"isSerializedDate":true,"string":"Tue Apr 10 2012 10:08:09 GMT+0200 (Central Europe Daylight Time)"},"15083":{"date":{"__isSmartRef__":true,"id":15084},"author":"jenslincke","message":"","id":"90774622-5675-4FC2-943A-BB35E7C154FD"},"15084":{"isSerializedDate":true,"string":"Tue Feb 28 2012 20:11:14 GMT+0100 (Central Europe Standard Time)"},"15085":{"date":{"__isSmartRef__":true,"id":15086},"author":"jenslincke","message":"","id":"381DF928-4025-4D8C-A985-CDA936DCE5B6"},"15086":{"isSerializedDate":true,"string":"Tue Feb 28 2012 20:10:19 GMT+0100 (Central Europe Standard Time)"},"15087":{"date":{"__isSmartRef__":true,"id":15088},"author":"jenslincke","message":"","id":"F25139CB-0196-443F-8D22-CBB1F5C4E190"},"15088":{"isSerializedDate":true,"string":"Tue Feb 28 2012 15:36:55 GMT+0100 (Central Europe Standard Time)"},"15089":{"date":{"__isSmartRef__":true,"id":15090},"author":"jenslincke","message":"layout","id":"A5CF1C90-0409-4947-A602-EAC339AC95CA"},"15090":{"isSerializedDate":true,"string":"Tue Feb 28 2012 11:52:21 GMT+0100 (Central Europe Standard Time)"},"15091":{"date":{"__isSmartRef__":true,"id":15092},"author":"jenslincke","message":"","id":"E62F4EF7-91F7-4F66-BE12-369F472FE7D9"},"15092":{"isSerializedDate":true,"string":"Tue Feb 28 2012 11:49:54 GMT+0100 (Central Europe Standard Time)"},"15093":{"date":{"__isSmartRef__":true,"id":15094},"author":"undefined","message":"","id":"EB5F7F7A-08B0-413C-A90B-C2D6F762422D"},"15094":{"isSerializedDate":true,"string":"Sun Jan 15 2012 17:10:04 GMT+0100 (Central Europe Standard Time)"},"15095":{"date":{"__isSmartRef__":true,"id":15096},"author":"undefined","message":"initial version","id":"B650EF72-AE0A-4C8A-9B0C-C80F68DC57A9"},"15096":{"isSerializedDate":true,"string":"Sun Jan 15 2012 17:07:11 GMT+0100 (Central Europe Standard Time)"},"15097":{"date":{"__isSmartRef__":true,"id":15098},"author":"undefined","message":"Initial version","id":"95AD3738-9D3E-42A2-B781-7E7B5B037B52"},"15098":{"isSerializedDate":true,"string":"Sun Jan 15 2012 17:08:22 GMT+0100 (Central Europe Standard Time)"},"15099":{"date":{"__isSmartRef__":true,"id":15100},"author":"jenslincke","message":"","id":"0F9DA740-809E-4075-8367-64681E55CEBA"},"15100":{"isSerializedDate":true,"string":"Tue Feb 28 2012 11:35:07 GMT+0100 (Central Europe Standard Time)"},"15101":{"gatherSlides":{"__isSmartRef__":true,"id":15102},"collectSlides":{"__isSmartRef__":true,"id":15106},"dropSlides":{"__isSmartRef__":true,"id":15110},"adjustScale":{"__isSmartRef__":true,"id":15114},"reset":{"__isSmartRef__":true,"id":15118},"makeItemFor":{"__isSmartRef__":true,"id":15122},"onItemDragStart":{"__isSmartRef__":true,"id":15126},"selectItem":{"__isSmartRef__":true,"id":15130},"onItemDragEnd":{"__isSmartRef__":true,"id":15134},"selectedItemChanged":{"__isSmartRef__":true,"id":15138},"onAddSlideItem":{"__isSmartRef__":true,"id":15142},"onItemMouseUp":{"__isSmartRef__":true,"id":15146},"getSlides":{"__isSmartRef__":true,"id":15150},"deleteCurrentSlide":{"__isSmartRef__":true,"id":15154},"scrollToItem":{"__isSmartRef__":true,"id":15158},"duplicteCurrentSlide":{"__isSmartRef__":true,"id":15162},"getDropStartPosition":{"__isSmartRef__":true,"id":15166},"dropItems":{"__isSmartRef__":true,"id":15170},"thumbForSlide":{"__isSmartRef__":true,"id":15174},"printSlides":{"__isSmartRef__":true,"id":15178},"removeSlides":{"__isSmartRef__":true,"id":15182}},"15102":{"varMapping":{"__isSmartRef__":true,"id":15103},"source":"function gatherSlides() {\n \n var slides = [];\n this.world().submorphs.each(function(ea) {\n if(ea instanceof lively.Presentation.PageMorph) {\n slides.push(ea);\n ea.lastWorldPosition = ea.getPosition()\n }\n if(ea.slide && ea.slide instanceof lively.Presentation.PageMorph) {\n ea.slide.lastWorldPosition = ea.getPosition()\n\n ea.submorphs.invoke('remove')\n var thumb = this.thumbForSlide(ea.slide)\n ea.addMorph(thumb);\n slides.push(ea.slide);\n }\n \n }, this)\n\n return slides.uniq().sort(function(a, b) { \n var posA = a.lastWorldPosition || a.getPosition();\n var posB = b.lastWorldPosition || b.getPosition();\n\n\n if (Math.abs(posA.y - posB.y) < 20) {\n return posA.x - posB.x \n }\n return posA.y - posB.y \n })\n}","funcProperties":{"__isSmartRef__":true,"id":15104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15103":{"this":{"__isSmartRef__":true,"id":11730}},"15104":{"timestamp":{"__isSmartRef__":true,"id":15105},"tags":[]},"15105":{"isSerializedDate":true,"string":"Mon Mar 05 2012 00:43:11 GMT+0100 (Central Europe Standard Time)"},"15106":{"varMapping":{"__isSmartRef__":true,"id":15107},"source":"function collectSlides() {\n var m = this.get('Container')\n this.get('Container').submorphs.clone().invoke('remove')\n\n this.gatherSlides().reverse().forEach(function(ea) {\n\n var item = this.makeItemFor(ea);\n item.setPosition(pt(0,-10))\n m.addMorph(item)\n // item.setPosition(m.getBounds().bottomLeft())\n }, this)\n this.adjustScale()\n}","funcProperties":{"__isSmartRef__":true,"id":15108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15107":{"this":{"__isSmartRef__":true,"id":11730}},"15108":{"timestamp":{"__isSmartRef__":true,"id":15109},"tags":[]},"15109":{"isSerializedDate":true,"string":"Mon Mar 05 2012 00:46:54 GMT+0100 (Central Europe Standard Time)"},"15110":{"varMapping":{"__isSmartRef__":true,"id":15111},"source":"function dropSlides() {\n var m = this.get('Container');\n var w = this.world();\n var pos = this.getDropStartPosition()\n \n m.submorphs.clone()\n .sortBy(function(ea) { return ea.getPosition().y })\n .forEach(function(ea){\n var slide = ea.slide;\n w.addMorph(slide);\n slide.setPosition(pos)\n pos = pos.addPt(pt(0, 20 + ea.getExtent().y))\n slide.setScale(1);\n slide.enableEvents();\n slide.unignoreEvents()\n ea.remove();\n })\n m.setExtent(m.owner.getExtent());\n m.setScale(1)\n}","funcProperties":{"__isSmartRef__":true,"id":15112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15111":{"this":{"__isSmartRef__":true,"id":11730}},"15112":{"timestamp":{"__isSmartRef__":true,"id":15113},"user":"jenslincke","tags":[]},"15113":{"isSerializedDate":true,"string":"Wed Feb 29 2012 17:41:24 GMT+0100 (Central Europe Standard Time)"},"15114":{"varMapping":{"__isSmartRef__":true,"id":15115},"source":"function adjustScale() {\n \n var factor = this.get('ClipBox').getExtent().x / this.get('Container').getExtent().x\n this.get('Container').setScale(factor);\n\n}","funcProperties":{"__isSmartRef__":true,"id":15116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15115":{"this":{"__isSmartRef__":true,"id":11730}},"15116":{"timestamp":{"__isSmartRef__":true,"id":15117},"user":"jenslincke","tags":[]},"15117":{"isSerializedDate":true,"string":"Tue Feb 28 2012 11:43:36 GMT+0100 (Central Europe Standard Time)"},"15118":{"varMapping":{"__isSmartRef__":true,"id":15119},"source":"function reset() {\n connect(this, 'extent', this, 'adjustScale');\n connect(this, 'selectedItem', this, 'selectedItemChanged');\n // this.owner.minExtent = this.owner.getExtent()\n\n this.get(\"Container\").isSlideItemContainer = true\n}","funcProperties":{"__isSmartRef__":true,"id":15120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15119":{"this":{"__isSmartRef__":true,"id":11730}},"15120":{"timestamp":{"__isSmartRef__":true,"id":15121},"user":"jenslincke","tags":[]},"15121":{"isSerializedDate":true,"string":"Tue Feb 28 2012 18:00:43 GMT+0100 (Central Europe Standard Time)"},"15122":{"varMapping":{"__isSmartRef__":true,"id":15123},"source":"function makeItemFor(slide) {\n var item = Morph.makeRectangle(slide.getBounds().insetBy(-10));\n item.isSlideContainer = true;\n // item.disableEvents();\n // slide.disableEvents();\n // slide.ignoreEvents();\n item.slide = slide;\n item.setBorderWidth(10);\n var thumb = this.thumbForSlide(slide)\n thumb.disableEvents();\n thumb.setPosition(pt(10,10))\n thumb.setScale(1)\n\n item.addMorph(thumb);\n item.setBorderColor(null);\n item.pane = this;\n item.disableDropping()\n\n item.addScript(function copy() {\n var result = $super();\n // keep that invariant....\n result.slide = result.submorphs.first();\n var title = result.get('title');\n if (title && title.textString) title.textString += ' Copy';\n result.setBorderColor(Color.gray)\n return result\n })\n\n item.addScript(function onDropOn(morph) {\n if (morph.name == 'Container') {\n morph.get('PresentationContainerPane').onAddSlideItem(this)\n }\n })\n item.name = 'PresentationItem for ' + slide.name\n item.addScript(function onMouseUp(evt) { \n if (!this.pane) return;\n return this.pane.onItemMouseUp(this, evt)})\n item.addScript(function onDragStart(evt) { \n if (!this.pane) {\n evt.hand.grabMorph(this)\n return;\n };\n return this.pane.onItemDragStart(this, evt)})\n item.addScript(function onDragEnd(evt) { \n if (!this.pane) return;\n return this.pane.onItemDragEnd(this, evt)})\n item.addScript(function showItem() { \n this.addMorph(this.slide);\n this.slide.disableEvents();\n this.slide.setPosition(pt(10,10))\n this.slide.setScale(1)\n this.slide\n })\n item.setFill(null)\n return item\n}","funcProperties":{"__isSmartRef__":true,"id":15124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15123":{"this":{"__isSmartRef__":true,"id":11730}},"15124":{"timestamp":{"__isSmartRef__":true,"id":15125},"tags":[]},"15125":{"isSerializedDate":true,"string":"Mon Mar 05 2012 00:37:09 GMT+0100 (Central Europe Standard Time)"},"15126":{"varMapping":{"__isSmartRef__":true,"id":15127},"source":"function onItemDragStart(item, evt) {\n item.showItem()\n evt.hand.grabMorph(item)\n // evt.hand.submorphs.invoke(\"setPosition\", pt(0,0))\n evt.stop()\n}","funcProperties":{"__isSmartRef__":true,"id":15128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15127":{"this":{"__isSmartRef__":true,"id":11730}},"15128":{"timestamp":{"__isSmartRef__":true,"id":15129},"tags":[]},"15129":{"isSerializedDate":true,"string":"Mon Mar 05 2012 12:34:40 GMT+0100 (Central Europe Standard Time)"},"15130":{"varMapping":{"__isSmartRef__":true,"id":15131},"source":"function selectItem(item) {\n if (this.selectedItem)\n this.selectedItem.setBorderColor(null);\n if (item) {\n this.selectedItemChanged(item, this.selectedItem)\n this.selectedItem = item;\n \n this.selectedItem.setBorderColor(Color.red);\n } \n}","funcProperties":{"__isSmartRef__":true,"id":15132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15131":{"this":{"__isSmartRef__":true,"id":11730}},"15132":{"timestamp":{"__isSmartRef__":true,"id":15133},"user":"jenslincke","tags":[]},"15133":{"isSerializedDate":true,"string":"Tue Feb 28 2012 16:00:26 GMT+0100 (Central Europe Standard Time)"},"15134":{"varMapping":{"__isSmartRef__":true,"id":15135},"source":"function onItemDragEnd(item, evt) {\n // if (item.owner !== this.get('Container'))\n // item.pane = null; \n\n item.setFill(Color.gray)\n// if (item.owner !== this.get('Container')) {\n// item.owner.addMorph(item.slide)\n// item.slide.setPosition(item.getPosition());\n// item.slide.setScale(1)\n// item.slide.enableEvents()\n// item.remove()\n// }\n}","funcProperties":{"__isSmartRef__":true,"id":15136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15135":{"this":{"__isSmartRef__":true,"id":11730}},"15136":{"timestamp":{"__isSmartRef__":true,"id":15137},"user":"jenslincke","tags":[]},"15137":{"isSerializedDate":true,"string":"Wed Feb 29 2012 18:16:22 GMT+0100 (Central Europe Standard Time)"},"15138":{"varMapping":{"__isSmartRef__":true,"id":15139},"source":"function selectedItemChanged(item, oldItem) {\n if (!item) return;\n if (oldItem) { \n oldItem.submorphs.clone().invoke('remove')\n var thumb = this.thumbForSlide(oldItem.slide)\n oldItem.addMorph(thumb);\n }\n\n var projector = this.get(\"SlideProjector\")\n if (projector) {\n projector.projectSlide(item.slide)\n item.slide.setScale(1);\n // var label = new TextMorph(new Rectangle(0,0,700,800), \"currently displayed\");\n // label.applyStyle({fill: null, borderColor: null, fontSize: 50});\n // label.setPosition(pt(200,200))\n // item.addMorph(label)\n \n var thumb = item.slide.duplicate();\n item.submorphs.clone().invoke('remove')\n item.addMorph(thumb)\n thumb.ignoreEvents();\n thumb.disableEvents();\n thumb.setPosition(pt(10,10)) \n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":15140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15139":{"this":{"__isSmartRef__":true,"id":11730}},"15140":{"timestamp":{"__isSmartRef__":true,"id":15141},"tags":[]},"15141":{"isSerializedDate":true,"string":"Mon Mar 05 2012 00:37:09 GMT+0100 (Central Europe Standard Time)"},"15142":{"varMapping":{"__isSmartRef__":true,"id":15143},"source":"function onAddSlideItem(item) {\n // alertOK(\"onAddSlideItem \" + item);\n item.setFill(null)\n item.slide.setScale(1);\n item.slide.disableEvents();\n item.slide.ignoreEvents()\n item.pane =this\n}","funcProperties":{"__isSmartRef__":true,"id":15144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15143":{"this":{"__isSmartRef__":true,"id":11730}},"15144":{"timestamp":{"__isSmartRef__":true,"id":15145},"user":"jenslincke","tags":[]},"15145":{"isSerializedDate":true,"string":"Tue Feb 28 2012 18:35:37 GMT+0100 (Central Europe Standard Time)"},"15146":{"varMapping":{"__isSmartRef__":true,"id":15147},"source":"function onItemMouseUp(item, evt) {\n \n this.selectItem(item);\n // somewhere the scroll gets lost... so we set a new one\n this.scrollToItem(item)\n\n}","funcProperties":{"__isSmartRef__":true,"id":15148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15147":{"this":{"__isSmartRef__":true,"id":11730}},"15148":{"timestamp":{"__isSmartRef__":true,"id":15149},"user":"jenslincke","tags":[]},"15149":{"isSerializedDate":true,"string":"Tue Feb 28 2012 20:07:18 GMT+0100 (Central Europe Standard Time)"},"15150":{"varMapping":{"__isSmartRef__":true,"id":15151},"source":"function getSlides() {\n return this.get('Container').submorphs.sortBy(function(ea) {\n return ea.getPosition().y \n }).collect(function(ea) {\n return ea.slide\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15151":{"this":{"__isSmartRef__":true,"id":11730}},"15152":{"timestamp":{"__isSmartRef__":true,"id":15153},"user":"jenslincke","tags":[]},"15153":{"isSerializedDate":true,"string":"Tue Feb 28 2012 19:14:41 GMT+0100 (Central Europe Standard Time)"},"15154":{"varMapping":{"__isSmartRef__":true,"id":15155},"source":"function deleteCurrentSlide() {\n var selectedItem = this.selectedItem \n\n var deleteFunc = function() {\n var index = this.get('Container').submorphs.indexOf(selectedItem)\n this.selectedItem.remove();\n var nextItem = this.get('Container').submorphs[index];\n if (nextItem) {\n this.selectItem(nextItem) \n this.scrollToItem(nextItem) \n }\n }.bind(this)\n\n\n deleteFunc()\n return // don't confirm\n\n $world.confirm(\"delete \" + selectedItem.slide.name, function(bool) {\n if(bool) {\n deleteFunc()\n }\n }.bind(this))\n}","funcProperties":{"__isSmartRef__":true,"id":15156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15155":{"this":{"__isSmartRef__":true,"id":11730}},"15156":{"timestamp":{"__isSmartRef__":true,"id":15157},"user":"jenslincke","tags":[]},"15157":{"isSerializedDate":true,"string":"Tue Apr 10 2012 10:07:12 GMT+0200 (Central Europe Daylight Time)"},"15158":{"varMapping":{"__isSmartRef__":true,"id":15159},"source":"function scrollToItem(item) {\n if (!this.get('Container').submorphs.include(item)) return\n var newScroll = [0, item.getPosition().y * item.owner.getScale()] \n this.get('ClipBox').setScroll(newScroll[0],newScroll[1] - 200)\n\n}","funcProperties":{"__isSmartRef__":true,"id":15160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15159":{"this":{"__isSmartRef__":true,"id":11730}},"15160":{"timestamp":{"__isSmartRef__":true,"id":15161},"user":"jenslincke","tags":[]},"15161":{"isSerializedDate":true,"string":"Wed Feb 29 2012 18:14:30 GMT+0100 (Central Europe Standard Time)"},"15162":{"varMapping":{"__isSmartRef__":true,"id":15163},"source":"function duplicteCurrentSlide() {\n var selectedItem = this.selectedItem \n \n if (!selectedItem) {\n alertOK(\"You need at least one slide in your presentation so there is something to copy\")\n return \n }\n\n // copying morphs does only work properly if they are submorphs\n selectedItem.showItem();\n var copy = selectedItem.duplicate();\n\n copy.setScale(selectedItem.getScale());\n copy.setPosition(selectedItem.getPosition().addPt(pt(0,10)));\n copy.setBorderColor(Color.gray);\n\n\n this.get('Container').addMorph(copy);\n\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":15164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15163":{"this":{"__isSmartRef__":true,"id":11730}},"15164":{"timestamp":{"__isSmartRef__":true,"id":15165},"user":"jenslincke","tags":[]},"15165":{"isSerializedDate":true,"string":"Tue Apr 10 2012 10:21:22 GMT+0200 (Central Europe Daylight Time)"},"15166":{"varMapping":{"__isSmartRef__":true,"id":15167},"source":"function getDropStartPosition() {\n return this.worldPoint(this.shape.getBounds().bottomLeft().addPt(pt(0,50)))\n}","funcProperties":{"__isSmartRef__":true,"id":15168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15167":{"this":{"__isSmartRef__":true,"id":11730}},"15168":{"timestamp":{"__isSmartRef__":true,"id":15169},"user":"jenslincke","tags":[]},"15169":{"isSerializedDate":true,"string":"Wed Feb 29 2012 17:42:59 GMT+0100 (Central Europe Standard Time)"},"15170":{"varMapping":{"__isSmartRef__":true,"id":15171},"source":"function dropItems() {\n var m = this.get('Container');\n var w = this.world();\n \n m.submorphs.clone()\n .sortBy(function(ea) { return ea.getPosition().y })\n .forEach(function(ea){\n w.addMorph(ea);\n if (ea.lastWorldPosition) {\n ea.setPosition(ea.slide.lastWorldPosition)\n }\n ea.setScale(0.3)\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15171":{"this":{"__isSmartRef__":true,"id":11730}},"15172":{"timestamp":{"__isSmartRef__":true,"id":15173},"tags":[]},"15173":{"isSerializedDate":true,"string":"Sun Mar 04 2012 23:55:13 GMT+0100 (Central Europe Standard Time)"},"15174":{"varMapping":{"__isSmartRef__":true,"id":15175},"source":"function thumbForSlide(slide) {\n var m = slide.copy()\n m.disableEvents();\n m.setPosition(pt(10,10))\n m.setScale(1)\n m.withAllSubmorphsDo(function(ea) {\n ea.disableDropping()\n })\n return m\n}","funcProperties":{"__isSmartRef__":true,"id":15176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15175":{"this":{"__isSmartRef__":true,"id":11730}},"15176":{"timestamp":{"__isSmartRef__":true,"id":15177},"tags":[]},"15177":{"isSerializedDate":true,"string":"Mon Mar 05 2012 14:24:38 GMT+0100 (Central Europe Standard Time)"},"15178":{"varMapping":{"__isSmartRef__":true,"id":15179},"source":"function printSlides() {\n var slides = this.get('Container').submorphs.sortBy(function(ea) {\n return ea.getPosition().y\n }).pluck('slide')\n \n var divs = slides.collect(function(ea, index) {\n // ea.addMorphBack(this.getSlideOverlay());\n // this.getSlideOverlay().setPosition(pt(0,0))\n // this.getSlideOverlay().visitSlide(ea, index);\n\n // if (index == 0)\n // this.getSlideOverlay().remove()\n\n var node = ea.renderContext().morphNode;\n if (!node) {\n alert(\"could not print \" + ea);\n return ''\n }\n node.style.position = 'static'\n node.style.width = ea.getExtent().x + 'px'\n node.style.height = ea.getExtent().y + 'px'\n node.style.pageBreakBefore = 'always'\n\n var oldBorder = ea.getBorderWidth(); \n ea.setBorderWidth(0)\n ea.setExtent(pt(1124.0, 768.0))\n\n var source = Exporter.stringify(node)\n\n node.style.position = 'absolute'\n ea.setBorderWidth(oldBorder)\n ea.setExtent(pt(1024.0,768.0))\n\n return source\n }, this).join('\\n')\n\n var html = '' + divs + ''\n var url = URL.source.withFilename(URL.source.filename().replace('.xhtml', '_print.html'))\n var wr = new WebResource(url);\n wr.put(html, 'text/xhtml');\n\n this.world().confirm(\"visit printed page\", function(bool) {\n if (bool) window.open(url)\n })\n\n}","funcProperties":{"__isSmartRef__":true,"id":15180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15179":{"this":{"__isSmartRef__":true,"id":11730}},"15180":{"timestamp":{"__isSmartRef__":true,"id":15181},"user":"undefined","tags":[]},"15181":{"isSerializedDate":true,"string":"Thu Mar 08 2012 14:40:32 GMT+0100 (Central Europe Standard Time)"},"15182":{"varMapping":{"__isSmartRef__":true,"id":15183},"source":"function removeSlides() {\n this.get('Container').submorphs.clone().invoke('remove')\n}","funcProperties":{"__isSmartRef__":true,"id":15184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15183":{"this":{"__isSmartRef__":true,"id":11730}},"15184":{"timestamp":{"__isSmartRef__":true,"id":15185},"tags":[]},"15185":{"isSerializedDate":true,"string":"Mon Mar 05 2012 12:52:43 GMT+0100 (Central Europe Standard Time)"},"15186":{"copy":{"__isSmartRef__":true,"id":15187},"onDropOn":{"__isSmartRef__":true,"id":15195},"onMouseUp":{"__isSmartRef__":true,"id":15203},"onDragStart":{"__isSmartRef__":true,"id":15211},"onDragEnd":{"__isSmartRef__":true,"id":15219},"showItem":{"__isSmartRef__":true,"id":15227},"getPane":{"__isSmartRef__":true,"id":15231}},"15187":{"varMapping":{"__isSmartRef__":true,"id":15188},"source":"function copy() {\n var result = $super();\n result.pane = null\n // keep that invariant....\n result.slide = result.submorphs.first();\n var title = result.get('title');\n if (title && title.textString) title.textString += ' Copy';\n result.setBorderColor(Color.gray)\n return result\n }","funcProperties":{"__isSmartRef__":true,"id":15193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15188":{"this":{"__isSmartRef__":true,"id":191},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15189}},"15189":{"$super":{"__isSmartRef__":true,"id":15190}},"15190":{"varMapping":{"__isSmartRef__":true,"id":15191},"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":15192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15191":{"obj":{"__isSmartRef__":true,"id":191},"name":"copy"},"15192":{},"15193":{"timestamp":{"__isSmartRef__":true,"id":15194},"user":"jenslincke","tags":[]},"15194":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15195":{"varMapping":{"__isSmartRef__":true,"id":15196},"source":"function onDropOn(morph) {\n if (morph.name == 'Container') {\n morph.get('PresentationContainerPane').onAddSlideItem(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15196":{"this":{"__isSmartRef__":true,"id":191},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15197}},"15197":{"$super":{"__isSmartRef__":true,"id":15198}},"15198":{"varMapping":{"__isSmartRef__":true,"id":15199},"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":15200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15199":{"obj":{"__isSmartRef__":true,"id":191},"name":"onDropOn"},"15200":{},"15201":{"timestamp":{"__isSmartRef__":true,"id":15202},"user":"jenslincke","tags":[]},"15202":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15203":{"varMapping":{"__isSmartRef__":true,"id":15204},"source":"function onMouseUp(evt) { \n var pane = this.getPane()\n if (!pane) return;\n pane.onItemMouseUp(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":15209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15204":{"this":{"__isSmartRef__":true,"id":191},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15205}},"15205":{"$super":{"__isSmartRef__":true,"id":15206}},"15206":{"varMapping":{"__isSmartRef__":true,"id":15207},"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":15208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15207":{"obj":{"__isSmartRef__":true,"id":191},"name":"onMouseUp"},"15208":{},"15209":{"timestamp":{"__isSmartRef__":true,"id":15210},"user":"jenslincke","tags":[]},"15210":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15211":{"varMapping":{"__isSmartRef__":true,"id":15212},"source":"function onDragStart(evt) { \n\n var pane = this.getPane()\n if (!pane) {\n evt.hand.grabMorph(this)\n return;\n };\n return pane.onItemDragStart(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":15217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15212":{"this":{"__isSmartRef__":true,"id":191},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15213}},"15213":{"$super":{"__isSmartRef__":true,"id":15214}},"15214":{"varMapping":{"__isSmartRef__":true,"id":15215},"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":15216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15215":{"obj":{"__isSmartRef__":true,"id":191},"name":"onDragStart"},"15216":{},"15217":{"timestamp":{"__isSmartRef__":true,"id":15218},"user":"jenslincke","tags":[]},"15218":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15219":{"varMapping":{"__isSmartRef__":true,"id":15220},"source":"function onDragEnd(evt) { \n var pane = this.getPane()\n\n if (!pane) return;\n return pane.onItemDragEnd(this, evt)\n}","funcProperties":{"__isSmartRef__":true,"id":15225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15220":{"this":{"__isSmartRef__":true,"id":191},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15221}},"15221":{"$super":{"__isSmartRef__":true,"id":15222}},"15222":{"varMapping":{"__isSmartRef__":true,"id":15223},"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":15224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15223":{"obj":{"__isSmartRef__":true,"id":191},"name":"onDragEnd"},"15224":{},"15225":{"timestamp":{"__isSmartRef__":true,"id":15226},"user":"jenslincke","tags":[]},"15226":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15227":{"varMapping":{"__isSmartRef__":true,"id":15228},"source":"function showItem() { \n this.addMorph(this.slide);\n this.slide.disableEvents();\n this.slide.setPosition(pt(10,10))\n this.slide.setScale(1)\n }","funcProperties":{"__isSmartRef__":true,"id":15229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15228":{"this":{"__isSmartRef__":true,"id":191}},"15229":{"timestamp":{"__isSmartRef__":true,"id":15230},"user":"jenslincke","tags":[]},"15230":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15231":{"varMapping":{"__isSmartRef__":true,"id":15232},"source":"function getPane() {\n return this.get('PresentationContainerPane')\n}","funcProperties":{"__isSmartRef__":true,"id":15233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15232":{"this":{"__isSmartRef__":true,"id":191}},"15233":{"timestamp":{"__isSmartRef__":true,"id":15234},"user":"jenslincke","tags":[]},"15234":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15235":{"submorphs":[{"__isSmartRef__":true,"id":15236}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15361},"derivationIds":[null],"id":"2F9B60A7-677C-4903-B00B-746F5D7F8C9E","eventHandler":{"__isSmartRef__":true,"id":15362},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isSlideContainer":true,"slide":{"__isSmartRef__":true,"id":15363},"pane":{"__isSmartRef__":true,"id":11730},"name":"PresentationItem for SWASlide48","owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position","distanceToDragEvent"],"showsHalos":false,"behaviorGroups":["Slides"],"_Rotation":0,"_Scale":0.3,"prevScroll":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15488},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(370.0,1220.0)","distanceToDragEvent":"lively.pt(207.9,29.8)"},"15236":{"submorphs":[{"__isSmartRef__":true,"id":15237},{"__isSmartRef__":true,"id":15243},{"__isSmartRef__":true,"id":15253},{"__isSmartRef__":true,"id":15272},{"__isSmartRef__":true,"id":15293},{"__isSmartRef__":true,"id":15308},{"__isSmartRef__":true,"id":15331}],"scripts":[],"id":"BE062F88-3A5A-44BB-BF3D-5ABED69F31A0","shape":{"__isSmartRef__":true,"id":15356},"__layered_droppingEnabled__":false,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":15357},"draggingEnabled":true,"name":"SWASlide50","partsBinMetaInfo":{"__isSmartRef__":true,"id":15359},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":15360},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","70107993-916C-418F-96DD-2EDA00F22575","A691AE87-DA0D-42D2-906D-28F49049F61C","FB6D7355-F47B-448C-AC25-E1C2A7513387","ACDCA81A-A376-42F5-94A8-20BC7FCEBF1F","5F071D0A-0824-4B1C-B099-D363CA59D109","CC185752-ED01-4F70-B329-5B5E975F72A4","8F25319D-D5CB-46E3-BD5E-E9BBA6AA77FD","3C9E9524-9106-477C-9119-324A54D6A676"],"prevScroll":[0,0],"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","eventsAreIgnored":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent","lastWorldPosition"],"owner":{"__isSmartRef__":true,"id":15235},"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","_Position":"lively.pt(10.0,10.0)","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(720.0,1220.0)"},"15237":{"submorphs":[],"scripts":[],"id":"8B50D11C-3C3A-4C3A-98F1-DAC72DD97357","shape":{"__isSmartRef__":true,"id":15238},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":15239},"textChunks":[{"__isSmartRef__":true,"id":15240}],"owner":{"__isSmartRef__":true,"id":15236},"charsReplaced":"Scene-Graph Copy","lastFindLoc":17,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15242},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","6771D830-56BA-415F-92F1-5CE3E5D687C3","C9B1DB13-AD06-4936-8DF3-61B56BC68B5D","19DCC3E8-1913-40E8-B3B0-EF84063A0B38","44CE2EBB-C48A-402E-B48B-586F11E82405","EA29E825-8C6B-4E8F-B5CE-5631D432A266","A8E56EFE-A541-4D9E-A49D-5E05E945E9EE","3D9A1D9E-834E-4599-8BA9-D572B62D6E63","7BA50940-3C05-430F-838A-821790F464AB"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"previousSelection":[7,18],"isBeingDragged":false,"priorSelectionRange":[7,18],"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"15238":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"15239":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15240":{"style":{"__isSmartRef__":true,"id":15241},"chunkOwner":{"__isSmartRef__":true,"id":15237},"storedString":"Change Propagation","_id":"_392","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15241":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15242":{"morph":{"__isSmartRef__":true,"id":15237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15243":{"submorphs":[],"scripts":[],"id":"0646E96B-D58F-42BC-8181-4F904D727CC7","shape":{"__isSmartRef__":true,"id":15244},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":15245},"textChunks":[{"__isSmartRef__":true,"id":15246},{"__isSmartRef__":true,"id":15248},{"__isSmartRef__":true,"id":15250}],"charsReplaced":"on","lastFindLoc":34,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15252},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","56C6D476-47A1-4AD3-9340-9EE470F9BEAE","6734B205-3A4F-4F2F-A339-2CD871E82936","BA59A4A0-07FE-46B3-A0A4-70A9F29AA40D","87DAA03C-DD82-4EB7-A632-4799DC6A5341","94809990-060C-462F-8C42-8BFF1B365D2F","B036E432-A10C-4432-AE6A-6B8FD021CF92","FD0BEE82-D062-45F0-8DBA-92093218CBDE","C36150FC-1383-4FB2-BD23-A293E0317D17"],"owner":{"__isSmartRef__":true,"id":15236},"previousSelection":[32,34],"priorSelectionRange":[0,53],"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(97.0,193.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)"},"15244":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,31.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"15245":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15246":{"style":{"__isSmartRef__":true,"id":15247},"chunkOwner":{"__isSmartRef__":true,"id":15243},"storedString":"","_id":"_814","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15247":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15248":{"style":{"__isSmartRef__":true,"id":15249},"chunkOwner":{"__isSmartRef__":true,"id":15243},"storedString":"■ Object manipulation only works one object at a time","_id":"_393","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15249":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"bold","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15250":{"style":{"__isSmartRef__":true,"id":15251},"chunkOwner":{"__isSmartRef__":true,"id":15243},"storedString":"\n","_id":"_394","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15251":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"26px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15252":{"morph":{"__isSmartRef__":true,"id":15243},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15254},"derivationIds":[null,"09D9B212-F744-4AE7-B38B-4A5C5288371F","6C6681FE-F923-46F9-AEB9-07333BDBD26B","EEAF12A9-1A79-497B-835F-26325538DE8B"],"id":"B952FC83-2E30-4E8E-897C-9F6945135F47","eventHandler":{"__isSmartRef__":true,"id":15255},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"name":"Player3","isBeingDragged":false,"showsHalos":false,"#startLetters":"","prevScroll":[0,0],"partsBinMetaInfo":{"__isSmartRef__":true,"id":15256},"moved":true,"isPlayer":true,"owner":{"__isSmartRef__":true,"id":15236},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15263},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(155.5,416.5)"},"15254":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/player_south.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(36.0,60.0)","_Padding":"lively.rect(0,0,0,0)"},"15255":{"morph":{"__isSmartRef__":true,"id":15253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15256":{"partName":"Player","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A player character, which can face different directions","changes":[{"__isSmartRef__":true,"id":15257},{"__isSmartRef__":true,"id":15259},{"__isSmartRef__":true,"id":15261}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15257":{"date":{"__isSmartRef__":true,"id":15258},"author":"timfelgentreff","message":"no comment","id":"AB6EC246-0E78-43F0-A551-17F34378328F"},"15258":{"isSerializedDate":true,"string":"Fri May 04 2012 17:50:59 GMT+0200 (Central Europe Daylight Time)"},"15259":{"date":{"__isSmartRef__":true,"id":15260},"author":"timfelgentreff","message":"avoid resetting image all the time","id":"828C5757-34C9-4ED5-BF71-136B71BD18F9"},"15260":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:22 GMT+0200 (Central Europe Daylight Time)"},"15261":{"date":{"__isSmartRef__":true,"id":15262},"author":"tessi","message":"no comment","id":"04C3B971-E7A7-48D8-9BB4-D2D0C01F4357"},"15262":{"isSerializedDate":true,"string":"Fri May 04 2012 17:00:59 GMT+0200 (Central Europe Daylight Time)"},"15263":{"mediaURL":{"__isSmartRef__":true,"id":15264},"face":{"__isSmartRef__":true,"id":15268}},"15264":{"varMapping":{"__isSmartRef__":true,"id":15265},"source":"function mediaURL() {\n return \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media\"\n}","funcProperties":{"__isSmartRef__":true,"id":15266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15265":{"this":{"__isSmartRef__":true,"id":15253}},"15266":{"timestamp":{"__isSmartRef__":true,"id":15267},"user":"tessi","tags":[]},"15267":{"isSerializedDate":true,"string":"Fri May 04 2012 16:56:03 GMT+0200 (Central Europe Daylight Time)"},"15268":{"varMapping":{"__isSmartRef__":true,"id":15269},"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":15270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15269":{"this":{"__isSmartRef__":true,"id":15253}},"15270":{"timestamp":{"__isSmartRef__":true,"id":15271},"user":"timfelgentreff","tags":[]},"15271":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:09 GMT+0200 (Central Europe Daylight Time)"},"15272":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15273},"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","7410563C-B251-4F1F-A781-DD011959A79C"],"id":"7803395E-E922-424C-AA74-3C490FC77024","eventHandler":{"__isSmartRef__":true,"id":15274},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"OgreCharacter5","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15275},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":15236},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15288},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(75.4,407.6)"},"15273":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/ogre.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(30.0,30.0)","_Padding":"lively.rect(0,0,0,0)"},"15274":{"morph":{"__isSmartRef__":true,"id":15272},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15275":{"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":15276},{"__isSmartRef__":true,"id":15278},{"__isSmartRef__":true,"id":15280},{"__isSmartRef__":true,"id":15282},{"__isSmartRef__":true,"id":15284},{"__isSmartRef__":true,"id":15286}],"migrationLevel":4,"revisionOnLoad":156416,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15276":{"date":{"__isSmartRef__":true,"id":15277},"author":"lauritz","message":"i've got to tell a thing or two","id":"70436981-18DC-4F38-8140-749232838288"},"15277":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:29 GMT+0200 (Central Europe Daylight Time)"},"15278":{"date":{"__isSmartRef__":true,"id":15279},"author":"tessi","message":"some more sentences for our lovely ogre","id":"CAA81E8E-2A04-4B19-A2A3-BDC1DE903D07"},"15279":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:41:46 GMT+0200 (Central Europe Daylight Time)"},"15280":{"date":{"__isSmartRef__":true,"id":15281},"author":"tessi","message":"","id":"037D4B98-0FC3-4F01-AAC5-1A7043695CDF"},"15281":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:42:21 GMT+0200 (Central Europe Daylight Time)"},"15282":{"date":{"__isSmartRef__":true,"id":15283},"author":"tessi","message":"","id":"27266C01-3C1A-49AC-ADAF-D4699D234741"},"15283":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:00 GMT+0200 (Central Europe Daylight Time)"},"15284":{"date":{"__isSmartRef__":true,"id":15285},"author":"tessi","message":"an ogre now talks some sentences when soliloquizing","id":"9B52F781-C25B-44D7-B07A-BF47EA424C08"},"15285":{"isSerializedDate":true,"string":"Sat Apr 21 2012 17:34:12 GMT+0200 (Central Europe Daylight Time)"},"15286":{"date":{"__isSmartRef__":true,"id":15287},"author":"lauritz","message":"no comment","id":"A49B0290-BC2D-4D41-9981-C0207ECC4EE5"},"15287":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:29:57 GMT+0200 (Central Europe Daylight Time)"},"15288":{"soliloquize":{"__isSmartRef__":true,"id":15289}},"15289":{"varMapping":{"__isSmartRef__":true,"id":15290},"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":15291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15290":{"this":{"__isSmartRef__":true,"id":15272}},"15291":{"timestamp":{"__isSmartRef__":true,"id":15292},"user":"lauritz","tags":[]},"15292":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:26:22 GMT+0200 (Central Europe Daylight Time)"},"15293":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15294},"derivationIds":[null,"DDEAC478-2517-4549-94EE-CDDC72BCB67A","7C9FE591-7783-4A14-A4C6-3202BFD06CDB","1880E48F-8410-43CD-B356-0A1E07E68A4A","CA5CC205-F0EB-4443-B4B1-444BB5BB27F6"],"id":"FECA760E-F82D-4EAF-819C-78E5AF8F99AF","eventHandler":{"__isSmartRef__":true,"id":15295},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"OctocatCharacter3","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15296},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":15236},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15303},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(201.8,405.8)"},"15294":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/octocat.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(32.0,32.0)","_Padding":"lively.rect(0,0,0,0)"},"15295":{"morph":{"__isSmartRef__":true,"id":15293},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15296":{"partName":"OctocatCharacter","requiredModules":[],"comment":"Look at me! I'm doing the octo dance!","changes":[{"__isSmartRef__":true,"id":15297},{"__isSmartRef__":true,"id":15299},{"__isSmartRef__":true,"id":15301}],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech/","revisionOnLoad":154726,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15297":{"date":{"__isSmartRef__":true,"id":15298},"author":"tessi","message":"octocat does not soliloquize (for now!?)","id":"0F039063-F9E3-4503-B1ED-C1C7C887679B"},"15298":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:04 GMT+0200 (Central Europe Daylight Time)"},"15299":{"date":{"__isSmartRef__":true,"id":15300},"author":"tessi","message":"","id":"977A2D23-B062-4F60-AB60-63CF3624D817"},"15300":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:33:30 GMT+0200 (Central Europe Daylight Time)"},"15301":{"date":{"__isSmartRef__":true,"id":15302},"author":"tessi","message":"","id":"F614B373-FE65-419F-AC36-21BCCE60AEE6"},"15302":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:36:27 GMT+0200 (Central Europe Daylight Time)"},"15303":{"soliloquize":{"__isSmartRef__":true,"id":15304}},"15304":{"varMapping":{"__isSmartRef__":true,"id":15305},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n undefined\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":15306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15305":{"this":{"__isSmartRef__":true,"id":15293}},"15306":{"timestamp":{"__isSmartRef__":true,"id":15307},"user":"tessi","tags":[]},"15307":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:38:40 GMT+0200 (Central Europe Daylight Time)"},"15308":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15309},"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","20A17AD3-11C6-4FC8-99B1-3C9EE19B4A1A"],"id":"D931172D-5115-44DF-9484-024D1C92FA07","eventHandler":{"__isSmartRef__":true,"id":15310},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"CoderCharacter2","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15311},"moved":true,"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":15236},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15326},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(143.0,359.5)"},"15309":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/coder.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,20.0)","_Padding":"lively.rect(0,0,0,0)"},"15310":{"morph":{"__isSmartRef__":true,"id":15308},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15311":{"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":15312},{"__isSmartRef__":true,"id":15314},{"__isSmartRef__":true,"id":15316},{"__isSmartRef__":true,"id":15318},{"__isSmartRef__":true,"id":15320},{"__isSmartRef__":true,"id":15322},{"__isSmartRef__":true,"id":15324}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15312":{"date":{"__isSmartRef__":true,"id":15313},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"15313":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"15314":{"date":{"__isSmartRef__":true,"id":15315},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"15315":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"15316":{"date":{"__isSmartRef__":true,"id":15317},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"15317":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"15318":{"date":{"__isSmartRef__":true,"id":15319},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"15319":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"15320":{"date":{"__isSmartRef__":true,"id":15321},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"15321":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"15322":{"date":{"__isSmartRef__":true,"id":15323},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"15323":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"15324":{"date":{"__isSmartRef__":true,"id":15325},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"15325":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"15326":{"soliloquize":{"__isSmartRef__":true,"id":15327}},"15327":{"varMapping":{"__isSmartRef__":true,"id":15328},"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":15329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15328":{"this":{"__isSmartRef__":true,"id":15308}},"15329":{"timestamp":{"__isSmartRef__":true,"id":15330},"user":"lauritz","tags":[]},"15330":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"15331":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15332},"derivationIds":[null,"4E5E2B48-0B47-4B2D-BC78-14E1BDBE0B57","EA4FE185-C289-4D95-B8AF-461C2E8219E6","7F3E4F8B-3F32-4809-91A5-5DEA3A3FD09E","7571A08C-937B-467A-9D49-68F3AAAD1140","85283104-ADA2-4C53-A73D-C5487B62C829","5E0941AD-4504-4F9D-B650-B018490C56B0","EAD81395-1252-4B07-8FB3-2F4253CB798F","7696C2D4-B858-4212-80CB-84803CAAD87E","4C0819CC-FCCD-4A8B-A1FF-1603EFE5EE49","FB7EF974-A95D-4A3A-95F4-498936A61AB1","060FCB63-2D3A-4FE6-AB19-B40854B0BB78","5ABD6D73-9D28-45A3-AE27-3035D892467D","19CC5587-3BCE-4293-B785-F659497CDD76","440643CA-166F-44AE-A8FF-D3B1E457D081","BA20821C-578F-4256-8870-B86E3AFEE3FC","7C1E3822-1018-45B9-AE6C-6E2BD39DF2F8","312B6786-7F93-4E97-AF06-CC08B9BEF91B","B6142DF2-38A9-41DD-B7C0-60D315537301","7DE27692-A1E7-4B48-8126-2939656AE639","1CA5EB71-650C-48BB-B5F0-4B1FDA2B0FCE","E1B8DC34-B6A5-4CB2-857B-597844C49DF0","0BB210B2-5CAC-4548-A650-A8FB85814B89","3493E4F4-5A4F-41F9-8FB4-6DD2781CE33F","3E9289C4-8439-4FF4-8533-20CCC231E86C","1007D257-74BA-41E4-9426-43503840A328","AB02F6ED-6541-4C2B-BE33-9E30E2D4E8CB","86414643-3214-48C0-A848-A1AD0622F4F3","64D914CC-285D-46F9-9DDD-F6898F714D0C","08B1186F-89EF-4676-9F58-FC0F720D76B7","0AAA27B2-041A-4A7A-A0D6-3F61AE0D4054","270B8DB7-6146-420A-844A-299262375555"],"id":"4050D59B-7526-4237-94E3-4BBE4E170B5D","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":15333},{"__isSmartRef__":true,"id":15335},{"__isSmartRef__":true,"id":15337},{"__isSmartRef__":true,"id":15339},{"__isSmartRef__":true,"id":15341},{"__isSmartRef__":true,"id":15343},{"__isSmartRef__":true,"id":15345},{"__isSmartRef__":true,"id":15347},{"__isSmartRef__":true,"id":15349},{"__isSmartRef__":true,"id":15351}],"eventHandler":{"__isSmartRef__":true,"id":15353},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":14,"evalEnabled":false,"_MaxTextWidth":481.8321038133722,"_MinTextWidth":481.8321038133722,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":15354},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":15355}],"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"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":309,"accessibleInInactiveWindow":true,"charsReplaced":"t","lastFindLoc":66,"isBeingDragged":false,"showsHalos":false,"#startLetters":"world()","name":"ObjectInspectorText1","doItContext":null,"_syntaxHighlightTimeout":24646,"owner":{"__isSmartRef__":true,"id":15236},"_WordBreak":"break-all","_lastSyntaxHighlightTime":25,"_Rotation":0,"_Scale":1.102942648901942,"__serializedExpressions__":["_Position","distanceToDragEvent"],"textString":"this.selectedMorphs.forEach(function (ea) {\n ea.setScale(2)\n}) ","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(337.3,535.1)","distanceToDragEvent":"lively.pt(345.8,-15.5)"},"15332":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(491.8,88.1)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"15333":{"style":{"__isSmartRef__":true,"id":15334},"chunkOwner":{"__isSmartRef__":true,"id":15331},"_id":"_7047","storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15334":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15335":{"_id":"_7126","style":{"__isSmartRef__":true,"id":15336},"chunkOwner":{"__isSmartRef__":true,"id":15331},"storedString":".selectedMorphs.forEach(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15336":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15337":{"_id":"_7127","style":{"__isSmartRef__":true,"id":15338},"chunkOwner":{"__isSmartRef__":true,"id":15331},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15338":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15339":{"_id":"_7128","style":{"__isSmartRef__":true,"id":15340},"chunkOwner":{"__isSmartRef__":true,"id":15331},"storedString":" (ea) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15340":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15341":{"_id":"_7129","style":{"__isSmartRef__":true,"id":15342},"chunkOwner":{"__isSmartRef__":true,"id":15331},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15342":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15343":{"_id":"_7130","style":{"__isSmartRef__":true,"id":15344},"chunkOwner":{"__isSmartRef__":true,"id":15331},"storedString":"\n ea.setScale(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15344":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15345":{"_id":"_7131","style":{"__isSmartRef__":true,"id":15346},"chunkOwner":{"__isSmartRef__":true,"id":15331},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15346":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"15347":{"_id":"_7132","style":{"__isSmartRef__":true,"id":15348},"chunkOwner":{"__isSmartRef__":true,"id":15331},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15348":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15349":{"_id":"_7133","style":{"__isSmartRef__":true,"id":15350},"chunkOwner":{"__isSmartRef__":true,"id":15331},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15350":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15351":{"_id":"_7134","style":{"__isSmartRef__":true,"id":15352},"chunkOwner":{"__isSmartRef__":true,"id":15331},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15352":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15353":{"morph":{"__isSmartRef__":true,"id":15331},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15354":{"resizeWidth":true,"resizeHeight":false},"15355":{"sourceObj":{"__isSmartRef__":true,"id":15331},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":15331},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"15356":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"15357":{"options":{"__isSmartRef__":true,"id":15358}},"15358":{"override":["onDrag","onDragStart","onDragEnd"]},"15359":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15360":{"morph":{"__isSmartRef__":true,"id":15236},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15361":{"_BorderWidth":10,"_BorderColor":null,"__serializedExpressions__":["_Fill","_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(204,204,204)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1044.0,788.0)","_Padding":"lively.rect(0,0,0,0)"},"15362":{"morph":{"__isSmartRef__":true,"id":15235},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15363":{"submorphs":[{"__isSmartRef__":true,"id":15364},{"__isSmartRef__":true,"id":15370},{"__isSmartRef__":true,"id":15380},{"__isSmartRef__":true,"id":15399},{"__isSmartRef__":true,"id":15420},{"__isSmartRef__":true,"id":15435},{"__isSmartRef__":true,"id":15458}],"scripts":[],"id":"3C9E9524-9106-477C-9119-324A54D6A676","shape":{"__isSmartRef__":true,"id":15483},"__layered_droppingEnabled__":true,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":15484},"draggingEnabled":true,"name":"SWASlide48","partsBinMetaInfo":{"__isSmartRef__":true,"id":15486},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":15487},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","70107993-916C-418F-96DD-2EDA00F22575","A691AE87-DA0D-42D2-906D-28F49049F61C","FB6D7355-F47B-448C-AC25-E1C2A7513387","ACDCA81A-A376-42F5-94A8-20BC7FCEBF1F","5F071D0A-0824-4B1C-B099-D363CA59D109","CC185752-ED01-4F70-B329-5B5E975F72A4","8F25319D-D5CB-46E3-BD5E-E9BBA6AA77FD"],"prevScroll":[0,0],"eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","eventsAreIgnored":false,"_ClipMode":"visible","owner":null,"__serializedExpressions__":["_Position","distanceToDragEvent","lastWorldPosition"],"_Rotation":0,"_Scale":1,"grabbingEnabled":false,"_Visible":true,"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","_Position":"lively.pt(10.0,10.0)","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(720.0,1220.0)"},"15364":{"submorphs":[],"scripts":[],"id":"7BA50940-3C05-430F-838A-821790F464AB","shape":{"__isSmartRef__":true,"id":15365},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":15366},"textChunks":[{"__isSmartRef__":true,"id":15367}],"owner":{"__isSmartRef__":true,"id":15363},"charsReplaced":"Scene-Graph Copy","lastFindLoc":17,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15369},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","6771D830-56BA-415F-92F1-5CE3E5D687C3","C9B1DB13-AD06-4936-8DF3-61B56BC68B5D","19DCC3E8-1913-40E8-B3B0-EF84063A0B38","44CE2EBB-C48A-402E-B48B-586F11E82405","EA29E825-8C6B-4E8F-B5CE-5631D432A266","A8E56EFE-A541-4D9E-A49D-5E05E945E9EE","3D9A1D9E-834E-4599-8BA9-D572B62D6E63"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"previousSelection":[7,18],"isBeingDragged":false,"priorSelectionRange":[7,18],"__serializedExpressions__":["_Position","textColor","_TextColor"],"_Rotation":0,"_Scale":1.001001001001001,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"15365":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"15366":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15367":{"style":{"__isSmartRef__":true,"id":15368},"chunkOwner":{"__isSmartRef__":true,"id":15364},"storedString":"Change Propagation","_id":"_392","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15368":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15369":{"morph":{"__isSmartRef__":true,"id":15364},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15370":{"submorphs":[],"scripts":[],"id":"C36150FC-1383-4FB2-BD23-A293E0317D17","shape":{"__isSmartRef__":true,"id":15371},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":15372},"textChunks":[{"__isSmartRef__":true,"id":15373},{"__isSmartRef__":true,"id":15375},{"__isSmartRef__":true,"id":15377}],"charsReplaced":"on","lastFindLoc":34,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15379},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","56C6D476-47A1-4AD3-9340-9EE470F9BEAE","6734B205-3A4F-4F2F-A339-2CD871E82936","BA59A4A0-07FE-46B3-A0A4-70A9F29AA40D","87DAA03C-DD82-4EB7-A632-4799DC6A5341","94809990-060C-462F-8C42-8BFF1B365D2F","B036E432-A10C-4432-AE6A-6B8FD021CF92","FD0BEE82-D062-45F0-8DBA-92093218CBDE"],"owner":{"__isSmartRef__":true,"id":15363},"previousSelection":[32,34],"priorSelectionRange":[0,53],"__serializedExpressions__":["_Position","textColor","_TextColor"],"_Rotation":0,"_Scale":1.001001001001001,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(97.0,193.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)"},"15371":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,31.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"15372":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15373":{"style":{"__isSmartRef__":true,"id":15374},"chunkOwner":{"__isSmartRef__":true,"id":15370},"storedString":"","_id":"_814","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15374":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15375":{"style":{"__isSmartRef__":true,"id":15376},"chunkOwner":{"__isSmartRef__":true,"id":15370},"storedString":"■ Object manipulation only works one object at a time","_id":"_393","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15376":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"bold","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15377":{"style":{"__isSmartRef__":true,"id":15378},"chunkOwner":{"__isSmartRef__":true,"id":15370},"storedString":"\n","_id":"_394","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15378":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"26px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15379":{"morph":{"__isSmartRef__":true,"id":15370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15380":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15381},"derivationIds":[null,"09D9B212-F744-4AE7-B38B-4A5C5288371F","6C6681FE-F923-46F9-AEB9-07333BDBD26B"],"id":"EEAF12A9-1A79-497B-835F-26325538DE8B","eventHandler":{"__isSmartRef__":true,"id":15382},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"name":"Player3","isBeingDragged":false,"showsHalos":false,"#startLetters":"","prevScroll":[0,0],"partsBinMetaInfo":{"__isSmartRef__":true,"id":15383},"moved":true,"isPlayer":true,"owner":{"__isSmartRef__":true,"id":15363},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15390},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(155.5,416.5)"},"15381":{"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/player_south.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(36.0,60.0)","_Padding":"lively.rect(0,0,0,0)"},"15382":{"morph":{"__isSmartRef__":true,"id":15380},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15383":{"partName":"Player","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A player character, which can face different directions","changes":[{"__isSmartRef__":true,"id":15384},{"__isSmartRef__":true,"id":15386},{"__isSmartRef__":true,"id":15388}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15384":{"date":{"__isSmartRef__":true,"id":15385},"author":"timfelgentreff","message":"no comment","id":"AB6EC246-0E78-43F0-A551-17F34378328F"},"15385":{"isSerializedDate":true,"string":"Fri May 04 2012 17:50:59 GMT+0200 (Central Europe Daylight Time)"},"15386":{"date":{"__isSmartRef__":true,"id":15387},"author":"timfelgentreff","message":"avoid resetting image all the time","id":"828C5757-34C9-4ED5-BF71-136B71BD18F9"},"15387":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:22 GMT+0200 (Central Europe Daylight Time)"},"15388":{"date":{"__isSmartRef__":true,"id":15389},"author":"tessi","message":"no comment","id":"04C3B971-E7A7-48D8-9BB4-D2D0C01F4357"},"15389":{"isSerializedDate":true,"string":"Fri May 04 2012 17:00:59 GMT+0200 (Central Europe Daylight Time)"},"15390":{"mediaURL":{"__isSmartRef__":true,"id":15391},"face":{"__isSmartRef__":true,"id":15395}},"15391":{"varMapping":{"__isSmartRef__":true,"id":15392},"source":"function mediaURL() {\n return \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media\"\n}","funcProperties":{"__isSmartRef__":true,"id":15393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15392":{"this":{"__isSmartRef__":true,"id":15380}},"15393":{"timestamp":{"__isSmartRef__":true,"id":15394},"user":"tessi","tags":[]},"15394":{"isSerializedDate":true,"string":"Fri May 04 2012 16:56:03 GMT+0200 (Central Europe Daylight Time)"},"15395":{"varMapping":{"__isSmartRef__":true,"id":15396},"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":15397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15396":{"this":{"__isSmartRef__":true,"id":15380}},"15397":{"timestamp":{"__isSmartRef__":true,"id":15398},"user":"timfelgentreff","tags":[]},"15398":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:09 GMT+0200 (Central Europe Daylight Time)"},"15399":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15400},"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":"7410563C-B251-4F1F-A781-DD011959A79C","eventHandler":{"__isSmartRef__":true,"id":15401},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"OgreCharacter5","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15402},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":15363},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15415},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(75.4,407.6)"},"15400":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/ogre.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(30.0,30.0)","_Padding":"lively.rect(0,0,0,0)"},"15401":{"morph":{"__isSmartRef__":true,"id":15399},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15402":{"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":15403},{"__isSmartRef__":true,"id":15405},{"__isSmartRef__":true,"id":15407},{"__isSmartRef__":true,"id":15409},{"__isSmartRef__":true,"id":15411},{"__isSmartRef__":true,"id":15413}],"migrationLevel":4,"revisionOnLoad":156416,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15403":{"date":{"__isSmartRef__":true,"id":15404},"author":"lauritz","message":"i've got to tell a thing or two","id":"70436981-18DC-4F38-8140-749232838288"},"15404":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:29 GMT+0200 (Central Europe Daylight Time)"},"15405":{"date":{"__isSmartRef__":true,"id":15406},"author":"tessi","message":"some more sentences for our lovely ogre","id":"CAA81E8E-2A04-4B19-A2A3-BDC1DE903D07"},"15406":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:41:46 GMT+0200 (Central Europe Daylight Time)"},"15407":{"date":{"__isSmartRef__":true,"id":15408},"author":"tessi","message":"","id":"037D4B98-0FC3-4F01-AAC5-1A7043695CDF"},"15408":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:42:21 GMT+0200 (Central Europe Daylight Time)"},"15409":{"date":{"__isSmartRef__":true,"id":15410},"author":"tessi","message":"","id":"27266C01-3C1A-49AC-ADAF-D4699D234741"},"15410":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:00 GMT+0200 (Central Europe Daylight Time)"},"15411":{"date":{"__isSmartRef__":true,"id":15412},"author":"tessi","message":"an ogre now talks some sentences when soliloquizing","id":"9B52F781-C25B-44D7-B07A-BF47EA424C08"},"15412":{"isSerializedDate":true,"string":"Sat Apr 21 2012 17:34:12 GMT+0200 (Central Europe Daylight Time)"},"15413":{"date":{"__isSmartRef__":true,"id":15414},"author":"lauritz","message":"no comment","id":"A49B0290-BC2D-4D41-9981-C0207ECC4EE5"},"15414":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:29:57 GMT+0200 (Central Europe Daylight Time)"},"15415":{"soliloquize":{"__isSmartRef__":true,"id":15416}},"15416":{"varMapping":{"__isSmartRef__":true,"id":15417},"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":15418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15417":{"this":{"__isSmartRef__":true,"id":15399}},"15418":{"timestamp":{"__isSmartRef__":true,"id":15419},"user":"lauritz","tags":[]},"15419":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:26:22 GMT+0200 (Central Europe Daylight Time)"},"15420":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15421},"derivationIds":[null,"DDEAC478-2517-4549-94EE-CDDC72BCB67A","7C9FE591-7783-4A14-A4C6-3202BFD06CDB","1880E48F-8410-43CD-B356-0A1E07E68A4A"],"id":"CA5CC205-F0EB-4443-B4B1-444BB5BB27F6","eventHandler":{"__isSmartRef__":true,"id":15422},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"OctocatCharacter3","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15423},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":15363},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15430},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(201.8,405.8)"},"15421":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/octocat.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(32.0,32.0)","_Padding":"lively.rect(0,0,0,0)"},"15422":{"morph":{"__isSmartRef__":true,"id":15420},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15423":{"partName":"OctocatCharacter","requiredModules":[],"comment":"Look at me! I'm doing the octo dance!","changes":[{"__isSmartRef__":true,"id":15424},{"__isSmartRef__":true,"id":15426},{"__isSmartRef__":true,"id":15428}],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech/","revisionOnLoad":154726,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15424":{"date":{"__isSmartRef__":true,"id":15425},"author":"tessi","message":"octocat does not soliloquize (for now!?)","id":"0F039063-F9E3-4503-B1ED-C1C7C887679B"},"15425":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:04 GMT+0200 (Central Europe Daylight Time)"},"15426":{"date":{"__isSmartRef__":true,"id":15427},"author":"tessi","message":"","id":"977A2D23-B062-4F60-AB60-63CF3624D817"},"15427":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:33:30 GMT+0200 (Central Europe Daylight Time)"},"15428":{"date":{"__isSmartRef__":true,"id":15429},"author":"tessi","message":"","id":"F614B373-FE65-419F-AC36-21BCCE60AEE6"},"15429":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:36:27 GMT+0200 (Central Europe Daylight Time)"},"15430":{"soliloquize":{"__isSmartRef__":true,"id":15431}},"15431":{"varMapping":{"__isSmartRef__":true,"id":15432},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n undefined\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":15433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15432":{"this":{"__isSmartRef__":true,"id":15420}},"15433":{"timestamp":{"__isSmartRef__":true,"id":15434},"user":"tessi","tags":[]},"15434":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:38:40 GMT+0200 (Central Europe Daylight Time)"},"15435":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15436},"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"],"id":"20A17AD3-11C6-4FC8-99B1-3C9EE19B4A1A","eventHandler":{"__isSmartRef__":true,"id":15437},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"CoderCharacter2","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15438},"moved":true,"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":15363},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15453},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(143.0,359.5)"},"15436":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/coder.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(20.0,20.0)","_Padding":"lively.rect(0,0,0,0)"},"15437":{"morph":{"__isSmartRef__":true,"id":15435},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15438":{"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":15439},{"__isSmartRef__":true,"id":15441},{"__isSmartRef__":true,"id":15443},{"__isSmartRef__":true,"id":15445},{"__isSmartRef__":true,"id":15447},{"__isSmartRef__":true,"id":15449},{"__isSmartRef__":true,"id":15451}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15439":{"date":{"__isSmartRef__":true,"id":15440},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"15440":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (Central Europe Daylight Time)"},"15441":{"date":{"__isSmartRef__":true,"id":15442},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"15442":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (Central Europe Daylight Time)"},"15443":{"date":{"__isSmartRef__":true,"id":15444},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"15444":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (Central Europe Daylight Time)"},"15445":{"date":{"__isSmartRef__":true,"id":15446},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"15446":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (Central Europe Daylight Time)"},"15447":{"date":{"__isSmartRef__":true,"id":15448},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"15448":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (Central Europe Daylight Time)"},"15449":{"date":{"__isSmartRef__":true,"id":15450},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"15450":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (Central Europe Daylight Time)"},"15451":{"date":{"__isSmartRef__":true,"id":15452},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"15452":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (Central Europe Daylight Time)"},"15453":{"soliloquize":{"__isSmartRef__":true,"id":15454}},"15454":{"varMapping":{"__isSmartRef__":true,"id":15455},"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":15456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15455":{"this":{"__isSmartRef__":true,"id":15435}},"15456":{"timestamp":{"__isSmartRef__":true,"id":15457},"user":"lauritz","tags":[]},"15457":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (Central Europe Daylight Time)"},"15458":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15459},"derivationIds":[null,"4E5E2B48-0B47-4B2D-BC78-14E1BDBE0B57","EA4FE185-C289-4D95-B8AF-461C2E8219E6","7F3E4F8B-3F32-4809-91A5-5DEA3A3FD09E","7571A08C-937B-467A-9D49-68F3AAAD1140","85283104-ADA2-4C53-A73D-C5487B62C829","5E0941AD-4504-4F9D-B650-B018490C56B0","EAD81395-1252-4B07-8FB3-2F4253CB798F","7696C2D4-B858-4212-80CB-84803CAAD87E","4C0819CC-FCCD-4A8B-A1FF-1603EFE5EE49","FB7EF974-A95D-4A3A-95F4-498936A61AB1","060FCB63-2D3A-4FE6-AB19-B40854B0BB78","5ABD6D73-9D28-45A3-AE27-3035D892467D","19CC5587-3BCE-4293-B785-F659497CDD76","440643CA-166F-44AE-A8FF-D3B1E457D081","BA20821C-578F-4256-8870-B86E3AFEE3FC","7C1E3822-1018-45B9-AE6C-6E2BD39DF2F8","312B6786-7F93-4E97-AF06-CC08B9BEF91B","B6142DF2-38A9-41DD-B7C0-60D315537301","7DE27692-A1E7-4B48-8126-2939656AE639","1CA5EB71-650C-48BB-B5F0-4B1FDA2B0FCE","E1B8DC34-B6A5-4CB2-857B-597844C49DF0","0BB210B2-5CAC-4548-A650-A8FB85814B89","3493E4F4-5A4F-41F9-8FB4-6DD2781CE33F","3E9289C4-8439-4FF4-8533-20CCC231E86C","1007D257-74BA-41E4-9426-43503840A328","AB02F6ED-6541-4C2B-BE33-9E30E2D4E8CB","86414643-3214-48C0-A848-A1AD0622F4F3","64D914CC-285D-46F9-9DDD-F6898F714D0C","08B1186F-89EF-4676-9F58-FC0F720D76B7","0AAA27B2-041A-4A7A-A0D6-3F61AE0D4054"],"id":"270B8DB7-6146-420A-844A-299262375555","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":15460},{"__isSmartRef__":true,"id":15462},{"__isSmartRef__":true,"id":15464},{"__isSmartRef__":true,"id":15466},{"__isSmartRef__":true,"id":15468},{"__isSmartRef__":true,"id":15470},{"__isSmartRef__":true,"id":15472},{"__isSmartRef__":true,"id":15474},{"__isSmartRef__":true,"id":15476},{"__isSmartRef__":true,"id":15478}],"eventHandler":{"__isSmartRef__":true,"id":15480},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":14,"evalEnabled":false,"_MaxTextWidth":481.8321038133722,"_MinTextWidth":481.8321038133722,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":15481},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":15482}],"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"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":309,"accessibleInInactiveWindow":true,"charsReplaced":"t","lastFindLoc":66,"isBeingDragged":false,"showsHalos":false,"#startLetters":"world()","name":"ObjectInspectorText1","doItContext":null,"_syntaxHighlightTimeout":24646,"owner":{"__isSmartRef__":true,"id":15363},"__serializedExpressions__":["_Position","distanceToDragEvent"],"textString":"this.selectedMorphs.forEach(function (ea) {\n ea.setScale(2)\n}) ","_WordBreak":"break-all","_lastSyntaxHighlightTime":36,"_Rotation":0,"_Scale":1.102942648901942,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(337.3,535.1)","distanceToDragEvent":"lively.pt(345.8,-15.5)"},"15459":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(491.8,88.1)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"15460":{"style":{"__isSmartRef__":true,"id":15461},"chunkOwner":{"__isSmartRef__":true,"id":15458},"_id":"_935","storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15461":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15462":{"_id":"_936","style":{"__isSmartRef__":true,"id":15463},"chunkOwner":{"__isSmartRef__":true,"id":15458},"storedString":".selectedMorphs.forEach(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15463":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15464":{"_id":"_937","style":{"__isSmartRef__":true,"id":15465},"chunkOwner":{"__isSmartRef__":true,"id":15458},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15465":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15466":{"_id":"_938","style":{"__isSmartRef__":true,"id":15467},"chunkOwner":{"__isSmartRef__":true,"id":15458},"storedString":" (ea) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15467":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15468":{"_id":"_939","style":{"__isSmartRef__":true,"id":15469},"chunkOwner":{"__isSmartRef__":true,"id":15458},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15469":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15470":{"_id":"_940","style":{"__isSmartRef__":true,"id":15471},"chunkOwner":{"__isSmartRef__":true,"id":15458},"storedString":"\n ea.setScale(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15471":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15472":{"_id":"_941","style":{"__isSmartRef__":true,"id":15473},"chunkOwner":{"__isSmartRef__":true,"id":15458},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15473":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"15474":{"_id":"_942","style":{"__isSmartRef__":true,"id":15475},"chunkOwner":{"__isSmartRef__":true,"id":15458},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15475":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15476":{"_id":"_943","style":{"__isSmartRef__":true,"id":15477},"chunkOwner":{"__isSmartRef__":true,"id":15458},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15477":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15478":{"_id":"_944","style":{"__isSmartRef__":true,"id":15479},"chunkOwner":{"__isSmartRef__":true,"id":15458},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15479":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15480":{"morph":{"__isSmartRef__":true,"id":15458},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15481":{"resizeWidth":true,"resizeHeight":false},"15482":{"sourceObj":{"__isSmartRef__":true,"id":15458},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":15458},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"15483":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"15484":{"options":{"__isSmartRef__":true,"id":15485}},"15485":{"override":["onDrag","onDragStart","onDragEnd"]},"15486":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15487":{"morph":{"__isSmartRef__":true,"id":15363},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15488":{"copy":{"__isSmartRef__":true,"id":15489},"onDropOn":{"__isSmartRef__":true,"id":15497},"onMouseUp":{"__isSmartRef__":true,"id":15505},"onDragStart":{"__isSmartRef__":true,"id":15513},"onDragEnd":{"__isSmartRef__":true,"id":15521},"showItem":{"__isSmartRef__":true,"id":15529},"getPane":{"__isSmartRef__":true,"id":15533}},"15489":{"varMapping":{"__isSmartRef__":true,"id":15490},"source":"function copy() {\n var result = $super();\n result.pane = null\n // keep that invariant....\n result.slide = result.submorphs.first();\n var title = result.get('title');\n if (title && title.textString) title.textString += ' Copy';\n result.setBorderColor(Color.gray)\n return result\n }","funcProperties":{"__isSmartRef__":true,"id":15495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15490":{"this":{"__isSmartRef__":true,"id":15235},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15491}},"15491":{"$super":{"__isSmartRef__":true,"id":15492}},"15492":{"varMapping":{"__isSmartRef__":true,"id":15493},"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":15494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15493":{"obj":{"__isSmartRef__":true,"id":15235},"name":"copy"},"15494":{},"15495":{"timestamp":{"__isSmartRef__":true,"id":15496},"user":"jenslincke","tags":[]},"15496":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15497":{"varMapping":{"__isSmartRef__":true,"id":15498},"source":"function onDropOn(morph) {\n if (morph.name == 'Container') {\n morph.get('PresentationContainerPane').onAddSlideItem(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15498":{"this":{"__isSmartRef__":true,"id":15235},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15499}},"15499":{"$super":{"__isSmartRef__":true,"id":15500}},"15500":{"varMapping":{"__isSmartRef__":true,"id":15501},"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":15502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15501":{"obj":{"__isSmartRef__":true,"id":15235},"name":"onDropOn"},"15502":{},"15503":{"timestamp":{"__isSmartRef__":true,"id":15504},"user":"jenslincke","tags":[]},"15504":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15505":{"varMapping":{"__isSmartRef__":true,"id":15506},"source":"function onMouseUp(evt) { \n var pane = this.getPane()\n if (!pane) return;\n pane.onItemMouseUp(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":15511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15506":{"this":{"__isSmartRef__":true,"id":15235},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15507}},"15507":{"$super":{"__isSmartRef__":true,"id":15508}},"15508":{"varMapping":{"__isSmartRef__":true,"id":15509},"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":15510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15509":{"obj":{"__isSmartRef__":true,"id":15235},"name":"onMouseUp"},"15510":{},"15511":{"timestamp":{"__isSmartRef__":true,"id":15512},"user":"jenslincke","tags":[]},"15512":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15513":{"varMapping":{"__isSmartRef__":true,"id":15514},"source":"function onDragStart(evt) { \n\n var pane = this.getPane()\n if (!pane) {\n evt.hand.grabMorph(this)\n return;\n };\n return pane.onItemDragStart(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":15519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15514":{"this":{"__isSmartRef__":true,"id":15235},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15515}},"15515":{"$super":{"__isSmartRef__":true,"id":15516}},"15516":{"varMapping":{"__isSmartRef__":true,"id":15517},"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":15518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15517":{"obj":{"__isSmartRef__":true,"id":15235},"name":"onDragStart"},"15518":{},"15519":{"timestamp":{"__isSmartRef__":true,"id":15520},"user":"jenslincke","tags":[]},"15520":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15521":{"varMapping":{"__isSmartRef__":true,"id":15522},"source":"function onDragEnd(evt) { \n var pane = this.getPane()\n\n if (!pane) return;\n return pane.onItemDragEnd(this, evt)\n}","funcProperties":{"__isSmartRef__":true,"id":15527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15522":{"this":{"__isSmartRef__":true,"id":15235},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15523}},"15523":{"$super":{"__isSmartRef__":true,"id":15524}},"15524":{"varMapping":{"__isSmartRef__":true,"id":15525},"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":15526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15525":{"obj":{"__isSmartRef__":true,"id":15235},"name":"onDragEnd"},"15526":{},"15527":{"timestamp":{"__isSmartRef__":true,"id":15528},"user":"jenslincke","tags":[]},"15528":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15529":{"varMapping":{"__isSmartRef__":true,"id":15530},"source":"function showItem() { \n this.addMorph(this.slide);\n this.slide.disableEvents();\n this.slide.setPosition(pt(10,10))\n this.slide.setScale(1)\n }","funcProperties":{"__isSmartRef__":true,"id":15531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15530":{"this":{"__isSmartRef__":true,"id":15235}},"15531":{"timestamp":{"__isSmartRef__":true,"id":15532},"user":"jenslincke","tags":[]},"15532":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15533":{"varMapping":{"__isSmartRef__":true,"id":15534},"source":"function getPane() {\n return this.get('PresentationContainerPane')\n}","funcProperties":{"__isSmartRef__":true,"id":15535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15534":{"this":{"__isSmartRef__":true,"id":15235}},"15535":{"timestamp":{"__isSmartRef__":true,"id":15536},"user":"jenslincke","tags":[]},"15536":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"15537":{"submorphs":[{"__isSmartRef__":true,"id":15538}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15953},"derivationIds":[null],"id":"D53A9B92-E412-426A-B16A-47271FF03142","eventHandler":{"__isSmartRef__":true,"id":15954},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isSlideContainer":true,"slide":{"__isSmartRef__":true,"id":15955},"pane":{"__isSmartRef__":true,"id":11730},"name":"PresentationItem for SWASlide41","owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position","distanceToDragEvent"],"prevScroll":[0,0],"showsHalos":false,"behaviorGroups":["Slides"],"_Rotation":0,"_Scale":0.3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16370},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withLayers":["Global.PreventDroppingLayer"],"_Position":"lively.pt(720.0,1220.0)","distanceToDragEvent":"lively.pt(206.3,-12.0)"},"15538":{"submorphs":[{"__isSmartRef__":true,"id":15539},{"__isSmartRef__":true,"id":15545},{"__isSmartRef__":true,"id":15555},{"__isSmartRef__":true,"id":15592},{"__isSmartRef__":true,"id":15624},{"__isSmartRef__":true,"id":15658},{"__isSmartRef__":true,"id":15690},{"__isSmartRef__":true,"id":15728}],"scripts":[],"id":"59E61CD1-9ED7-4708-86EC-2892B7901224","shape":{"__isSmartRef__":true,"id":15948},"__layered_droppingEnabled__":false,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":15949},"draggingEnabled":true,"name":"SWASlide42","partsBinMetaInfo":{"__isSmartRef__":true,"id":15951},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":15952},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","70107993-916C-418F-96DD-2EDA00F22575","A691AE87-DA0D-42D2-906D-28F49049F61C"],"prevScroll":[0,0],"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","eventsAreIgnored":true,"_ClipMode":"visible","grabbingEnabled":false,"_Visible":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent","lastWorldPosition"],"owner":{"__isSmartRef__":true,"id":15537},"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","_Position":"lively.pt(10.0,10.0)","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(1070.0,1220.0)"},"15539":{"submorphs":[],"scripts":[],"id":"DB7A5809-C87F-42AC-A9AF-34A90F3FF33F","shape":{"__isSmartRef__":true,"id":15540},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":15541},"textChunks":[{"__isSmartRef__":true,"id":15542}],"owner":{"__isSmartRef__":true,"id":15538},"charsReplaced":"Solutions Propo","lastFindLoc":30,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15544},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","6771D830-56BA-415F-92F1-5CE3E5D687C3","C9B1DB13-AD06-4936-8DF3-61B56BC68B5D"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"isBeingDragged":false,"previousSelection":[0,0],"priorSelectionRange":[24,24],"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"15540":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"15541":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15542":{"style":{"__isSmartRef__":true,"id":15543},"chunkOwner":{"__isSmartRef__":true,"id":15539},"storedString":"Code Re-use in Similar Objects","_id":"_398","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15543":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15544":{"morph":{"__isSmartRef__":true,"id":15539},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15545":{"submorphs":[],"scripts":[],"id":"A0A9C6EE-B4F2-407D-B618-F076A60DACAC","shape":{"__isSmartRef__":true,"id":15546},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":15547},"textChunks":[{"__isSmartRef__":true,"id":15548},{"__isSmartRef__":true,"id":15550},{"__isSmartRef__":true,"id":15552}],"charsReplaced":"","lastFindLoc":68,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15554},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","56C6D476-47A1-4AD3-9340-9EE470F9BEAE","6734B205-3A4F-4F2F-A339-2CD871E82936"],"previousSelection":[6,6],"owner":{"__isSmartRef__":true,"id":15538},"priorSelectionRange":[5,11],"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(82.4,193.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)","distanceToDragEvent":"lively.pt(497.2,-15.2)"},"15546":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,62.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"15547":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15548":{"style":{"__isSmartRef__":true,"id":15549},"chunkOwner":{"__isSmartRef__":true,"id":15545},"storedString":"","_id":"_815","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15549":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15550":{"style":{"__isSmartRef__":true,"id":15551},"chunkOwner":{"__isSmartRef__":true,"id":15545},"storedString":"■ No object-centric way for sharing behavior between existing, \n live objects","_id":"_399","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15551":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"bold","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15552":{"style":{"__isSmartRef__":true,"id":15553},"chunkOwner":{"__isSmartRef__":true,"id":15545},"storedString":"\n","_id":"_400","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15553":{"textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15554":{"morph":{"__isSmartRef__":true,"id":15545},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15555":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15556},"derivationIds":[null,"6D563661-5D05-4A9E-A00D-8F3AC405D05A"],"id":"F5D43DB9-3CB3-438B-A8B2-7E9E0B56E499","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":15557},{"__isSmartRef__":true,"id":15559},{"__isSmartRef__":true,"id":15561},{"__isSmartRef__":true,"id":15563},{"__isSmartRef__":true,"id":15565},{"__isSmartRef__":true,"id":15567},{"__isSmartRef__":true,"id":15569},{"__isSmartRef__":true,"id":15571},{"__isSmartRef__":true,"id":15573},{"__isSmartRef__":true,"id":15575},{"__isSmartRef__":true,"id":15577},{"__isSmartRef__":true,"id":15579},{"__isSmartRef__":true,"id":15581},{"__isSmartRef__":true,"id":15583},{"__isSmartRef__":true,"id":15585},{"__isSmartRef__":true,"id":15587}],"eventHandler":{"__isSmartRef__":true,"id":15589},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":12,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":15538},"_MaxTextWidth":434.6015904800104,"_MinTextWidth":434.6015904800104,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":15590},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":15591}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":190,"accessibleInInactiveWindow":true,"charsReplaced":"open","lastFindLoc":43,"showsHalos":false,"isBeingDragged":false,"_syntaxHighlightTimeout":24675,"parseErrors":null,"previousSelection":[19,19],"_WordBreak":"break-all","_lastSyntaxHighlightTime":39,"_Rotation":0,"_Scale":1.1073654710215566,"__serializedExpressions__":["_Position","distanceToDragEvent"],"textString":"this.selectedMorphs.forEach(function (ea) {\n ea.addScript(function isObstacle() {\n return false;\n })\n})\n","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(457.3,574.5)","distanceToDragEvent":"lively.pt(298.4,-22.2)"},"15556":{"_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(444.6,111.9)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"15557":{"style":{"__isSmartRef__":true,"id":15558},"chunkOwner":{"__isSmartRef__":true,"id":15555},"_id":"_7049","storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15558":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15559":{"_id":"_7135","style":{"__isSmartRef__":true,"id":15560},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":".selectedMorphs.forEach(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15560":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15561":{"_id":"_7136","style":{"__isSmartRef__":true,"id":15562},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15562":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15563":{"_id":"_7137","style":{"__isSmartRef__":true,"id":15564},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":" (ea) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15564":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15565":{"_id":"_7138","style":{"__isSmartRef__":true,"id":15566},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15566":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15567":{"_id":"_7139","style":{"__isSmartRef__":true,"id":15568},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":"\n ea.addScript(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15568":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15569":{"_id":"_7140","style":{"__isSmartRef__":true,"id":15570},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15570":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15571":{"_id":"_7141","style":{"__isSmartRef__":true,"id":15572},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":" isObstacle() ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15572":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15573":{"_id":"_7142","style":{"__isSmartRef__":true,"id":15574},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15574":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15575":{"_id":"_7143","style":{"__isSmartRef__":true,"id":15576},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15576":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15577":{"_id":"_7144","style":{"__isSmartRef__":true,"id":15578},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15578":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"15579":{"_id":"_7145","style":{"__isSmartRef__":true,"id":15580},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":" false;\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15580":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15581":{"_id":"_7146","style":{"__isSmartRef__":true,"id":15582},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15582":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15583":{"_id":"_7147","style":{"__isSmartRef__":true,"id":15584},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15584":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15585":{"_id":"_7148","style":{"__isSmartRef__":true,"id":15586},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15586":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15587":{"_id":"_7149","style":{"__isSmartRef__":true,"id":15588},"chunkOwner":{"__isSmartRef__":true,"id":15555},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15588":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15589":{"morph":{"__isSmartRef__":true,"id":15555},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15590":{"resizeWidth":true,"resizeHeight":true},"15591":{"sourceObj":{"__isSmartRef__":true,"id":15555},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":15555},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"15592":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15593},"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","8218E964-B707-4FB4-85A9-16028DAD3030"],"id":"F2B85688-1645-4698-8670-B3559A8199F3","eventHandler":{"__isSmartRef__":true,"id":15594},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"LillypadTile","showsHalos":false,"isBeingDragged":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15595},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":15538},"_Rotation":0,"_Scale":1.1140329806748515,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15612},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(399.9,403.4)","distanceToDragEvent":"lively.pt(40.3,-8.2)"},"15593":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/lillypad.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,40.0)","_Padding":"lively.rect(0,0,0,0)"},"15594":{"morph":{"__isSmartRef__":true,"id":15592},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15595":{"partName":"LillypadTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15596},{"__isSmartRef__":true,"id":15598},{"__isSmartRef__":true,"id":15600},{"__isSmartRef__":true,"id":15602},{"__isSmartRef__":true,"id":15604},{"__isSmartRef__":true,"id":15606},{"__isSmartRef__":true,"id":15608},{"__isSmartRef__":true,"id":15610}],"migrationLevel":4,"revisionOnLoad":159352,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15596":{"date":{"__isSmartRef__":true,"id":15597},"author":"tessi","message":"no comment","id":"29FD4B9C-C2E1-4FB6-AACB-7A611A7E3261"},"15597":{"isSerializedDate":true,"string":"Fri May 04 2012 17:03:05 GMT+0200 (Central Europe Daylight Time)"},"15598":{"date":{"__isSmartRef__":true,"id":15599},"author":"timfelgentreff","message":"no comment","id":"80F18506-2049-4010-9016-09FEBBC1AC94"},"15599":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:04 GMT+0200 (Central Europe Daylight Time)"},"15600":{"date":{"__isSmartRef__":true,"id":15601},"author":"timfelgentreff","message":"no comment","id":"7FAE6469-6085-4F1C-82BE-9565567DEB4A"},"15601":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:38:04 GMT+0200 (Central Europe Daylight Time)"},"15602":{"date":{"__isSmartRef__":true,"id":15603},"author":"timfelgentreff","message":"no comment","id":"56DB171B-6F3A-4540-B192-834483274113"},"15603":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:34:03 GMT+0200 (Central Europe Daylight Time)"},"15604":{"date":{"__isSmartRef__":true,"id":15605},"author":"tessi","message":"","id":"0859DE78-85F6-4A96-B28F-EF1FBB00BBC2"},"15605":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:43 GMT+0200 (Central Europe Daylight Time)"},"15606":{"date":{"__isSmartRef__":true,"id":15607},"author":"lauritz","message":"","id":"3A112EF9-C1FB-40A4-B3BD-2886F7A97260"},"15607":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:43 GMT+0200 (Central Europe Daylight Time)"},"15608":{"date":{"__isSmartRef__":true,"id":15609},"author":"timfelgentreff","message":"","id":"EC68CCC4-D23F-44EA-9E3B-3495848929F1"},"15609":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:31:31 GMT+0200 (Central Europe Daylight Time)"},"15610":{"date":{"__isSmartRef__":true,"id":15611},"author":"tessi","message":"","id":"96CFC2C8-59E4-46A1-AC4B-11777D05A46F"},"15611":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:41:59 GMT+0200 (Central Europe Daylight Time)"},"15612":{"dropOn":{"__isSmartRef__":true,"id":15613},"shallowCopy":{"__isSmartRef__":true,"id":15620}},"15613":{"varMapping":{"__isSmartRef__":true,"id":15614},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15614":{"this":{"__isSmartRef__":true,"id":15592},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15615}},"15615":{"$super":{"__isSmartRef__":true,"id":15616}},"15616":{"varMapping":{"__isSmartRef__":true,"id":15617},"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":15618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15617":{"obj":{"__isSmartRef__":true,"id":15592},"name":"dropOn"},"15618":{},"15619":{},"15620":{"varMapping":{"__isSmartRef__":true,"id":15621},"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":15622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15621":{"this":{"__isSmartRef__":true,"id":15592}},"15622":{"timestamp":{"__isSmartRef__":true,"id":15623},"user":"timfelgentreff","tags":[]},"15623":{"isSerializedDate":true,"string":"Thu May 03 2012 13:40:40 GMT+0200 (Central Europe Daylight Time)"},"15624":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15625},"derivationIds":[null,"0CA4E828-DD2A-4E84-A951-7DBD4A301B5D","D7D5271D-0DAD-4562-98E3-508F5831DF2F","20FA93FF-2E09-457F-814D-8F034D6B0E2F","D309FD7F-5995-414C-9466-F2D1246912B6","1F5A4C62-84D4-480B-A536-D26762C7BFDE","CCE81AA2-110F-441F-8CDB-F0B70151F766","1863761C-6E6D-4B81-B7A3-ECC0A33696A3","79FD514C-99F9-478C-B4AE-2F51FABD97FE","27D4A26F-12D7-46E3-9294-677C290712D4","679D234F-E0F4-4B5C-8811-793A615C14A5","A6995642-B49B-459E-A7F4-1CA99CB0A491","4FBCAF58-AA26-4461-A8A9-0386E438D7F1","2F44C555-7009-490E-ACFA-B6A68F62C06A"],"id":"1FFDA575-6285-4427-9CD6-38C5F5AFB64E","eventHandler":{"__isSmartRef__":true,"id":15626},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"LavaTile","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15627},"moved":true,"isObstacle":true,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":15538},"_Rotation":0,"_Scale":1.1140329806748515,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15646},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(341.7,470.5)","distanceToDragEvent":"lively.pt(34.8,-14.8)"},"15625":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/lava.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,40.0)","_Padding":"lively.rect(0,0,0,0)"},"15626":{"morph":{"__isSmartRef__":true,"id":15624},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15627":{"partName":"LavaTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15628},{"__isSmartRef__":true,"id":15630},{"__isSmartRef__":true,"id":15632},{"__isSmartRef__":true,"id":15634},{"__isSmartRef__":true,"id":15636},{"__isSmartRef__":true,"id":15638},{"__isSmartRef__":true,"id":15640},{"__isSmartRef__":true,"id":15642},{"__isSmartRef__":true,"id":15644}],"migrationLevel":4,"revisionOnLoad":159354,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15628":{"date":{"__isSmartRef__":true,"id":15629},"author":"tessi","message":"no comment","id":"88062A77-A216-4157-B7EB-FDAB2D0E2FBC"},"15629":{"isSerializedDate":true,"string":"Fri May 04 2012 17:03:12 GMT+0200 (Central Europe Daylight Time)"},"15630":{"date":{"__isSmartRef__":true,"id":15631},"author":"timfelgentreff","message":"no comment","id":"216F150F-2DAA-4F72-8F4C-7359F2ADD356"},"15631":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:24 GMT+0200 (Central Europe Daylight Time)"},"15632":{"date":{"__isSmartRef__":true,"id":15633},"author":"timfelgentreff","message":"no comment","id":"E731D1A2-7EEE-4BBE-9B12-B141AE02B7D1"},"15633":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:48 GMT+0200 (Central Europe Daylight Time)"},"15634":{"date":{"__isSmartRef__":true,"id":15635},"author":"timfelgentreff","message":"no comment","id":"3A732801-0F03-4191-87FB-4C0A0C2BE29E"},"15635":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:50 GMT+0200 (Central Europe Daylight Time)"},"15636":{"date":{"__isSmartRef__":true,"id":15637},"author":"timfelgentreff","message":"no comment","id":"EE7E1C1A-2783-4DFF-8537-98BCB4FD59AC"},"15637":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:48 GMT+0200 (Central Europe Daylight Time)"},"15638":{"date":{"__isSmartRef__":true,"id":15639},"author":"tessi","message":"","id":"848E820C-2589-48C7-B52C-2C4FBB8D0567"},"15639":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:15:50 GMT+0200 (Central Europe Daylight Time)"},"15640":{"date":{"__isSmartRef__":true,"id":15641},"author":"lauritz","message":"","id":"5779A1E4-F39E-421E-A9E9-014B7DFC8A4E"},"15641":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:36 GMT+0200 (Central Europe Daylight Time)"},"15642":{"date":{"__isSmartRef__":true,"id":15643},"author":"timfelgentreff","message":"","id":"1EBE70B7-E9F0-49A3-9346-31D2D5401759"},"15643":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:30:50 GMT+0200 (Central Europe Daylight Time)"},"15644":{"date":{"__isSmartRef__":true,"id":15645},"author":"tessi","message":"","id":"9EB4E294-31AE-4983-9FD1-83B22BF0B2CD"},"15645":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:41:36 GMT+0200 (Central Europe Daylight Time)"},"15646":{"dropOn":{"__isSmartRef__":true,"id":15647},"shallowCopy":{"__isSmartRef__":true,"id":15654}},"15647":{"varMapping":{"__isSmartRef__":true,"id":15648},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15648":{"this":{"__isSmartRef__":true,"id":15624},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15649}},"15649":{"$super":{"__isSmartRef__":true,"id":15650}},"15650":{"varMapping":{"__isSmartRef__":true,"id":15651},"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":15652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15651":{"obj":{"__isSmartRef__":true,"id":15624},"name":"dropOn"},"15652":{},"15653":{},"15654":{"varMapping":{"__isSmartRef__":true,"id":15655},"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":15656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15655":{"this":{"__isSmartRef__":true,"id":15624}},"15656":{"timestamp":{"__isSmartRef__":true,"id":15657},"user":"timfelgentreff","tags":[]},"15657":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:17 GMT+0200 (Central Europe Daylight Time)"},"15658":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15659},"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","84642CA8-85EE-4976-A1E0-0A6581CD3176"],"id":"3D6A98CB-A150-4587-B67B-7D76600CB3B0","eventHandler":{"__isSmartRef__":true,"id":15660},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"FlowerGrassTile","showsHalos":false,"isBeingDragged":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15661},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":15538},"_Rotation":0,"_Scale":1.1118060287464824,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15678},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(414.1,465.3)","distanceToDragEvent":"lively.pt(37.4,-18.1)"},"15659":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,40.0)","_Padding":"lively.rect(0,0,0,0)"},"15660":{"morph":{"__isSmartRef__":true,"id":15658},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15661":{"partName":"FlowerGrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15662},{"__isSmartRef__":true,"id":15664},{"__isSmartRef__":true,"id":15666},{"__isSmartRef__":true,"id":15668},{"__isSmartRef__":true,"id":15670},{"__isSmartRef__":true,"id":15672},{"__isSmartRef__":true,"id":15674},{"__isSmartRef__":true,"id":15676}],"migrationLevel":4,"revisionOnLoad":159345,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15662":{"date":{"__isSmartRef__":true,"id":15663},"author":"tessi","message":"no comment","id":"4BC7DDF9-89A2-4A2A-8A37-97CECF82DF21"},"15663":{"isSerializedDate":true,"string":"Fri May 04 2012 17:02:08 GMT+0200 (Central Europe Daylight Time)"},"15664":{"date":{"__isSmartRef__":true,"id":15665},"author":"timfelgentreff","message":"no comment","id":"02E3CCCD-E630-40A9-BB8B-8D4F60458311"},"15665":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:42 GMT+0200 (Central Europe Daylight Time)"},"15666":{"date":{"__isSmartRef__":true,"id":15667},"author":"timfelgentreff","message":"no comment","id":"89D17F78-5164-40A2-8D18-6864377CAE04"},"15667":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:16 GMT+0200 (Central Europe Daylight Time)"},"15668":{"date":{"__isSmartRef__":true,"id":15669},"author":"timfelgentreff","message":"no comment","id":"427F616A-557E-48DA-B2A3-9D312846BFA8"},"15669":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:06 GMT+0200 (Central Europe Daylight Time)"},"15670":{"date":{"__isSmartRef__":true,"id":15671},"author":"tessi","message":"","id":"43431C78-F979-4A3D-B949-CFB4CD123812"},"15671":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:35 GMT+0200 (Central Europe Daylight Time)"},"15672":{"date":{"__isSmartRef__":true,"id":15673},"author":"timfelgentreff","message":"","id":"AFE5FD8B-7758-45D2-B21C-14607C3F0D5E"},"15673":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:31:45 GMT+0200 (Central Europe Daylight Time)"},"15674":{"date":{"__isSmartRef__":true,"id":15675},"author":"tessi","message":"","id":"D9AF3878-EAC4-433D-8258-DC80517AA6B1"},"15675":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:04 GMT+0200 (Central Europe Daylight Time)"},"15676":{"date":{"__isSmartRef__":true,"id":15677},"author":"tessi","message":"","id":"132E4BD9-EC26-4CCC-8CD5-D86C60CF385C"},"15677":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:47 GMT+0200 (Central Europe Daylight Time)"},"15678":{"dropOn":{"__isSmartRef__":true,"id":15679},"shallowCopy":{"__isSmartRef__":true,"id":15686}},"15679":{"varMapping":{"__isSmartRef__":true,"id":15680},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15680":{"this":{"__isSmartRef__":true,"id":15658},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15681}},"15681":{"$super":{"__isSmartRef__":true,"id":15682}},"15682":{"varMapping":{"__isSmartRef__":true,"id":15683},"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":15684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15683":{"obj":{"__isSmartRef__":true,"id":15658},"name":"dropOn"},"15684":{},"15685":{},"15686":{"varMapping":{"__isSmartRef__":true,"id":15687},"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":15688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15687":{"this":{"__isSmartRef__":true,"id":15658}},"15688":{"timestamp":{"__isSmartRef__":true,"id":15689},"user":"timfelgentreff","tags":[]},"15689":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:47 GMT+0200 (Central Europe Daylight Time)"},"15690":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15691},"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","7CF4D6DD-3F6B-42EE-9203-89E739DCAA6F"],"id":"BE19C520-4021-4286-BE73-58AEB86529CA","eventHandler":{"__isSmartRef__":true,"id":15692},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"GrassTile","showsHalos":false,"isBeingDragged":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15693},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":15538},"_Rotation":0,"_Scale":1.1140329806748515,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15716},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(331.0,410.1)","distanceToDragEvent":"lively.pt(34.5,-10.2)"},"15691":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,40.0)","_Padding":"lively.rect(0,0,0,0)"},"15692":{"morph":{"__isSmartRef__":true,"id":15690},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15693":{"partName":"GrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15694},{"__isSmartRef__":true,"id":15696},{"__isSmartRef__":true,"id":15698},{"__isSmartRef__":true,"id":15700},{"__isSmartRef__":true,"id":15702},{"__isSmartRef__":true,"id":15704},{"__isSmartRef__":true,"id":15706},{"__isSmartRef__":true,"id":15708},{"__isSmartRef__":true,"id":15710},{"__isSmartRef__":true,"id":15712},{"__isSmartRef__":true,"id":15714}],"migrationLevel":4,"revisionOnLoad":159102,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15694":{"date":{"__isSmartRef__":true,"id":15695},"author":"timfelgentreff","message":"no comment","id":"1BA41EB4-3E79-44BA-9F92-9D7A5EED3AE5"},"15695":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:50 GMT+0200 (Central Europe Daylight Time)"},"15696":{"date":{"__isSmartRef__":true,"id":15697},"author":"timfelgentreff","message":"no comment","id":"46CEDCB2-B98B-446F-82EF-A2E5C82104E8"},"15697":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:32:56 GMT+0200 (Central Europe Daylight Time)"},"15698":{"date":{"__isSmartRef__":true,"id":15699},"author":"timfelgentreff","message":"no comment","id":"2A16772C-A949-41B4-81E6-729009D52750"},"15699":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:31 GMT+0200 (Central Europe Daylight Time)"},"15700":{"date":{"__isSmartRef__":true,"id":15701},"author":"timfelgentreff","message":"no comment","id":"4F5D5D9C-6A36-40E0-A7B5-0EC147FC3CCB"},"15701":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:38 GMT+0200 (Central Europe Daylight Time)"},"15702":{"date":{"__isSmartRef__":true,"id":15703},"author":"timfelgentreff","message":"no comment","id":"89243BFB-B9D4-46C9-B626-FA908A74640F"},"15703":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:21 GMT+0200 (Central Europe Daylight Time)"},"15704":{"date":{"__isSmartRef__":true,"id":15705},"author":"tessi","message":"","id":"3FE7CF26-4ECF-4270-865D-14D92EF17F15"},"15705":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:12:42 GMT+0200 (Central Europe Daylight Time)"},"15706":{"date":{"__isSmartRef__":true,"id":15707},"author":"lauritz","message":"","id":"20A6EE92-FFDB-4B50-AF32-430C3263E33A"},"15707":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:30 GMT+0200 (Central Europe Daylight Time)"},"15708":{"date":{"__isSmartRef__":true,"id":15709},"author":"timfelgentreff","message":"","id":"BB95B383-D653-4EC1-B02D-BD13262D13DD"},"15709":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:30:37 GMT+0200 (Central Europe Daylight Time)"},"15710":{"date":{"__isSmartRef__":true,"id":15711},"author":"tessi","message":"","id":"C9AC5438-390B-4092-A840-5DA53EA949A2"},"15711":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:34:40 GMT+0200 (Central Europe Daylight Time)"},"15712":{"date":{"__isSmartRef__":true,"id":15713},"author":"timfelgentreff","message":"no comment","id":"6F09CB47-AE1A-43B5-9092-C226FC943D70"},"15713":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:53:15 GMT+0200 (Central Europe Daylight Time)"},"15714":{"date":{"__isSmartRef__":true,"id":15715},"author":"timfelgentreff","message":"no comment","id":"AB07369F-96D1-4872-ACD6-189F95A98CF0"},"15715":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:49 GMT+0200 (Central Europe Daylight Time)"},"15716":{"dropOn":{"__isSmartRef__":true,"id":15717},"shallowCopy":{"__isSmartRef__":true,"id":15724}},"15717":{"varMapping":{"__isSmartRef__":true,"id":15718},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15718":{"this":{"__isSmartRef__":true,"id":15690},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15719}},"15719":{"$super":{"__isSmartRef__":true,"id":15720}},"15720":{"varMapping":{"__isSmartRef__":true,"id":15721},"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":15722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15721":{"obj":{"__isSmartRef__":true,"id":15690},"name":"dropOn"},"15722":{},"15723":{},"15724":{"varMapping":{"__isSmartRef__":true,"id":15725},"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":15726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15725":{"this":{"__isSmartRef__":true,"id":15690}},"15726":{"timestamp":{"__isSmartRef__":true,"id":15727},"user":"timfelgentreff","tags":[]},"15727":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:06 GMT+0200 (Central Europe Daylight Time)"},"15728":{"submorphs":[],"scripts":[],"id":"89D52BB3-6EE6-4F6B-ADAA-78B33474D2C0","shape":{"__isSmartRef__":true,"id":15729},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Tile","partsBinMetaInfo":{"__isSmartRef__":true,"id":15730},"eventHandler":{"__isSmartRef__":true,"id":15833},"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","909D38E7-75A5-4423-B3F1-E8FCDACB62DB"],"partTests":{"__isSmartRef__":true,"id":15834},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","__obstacles":[],"row":5,"column":1,"terrain":null,"grabbingEnabled":false,"prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":15538},"_Rotation":0,"_Scale":1.1207406357779914,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15839},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(737.0,402.8)","distanceToDragEvent":"lively.pt(35.5,-15.8)"},"15729":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(204,0,0)","_Padding":"lively.rect(0,0,0,0)"},"15730":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","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":15731},{"__isSmartRef__":true,"id":15733},{"__isSmartRef__":true,"id":15735},{"__isSmartRef__":true,"id":15737},{"__isSmartRef__":true,"id":15739},{"__isSmartRef__":true,"id":15741},{"__isSmartRef__":true,"id":15743},{"__isSmartRef__":true,"id":15745},{"__isSmartRef__":true,"id":15747},{"__isSmartRef__":true,"id":15749},{"__isSmartRef__":true,"id":15751},{"__isSmartRef__":true,"id":15753},{"__isSmartRef__":true,"id":15755},{"__isSmartRef__":true,"id":15757},{"__isSmartRef__":true,"id":15759},{"__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},{"__isSmartRef__":true,"id":15775},{"__isSmartRef__":true,"id":15777},{"__isSmartRef__":true,"id":15779},{"__isSmartRef__":true,"id":15781},{"__isSmartRef__":true,"id":15783},{"__isSmartRef__":true,"id":15785},{"__isSmartRef__":true,"id":15787},{"__isSmartRef__":true,"id":15789},{"__isSmartRef__":true,"id":15791},{"__isSmartRef__":true,"id":15793},{"__isSmartRef__":true,"id":15795},{"__isSmartRef__":true,"id":15797},{"__isSmartRef__":true,"id":15799},{"__isSmartRef__":true,"id":15801},{"__isSmartRef__":true,"id":15803},{"__isSmartRef__":true,"id":15805},{"__isSmartRef__":true,"id":15807},{"__isSmartRef__":true,"id":15809},{"__isSmartRef__":true,"id":15811},{"__isSmartRef__":true,"id":15813},{"__isSmartRef__":true,"id":15815},{"__isSmartRef__":true,"id":15817},{"__isSmartRef__":true,"id":15819},{"__isSmartRef__":true,"id":15821},{"__isSmartRef__":true,"id":15823},{"__isSmartRef__":true,"id":15825},{"__isSmartRef__":true,"id":15827},{"__isSmartRef__":true,"id":15829},{"__isSmartRef__":true,"id":15831}],"revisionOnLoad":159891,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15731":{"date":{"__isSmartRef__":true,"id":15732},"author":"tessi","message":"no comment","id":"928E1DC4-09B5-46D7-A245-48E332175C68"},"15732":{"isSerializedDate":true,"string":"Fri May 04 2012 17:01:42 GMT+0200 (Central Europe Daylight Time)"},"15733":{"date":{"__isSmartRef__":true,"id":15734},"author":"tessi","message":"normal border color is transparent","id":"94D5AA98-D1D9-4C6F-BED3-828305C3F390"},"15734":{"isSerializedDate":true,"string":"Thu May 03 2012 15:25:32 GMT+0200 (Central Europe Daylight Time)"},"15735":{"date":{"__isSmartRef__":true,"id":15736},"author":"timfelgentreff","message":"add a neighboursReachableFromHere function, so we can return only neighbours that are reachable to A*","id":"646448AF-6B6F-4D4E-900B-2DC7B927ACE8"},"15736":{"isSerializedDate":true,"string":"Thu May 03 2012 13:29:50 GMT+0200 (Central Europe Daylight Time)"},"15737":{"date":{"__isSmartRef__":true,"id":15738},"author":"tessi","message":"fix neighbours calculation","id":"F2AE41B4-A670-4277-B7F3-5BCC20D74ECE"},"15738":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:48 GMT+0200 (Central Europe Daylight Time)"},"15739":{"date":{"__isSmartRef__":true,"id":15740},"author":"timfelgentreff","message":"revert caching","id":"03257D32-EA99-4EA6-8CFA-D6C55E6A4D96"},"15740":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:20:05 GMT+0200 (Central Europe Daylight Time)"},"15741":{"date":{"__isSmartRef__":true,"id":15742},"author":"lauritz","message":"no comment","id":"2A0ACEC2-2DDA-4061-9ECE-8D49CCD6C0A0"},"15742":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:00:07 GMT+0200 (Central Europe Daylight Time)"},"15743":{"date":{"__isSmartRef__":true,"id":15744},"author":"tessi","message":"added stub method for getting characters standing on the tile","id":"2DD011DC-7ABF-4928-A2EE-FDA603BCB307"},"15744":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:22:23 GMT+0200 (Central Europe Daylight Time)"},"15745":{"date":{"__isSmartRef__":true,"id":15746},"author":"timfelgentreff","message":"copy properties,too, so we can publish","id":"409A8B29-1CB7-4C30-B420-7F0FEB4489EA"},"15746":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:48:47 GMT+0200 (Central Europe Daylight Time)"},"15747":{"date":{"__isSmartRef__":true,"id":15748},"author":"timfelgentreff","message":"avoid setting props in shallowCopy","id":"0102BAF0-8471-4805-98CB-FFA285A96B15"},"15748":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:45:14 GMT+0200 (Central Europe Daylight Time)"},"15749":{"date":{"__isSmartRef__":true,"id":15750},"author":"tessi","message":"added reset() method. use game() and map() instead of get() calls","id":"5B2AF6B7-3DC9-4EE1-A616-6510338BA091"},"15750":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:18:16 GMT+0200 (Central Europe Daylight Time)"},"15751":{"date":{"__isSmartRef__":true,"id":15752},"author":"timfelgentreff","message":"no comment","id":"957E9210-4394-452A-9291-BD0E8FA736BF"},"15752":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:28:00 GMT+0200 (Central Europe Daylight Time)"},"15753":{"date":{"__isSmartRef__":true,"id":15754},"author":"timfelgentreff","message":"no comment","id":"6BBA00B9-6D11-4D9D-B6E9-95FE7CC915CD"},"15754":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:20:14 GMT+0200 (Central Europe Daylight Time)"},"15755":{"date":{"__isSmartRef__":true,"id":15756},"author":"tessi","message":"revert timfels last commit (tile was overwritten with thing)","id":"27A8A743-D064-44C6-948E-8E3D5118790D"},"15756":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:34:17 GMT+0200 (Central Europe Daylight Time)"},"15757":{"date":{"__isSmartRef__":true,"id":15758},"author":"timfelgentreff","message":"","id":"F01F7BC6-E59F-4B63-8A3D-10C3AC3E34FD"},"15758":{"isSerializedDate":true,"string":"Fri Apr 20 2012 08:22:08 GMT+0200 (Central Europe Daylight Time)"},"15759":{"date":{"__isSmartRef__":true,"id":15760},"author":"timfelgentreff","message":"","id":"B5D9BC0C-15F0-4AE7-884B-48515F6A030E"},"15760":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:08:19 GMT+0200 (Central Europe Daylight Time)"},"15761":{"date":{"__isSmartRef__":true,"id":15762},"author":"timfelgentreff","message":"","id":"07EE540F-D786-49CC-8DD0-56F6B3AC6716"},"15762":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:43:41 GMT+0200 (Central Europe Daylight Time)"},"15763":{"date":{"__isSmartRef__":true,"id":15764},"author":"timfelgentreff","message":"","id":"4978F7BB-7FF5-47C1-8A55-6CAB03479B28"},"15764":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:41:12 GMT+0200 (Central Europe Daylight Time)"},"15765":{"date":{"__isSmartRef__":true,"id":15766},"author":"timfelgentreff","message":"","id":"18365ED6-1BC8-43AD-ADC8-2B0C8005B784"},"15766":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:23:38 GMT+0200 (Central Europe Daylight Time)"},"15767":{"date":{"__isSmartRef__":true,"id":15768},"author":"lauritz","message":"","id":"CFD35308-806E-4804-8706-15DA1CEC5743"},"15768":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:49:16 GMT+0200 (Central Europe Daylight Time)"},"15769":{"date":{"__isSmartRef__":true,"id":15770},"author":"timfelgentreff","message":"","id":"DE0AC226-458D-416E-A42C-BAA848650C4C"},"15770":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:28:14 GMT+0200 (Central Europe Daylight Time)"},"15771":{"date":{"__isSmartRef__":true,"id":15772},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"15772":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"15773":{"date":{"__isSmartRef__":true,"id":15774},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"15774":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"15775":{"date":{"__isSmartRef__":true,"id":15776},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"15776":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"15777":{"date":{"__isSmartRef__":true,"id":15778},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"15778":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"15779":{"date":{"__isSmartRef__":true,"id":15780},"author":"timfelgentreff","message":"","id":"0672C6C8-D032-495B-B9EE-E41F194C86DE"},"15780":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:19:15 GMT+0200 (Central Europe Daylight Time)"},"15781":{"date":{"__isSmartRef__":true,"id":15782},"author":"timfelgentreff","message":"","id":"E1AA7A8A-D3C5-4263-9A1E-91C13F532ED6"},"15782":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:55 GMT+0200 (Central Europe Daylight Time)"},"15783":{"date":{"__isSmartRef__":true,"id":15784},"author":"timfelgentreff","message":"","id":"563A8831-9CE6-49D1-B87D-453B761FB751"},"15784":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:53 GMT+0200 (Central Europe Daylight Time)"},"15785":{"date":{"__isSmartRef__":true,"id":15786},"author":"timfelgentreff","message":"","id":"F4CC9F23-A50B-4206-A549-A610CC9C69AC"},"15786":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:11:38 GMT+0200 (Central Europe Daylight Time)"},"15787":{"date":{"__isSmartRef__":true,"id":15788},"author":"timfelgentreff","message":"","id":"24121E2C-3B59-48EF-8026-290C8D296496"},"15788":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:02:53 GMT+0200 (Central Europe Daylight Time)"},"15789":{"date":{"__isSmartRef__":true,"id":15790},"author":"timfelgentreff","message":"","id":"6D9186F6-64FC-48E0-95AF-27E462A13E1D"},"15790":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:55:04 GMT+0200 (Central Europe Daylight Time)"},"15791":{"date":{"__isSmartRef__":true,"id":15792},"author":"timfelgentreff","message":"","id":"DF45FC66-1C49-447D-914F-A905DA0AECB2"},"15792":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:47 GMT+0200 (Central Europe Daylight Time)"},"15793":{"date":{"__isSmartRef__":true,"id":15794},"author":"timfelgentreff","message":"","id":"712D65D3-A68A-47B9-AFDC-B20E826217DB"},"15794":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:00:26 GMT+0200 (Central Europe Daylight Time)"},"15795":{"date":{"__isSmartRef__":true,"id":15796},"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"},"15796":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:29:15 GMT+0200 (Central Europe Daylight Time)"},"15797":{"date":{"__isSmartRef__":true,"id":15798},"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"},"15798":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:14 GMT+0200 (Central Europe Daylight Time)"},"15799":{"date":{"__isSmartRef__":true,"id":15800},"author":"timfelgentreff","message":"things support","id":"DD13E7D3-6948-4B69-947A-24A2B084646B"},"15800":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:58 GMT+0200 (Central Europe Daylight Time)"},"15801":{"date":{"__isSmartRef__":true,"id":15802},"author":"timfelgentreff","message":"fix adding obstacles","id":"891954C6-3DC3-41AC-8038-4E7C028B0147"},"15802":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:37 GMT+0200 (Central Europe Daylight Time)"},"15803":{"date":{"__isSmartRef__":true,"id":15804},"author":"timfelgentreff","message":"no comment","id":"4571845C-4F67-4DD6-954F-B93B98F8DDF3"},"15804":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:35:25 GMT+0200 (Central Europe Daylight Time)"},"15805":{"date":{"__isSmartRef__":true,"id":15806},"author":"timfelgentreff","message":"show obstacle state in dev style","id":"9FD0FE89-0EE1-4499-B055-D2C077CCEACA"},"15806":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:37:34 GMT+0200 (Central Europe Daylight Time)"},"15807":{"date":{"__isSmartRef__":true,"id":15808},"author":"timfelgentreff","message":"no comment","id":"181F2453-F14A-4CC7-BFF0-910480CD4B1F"},"15808":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:23 GMT+0200 (Central Europe Daylight Time)"},"15809":{"date":{"__isSmartRef__":true,"id":15810},"author":"timfelgentreff","message":"add shallowCopy","id":"86DCAE73-A5D2-470F-BF0E-77E914236CEA"},"15810":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:10:22 GMT+0200 (Central Europe Daylight Time)"},"15811":{"date":{"__isSmartRef__":true,"id":15812},"author":"timfelgentreff","message":"fix shallowCopy","id":"5DDF2C7F-DEE5-4161-A515-B5831A00DCB3"},"15812":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:13:27 GMT+0200 (Central Europe Daylight Time)"},"15813":{"date":{"__isSmartRef__":true,"id":15814},"author":"timfelgentreff","message":"uncomment return","id":"21656693-2A83-4D04-9612-55622B41EB18"},"15814":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:46:38 GMT+0200 (Central Europe Daylight Time)"},"15815":{"date":{"__isSmartRef__":true,"id":15816},"author":"timfelgentreff","message":"revert last commit","id":"DEE21763-B63C-41AF-917B-4481E54000AF"},"15816":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:53:55 GMT+0200 (Central Europe Daylight Time)"},"15817":{"date":{"__isSmartRef__":true,"id":15818},"author":"lauritz","message":"","id":"AC05F3B3-162F-4A75-A601-EA5F744AC530"},"15818":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:25:17 GMT+0200 (Central Europe Daylight Time)"},"15819":{"date":{"__isSmartRef__":true,"id":15820},"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"},"15820":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:58 GMT+0200 (Central Europe Daylight Time)"},"15821":{"date":{"__isSmartRef__":true,"id":15822},"author":"tessi","message":"let characters register themself when enter/leave the tile","id":"9095AE1D-1FE5-44A4-9A4E-C9C39B1C4F40"},"15822":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:48 GMT+0200 (Central Europe Daylight Time)"},"15823":{"date":{"__isSmartRef__":true,"id":15824},"author":"tessi","message":"cache Neighbours","id":"5AE79688-A888-4376-8A8F-63679330D24C"},"15824":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:19 GMT+0200 (Central Europe Daylight Time)"},"15825":{"date":{"__isSmartRef__":true,"id":15826},"author":"tessi","message":"","id":"CDFC653A-73C4-4FEF-BF2F-E515698C9D49"},"15826":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:40:27 GMT+0200 (Central Europe Daylight Time)"},"15827":{"date":{"__isSmartRef__":true,"id":15828},"author":"timfelgentreff","message":"no comment","id":"3D7FD71F-6695-46ED-915B-DACB2BDD66EC"},"15828":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:11 GMT+0200 (Central Europe Daylight Time)"},"15829":{"date":{"__isSmartRef__":true,"id":15830},"author":"tessi","message":"cannot set color to null","id":"A33818D9-5418-451A-86B6-17C0E01E3D95"},"15830":{"isSerializedDate":true,"string":"Thu May 03 2012 15:20:35 GMT+0200 (Central Europe Daylight Time)"},"15831":{"date":{"__isSmartRef__":true,"id":15832},"author":"lauritz","message":"difference between dev and normal style in border-width","id":"3001D4D8-C44F-49E0-8101-5726A7ACFD8F"},"15832":{"isSerializedDate":true,"string":"Mon May 07 2012 18:54:58 GMT+0200 (Central Europe Daylight Time)"},"15833":{"morph":{"__isSmartRef__":true,"id":15728},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15834":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15835}},"15835":{"test01IsMorph":{"__isSmartRef__":true,"id":15836}},"15836":{"varMapping":{"__isSmartRef__":true,"id":15837},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":15838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15837":{"this":{"__isSmartRef__":true,"id":15834}},"15838":{},"15839":{"setDevStyle":{"__isSmartRef__":true,"id":15840},"setNormalStyle":{"__isSmartRef__":true,"id":15844},"tileSize":{"__isSmartRef__":true,"id":15848},"become":{"__isSmartRef__":true,"id":15852},"onMouseDown":{"__isSmartRef__":true,"id":15856},"setGridPosition":{"__isSmartRef__":true,"id":15864},"toolbox":{"__isSmartRef__":true,"id":15868},"distanceTo":{"__isSmartRef__":true,"id":15872},"tileWasDropped":{"__isSmartRef__":true,"id":15876},"isObstacle":{"__isSmartRef__":true,"id":15880},"neighboursInDirection":{"__isSmartRef__":true,"id":15884},"neighbours":{"__isSmartRef__":true,"id":15888},"zIndex":{"__isSmartRef__":true,"id":15892},"obstacles":{"__isSmartRef__":true,"id":15896},"addObstacle":{"__isSmartRef__":true,"id":15900},"removeObstacle":{"__isSmartRef__":true,"id":15904},"isTile":{"__isSmartRef__":true,"id":15908},"neighbourAt":{"__isSmartRef__":true,"id":15912},"map":{"__isSmartRef__":true,"id":15916},"game":{"__isSmartRef__":true,"id":15920},"reset":{"__isSmartRef__":true,"id":15924},"shallowCopy":{"__isSmartRef__":true,"id":15928},"characters":{"__isSmartRef__":true,"id":15932},"enterTile":{"__isSmartRef__":true,"id":15936},"leaveTile":{"__isSmartRef__":true,"id":15940},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":15944}},"15840":{"varMapping":{"__isSmartRef__":true,"id":15841},"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":15842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15841":{"this":{"__isSmartRef__":true,"id":15728}},"15842":{"timestamp":{"__isSmartRef__":true,"id":15843},"user":"lauritz","tags":[]},"15843":{"isSerializedDate":true,"string":"Mon May 07 2012 18:57:47 GMT+0200 (Central Europe Daylight Time)"},"15844":{"varMapping":{"__isSmartRef__":true,"id":15845},"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":15846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15845":{"this":{"__isSmartRef__":true,"id":15728}},"15846":{"timestamp":{"__isSmartRef__":true,"id":15847},"user":"lauritz","tags":[]},"15847":{"isSerializedDate":true,"string":"Mon May 07 2012 18:58:21 GMT+0200 (Central Europe Daylight Time)"},"15848":{"varMapping":{"__isSmartRef__":true,"id":15849},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":15850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15849":{"this":{"__isSmartRef__":true,"id":15728}},"15850":{"timestamp":{"__isSmartRef__":true,"id":15851},"user":"tessi","tags":[]},"15851":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:04:53 GMT+0200 (Central Europe Daylight Time)"},"15852":{"varMapping":{"__isSmartRef__":true,"id":15853},"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":15854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15853":{"this":{"__isSmartRef__":true,"id":15728}},"15854":{"timestamp":{"__isSmartRef__":true,"id":15855},"user":"lauritz","tags":[]},"15855":{"isSerializedDate":true,"string":"Fri May 04 2012 13:31:11 GMT+0200 (Central Europe Daylight Time)"},"15856":{"varMapping":{"__isSmartRef__":true,"id":15857},"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":15862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15857":{"this":{"__isSmartRef__":true,"id":15728},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15858}},"15858":{"$super":{"__isSmartRef__":true,"id":15859}},"15859":{"varMapping":{"__isSmartRef__":true,"id":15860},"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":15861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15860":{"obj":{"__isSmartRef__":true,"id":15728},"name":"onMouseDown"},"15861":{},"15862":{"timestamp":{"__isSmartRef__":true,"id":15863},"user":"timfelgentreff","tags":[]},"15863":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:14 GMT+0200 (Central Europe Daylight Time)"},"15864":{"varMapping":{"__isSmartRef__":true,"id":15865},"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":15866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15865":{"this":{"__isSmartRef__":true,"id":15728}},"15866":{"timestamp":{"__isSmartRef__":true,"id":15867},"user":"timfelgentreff","tags":[]},"15867":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:23:15 GMT+0200 (Central Europe Daylight Time)"},"15868":{"varMapping":{"__isSmartRef__":true,"id":15869},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":15870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15869":{"this":{"__isSmartRef__":true,"id":15728}},"15870":{"timestamp":{"__isSmartRef__":true,"id":15871},"user":"tessi","tags":[]},"15871":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:15:20 GMT+0200 (Central Europe Daylight Time)"},"15872":{"varMapping":{"__isSmartRef__":true,"id":15873},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":15874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15873":{"this":{"__isSmartRef__":true,"id":15728}},"15874":{"timestamp":{"__isSmartRef__":true,"id":15875},"user":"timfelgentreff","tags":[]},"15875":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:02 GMT+0200 (Central Europe Daylight Time)"},"15876":{"varMapping":{"__isSmartRef__":true,"id":15877},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":15878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15877":{"this":{"__isSmartRef__":true,"id":15728}},"15878":{"timestamp":{"__isSmartRef__":true,"id":15879},"user":"lauritz","tags":[]},"15879":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:52:54 GMT+0200 (Central Europe Daylight Time)"},"15880":{"varMapping":{"__isSmartRef__":true,"id":15881},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":15882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15881":{"this":{"__isSmartRef__":true,"id":15728}},"15882":{"timestamp":{"__isSmartRef__":true,"id":15883},"user":"timfelgentreff","tags":[]},"15883":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:19:43 GMT+0200 (Central Europe Daylight Time)"},"15884":{"varMapping":{"__isSmartRef__":true,"id":15885},"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":15886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15885":{"this":{"__isSmartRef__":true,"id":15728}},"15886":{"timestamp":{"__isSmartRef__":true,"id":15887},"user":"tessi","tags":[]},"15887":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:24 GMT+0200 (Central Europe Daylight Time)"},"15888":{"varMapping":{"__isSmartRef__":true,"id":15889},"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":15890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15889":{"this":{"__isSmartRef__":true,"id":15728}},"15890":{"timestamp":{"__isSmartRef__":true,"id":15891},"user":"tessi","tags":[]},"15891":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:34 GMT+0200 (Central Europe Daylight Time)"},"15892":{"varMapping":{"__isSmartRef__":true,"id":15893},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":15894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15893":{"this":{"__isSmartRef__":true,"id":15728}},"15894":{"timestamp":{"__isSmartRef__":true,"id":15895},"user":"timfelgentreff","tags":[]},"15895":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:54:56 GMT+0200 (Central Europe Daylight Time)"},"15896":{"varMapping":{"__isSmartRef__":true,"id":15897},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":15898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15897":{"this":{"__isSmartRef__":true,"id":15728}},"15898":{"timestamp":{"__isSmartRef__":true,"id":15899},"user":"timfelgentreff","tags":[]},"15899":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:53:52 GMT+0200 (Central Europe Daylight Time)"},"15900":{"varMapping":{"__isSmartRef__":true,"id":15901},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15901":{"this":{"__isSmartRef__":true,"id":15728}},"15902":{"timestamp":{"__isSmartRef__":true,"id":15903},"user":"timfelgentreff","tags":[]},"15903":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:17 GMT+0200 (Central Europe Daylight Time)"},"15904":{"varMapping":{"__isSmartRef__":true,"id":15905},"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":15906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15905":{"this":{"__isSmartRef__":true,"id":15728}},"15906":{"timestamp":{"__isSmartRef__":true,"id":15907},"user":"timfelgentreff","tags":[]},"15907":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:54:03 GMT+0200 (Central Europe Daylight Time)"},"15908":{"varMapping":{"__isSmartRef__":true,"id":15909},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":15910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15909":{"this":{"__isSmartRef__":true,"id":15728}},"15910":{"timestamp":{"__isSmartRef__":true,"id":15911},"user":"timfelgentreff","tags":[]},"15911":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:09:57 GMT+0200 (Central Europe Daylight Time)"},"15912":{"varMapping":{"__isSmartRef__":true,"id":15913},"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":15914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15913":{"this":{"__isSmartRef__":true,"id":15728}},"15914":{"timestamp":{"__isSmartRef__":true,"id":15915},"user":"tessi","tags":[]},"15915":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:55 GMT+0200 (Central Europe Daylight Time)"},"15916":{"varMapping":{"__isSmartRef__":true,"id":15917},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":15918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15917":{"this":{"__isSmartRef__":true,"id":15728}},"15918":{"timestamp":{"__isSmartRef__":true,"id":15919},"user":"tessi","tags":[]},"15919":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:37 GMT+0200 (Central Europe Daylight Time)"},"15920":{"varMapping":{"__isSmartRef__":true,"id":15921},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":15922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15921":{"this":{"__isSmartRef__":true,"id":15728}},"15922":{"timestamp":{"__isSmartRef__":true,"id":15923},"user":"tessi","tags":[]},"15923":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:57 GMT+0200 (Central Europe Daylight Time)"},"15924":{"varMapping":{"__isSmartRef__":true,"id":15925},"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":15926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15925":{"this":{"__isSmartRef__":true,"id":15728}},"15926":{"timestamp":{"__isSmartRef__":true,"id":15927},"user":"tessi","tags":[]},"15927":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:06 GMT+0200 (Central Europe Daylight Time)"},"15928":{"varMapping":{"__isSmartRef__":true,"id":15929},"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":15930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15929":{"this":{"__isSmartRef__":true,"id":15728}},"15930":{"timestamp":{"__isSmartRef__":true,"id":15931},"user":"timfelgentreff","tags":[]},"15931":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:04 GMT+0200 (Central Europe Daylight Time)"},"15932":{"varMapping":{"__isSmartRef__":true,"id":15933},"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":15934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15933":{"this":{"__isSmartRef__":true,"id":15728}},"15934":{"timestamp":{"__isSmartRef__":true,"id":15935},"user":"tessi","tags":[]},"15935":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:31:13 GMT+0200 (Central Europe Daylight Time)"},"15936":{"varMapping":{"__isSmartRef__":true,"id":15937},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15937":{"this":{"__isSmartRef__":true,"id":15728}},"15938":{"timestamp":{"__isSmartRef__":true,"id":15939},"user":"tessi","tags":[]},"15939":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:25:25 GMT+0200 (Central Europe Daylight Time)"},"15940":{"varMapping":{"__isSmartRef__":true,"id":15941},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15941":{"this":{"__isSmartRef__":true,"id":15728}},"15942":{"timestamp":{"__isSmartRef__":true,"id":15943},"user":"tessi","tags":[]},"15943":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:28:36 GMT+0200 (Central Europe Daylight Time)"},"15944":{"varMapping":{"__isSmartRef__":true,"id":15945},"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":15946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15945":{"this":{"__isSmartRef__":true,"id":15728}},"15946":{"timestamp":{"__isSmartRef__":true,"id":15947},"user":"timfelgentreff","tags":[]},"15947":{"isSerializedDate":true,"string":"Thu May 03 2012 13:28:31 GMT+0200 (Central Europe Daylight Time)"},"15948":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"15949":{"options":{"__isSmartRef__":true,"id":15950}},"15950":{"override":["onDrag","onDragStart","onDragEnd"]},"15951":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15952":{"morph":{"__isSmartRef__":true,"id":15538},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15953":{"_BorderWidth":10,"_BorderColor":null,"__serializedExpressions__":["_Fill","_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(204,204,204)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1044.0,788.0)","_Padding":"lively.rect(0,0,0,0)"},"15954":{"morph":{"__isSmartRef__":true,"id":15537},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15955":{"submorphs":[{"__isSmartRef__":true,"id":15956},{"__isSmartRef__":true,"id":15962},{"__isSmartRef__":true,"id":15972},{"__isSmartRef__":true,"id":16009},{"__isSmartRef__":true,"id":16041},{"__isSmartRef__":true,"id":16075},{"__isSmartRef__":true,"id":16107},{"__isSmartRef__":true,"id":16145}],"scripts":[],"id":"A691AE87-DA0D-42D2-906D-28F49049F61C","shape":{"__isSmartRef__":true,"id":16365},"__layered_droppingEnabled__":true,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":16366},"draggingEnabled":true,"name":"SWASlide41","partsBinMetaInfo":{"__isSmartRef__":true,"id":16368},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":16369},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","70107993-916C-418F-96DD-2EDA00F22575"],"prevScroll":[0,0],"eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","eventsAreIgnored":false,"_ClipMode":"visible","owner":null,"__serializedExpressions__":["_Position","distanceToDragEvent","lastWorldPosition"],"grabbingEnabled":false,"_Visible":true,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","_Position":"lively.pt(10.0,10.0)","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(1070.0,1220.0)"},"15956":{"submorphs":[],"scripts":[],"id":"C9B1DB13-AD06-4936-8DF3-61B56BC68B5D","shape":{"__isSmartRef__":true,"id":15957},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":15958},"textChunks":[{"__isSmartRef__":true,"id":15959}],"owner":{"__isSmartRef__":true,"id":15955},"charsReplaced":"Solutions Propo","lastFindLoc":30,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15961},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","6771D830-56BA-415F-92F1-5CE3E5D687C3"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"isBeingDragged":false,"previousSelection":[0,0],"priorSelectionRange":[24,24],"__serializedExpressions__":["_Position","textColor","_TextColor"],"_Rotation":0,"_Scale":1.001001001001001,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"15957":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"15958":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15959":{"style":{"__isSmartRef__":true,"id":15960},"chunkOwner":{"__isSmartRef__":true,"id":15956},"storedString":"Code Re-use in Similar Objects","_id":"_398","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15960":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15961":{"morph":{"__isSmartRef__":true,"id":15956},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15962":{"submorphs":[],"scripts":[],"id":"6734B205-3A4F-4F2F-A339-2CD871E82936","shape":{"__isSmartRef__":true,"id":15963},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":15964},"textChunks":[{"__isSmartRef__":true,"id":15965},{"__isSmartRef__":true,"id":15967},{"__isSmartRef__":true,"id":15969}],"charsReplaced":"","lastFindLoc":68,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15971},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","56C6D476-47A1-4AD3-9340-9EE470F9BEAE"],"previousSelection":[6,6],"owner":{"__isSmartRef__":true,"id":15955},"priorSelectionRange":[5,11],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"_Rotation":0,"_Scale":1.001001001001001,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(82.4,193.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)","distanceToDragEvent":"lively.pt(497.2,-15.2)"},"15963":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,62.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"15964":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15965":{"style":{"__isSmartRef__":true,"id":15966},"chunkOwner":{"__isSmartRef__":true,"id":15962},"storedString":"","_id":"_815","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15966":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15967":{"style":{"__isSmartRef__":true,"id":15968},"chunkOwner":{"__isSmartRef__":true,"id":15962},"storedString":"■ No object-centric way for sharing behavior between existing, \n live objects","_id":"_399","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15968":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"bold","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15969":{"style":{"__isSmartRef__":true,"id":15970},"chunkOwner":{"__isSmartRef__":true,"id":15962},"storedString":"\n","_id":"_400","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15970":{"textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15971":{"morph":{"__isSmartRef__":true,"id":15962},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15972":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15973},"derivationIds":[null],"id":"6D563661-5D05-4A9E-A00D-8F3AC405D05A","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":15974},{"__isSmartRef__":true,"id":15976},{"__isSmartRef__":true,"id":15978},{"__isSmartRef__":true,"id":15980},{"__isSmartRef__":true,"id":15982},{"__isSmartRef__":true,"id":15984},{"__isSmartRef__":true,"id":15986},{"__isSmartRef__":true,"id":15988},{"__isSmartRef__":true,"id":15990},{"__isSmartRef__":true,"id":15992},{"__isSmartRef__":true,"id":15994},{"__isSmartRef__":true,"id":15996},{"__isSmartRef__":true,"id":15998},{"__isSmartRef__":true,"id":16000},{"__isSmartRef__":true,"id":16002},{"__isSmartRef__":true,"id":16004}],"eventHandler":{"__isSmartRef__":true,"id":16006},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":12,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":15955},"_MaxTextWidth":434.6015904800104,"_MinTextWidth":434.6015904800104,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":16007},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":16008}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":190,"accessibleInInactiveWindow":true,"charsReplaced":"open","lastFindLoc":43,"showsHalos":false,"isBeingDragged":false,"_syntaxHighlightTimeout":24675,"parseErrors":null,"previousSelection":[19,19],"__serializedExpressions__":["_Position","distanceToDragEvent"],"textString":"this.selectedMorphs.forEach(function (ea) {\n ea.addScript(function isObstacle() {\n return false;\n })\n})\n","_WordBreak":"break-all","_lastSyntaxHighlightTime":25,"_Rotation":0,"_Scale":1.1073654710215566,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(457.3,574.5)","distanceToDragEvent":"lively.pt(298.4,-22.2)"},"15973":{"_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(444.6,111.9)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"15974":{"style":{"__isSmartRef__":true,"id":15975},"chunkOwner":{"__isSmartRef__":true,"id":15972},"_id":"_919","storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15975":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15976":{"_id":"_920","style":{"__isSmartRef__":true,"id":15977},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":".selectedMorphs.forEach(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15977":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15978":{"_id":"_921","style":{"__isSmartRef__":true,"id":15979},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15979":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15980":{"_id":"_922","style":{"__isSmartRef__":true,"id":15981},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":" (ea) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15981":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15982":{"_id":"_923","style":{"__isSmartRef__":true,"id":15983},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15983":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15984":{"_id":"_924","style":{"__isSmartRef__":true,"id":15985},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":"\n ea.addScript(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15985":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15986":{"_id":"_925","style":{"__isSmartRef__":true,"id":15987},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15987":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"15988":{"_id":"_926","style":{"__isSmartRef__":true,"id":15989},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":" isObstacle() ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15989":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15990":{"_id":"_927","style":{"__isSmartRef__":true,"id":15991},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15991":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"15992":{"_id":"_928","style":{"__isSmartRef__":true,"id":15993},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15993":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15994":{"_id":"_929","style":{"__isSmartRef__":true,"id":15995},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15995":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"15996":{"_id":"_930","style":{"__isSmartRef__":true,"id":15997},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":" false;\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15997":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"15998":{"_id":"_931","style":{"__isSmartRef__":true,"id":15999},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15999":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"16000":{"_id":"_932","style":{"__isSmartRef__":true,"id":16001},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16001":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"16002":{"_id":"_933","style":{"__isSmartRef__":true,"id":16003},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16003":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"16004":{"_id":"_934","style":{"__isSmartRef__":true,"id":16005},"chunkOwner":{"__isSmartRef__":true,"id":15972},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16005":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"16006":{"morph":{"__isSmartRef__":true,"id":15972},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16007":{"resizeWidth":true,"resizeHeight":true},"16008":{"sourceObj":{"__isSmartRef__":true,"id":15972},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":15972},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16009":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16010},"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":"8218E964-B707-4FB4-85A9-16028DAD3030","eventHandler":{"__isSmartRef__":true,"id":16011},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"LillypadTile","showsHalos":false,"isBeingDragged":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":16012},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":15955},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1.1140329806748515,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16029},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(399.9,403.4)","distanceToDragEvent":"lively.pt(40.3,-8.2)"},"16010":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/lillypad.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,40.0)","_Padding":"lively.rect(0,0,0,0)"},"16011":{"morph":{"__isSmartRef__":true,"id":16009},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16012":{"partName":"LillypadTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16013},{"__isSmartRef__":true,"id":16015},{"__isSmartRef__":true,"id":16017},{"__isSmartRef__":true,"id":16019},{"__isSmartRef__":true,"id":16021},{"__isSmartRef__":true,"id":16023},{"__isSmartRef__":true,"id":16025},{"__isSmartRef__":true,"id":16027}],"migrationLevel":4,"revisionOnLoad":159352,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16013":{"date":{"__isSmartRef__":true,"id":16014},"author":"tessi","message":"no comment","id":"29FD4B9C-C2E1-4FB6-AACB-7A611A7E3261"},"16014":{"isSerializedDate":true,"string":"Fri May 04 2012 17:03:05 GMT+0200 (Central Europe Daylight Time)"},"16015":{"date":{"__isSmartRef__":true,"id":16016},"author":"timfelgentreff","message":"no comment","id":"80F18506-2049-4010-9016-09FEBBC1AC94"},"16016":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:04 GMT+0200 (Central Europe Daylight Time)"},"16017":{"date":{"__isSmartRef__":true,"id":16018},"author":"timfelgentreff","message":"no comment","id":"7FAE6469-6085-4F1C-82BE-9565567DEB4A"},"16018":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:38:04 GMT+0200 (Central Europe Daylight Time)"},"16019":{"date":{"__isSmartRef__":true,"id":16020},"author":"timfelgentreff","message":"no comment","id":"56DB171B-6F3A-4540-B192-834483274113"},"16020":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:34:03 GMT+0200 (Central Europe Daylight Time)"},"16021":{"date":{"__isSmartRef__":true,"id":16022},"author":"tessi","message":"","id":"0859DE78-85F6-4A96-B28F-EF1FBB00BBC2"},"16022":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:43 GMT+0200 (Central Europe Daylight Time)"},"16023":{"date":{"__isSmartRef__":true,"id":16024},"author":"lauritz","message":"","id":"3A112EF9-C1FB-40A4-B3BD-2886F7A97260"},"16024":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:43 GMT+0200 (Central Europe Daylight Time)"},"16025":{"date":{"__isSmartRef__":true,"id":16026},"author":"timfelgentreff","message":"","id":"EC68CCC4-D23F-44EA-9E3B-3495848929F1"},"16026":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:31:31 GMT+0200 (Central Europe Daylight Time)"},"16027":{"date":{"__isSmartRef__":true,"id":16028},"author":"tessi","message":"","id":"96CFC2C8-59E4-46A1-AC4B-11777D05A46F"},"16028":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:41:59 GMT+0200 (Central Europe Daylight Time)"},"16029":{"dropOn":{"__isSmartRef__":true,"id":16030},"shallowCopy":{"__isSmartRef__":true,"id":16037}},"16030":{"varMapping":{"__isSmartRef__":true,"id":16031},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16031":{"this":{"__isSmartRef__":true,"id":16009},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16032}},"16032":{"$super":{"__isSmartRef__":true,"id":16033}},"16033":{"varMapping":{"__isSmartRef__":true,"id":16034},"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":16035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16034":{"obj":{"__isSmartRef__":true,"id":16009},"name":"dropOn"},"16035":{},"16036":{},"16037":{"varMapping":{"__isSmartRef__":true,"id":16038},"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":16039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16038":{"this":{"__isSmartRef__":true,"id":16009}},"16039":{"timestamp":{"__isSmartRef__":true,"id":16040},"user":"timfelgentreff","tags":[]},"16040":{"isSerializedDate":true,"string":"Thu May 03 2012 13:40:40 GMT+0200 (Central Europe Daylight Time)"},"16041":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16042},"derivationIds":[null,"0CA4E828-DD2A-4E84-A951-7DBD4A301B5D","D7D5271D-0DAD-4562-98E3-508F5831DF2F","20FA93FF-2E09-457F-814D-8F034D6B0E2F","D309FD7F-5995-414C-9466-F2D1246912B6","1F5A4C62-84D4-480B-A536-D26762C7BFDE","CCE81AA2-110F-441F-8CDB-F0B70151F766","1863761C-6E6D-4B81-B7A3-ECC0A33696A3","79FD514C-99F9-478C-B4AE-2F51FABD97FE","27D4A26F-12D7-46E3-9294-677C290712D4","679D234F-E0F4-4B5C-8811-793A615C14A5","A6995642-B49B-459E-A7F4-1CA99CB0A491","4FBCAF58-AA26-4461-A8A9-0386E438D7F1"],"id":"2F44C555-7009-490E-ACFA-B6A68F62C06A","eventHandler":{"__isSmartRef__":true,"id":16043},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"LavaTile","isBeingDragged":false,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":16044},"moved":true,"isObstacle":true,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":15955},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1.1140329806748515,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16063},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(341.7,470.5)","distanceToDragEvent":"lively.pt(34.8,-14.8)"},"16042":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/lava.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,40.0)","_Padding":"lively.rect(0,0,0,0)"},"16043":{"morph":{"__isSmartRef__":true,"id":16041},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16044":{"partName":"LavaTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16045},{"__isSmartRef__":true,"id":16047},{"__isSmartRef__":true,"id":16049},{"__isSmartRef__":true,"id":16051},{"__isSmartRef__":true,"id":16053},{"__isSmartRef__":true,"id":16055},{"__isSmartRef__":true,"id":16057},{"__isSmartRef__":true,"id":16059},{"__isSmartRef__":true,"id":16061}],"migrationLevel":4,"revisionOnLoad":159354,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16045":{"date":{"__isSmartRef__":true,"id":16046},"author":"tessi","message":"no comment","id":"88062A77-A216-4157-B7EB-FDAB2D0E2FBC"},"16046":{"isSerializedDate":true,"string":"Fri May 04 2012 17:03:12 GMT+0200 (Central Europe Daylight Time)"},"16047":{"date":{"__isSmartRef__":true,"id":16048},"author":"timfelgentreff","message":"no comment","id":"216F150F-2DAA-4F72-8F4C-7359F2ADD356"},"16048":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:24 GMT+0200 (Central Europe Daylight Time)"},"16049":{"date":{"__isSmartRef__":true,"id":16050},"author":"timfelgentreff","message":"no comment","id":"E731D1A2-7EEE-4BBE-9B12-B141AE02B7D1"},"16050":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:48 GMT+0200 (Central Europe Daylight Time)"},"16051":{"date":{"__isSmartRef__":true,"id":16052},"author":"timfelgentreff","message":"no comment","id":"3A732801-0F03-4191-87FB-4C0A0C2BE29E"},"16052":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:50 GMT+0200 (Central Europe Daylight Time)"},"16053":{"date":{"__isSmartRef__":true,"id":16054},"author":"timfelgentreff","message":"no comment","id":"EE7E1C1A-2783-4DFF-8537-98BCB4FD59AC"},"16054":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:48 GMT+0200 (Central Europe Daylight Time)"},"16055":{"date":{"__isSmartRef__":true,"id":16056},"author":"tessi","message":"","id":"848E820C-2589-48C7-B52C-2C4FBB8D0567"},"16056":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:15:50 GMT+0200 (Central Europe Daylight Time)"},"16057":{"date":{"__isSmartRef__":true,"id":16058},"author":"lauritz","message":"","id":"5779A1E4-F39E-421E-A9E9-014B7DFC8A4E"},"16058":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:36 GMT+0200 (Central Europe Daylight Time)"},"16059":{"date":{"__isSmartRef__":true,"id":16060},"author":"timfelgentreff","message":"","id":"1EBE70B7-E9F0-49A3-9346-31D2D5401759"},"16060":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:30:50 GMT+0200 (Central Europe Daylight Time)"},"16061":{"date":{"__isSmartRef__":true,"id":16062},"author":"tessi","message":"","id":"9EB4E294-31AE-4983-9FD1-83B22BF0B2CD"},"16062":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:41:36 GMT+0200 (Central Europe Daylight Time)"},"16063":{"dropOn":{"__isSmartRef__":true,"id":16064},"shallowCopy":{"__isSmartRef__":true,"id":16071}},"16064":{"varMapping":{"__isSmartRef__":true,"id":16065},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16065":{"this":{"__isSmartRef__":true,"id":16041},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16066}},"16066":{"$super":{"__isSmartRef__":true,"id":16067}},"16067":{"varMapping":{"__isSmartRef__":true,"id":16068},"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":16069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16068":{"obj":{"__isSmartRef__":true,"id":16041},"name":"dropOn"},"16069":{},"16070":{},"16071":{"varMapping":{"__isSmartRef__":true,"id":16072},"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":16073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16072":{"this":{"__isSmartRef__":true,"id":16041}},"16073":{"timestamp":{"__isSmartRef__":true,"id":16074},"user":"timfelgentreff","tags":[]},"16074":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:17 GMT+0200 (Central Europe Daylight Time)"},"16075":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16076},"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":"84642CA8-85EE-4976-A1E0-0A6581CD3176","eventHandler":{"__isSmartRef__":true,"id":16077},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"FlowerGrassTile","showsHalos":false,"isBeingDragged":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":16078},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":15955},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1.1118060287464824,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16095},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(414.1,465.3)","distanceToDragEvent":"lively.pt(37.4,-18.1)"},"16076":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,40.0)","_Padding":"lively.rect(0,0,0,0)"},"16077":{"morph":{"__isSmartRef__":true,"id":16075},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16078":{"partName":"FlowerGrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16079},{"__isSmartRef__":true,"id":16081},{"__isSmartRef__":true,"id":16083},{"__isSmartRef__":true,"id":16085},{"__isSmartRef__":true,"id":16087},{"__isSmartRef__":true,"id":16089},{"__isSmartRef__":true,"id":16091},{"__isSmartRef__":true,"id":16093}],"migrationLevel":4,"revisionOnLoad":159345,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16079":{"date":{"__isSmartRef__":true,"id":16080},"author":"tessi","message":"no comment","id":"4BC7DDF9-89A2-4A2A-8A37-97CECF82DF21"},"16080":{"isSerializedDate":true,"string":"Fri May 04 2012 17:02:08 GMT+0200 (Central Europe Daylight Time)"},"16081":{"date":{"__isSmartRef__":true,"id":16082},"author":"timfelgentreff","message":"no comment","id":"02E3CCCD-E630-40A9-BB8B-8D4F60458311"},"16082":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:42 GMT+0200 (Central Europe Daylight Time)"},"16083":{"date":{"__isSmartRef__":true,"id":16084},"author":"timfelgentreff","message":"no comment","id":"89D17F78-5164-40A2-8D18-6864377CAE04"},"16084":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:16 GMT+0200 (Central Europe Daylight Time)"},"16085":{"date":{"__isSmartRef__":true,"id":16086},"author":"timfelgentreff","message":"no comment","id":"427F616A-557E-48DA-B2A3-9D312846BFA8"},"16086":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:06 GMT+0200 (Central Europe Daylight Time)"},"16087":{"date":{"__isSmartRef__":true,"id":16088},"author":"tessi","message":"","id":"43431C78-F979-4A3D-B949-CFB4CD123812"},"16088":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:35 GMT+0200 (Central Europe Daylight Time)"},"16089":{"date":{"__isSmartRef__":true,"id":16090},"author":"timfelgentreff","message":"","id":"AFE5FD8B-7758-45D2-B21C-14607C3F0D5E"},"16090":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:31:45 GMT+0200 (Central Europe Daylight Time)"},"16091":{"date":{"__isSmartRef__":true,"id":16092},"author":"tessi","message":"","id":"D9AF3878-EAC4-433D-8258-DC80517AA6B1"},"16092":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:04 GMT+0200 (Central Europe Daylight Time)"},"16093":{"date":{"__isSmartRef__":true,"id":16094},"author":"tessi","message":"","id":"132E4BD9-EC26-4CCC-8CD5-D86C60CF385C"},"16094":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:47 GMT+0200 (Central Europe Daylight Time)"},"16095":{"dropOn":{"__isSmartRef__":true,"id":16096},"shallowCopy":{"__isSmartRef__":true,"id":16103}},"16096":{"varMapping":{"__isSmartRef__":true,"id":16097},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16097":{"this":{"__isSmartRef__":true,"id":16075},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16098}},"16098":{"$super":{"__isSmartRef__":true,"id":16099}},"16099":{"varMapping":{"__isSmartRef__":true,"id":16100},"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":16101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16100":{"obj":{"__isSmartRef__":true,"id":16075},"name":"dropOn"},"16101":{},"16102":{},"16103":{"varMapping":{"__isSmartRef__":true,"id":16104},"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":16105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16104":{"this":{"__isSmartRef__":true,"id":16075}},"16105":{"timestamp":{"__isSmartRef__":true,"id":16106},"user":"timfelgentreff","tags":[]},"16106":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:47 GMT+0200 (Central Europe Daylight Time)"},"16107":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16108},"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":"7CF4D6DD-3F6B-42EE-9203-89E739DCAA6F","eventHandler":{"__isSmartRef__":true,"id":16109},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"GrassTile","showsHalos":false,"isBeingDragged":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":16110},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":15955},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1.1140329806748515,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16133},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(331.0,410.1)","distanceToDragEvent":"lively.pt(34.5,-10.2)"},"16108":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,40.0)","_Padding":"lively.rect(0,0,0,0)"},"16109":{"morph":{"__isSmartRef__":true,"id":16107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16110":{"partName":"GrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16111},{"__isSmartRef__":true,"id":16113},{"__isSmartRef__":true,"id":16115},{"__isSmartRef__":true,"id":16117},{"__isSmartRef__":true,"id":16119},{"__isSmartRef__":true,"id":16121},{"__isSmartRef__":true,"id":16123},{"__isSmartRef__":true,"id":16125},{"__isSmartRef__":true,"id":16127},{"__isSmartRef__":true,"id":16129},{"__isSmartRef__":true,"id":16131}],"migrationLevel":4,"revisionOnLoad":159102,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16111":{"date":{"__isSmartRef__":true,"id":16112},"author":"timfelgentreff","message":"no comment","id":"1BA41EB4-3E79-44BA-9F92-9D7A5EED3AE5"},"16112":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:50 GMT+0200 (Central Europe Daylight Time)"},"16113":{"date":{"__isSmartRef__":true,"id":16114},"author":"timfelgentreff","message":"no comment","id":"46CEDCB2-B98B-446F-82EF-A2E5C82104E8"},"16114":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:32:56 GMT+0200 (Central Europe Daylight Time)"},"16115":{"date":{"__isSmartRef__":true,"id":16116},"author":"timfelgentreff","message":"no comment","id":"2A16772C-A949-41B4-81E6-729009D52750"},"16116":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:31 GMT+0200 (Central Europe Daylight Time)"},"16117":{"date":{"__isSmartRef__":true,"id":16118},"author":"timfelgentreff","message":"no comment","id":"4F5D5D9C-6A36-40E0-A7B5-0EC147FC3CCB"},"16118":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:38 GMT+0200 (Central Europe Daylight Time)"},"16119":{"date":{"__isSmartRef__":true,"id":16120},"author":"timfelgentreff","message":"no comment","id":"89243BFB-B9D4-46C9-B626-FA908A74640F"},"16120":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:21 GMT+0200 (Central Europe Daylight Time)"},"16121":{"date":{"__isSmartRef__":true,"id":16122},"author":"tessi","message":"","id":"3FE7CF26-4ECF-4270-865D-14D92EF17F15"},"16122":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:12:42 GMT+0200 (Central Europe Daylight Time)"},"16123":{"date":{"__isSmartRef__":true,"id":16124},"author":"lauritz","message":"","id":"20A6EE92-FFDB-4B50-AF32-430C3263E33A"},"16124":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:30 GMT+0200 (Central Europe Daylight Time)"},"16125":{"date":{"__isSmartRef__":true,"id":16126},"author":"timfelgentreff","message":"","id":"BB95B383-D653-4EC1-B02D-BD13262D13DD"},"16126":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:30:37 GMT+0200 (Central Europe Daylight Time)"},"16127":{"date":{"__isSmartRef__":true,"id":16128},"author":"tessi","message":"","id":"C9AC5438-390B-4092-A840-5DA53EA949A2"},"16128":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:34:40 GMT+0200 (Central Europe Daylight Time)"},"16129":{"date":{"__isSmartRef__":true,"id":16130},"author":"timfelgentreff","message":"no comment","id":"6F09CB47-AE1A-43B5-9092-C226FC943D70"},"16130":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:53:15 GMT+0200 (Central Europe Daylight Time)"},"16131":{"date":{"__isSmartRef__":true,"id":16132},"author":"timfelgentreff","message":"no comment","id":"AB07369F-96D1-4872-ACD6-189F95A98CF0"},"16132":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:49 GMT+0200 (Central Europe Daylight Time)"},"16133":{"dropOn":{"__isSmartRef__":true,"id":16134},"shallowCopy":{"__isSmartRef__":true,"id":16141}},"16134":{"varMapping":{"__isSmartRef__":true,"id":16135},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16135":{"this":{"__isSmartRef__":true,"id":16107},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16136}},"16136":{"$super":{"__isSmartRef__":true,"id":16137}},"16137":{"varMapping":{"__isSmartRef__":true,"id":16138},"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":16139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16138":{"obj":{"__isSmartRef__":true,"id":16107},"name":"dropOn"},"16139":{},"16140":{},"16141":{"varMapping":{"__isSmartRef__":true,"id":16142},"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":16143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16142":{"this":{"__isSmartRef__":true,"id":16107}},"16143":{"timestamp":{"__isSmartRef__":true,"id":16144},"user":"timfelgentreff","tags":[]},"16144":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:06 GMT+0200 (Central Europe Daylight Time)"},"16145":{"submorphs":[],"scripts":[],"id":"909D38E7-75A5-4423-B3F1-E8FCDACB62DB","shape":{"__isSmartRef__":true,"id":16146},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Tile","partsBinMetaInfo":{"__isSmartRef__":true,"id":16147},"eventHandler":{"__isSmartRef__":true,"id":16250},"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":16251},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","__obstacles":[],"row":5,"column":1,"terrain":null,"grabbingEnabled":false,"prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":15955},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1.1207406357779914,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16256},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(737.0,402.8)","distanceToDragEvent":"lively.pt(35.5,-15.8)"},"16146":{"_BorderWidth":1.148,"_Fill":null,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(48.0,48.0)","_BorderColor":"Color.rgb(204,0,0)","_Padding":"lively.rect(0,0,0,0)"},"16147":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","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":16148},{"__isSmartRef__":true,"id":16150},{"__isSmartRef__":true,"id":16152},{"__isSmartRef__":true,"id":16154},{"__isSmartRef__":true,"id":16156},{"__isSmartRef__":true,"id":16158},{"__isSmartRef__":true,"id":16160},{"__isSmartRef__":true,"id":16162},{"__isSmartRef__":true,"id":16164},{"__isSmartRef__":true,"id":16166},{"__isSmartRef__":true,"id":16168},{"__isSmartRef__":true,"id":16170},{"__isSmartRef__":true,"id":16172},{"__isSmartRef__":true,"id":16174},{"__isSmartRef__":true,"id":16176},{"__isSmartRef__":true,"id":16178},{"__isSmartRef__":true,"id":16180},{"__isSmartRef__":true,"id":16182},{"__isSmartRef__":true,"id":16184},{"__isSmartRef__":true,"id":16186},{"__isSmartRef__":true,"id":16188},{"__isSmartRef__":true,"id":16190},{"__isSmartRef__":true,"id":16192},{"__isSmartRef__":true,"id":16194},{"__isSmartRef__":true,"id":16196},{"__isSmartRef__":true,"id":16198},{"__isSmartRef__":true,"id":16200},{"__isSmartRef__":true,"id":16202},{"__isSmartRef__":true,"id":16204},{"__isSmartRef__":true,"id":16206},{"__isSmartRef__":true,"id":16208},{"__isSmartRef__":true,"id":16210},{"__isSmartRef__":true,"id":16212},{"__isSmartRef__":true,"id":16214},{"__isSmartRef__":true,"id":16216},{"__isSmartRef__":true,"id":16218},{"__isSmartRef__":true,"id":16220},{"__isSmartRef__":true,"id":16222},{"__isSmartRef__":true,"id":16224},{"__isSmartRef__":true,"id":16226},{"__isSmartRef__":true,"id":16228},{"__isSmartRef__":true,"id":16230},{"__isSmartRef__":true,"id":16232},{"__isSmartRef__":true,"id":16234},{"__isSmartRef__":true,"id":16236},{"__isSmartRef__":true,"id":16238},{"__isSmartRef__":true,"id":16240},{"__isSmartRef__":true,"id":16242},{"__isSmartRef__":true,"id":16244},{"__isSmartRef__":true,"id":16246},{"__isSmartRef__":true,"id":16248}],"revisionOnLoad":159891,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16148":{"date":{"__isSmartRef__":true,"id":16149},"author":"tessi","message":"no comment","id":"928E1DC4-09B5-46D7-A245-48E332175C68"},"16149":{"isSerializedDate":true,"string":"Fri May 04 2012 17:01:42 GMT+0200 (Central Europe Daylight Time)"},"16150":{"date":{"__isSmartRef__":true,"id":16151},"author":"tessi","message":"normal border color is transparent","id":"94D5AA98-D1D9-4C6F-BED3-828305C3F390"},"16151":{"isSerializedDate":true,"string":"Thu May 03 2012 15:25:32 GMT+0200 (Central Europe Daylight Time)"},"16152":{"date":{"__isSmartRef__":true,"id":16153},"author":"timfelgentreff","message":"add a neighboursReachableFromHere function, so we can return only neighbours that are reachable to A*","id":"646448AF-6B6F-4D4E-900B-2DC7B927ACE8"},"16153":{"isSerializedDate":true,"string":"Thu May 03 2012 13:29:50 GMT+0200 (Central Europe Daylight Time)"},"16154":{"date":{"__isSmartRef__":true,"id":16155},"author":"tessi","message":"fix neighbours calculation","id":"F2AE41B4-A670-4277-B7F3-5BCC20D74ECE"},"16155":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:48 GMT+0200 (Central Europe Daylight Time)"},"16156":{"date":{"__isSmartRef__":true,"id":16157},"author":"timfelgentreff","message":"revert caching","id":"03257D32-EA99-4EA6-8CFA-D6C55E6A4D96"},"16157":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:20:05 GMT+0200 (Central Europe Daylight Time)"},"16158":{"date":{"__isSmartRef__":true,"id":16159},"author":"lauritz","message":"no comment","id":"2A0ACEC2-2DDA-4061-9ECE-8D49CCD6C0A0"},"16159":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:00:07 GMT+0200 (Central Europe Daylight Time)"},"16160":{"date":{"__isSmartRef__":true,"id":16161},"author":"tessi","message":"added stub method for getting characters standing on the tile","id":"2DD011DC-7ABF-4928-A2EE-FDA603BCB307"},"16161":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:22:23 GMT+0200 (Central Europe Daylight Time)"},"16162":{"date":{"__isSmartRef__":true,"id":16163},"author":"timfelgentreff","message":"copy properties,too, so we can publish","id":"409A8B29-1CB7-4C30-B420-7F0FEB4489EA"},"16163":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:48:47 GMT+0200 (Central Europe Daylight Time)"},"16164":{"date":{"__isSmartRef__":true,"id":16165},"author":"timfelgentreff","message":"avoid setting props in shallowCopy","id":"0102BAF0-8471-4805-98CB-FFA285A96B15"},"16165":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:45:14 GMT+0200 (Central Europe Daylight Time)"},"16166":{"date":{"__isSmartRef__":true,"id":16167},"author":"tessi","message":"added reset() method. use game() and map() instead of get() calls","id":"5B2AF6B7-3DC9-4EE1-A616-6510338BA091"},"16167":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:18:16 GMT+0200 (Central Europe Daylight Time)"},"16168":{"date":{"__isSmartRef__":true,"id":16169},"author":"timfelgentreff","message":"no comment","id":"957E9210-4394-452A-9291-BD0E8FA736BF"},"16169":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:28:00 GMT+0200 (Central Europe Daylight Time)"},"16170":{"date":{"__isSmartRef__":true,"id":16171},"author":"timfelgentreff","message":"no comment","id":"6BBA00B9-6D11-4D9D-B6E9-95FE7CC915CD"},"16171":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:20:14 GMT+0200 (Central Europe Daylight Time)"},"16172":{"date":{"__isSmartRef__":true,"id":16173},"author":"tessi","message":"revert timfels last commit (tile was overwritten with thing)","id":"27A8A743-D064-44C6-948E-8E3D5118790D"},"16173":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:34:17 GMT+0200 (Central Europe Daylight Time)"},"16174":{"date":{"__isSmartRef__":true,"id":16175},"author":"timfelgentreff","message":"","id":"F01F7BC6-E59F-4B63-8A3D-10C3AC3E34FD"},"16175":{"isSerializedDate":true,"string":"Fri Apr 20 2012 08:22:08 GMT+0200 (Central Europe Daylight Time)"},"16176":{"date":{"__isSmartRef__":true,"id":16177},"author":"timfelgentreff","message":"","id":"B5D9BC0C-15F0-4AE7-884B-48515F6A030E"},"16177":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:08:19 GMT+0200 (Central Europe Daylight Time)"},"16178":{"date":{"__isSmartRef__":true,"id":16179},"author":"timfelgentreff","message":"","id":"07EE540F-D786-49CC-8DD0-56F6B3AC6716"},"16179":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:43:41 GMT+0200 (Central Europe Daylight Time)"},"16180":{"date":{"__isSmartRef__":true,"id":16181},"author":"timfelgentreff","message":"","id":"4978F7BB-7FF5-47C1-8A55-6CAB03479B28"},"16181":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:41:12 GMT+0200 (Central Europe Daylight Time)"},"16182":{"date":{"__isSmartRef__":true,"id":16183},"author":"timfelgentreff","message":"","id":"18365ED6-1BC8-43AD-ADC8-2B0C8005B784"},"16183":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:23:38 GMT+0200 (Central Europe Daylight Time)"},"16184":{"date":{"__isSmartRef__":true,"id":16185},"author":"lauritz","message":"","id":"CFD35308-806E-4804-8706-15DA1CEC5743"},"16185":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:49:16 GMT+0200 (Central Europe Daylight Time)"},"16186":{"date":{"__isSmartRef__":true,"id":16187},"author":"timfelgentreff","message":"","id":"DE0AC226-458D-416E-A42C-BAA848650C4C"},"16187":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:28:14 GMT+0200 (Central Europe Daylight Time)"},"16188":{"date":{"__isSmartRef__":true,"id":16189},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"16189":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"16190":{"date":{"__isSmartRef__":true,"id":16191},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"16191":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"16192":{"date":{"__isSmartRef__":true,"id":16193},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"16193":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"16194":{"date":{"__isSmartRef__":true,"id":16195},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"16195":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"16196":{"date":{"__isSmartRef__":true,"id":16197},"author":"timfelgentreff","message":"","id":"0672C6C8-D032-495B-B9EE-E41F194C86DE"},"16197":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:19:15 GMT+0200 (Central Europe Daylight Time)"},"16198":{"date":{"__isSmartRef__":true,"id":16199},"author":"timfelgentreff","message":"","id":"E1AA7A8A-D3C5-4263-9A1E-91C13F532ED6"},"16199":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:55 GMT+0200 (Central Europe Daylight Time)"},"16200":{"date":{"__isSmartRef__":true,"id":16201},"author":"timfelgentreff","message":"","id":"563A8831-9CE6-49D1-B87D-453B761FB751"},"16201":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:53 GMT+0200 (Central Europe Daylight Time)"},"16202":{"date":{"__isSmartRef__":true,"id":16203},"author":"timfelgentreff","message":"","id":"F4CC9F23-A50B-4206-A549-A610CC9C69AC"},"16203":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:11:38 GMT+0200 (Central Europe Daylight Time)"},"16204":{"date":{"__isSmartRef__":true,"id":16205},"author":"timfelgentreff","message":"","id":"24121E2C-3B59-48EF-8026-290C8D296496"},"16205":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:02:53 GMT+0200 (Central Europe Daylight Time)"},"16206":{"date":{"__isSmartRef__":true,"id":16207},"author":"timfelgentreff","message":"","id":"6D9186F6-64FC-48E0-95AF-27E462A13E1D"},"16207":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:55:04 GMT+0200 (Central Europe Daylight Time)"},"16208":{"date":{"__isSmartRef__":true,"id":16209},"author":"timfelgentreff","message":"","id":"DF45FC66-1C49-447D-914F-A905DA0AECB2"},"16209":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:47 GMT+0200 (Central Europe Daylight Time)"},"16210":{"date":{"__isSmartRef__":true,"id":16211},"author":"timfelgentreff","message":"","id":"712D65D3-A68A-47B9-AFDC-B20E826217DB"},"16211":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:00:26 GMT+0200 (Central Europe Daylight Time)"},"16212":{"date":{"__isSmartRef__":true,"id":16213},"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"},"16213":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:29:15 GMT+0200 (Central Europe Daylight Time)"},"16214":{"date":{"__isSmartRef__":true,"id":16215},"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"},"16215":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:14 GMT+0200 (Central Europe Daylight Time)"},"16216":{"date":{"__isSmartRef__":true,"id":16217},"author":"timfelgentreff","message":"things support","id":"DD13E7D3-6948-4B69-947A-24A2B084646B"},"16217":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:58 GMT+0200 (Central Europe Daylight Time)"},"16218":{"date":{"__isSmartRef__":true,"id":16219},"author":"timfelgentreff","message":"fix adding obstacles","id":"891954C6-3DC3-41AC-8038-4E7C028B0147"},"16219":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:37 GMT+0200 (Central Europe Daylight Time)"},"16220":{"date":{"__isSmartRef__":true,"id":16221},"author":"timfelgentreff","message":"no comment","id":"4571845C-4F67-4DD6-954F-B93B98F8DDF3"},"16221":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:35:25 GMT+0200 (Central Europe Daylight Time)"},"16222":{"date":{"__isSmartRef__":true,"id":16223},"author":"timfelgentreff","message":"show obstacle state in dev style","id":"9FD0FE89-0EE1-4499-B055-D2C077CCEACA"},"16223":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:37:34 GMT+0200 (Central Europe Daylight Time)"},"16224":{"date":{"__isSmartRef__":true,"id":16225},"author":"timfelgentreff","message":"no comment","id":"181F2453-F14A-4CC7-BFF0-910480CD4B1F"},"16225":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:23 GMT+0200 (Central Europe Daylight Time)"},"16226":{"date":{"__isSmartRef__":true,"id":16227},"author":"timfelgentreff","message":"add shallowCopy","id":"86DCAE73-A5D2-470F-BF0E-77E914236CEA"},"16227":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:10:22 GMT+0200 (Central Europe Daylight Time)"},"16228":{"date":{"__isSmartRef__":true,"id":16229},"author":"timfelgentreff","message":"fix shallowCopy","id":"5DDF2C7F-DEE5-4161-A515-B5831A00DCB3"},"16229":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:13:27 GMT+0200 (Central Europe Daylight Time)"},"16230":{"date":{"__isSmartRef__":true,"id":16231},"author":"timfelgentreff","message":"uncomment return","id":"21656693-2A83-4D04-9612-55622B41EB18"},"16231":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:46:38 GMT+0200 (Central Europe Daylight Time)"},"16232":{"date":{"__isSmartRef__":true,"id":16233},"author":"timfelgentreff","message":"revert last commit","id":"DEE21763-B63C-41AF-917B-4481E54000AF"},"16233":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:53:55 GMT+0200 (Central Europe Daylight Time)"},"16234":{"date":{"__isSmartRef__":true,"id":16235},"author":"lauritz","message":"","id":"AC05F3B3-162F-4A75-A601-EA5F744AC530"},"16235":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:25:17 GMT+0200 (Central Europe Daylight Time)"},"16236":{"date":{"__isSmartRef__":true,"id":16237},"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"},"16237":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:58 GMT+0200 (Central Europe Daylight Time)"},"16238":{"date":{"__isSmartRef__":true,"id":16239},"author":"tessi","message":"let characters register themself when enter/leave the tile","id":"9095AE1D-1FE5-44A4-9A4E-C9C39B1C4F40"},"16239":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:48 GMT+0200 (Central Europe Daylight Time)"},"16240":{"date":{"__isSmartRef__":true,"id":16241},"author":"tessi","message":"cache Neighbours","id":"5AE79688-A888-4376-8A8F-63679330D24C"},"16241":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:19 GMT+0200 (Central Europe Daylight Time)"},"16242":{"date":{"__isSmartRef__":true,"id":16243},"author":"tessi","message":"","id":"CDFC653A-73C4-4FEF-BF2F-E515698C9D49"},"16243":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:40:27 GMT+0200 (Central Europe Daylight Time)"},"16244":{"date":{"__isSmartRef__":true,"id":16245},"author":"timfelgentreff","message":"no comment","id":"3D7FD71F-6695-46ED-915B-DACB2BDD66EC"},"16245":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:11 GMT+0200 (Central Europe Daylight Time)"},"16246":{"date":{"__isSmartRef__":true,"id":16247},"author":"tessi","message":"cannot set color to null","id":"A33818D9-5418-451A-86B6-17C0E01E3D95"},"16247":{"isSerializedDate":true,"string":"Thu May 03 2012 15:20:35 GMT+0200 (Central Europe Daylight Time)"},"16248":{"date":{"__isSmartRef__":true,"id":16249},"author":"lauritz","message":"difference between dev and normal style in border-width","id":"3001D4D8-C44F-49E0-8101-5726A7ACFD8F"},"16249":{"isSerializedDate":true,"string":"Mon May 07 2012 18:54:58 GMT+0200 (Central Europe Daylight Time)"},"16250":{"morph":{"__isSmartRef__":true,"id":16145},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16251":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16252}},"16252":{"test01IsMorph":{"__isSmartRef__":true,"id":16253}},"16253":{"varMapping":{"__isSmartRef__":true,"id":16254},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":16255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16254":{"this":{"__isSmartRef__":true,"id":16251}},"16255":{},"16256":{"setDevStyle":{"__isSmartRef__":true,"id":16257},"setNormalStyle":{"__isSmartRef__":true,"id":16261},"tileSize":{"__isSmartRef__":true,"id":16265},"become":{"__isSmartRef__":true,"id":16269},"onMouseDown":{"__isSmartRef__":true,"id":16273},"setGridPosition":{"__isSmartRef__":true,"id":16281},"toolbox":{"__isSmartRef__":true,"id":16285},"distanceTo":{"__isSmartRef__":true,"id":16289},"tileWasDropped":{"__isSmartRef__":true,"id":16293},"isObstacle":{"__isSmartRef__":true,"id":16297},"neighboursInDirection":{"__isSmartRef__":true,"id":16301},"neighbours":{"__isSmartRef__":true,"id":16305},"zIndex":{"__isSmartRef__":true,"id":16309},"obstacles":{"__isSmartRef__":true,"id":16313},"addObstacle":{"__isSmartRef__":true,"id":16317},"removeObstacle":{"__isSmartRef__":true,"id":16321},"isTile":{"__isSmartRef__":true,"id":16325},"neighbourAt":{"__isSmartRef__":true,"id":16329},"map":{"__isSmartRef__":true,"id":16333},"game":{"__isSmartRef__":true,"id":16337},"reset":{"__isSmartRef__":true,"id":16341},"shallowCopy":{"__isSmartRef__":true,"id":16345},"characters":{"__isSmartRef__":true,"id":16349},"enterTile":{"__isSmartRef__":true,"id":16353},"leaveTile":{"__isSmartRef__":true,"id":16357},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":16361}},"16257":{"varMapping":{"__isSmartRef__":true,"id":16258},"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":16259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16258":{"this":{"__isSmartRef__":true,"id":16145}},"16259":{"timestamp":{"__isSmartRef__":true,"id":16260},"user":"lauritz","tags":[]},"16260":{"isSerializedDate":true,"string":"Mon May 07 2012 18:57:47 GMT+0200 (Central Europe Daylight Time)"},"16261":{"varMapping":{"__isSmartRef__":true,"id":16262},"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":16263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16262":{"this":{"__isSmartRef__":true,"id":16145}},"16263":{"timestamp":{"__isSmartRef__":true,"id":16264},"user":"lauritz","tags":[]},"16264":{"isSerializedDate":true,"string":"Mon May 07 2012 18:58:21 GMT+0200 (Central Europe Daylight Time)"},"16265":{"varMapping":{"__isSmartRef__":true,"id":16266},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":16267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16266":{"this":{"__isSmartRef__":true,"id":16145}},"16267":{"timestamp":{"__isSmartRef__":true,"id":16268},"user":"tessi","tags":[]},"16268":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:04:53 GMT+0200 (Central Europe Daylight Time)"},"16269":{"varMapping":{"__isSmartRef__":true,"id":16270},"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":16271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16270":{"this":{"__isSmartRef__":true,"id":16145}},"16271":{"timestamp":{"__isSmartRef__":true,"id":16272},"user":"lauritz","tags":[]},"16272":{"isSerializedDate":true,"string":"Fri May 04 2012 13:31:11 GMT+0200 (Central Europe Daylight Time)"},"16273":{"varMapping":{"__isSmartRef__":true,"id":16274},"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":16279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16274":{"this":{"__isSmartRef__":true,"id":16145},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16275}},"16275":{"$super":{"__isSmartRef__":true,"id":16276}},"16276":{"varMapping":{"__isSmartRef__":true,"id":16277},"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":16278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16277":{"obj":{"__isSmartRef__":true,"id":16145},"name":"onMouseDown"},"16278":{},"16279":{"timestamp":{"__isSmartRef__":true,"id":16280},"user":"timfelgentreff","tags":[]},"16280":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:14 GMT+0200 (Central Europe Daylight Time)"},"16281":{"varMapping":{"__isSmartRef__":true,"id":16282},"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":16283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16282":{"this":{"__isSmartRef__":true,"id":16145}},"16283":{"timestamp":{"__isSmartRef__":true,"id":16284},"user":"timfelgentreff","tags":[]},"16284":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:23:15 GMT+0200 (Central Europe Daylight Time)"},"16285":{"varMapping":{"__isSmartRef__":true,"id":16286},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":16287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16286":{"this":{"__isSmartRef__":true,"id":16145}},"16287":{"timestamp":{"__isSmartRef__":true,"id":16288},"user":"tessi","tags":[]},"16288":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:15:20 GMT+0200 (Central Europe Daylight Time)"},"16289":{"varMapping":{"__isSmartRef__":true,"id":16290},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":16291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16290":{"this":{"__isSmartRef__":true,"id":16145}},"16291":{"timestamp":{"__isSmartRef__":true,"id":16292},"user":"timfelgentreff","tags":[]},"16292":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:02 GMT+0200 (Central Europe Daylight Time)"},"16293":{"varMapping":{"__isSmartRef__":true,"id":16294},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":16295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16294":{"this":{"__isSmartRef__":true,"id":16145}},"16295":{"timestamp":{"__isSmartRef__":true,"id":16296},"user":"lauritz","tags":[]},"16296":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:52:54 GMT+0200 (Central Europe Daylight Time)"},"16297":{"varMapping":{"__isSmartRef__":true,"id":16298},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":16299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16298":{"this":{"__isSmartRef__":true,"id":16145}},"16299":{"timestamp":{"__isSmartRef__":true,"id":16300},"user":"timfelgentreff","tags":[]},"16300":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:19:43 GMT+0200 (Central Europe Daylight Time)"},"16301":{"varMapping":{"__isSmartRef__":true,"id":16302},"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":16303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16302":{"this":{"__isSmartRef__":true,"id":16145}},"16303":{"timestamp":{"__isSmartRef__":true,"id":16304},"user":"tessi","tags":[]},"16304":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:24 GMT+0200 (Central Europe Daylight Time)"},"16305":{"varMapping":{"__isSmartRef__":true,"id":16306},"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":16307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16306":{"this":{"__isSmartRef__":true,"id":16145}},"16307":{"timestamp":{"__isSmartRef__":true,"id":16308},"user":"tessi","tags":[]},"16308":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:34 GMT+0200 (Central Europe Daylight Time)"},"16309":{"varMapping":{"__isSmartRef__":true,"id":16310},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":16311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16310":{"this":{"__isSmartRef__":true,"id":16145}},"16311":{"timestamp":{"__isSmartRef__":true,"id":16312},"user":"timfelgentreff","tags":[]},"16312":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:54:56 GMT+0200 (Central Europe Daylight Time)"},"16313":{"varMapping":{"__isSmartRef__":true,"id":16314},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":16315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16314":{"this":{"__isSmartRef__":true,"id":16145}},"16315":{"timestamp":{"__isSmartRef__":true,"id":16316},"user":"timfelgentreff","tags":[]},"16316":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:53:52 GMT+0200 (Central Europe Daylight Time)"},"16317":{"varMapping":{"__isSmartRef__":true,"id":16318},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16318":{"this":{"__isSmartRef__":true,"id":16145}},"16319":{"timestamp":{"__isSmartRef__":true,"id":16320},"user":"timfelgentreff","tags":[]},"16320":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:17 GMT+0200 (Central Europe Daylight Time)"},"16321":{"varMapping":{"__isSmartRef__":true,"id":16322},"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":16323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16322":{"this":{"__isSmartRef__":true,"id":16145}},"16323":{"timestamp":{"__isSmartRef__":true,"id":16324},"user":"timfelgentreff","tags":[]},"16324":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:54:03 GMT+0200 (Central Europe Daylight Time)"},"16325":{"varMapping":{"__isSmartRef__":true,"id":16326},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":16327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16326":{"this":{"__isSmartRef__":true,"id":16145}},"16327":{"timestamp":{"__isSmartRef__":true,"id":16328},"user":"timfelgentreff","tags":[]},"16328":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:09:57 GMT+0200 (Central Europe Daylight Time)"},"16329":{"varMapping":{"__isSmartRef__":true,"id":16330},"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":16331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16330":{"this":{"__isSmartRef__":true,"id":16145}},"16331":{"timestamp":{"__isSmartRef__":true,"id":16332},"user":"tessi","tags":[]},"16332":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:55 GMT+0200 (Central Europe Daylight Time)"},"16333":{"varMapping":{"__isSmartRef__":true,"id":16334},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":16335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16334":{"this":{"__isSmartRef__":true,"id":16145}},"16335":{"timestamp":{"__isSmartRef__":true,"id":16336},"user":"tessi","tags":[]},"16336":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:37 GMT+0200 (Central Europe Daylight Time)"},"16337":{"varMapping":{"__isSmartRef__":true,"id":16338},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":16339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16338":{"this":{"__isSmartRef__":true,"id":16145}},"16339":{"timestamp":{"__isSmartRef__":true,"id":16340},"user":"tessi","tags":[]},"16340":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:57 GMT+0200 (Central Europe Daylight Time)"},"16341":{"varMapping":{"__isSmartRef__":true,"id":16342},"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":16343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16342":{"this":{"__isSmartRef__":true,"id":16145}},"16343":{"timestamp":{"__isSmartRef__":true,"id":16344},"user":"tessi","tags":[]},"16344":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:06 GMT+0200 (Central Europe Daylight Time)"},"16345":{"varMapping":{"__isSmartRef__":true,"id":16346},"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":16347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16346":{"this":{"__isSmartRef__":true,"id":16145}},"16347":{"timestamp":{"__isSmartRef__":true,"id":16348},"user":"timfelgentreff","tags":[]},"16348":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:04 GMT+0200 (Central Europe Daylight Time)"},"16349":{"varMapping":{"__isSmartRef__":true,"id":16350},"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":16351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16350":{"this":{"__isSmartRef__":true,"id":16145}},"16351":{"timestamp":{"__isSmartRef__":true,"id":16352},"user":"tessi","tags":[]},"16352":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:31:13 GMT+0200 (Central Europe Daylight Time)"},"16353":{"varMapping":{"__isSmartRef__":true,"id":16354},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16354":{"this":{"__isSmartRef__":true,"id":16145}},"16355":{"timestamp":{"__isSmartRef__":true,"id":16356},"user":"tessi","tags":[]},"16356":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:25:25 GMT+0200 (Central Europe Daylight Time)"},"16357":{"varMapping":{"__isSmartRef__":true,"id":16358},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16358":{"this":{"__isSmartRef__":true,"id":16145}},"16359":{"timestamp":{"__isSmartRef__":true,"id":16360},"user":"tessi","tags":[]},"16360":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:28:36 GMT+0200 (Central Europe Daylight Time)"},"16361":{"varMapping":{"__isSmartRef__":true,"id":16362},"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":16363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16362":{"this":{"__isSmartRef__":true,"id":16145}},"16363":{"timestamp":{"__isSmartRef__":true,"id":16364},"user":"timfelgentreff","tags":[]},"16364":{"isSerializedDate":true,"string":"Thu May 03 2012 13:28:31 GMT+0200 (Central Europe Daylight Time)"},"16365":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"16366":{"options":{"__isSmartRef__":true,"id":16367}},"16367":{"override":["onDrag","onDragStart","onDragEnd"]},"16368":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16369":{"morph":{"__isSmartRef__":true,"id":15955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16370":{"copy":{"__isSmartRef__":true,"id":16371},"onDropOn":{"__isSmartRef__":true,"id":16379},"onMouseUp":{"__isSmartRef__":true,"id":16387},"onDragStart":{"__isSmartRef__":true,"id":16395},"onDragEnd":{"__isSmartRef__":true,"id":16403},"showItem":{"__isSmartRef__":true,"id":16411},"getPane":{"__isSmartRef__":true,"id":16415}},"16371":{"varMapping":{"__isSmartRef__":true,"id":16372},"source":"function copy() {\n var result = $super();\n result.pane = null\n // keep that invariant....\n result.slide = result.submorphs.first();\n var title = result.get('title');\n if (title && title.textString) title.textString += ' Copy';\n result.setBorderColor(Color.gray)\n return result\n }","funcProperties":{"__isSmartRef__":true,"id":16377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16372":{"this":{"__isSmartRef__":true,"id":15537},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16373}},"16373":{"$super":{"__isSmartRef__":true,"id":16374}},"16374":{"varMapping":{"__isSmartRef__":true,"id":16375},"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":16376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16375":{"obj":{"__isSmartRef__":true,"id":15537},"name":"copy"},"16376":{},"16377":{"timestamp":{"__isSmartRef__":true,"id":16378},"user":"jenslincke","tags":[]},"16378":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16379":{"varMapping":{"__isSmartRef__":true,"id":16380},"source":"function onDropOn(morph) {\n if (morph.name == 'Container') {\n morph.get('PresentationContainerPane').onAddSlideItem(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16380":{"this":{"__isSmartRef__":true,"id":15537},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16381}},"16381":{"$super":{"__isSmartRef__":true,"id":16382}},"16382":{"varMapping":{"__isSmartRef__":true,"id":16383},"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":16384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16383":{"obj":{"__isSmartRef__":true,"id":15537},"name":"onDropOn"},"16384":{},"16385":{"timestamp":{"__isSmartRef__":true,"id":16386},"user":"jenslincke","tags":[]},"16386":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16387":{"varMapping":{"__isSmartRef__":true,"id":16388},"source":"function onMouseUp(evt) { \n var pane = this.getPane()\n if (!pane) return;\n pane.onItemMouseUp(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":16393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16388":{"this":{"__isSmartRef__":true,"id":15537},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16389}},"16389":{"$super":{"__isSmartRef__":true,"id":16390}},"16390":{"varMapping":{"__isSmartRef__":true,"id":16391},"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":16392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16391":{"obj":{"__isSmartRef__":true,"id":15537},"name":"onMouseUp"},"16392":{},"16393":{"timestamp":{"__isSmartRef__":true,"id":16394},"user":"jenslincke","tags":[]},"16394":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16395":{"varMapping":{"__isSmartRef__":true,"id":16396},"source":"function onDragStart(evt) { \n\n var pane = this.getPane()\n if (!pane) {\n evt.hand.grabMorph(this)\n return;\n };\n return pane.onItemDragStart(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":16401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16396":{"this":{"__isSmartRef__":true,"id":15537},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16397}},"16397":{"$super":{"__isSmartRef__":true,"id":16398}},"16398":{"varMapping":{"__isSmartRef__":true,"id":16399},"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":16400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16399":{"obj":{"__isSmartRef__":true,"id":15537},"name":"onDragStart"},"16400":{},"16401":{"timestamp":{"__isSmartRef__":true,"id":16402},"user":"jenslincke","tags":[]},"16402":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16403":{"varMapping":{"__isSmartRef__":true,"id":16404},"source":"function onDragEnd(evt) { \n var pane = this.getPane()\n\n if (!pane) return;\n return pane.onItemDragEnd(this, evt)\n}","funcProperties":{"__isSmartRef__":true,"id":16409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16404":{"this":{"__isSmartRef__":true,"id":15537},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16405}},"16405":{"$super":{"__isSmartRef__":true,"id":16406}},"16406":{"varMapping":{"__isSmartRef__":true,"id":16407},"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":16408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16407":{"obj":{"__isSmartRef__":true,"id":15537},"name":"onDragEnd"},"16408":{},"16409":{"timestamp":{"__isSmartRef__":true,"id":16410},"user":"jenslincke","tags":[]},"16410":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16411":{"varMapping":{"__isSmartRef__":true,"id":16412},"source":"function showItem() { \n this.addMorph(this.slide);\n this.slide.disableEvents();\n this.slide.setPosition(pt(10,10))\n this.slide.setScale(1)\n }","funcProperties":{"__isSmartRef__":true,"id":16413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16412":{"this":{"__isSmartRef__":true,"id":15537}},"16413":{"timestamp":{"__isSmartRef__":true,"id":16414},"user":"jenslincke","tags":[]},"16414":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16415":{"varMapping":{"__isSmartRef__":true,"id":16416},"source":"function getPane() {\n return this.get('PresentationContainerPane')\n}","funcProperties":{"__isSmartRef__":true,"id":16417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16416":{"this":{"__isSmartRef__":true,"id":15537}},"16417":{"timestamp":{"__isSmartRef__":true,"id":16418},"user":"jenslincke","tags":[]},"16418":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16419":{"submorphs":[{"__isSmartRef__":true,"id":16420}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16556},"derivationIds":[null],"id":"D7330AB1-7B3F-4AE1-9FD8-8F78661210D7","eventHandler":{"__isSmartRef__":true,"id":16557},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isSlideContainer":true,"slide":{"__isSmartRef__":true,"id":16558},"pane":{"__isSmartRef__":true,"id":11730},"name":"PresentationItem for SWASlide46","owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position"],"behaviorGroups":["Slides"],"_Rotation":0,"_Scale":0.3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16694},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(20.0,1520.0)"},"16420":{"submorphs":[{"__isSmartRef__":true,"id":16421},{"__isSmartRef__":true,"id":16427},{"__isSmartRef__":true,"id":16437},{"__isSmartRef__":true,"id":16440}],"scripts":[],"id":"2528EF85-3464-4271-8E93-0A20827424ED","shape":{"__isSmartRef__":true,"id":16551},"__layered_droppingEnabled__":false,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":16552},"draggingEnabled":true,"name":"SWASlide46","partsBinMetaInfo":{"__isSmartRef__":true,"id":16554},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":16555},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","70107993-916C-418F-96DD-2EDA00F22575","A691AE87-DA0D-42D2-906D-28F49049F61C","FB6D7355-F47B-448C-AC25-E1C2A7513387","ACDCA81A-A376-42F5-94A8-20BC7FCEBF1F","5F071D0A-0824-4B1C-B099-D363CA59D109","CC185752-ED01-4F70-B329-5B5E975F72A4"],"prevScroll":[0,0],"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","eventsAreIgnored":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent","lastWorldPosition"],"owner":{"__isSmartRef__":true,"id":16419},"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","_Position":"lively.pt(10.0,10.0)","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(370.0,1520.0)"},"16421":{"submorphs":[],"scripts":[],"id":"52CEE29F-78A0-416A-82C1-8EB50FEC5308","shape":{"__isSmartRef__":true,"id":16422},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":16423},"textChunks":[{"__isSmartRef__":true,"id":16424}],"owner":{"__isSmartRef__":true,"id":16420},"charsReplaced":"Solutions Propo","lastFindLoc":30,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16426},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","6771D830-56BA-415F-92F1-5CE3E5D687C3","C9B1DB13-AD06-4936-8DF3-61B56BC68B5D","19DCC3E8-1913-40E8-B3B0-EF84063A0B38","44CE2EBB-C48A-402E-B48B-586F11E82405","EA29E825-8C6B-4E8F-B5CE-5631D432A266","A8E56EFE-A541-4D9E-A49D-5E05E945E9EE"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"previousSelection":[6,11],"isBeingDragged":false,"priorSelectionRange":[0,12],"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"16422":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"16423":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16424":{"style":{"__isSmartRef__":true,"id":16425},"chunkOwner":{"__isSmartRef__":true,"id":16421},"storedString":"Scene-Graph ","_id":"_298","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16425":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16426":{"morph":{"__isSmartRef__":true,"id":16421},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16427":{"submorphs":[],"scripts":[],"id":"0CB65708-D352-42A5-8DC7-09E39B602C44","shape":{"__isSmartRef__":true,"id":16428},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":16429},"textChunks":[{"__isSmartRef__":true,"id":16430},{"__isSmartRef__":true,"id":16432},{"__isSmartRef__":true,"id":16434}],"charsReplaced":"M","lastFindLoc":6,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16436},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","56C6D476-47A1-4AD3-9340-9EE470F9BEAE","6734B205-3A4F-4F2F-A339-2CD871E82936","BA59A4A0-07FE-46B3-A0A4-70A9F29AA40D","87DAA03C-DD82-4EB7-A632-4799DC6A5341","94809990-060C-462F-8C42-8BFF1B365D2F","B036E432-A10C-4432-AE6A-6B8FD021CF92"],"owner":{"__isSmartRef__":true,"id":16420},"previousSelection":[0,46],"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(65.6,193.1)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)","distanceToDragEvent":"lively.pt(499.7,-16.4)"},"16428":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,31.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"16429":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16430":{"style":{"__isSmartRef__":true,"id":16431},"chunkOwner":{"__isSmartRef__":true,"id":16427},"storedString":"","_id":"_744","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16431":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16432":{"style":{"__isSmartRef__":true,"id":16433},"chunkOwner":{"__isSmartRef__":true,"id":16427},"storedString":"■ No mechanisms for browsing part compositions","_id":"_299","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16433":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"bold","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16434":{"style":{"__isSmartRef__":true,"id":16435},"chunkOwner":{"__isSmartRef__":true,"id":16427},"storedString":"\n","_id":"_300","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16435":{"textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16436":{"morph":{"__isSmartRef__":true,"id":16427},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16437":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16438},"derivationIds":[null,"D8EA8459-4610-4812-B913-F5C1A2518BDC"],"id":"7146CED6-3448-4A1B-8EBC-F3C990246340","eventHandler":{"__isSmartRef__":true,"id":16439},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":16420},"name":"Selection_041.png","isBeingDragged":false,"showsHalos":false,"_Rotation":0,"_Scale":1.1073654710215566,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(262.2,231.5)"},"16438":{"_ImageURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAukAAAGHCAIAAACCsFvrAAAAA3NCSVQICAjb4U/gAAAAEHRFWHRTb2Z0d2FyZQBTaHV0dGVyY4LQCQAAIABJREFUeNrsvXtcE3e+N/7JjSFABrlMQQlemBaa0JXQ2gZtG1pt1NOmF43aNvZGLyvbfVb26T7S3ady+pwDu6cHt3sWen4tPttdbLuml91onxq3ltS2ZFuF1ZrollDRBJWgyHAdIDDkMr8/JsQkk8Tgrajzfvlqh8n38rl9P9/PfOc73w+PpmkIBU3TPp8POJwPhw4d2rFjR8SfFixY8Nxzz8Wu/se3//jc88/19fUF7ng8nuzsbE6wHDgw6LQfi/bTAvymwCC6Zvg9deoU0DB33lxO9Rw4BEMgEITd4QXHLgRBfP7553w+Pzc3Nz09nZPXecGO/Pxi5fE44XDgwIEDBw4XiWPHjpEkeccdd9x0000RYpeWlpbR0dGlS5dykuLAgQMHDhw4zBz09/d/+OGHGzZsEIlE52KXlpaW7OzsnJwc3xQiVubz+Twej716w4EDBw4cOHC4zkHTtNfrjRZC8Hg8Pp/PDiGYnSperzdaswKBgKnV0NDw05/+lM/n82ia7u3ttVgspaWlbrfb4/GclziRSCQUCjklceDAgQMHDhwYeL3eycnJ8xbj8XgJCQl8Pp/50+fzURQVZ62JiYm///3vDz/8sBAAvvjii4ceesjtdo+Pj8dDn9vtFovF3OoLBw4cOHDgwIGBy+WKtgc0DDRNIwjCXI+Pj8dYcQmLjcRiMU3THo9HGFirmZiYcLvdcZIoEAgSEhI4VXG4VuC2H2j6f037Tw9OgDARv2XxQw8tz0FFl6RpsvvAf/3Xh5KS9S+tKT5/4V7LG7XbxYpHn18uZC5eeuL2afQ1VX1atS45AmT87InbRRdE3p9/vfm7kRt+8upP5olFvd//v9+9/XcPpK2vfKn4BvHASfPv3vhEonj05Th4jNaje7x3W+3vTiYqal5+7NKy/NITt88QLXDgcIURz6JLYAUk8PZmYmIi/loJCQnFxcVnzpwR+ny+rKwsn883OTkZ6NjeXP1AWeOaBlPNchwAKNK24b7V5IP1O6qWMwV4PB732ojDNRO4fPe3d979qgOEGfmFuKvrqN365du94z/96er0SxG9CMWZhUVFKJ4Zz9EDNPB5AHw+PzEx85aiImFB5rQOLAhU/2GPOQgmI5iO+JkqzEu1fkuc6nHlzpN0t53yAAAMdnT3F2XOIU93TgAUFuZOS55hhX0+4POAxxdcKkEFdzRDtMCBw4yNXQAgMDrOBR5NtRvriPr3a3AUIZ1NGzfoy7bWl0rRsFqzZs0ymUxCAEBRlNlcE1jtESQkpmXN6/j4wIQ6DwFwWv92Ilk8LzEhUCD2thoOHK4ijA8e//Rrhxgt3PjKj3OT+DzaZfjv2oPDfaeHR1PTxCO9HcaPjUc6CRCmyJX3PbJC6Tnzdf1buyVyOTg6xtMWvrJx7em2r/768d4zo55Zs2/SrFlbOEcS3D41RrQdPowmFd5bkPz1x3/Ze+jYBEDirNnLVj12V/4NALCz/t8OjcyufuXHAODz0gBAAz06SrQdPizmFSxXSI31/9ZKpD1Z+ZN8iWjkdGv9Gx9Lbl2zce1t7H4D1b1er7H+31oJyZMv/SQ/TTx46uv6t3Zjdzz24qoihqpBx57f/aE59447ofNwJzE6+6Y7SwuFez//hhgVyksfeWxlkQiAzbtEBExTAfY3rplb/8bHkoV3JJ6xdRITs2+6dc1aDeqlAcBFHjO89fmhTiJl9k1rn3w8P00czNSg49u/fLynkxgVJs5auGzVI3flBweKWTdL4dtv7af7b8uijtp7QYgKPeTJttMTt6R3H+0GQG/OkXi93vNqp0InDwgEAE4f/uqDj/cSHuFNRUUuN4CY9nq9wfKPM9ht++rjj/ceGvWAMHHWrSvXapR5wZIPvubGF4frB3G+MGIQGB2BWgUPv/qrg2urapve2iTbUvl/7/vPt1fMSx33+Ni10tLShIFAJKzX7KLl8/tNVuIRJQZH/naidLmiJ5REblhyuDZAnrYRHs+CRUvSPCNDwwDAe/Bn1Wv53pFhcmzoxPt/eK9zVFS4WCXs/+7wNx8PuPiPLRbyAAhbp6xkce78oiHngff+/BmVnr9ihbTNbP5r487UinWzxecmYq8PeADA452w7tp9qLNo6brbc6F55469xs9u/PFaTCy6AZudnTKHGVBeHw0AQPt8tAAAgAder3fRfYXfvPftkaNn8eLZJw8dGgXxstKbIvYrmaru9XoVpQXffHD4yMkBHM0+bft+AsR3LLnpnL/gCQGg65+d9695dMGhj79o++avPfMeXr3+5GcfHWzebVXgP0rsY/O+QXsrzQth3wdn+ABnjvxT+fAjt08c2/HZP957f9Yzj2AAMHDcesOd9y7NOP7FwWPGPW0V64p9NI9harSv/b3GjwlRhmrFnX1t5kO730vOrlixIO3cCs2cAhS+7e04PZaX4ugdly5akdv1mfXU0f6h2Z2nx8Vo/pwU4UQc2vH6BgMCGSeOfPDBZ4PCLNWyosHv9x8b94hR8Hq9wfKPB4NdX//1s0NJ+YtWKTKse/YeMhp/VPBjLEjy3qBrbnxx4BA7djn3TOAaV1W90aRZqyuj81b/7tlFmePj7oi1vF6vkAlE2OESkiB/QNn56QGH4i7qH2M3P7z41J86QmKXaUVYHDjMWEyMuQAgEeW5mSkH6NGh/lEAADhzfH/nqKdo3c+eWzIPfP/y19/9+75/tpxeWAwAGfkrnn7sngT3xLfGvw2BcPlTuhVzU4uzyNfetX7XM5I9P439TMIHIYDH8f3htBTFgz//9U1Z4sHBYS9N3/v8L1byPINDI0yxQPnAWEudv1gqPNxhOU4WCL6zEeIM+S1pKSf2Wtn9LkbP1cpccHsWHO60dLoKEo61nxZn5OPpiTTtm2qdBoDcRStKFxac4c//oq0/f+kji38kxc7sO2jqHB+bOOOMwHuX+pZ0mg5mv/fUaQDIKnpkjepWHm/hcEfH3i7r6bF7AQDN1zyzVsUf7+6w1g0PD9A0HWCq78ThMx7PIt2zqxWYt/S2410jaLok2KUkpORIUWHnmc4TJ2AAhPKivILE7P1fd53ocZ4eGBcvLEjh+brj0E7v6YGAQPpOtBEAi9Y/ubpozsSSm/6reisJQIfKf7Bzn37H/gkAYWK2etncL3f/g7le/ey63Kl4NH3+il/Xlk7S/NGertPp+ztJykW5gUcHPUTS7MfQ4JZXP7supedA8J+5YhE3Ejlc94s0tM+X8fiPZX/5X0f/VZM/Oe6OUSvquguA4MaHH/zz6wesCU6B+hGUvw24dRcO1yISJWIAcPW4AiY92tczIZyVOSuR6ncBCDPThANDQwDeG9JRj3NklPICQCKWTA0NTQBQw6MAnqbf/5+mqQaHhyaCR8fUUzidVfTgCvvQZ4ePfvXJ0a8++TDzxpInHrtvllA4MtA3cu6pwh8/BV14BSLszsJUQ9uh9g5Xx+C4VL0o0eeO3G/yuVr8pDkLF6BfdrU7Tid09I5n36WQ+NwBsph3zYkojIy53D4BACCId3RsjBIJAWAC6Ii8D49PzvLRwewz3ImTRWMjYwCelBSxx+OanPAAgDglYXSIhAlKKAKex+P1egNMTYyNAQiThZNDJAn8pLlzJR43FepSxAXSVJvNcWAfCIUZ8ixxsmCe8OuvLAf+0Qtw280Y7fXGo51gMU4MUwDCVASGSNIzmZCeBCTQXq83WP6eycGeoSEAEAoTJibQwDU16fMm+Mmjxjo/NRpbvjvhAWGi0AOQDj6fF851FNwpRGqZmvQlhv4ZaJwDh6sdFGmvrdziCPrsWabdVKmRn3fdBQB6j+2sqRuq2DC/5sXaP/5pM4ZEXq2hadq/7hK82SUQn8xacOf8/g3vbJv19Bu46Jvw2Ifbhsbh2oA4qzBL+I/ettZTS+ZKU4Qez9DnH2yz9tH3//inuVkogKeni/BlicEz1tVPCoUZsxA+AIgEPK/PBwBiNAlAuPT5jcsWZIyT/S5ISk3he92+oMHi/7+LJPPvXqVan9Hf2WHes/Pg8YMHT92xdP6siE8VwXvLwAc5JbfCYZPp85EJyFhSjLl9voj9jvQOBNXi3XzHTaYPD3/z1fggiO+9NccdNGZ9NA0AtI/v8/mYaxD4zl3TvsRIvGckCnwUBLPP0Nl/9oTLNz8RXD0DpFCIpiB8ABAyXmJqpSfYySSiKICnv2/YJ02e6D2ys/loTtGdi27MDBYFVpADtiOOM4BKi9L5QlG6LFv49SlbFwC6IDvZ54tMYZh2gsXIlO/vG/VlJ/moIdIFIIYwP5YpX7d1axkA0LR7aHBy5fLnmOv+nl5qqqTjwJ6vvzuxaN3P1qvyLdv/8939LpqmaaDZbAY3Htxyf0+vN/RPinOnHK6Zp8FZN/9+505RUGKcyZGBgbHwbbzsEIIi7b99+f8u+Y8//0p9g+SJlf/a2Pz78lIkUi1/7OJlnhRYCzgiPna/Kul/mosKMfEZ1roNt+7C4dqAQDz3flV+4xcd79b9f3PmZYydPdk/5s3IX66Yk8zPKMkXH2n72wfjznxh38mO0+ML7r4PQ/qYxU1mCMy59Q7UfGLfx5/ArXMd/zCfGEpZveG5BcLunR+YhPnqtUtxZhIFmu7av+v9ffYsuXLJLVKPDwCS5iQLvV7vvr802iaynn/y/qBFGp/Xx/dfeL0AIM4oKkS/PDw0gS5YPFsMXo83Yr/zhCE7LZLn3ZYlPNx1/Iw4o2g+Khjr7whQ5Qvak8Fc0/71V//SLZYXgfesRBgepIPZ9/oAAEbs5u0fDGVA/5Hu8Qy5OgMJIn6KpeCNIGnzFkmFR7775IPJE3nUyY6Tw55ZynuCyQOA1Nl5YjgyDpB1440i2uMTzboxN8nZSQrRrNlJAq/XG5HCMO0Ebz1Jm1uUJTzyXZMxbVIx1N7S7fGIgQ6X/1j/qbH+gG2MjPazDUboBQCYIHsOt3R+aekBELt9lH/dJfp+l7CWwR36JwcO1wpon7v/7NnzFmOHEMaal3vufPmNuzIG+id1da833/MTvQIvK5FGrHXunVFwQ3n3/Kb5Iaq7Z6Tklc+O10w4nf2zHm38GBk90zfGKYbDtQavL2/lCz/L/nSncf8phwOEaOHiZeseum1yeNQruOGJnz/3ieFj65EjHqGkaKluzX14r52AqckYAIRo0Y+fd3/w4a4vmo4LJdJVP3miOJNPEJ7B/n6xa4KJDGgAAN/N9z+lS9yxy9y609YqlGStePpJGYZQk96x0cH+kUSmtalnkcC6pr8XHl986225h7/svGmxXEB5vFH67esLqcVPSFcuSPrkGJklW5jsdQ97g6jyv9agz137fEH3fV5+BN5d5Jifm6kufD4fDZBRuDh98Lsjp0ey8hc/8egib88/p1rxMm+naICgk8JpPpLz3M907+t3dhw5IhSnq9bp1HMlvT3dAfIAgC+RSsXCY+MwtyDN7fWCl4/nZX3VSaI5t4j54PV6eXFoJ1iMfGTBC+WPbNfv/tK4J69YWZgx5KDB6w2RfzyYe5dm8cn39u/5S+csaWFhbte3Xad6x6WZ5zoK0x0HDtcJpvU2JjA6ArWe+tO+/+EbOt03SgPwBfKP7TZX7+nhcQ+7Fk3TPI/HYzab586dG3HpJRq4rEYcri3wxGh6RpoEEQrA53GNDhP9wx4fDQCChKSMzIxkcQLf5xkjB4kBkpeQKpVmuofOdPe7mMpIyiwsIw0R8n0eapDoHXJNCkQpOXOzfCO9zt6R8YH2bW/vSi95/NHS+Wg6loYmC/ng80wOD/QOjlA0QKZ0vkQw2XnyNAAEKp4ZpAMtML0kZeTMnpU40uvsHaHi6ZdxC3bTewYL+eBPy2XJouBfhYnpuTlpE/3dZ4YmREnY3NnoyNmu3tFJ8azZczISB7u7BiY8bN69NAiREPbHB77f9vYnGUue3vjYHcmIcHKc7D3b5+EnMx11944AP2HO3Byhhzzp7A8lQHIDli5OEPq87pFBon94nB9KPI+fMHtujlgADDEAIE6fMydN7Hb1Oc8MM97uvNoJE4hInHoDlpYo4o2PjNCJEoQePdFFBMs/LlsRIJnZWWiiyOOecE0AKkkYPuMcdCOBjlha4MDhukA8OYXOrV9OHRF3AbWOHj3K83g8X3755dy5c5lzduNaEaJpoVAYSEbAgQOHaBju+vaTz77uHfbc/OBTD+RjV7Tr098fajtqO3Kcl3Hbj5+/TzgdBxE/xoc63vvjrnTlujV35XLq5sDhekb8R/MHH2/r8XjiXDcJ1Dp27Ni5d0YQ9y4WgUDA7XfhwCEeDPX29A57UGnR8oJsr2fyivoR0nnoyHEhKl37tBqZnJi8PGca+CJ9U8OBA4frE/GsgDDvbYLPpruAWjyPx/P555/n5vqfmcI2vrDBrbhw4BA/kjOk87JQzwTZdbJ73HtFj0RCUufgObN8nomzXV2D4+7L1IsAScPx2ZMDXSd6uPcjHDhwALfbHWMdhc/nR0woNK1aDoeD53a7TSaTVCrlJM6BAwcOHDhwmOE4ceIEz+VyjY6OcrLgwIEDBw7XCQYHB5mLsbGx8fFxr9cXdBzJ9QA+giRIJCnBb1F8Pt/IyChFTQLMxNOG+Hw+giASiQQAxGKxEAAwDONMmQMHDhw4XCdgNlj09fVj2A1iceJ1KAGv13v6TE9mRoZAwAcAr9fX198/b97cmfwF8eSk29ndLc2ZAwA8l8slFos5U+bAgQMHDtcJzpw5MzbmomkaQRKuZzn0Ev05c7IBoOdsb0Z62swn2O12T7o9s1JRPgB0HdhW/6E15GdXj/WAw+XqsR5wxN7j5+qz/mH7Aea/XQe21e/4rse6/c0d38VDBFM+1q+hVF0wYncEcTB4CUXPyMcdh2wvhpKLl17sFqLRz7acixTgBZhWDHVfKm2GCScGYZfcfjhw4HBJMD4+LhDwPdc3REIBTdM+H83n8a4Kgnk83tjYKABE/mJouKdt7/5Osqdt7/7O2Orv72jLKMxl/svcyVasf3H1LdeMfQezdknAyGc4DtlebkouBtHoZ1vORZJ9aU3rMskwBmEzSmscOHAIYOQKbvQkieYy7eaIP9mMm8qqm34oIQhFQgDw0T7m4gJgM24qq22+MrUYCPgCYHICAEBPx9761/f2DQ8XLHtmfWne4b0HHA7Xnz8UdJ717ti3YInI/Naefmk2CuPj2YtXrVzQ/9ZbB35R9QKAy9HmKlwndnzkKlyXAR3+R9KdDsXGRxV733zNvez5lQWZfUf3vLNXvPGZwl3b32nrd4vcottXrV92SzbTdfObr/Wonnn0luxhR/Pbezy/eHFZyGPrsGP7Wx/laZ5R5QnDqncd2PbWnh4xgGzhrCPtk7kZ4nGyP2vxutUKNGJHwWsDO7Zt7yTdbjfc/uD6lYrcQFPKhx4YbN7d6RIlJYmGh8VVVesdba7CdRlBBbSj//gk0Hj++J5gyay+PZfd+HDXvnc+2u8Gtxuy1z2/XtSxfadDUUgecDhcO/YtWK1ICi5f6N7LdJSFeFLvfz5ILIsZSra/9nrh8z8pFHW9XvPO4o0vL8ke3/76rtIXHrTs2B7Gck/bnvrX97pc7vyV68f3fsSutWzjM9kwHCyr/PE9TO9L1j2fHyr/RamOYC469x5wOFx/2ZtAt/2jyw3u4eG8ZevXlxaEWc6jS7Idba6CB9073ny9jXSLQLR41dNLcj3R5R8i3mW3oAzX0zKt/ClFs0xrsaPNheX/7V9fG8xGxWR/f0Z+HpDD/T39ilUvLMuDaFTJFs46dGQsWMthQ0aVZGYIc7t6dm3bHuC0tCDJTz8HDhyuY/AFSEJC5F01IiQxQYz8wPTRF358w4XRf/Fc+2MXYWrh8xtXQs+B+m37oTSvaNnt1nFYr4HtRli9JK/ngFmcseiFF0rB1bWtflfPxhd+UaVggoBOyFOI+vdD3u2porDEYoVLFmzf37GsILVjf9sC1dNHzR850WW/fEHhHj76dv2O/LwXmGIFqvyD5qOuWzI69h+WLlkX8hDf37btra7Cdc+X5mV+t+dNVnW3OOP2X764rOfAtvZu2TMvlLr7rG+9vf8oORyxowDa9nzUn7filytvcQ8ffat+54IFP0maaurojvqThat+uaygz7G3fpuDYfD2VFF/oMCeN78Iahy9NzFYMo7CF0hW4+MHDsKCZT95sNDlaCOnjh1kJLx6SV7bjvrg8skqhOmo/7sd24PEEqDEnS863NmfLW5ziaGjo6fQ7SSzC8kDO9gsizMVz29cKRo++lb9roUFgjZWrewk0dE9IUpB7xUwvYsAug6EyN+646NgLhj6ly5IdGStX39L9nDXvre2H+xbUhBmOW6XoxPy0tp2ObNXVL14i6vvu/1t/W1tn0WVf6h482bf1zl900LvTYxoWowM70zqEqGKF15c1m/d9qY545cb17uO7njb7MjuOBiNKsbAgrUsChsyU/G2Y/+OYE7duSRDP+e7OXCYaUhJSbn4RijSXldZZSYoBBDtplqtnKqtrLISFEWBZmN1WQlUV1S1k4Ak8gcnigCAIp11myvN3RRCIZpN1WWlOAB0fP7fZYe2kiSlLK+uUFLVlVvaKaAIQlFWXaMrIWyGyhoDBRQFeZvrauQIwW7hguFxewBAIBB43B5IvCg5BDNevlweLhmcCObr6Yv4QGjS7T4Xu2RmZScBuMWoKNKZviIQZeRliwAgCc0QjfeT7rwkEQAMO6yifIXbYRXlK5IAwiaYjPzSjD07jnah1p6M1QWZR809Xf1736o3A7hdIBp2uVOZYgVLMowfdXRlW7vEK1dl7Nv2+s62HjG64IWVST0dbYAKPW4AgH4Hu7ooNSODmRZSM1JFACASA7gjlQzBcI8re1k2AIhSs6VJrn7SlTTVVH+PK7cwAwBSsxdkJ3UNn2NtqkBo4+OTgjDJuFiN375yVc/OXa+/+hFkLFi1Pj82McPjiUxHYWIZduxjKMlVFH2x1+FI6lGsVDkPdnb0ObIWrR4y7wljORNEGfkLkgAgKTsraZy3YGG/NbwWm53RyYSASAEgWP6FoVygAAAgRtHOPR/t/wxEIpfLnc22HEaAo50HshZlA0BS5i3LSqH5zZ1R5R9Kz5mjVlH+ouma1uik/wO/iDJMhC4/j0JxKsowmyRyu2NYBdv+s6MMmf4uMpjTvu92MFrjwIHDTIM4MXFkZDQh4aIeLQ58VHvsll8e+vWKwZOf/WFH196vtvbe+ct9lSuos+bVD/zG97Vv4v7X9m1UdTb/9vGXHRRFff1e9bG5P9/3l4fHzzbrHqgtlm9J8NKz5j+yfedLycTXax543SxZeefP3/zj8oKzbe+v/cnfHJriDuPfEu78uf5/rxg58Dfb2MjXH4W3IEMvfAHD6/XxeDwAoKjJhATqAlpwe2nwefa+WR3M+N/ldbw9IZI5LewP5sv5FA0+D0VNu0e325Oaip6LXVjByrn/AoAb3P0OpwsKRMM9Tpf4dtT/i7Otf0FptrO5f0FphHlLlJS9KB+MO42oQpMtgr7szAV5S19ceYvb3XfA3JGbmkQyxUTZixRC4y4jmr8sN0mU+8wvloD/BUHB4nW6JcNvb9uZ/4tnMiJWj/SKLiNKRwGkZie1OfuhINM93ON0JRWiSdDjbyojO2m/sx8KMl09Xf0uN8PgFD9CduNpSR3934dIpp/VeJd1f4ZqfdX61KN73zTu7ViXHyLbMGKKxUJwCdlisU5RkpRbgPZv29+fsUqjGDf/wdyRuu7BDFcHm2U32dXvBgBXf79bfEf+zZ17t4fVisjOP4NEGix/t7UtmIvnFwMAHNn5kUvxzC+W5PY59r61vYttOYwAM8ZRq7MHbsl09Vi37+m/PZb8Q+ihT7YtuHfappWW1PHPIYgqw67IQyKGVUSz/0i2F8qpOPLQ4MCBwwxYd0keHBryer2iC93qAQBnjw8VrM44dvw4X1T0/NP0tud/n78y4/jx4zzhLEWG6+QJ97xHxMePH/dl3zo3tdvj8Zy1nfzOWadR/zfwPJQwZXDYleND5t5ZOOxwDHlnFWSMDwrTvnvr59t+40sUu0h3Ac/rue8XNUTNvy9b+Ate7m2b/vVX7BY8SRfyVTNN0xMTVE7OHObPnJzZ3d2nExMR3jQPuvH5AGgf2TUezHhv3xCESsZ57MD+3wTxRfOA9nmmmWTN4/H6fD4My/THLj6apsHn8/l8PpoG2ufzCdJyhGfe0beUCs80/8FwwwO5NNm1r/61A+CG2x55Km3sn7+tP/xS5dNH+9GlaYlf9KNL0xKZ2jRNB1oDgJySRa5a49I1830+303L17S9q69+zSgCWFDyyG0C3xBT3uebf1uJa89f7n5kXnAGbaad9JySB+TWDz/8x8/WRq0eRn+0jkaJQw0NB1965XnZ8oePvvuX6gM7RW4oWvH4TRJB11RTNy1/2PrH96sPCMVicAN6tD81hDUWF1n8EMnkJApuYDU+nCPZsa1+r1gEHnT5U/N8TgsNfgn/wXDDcytCys+FLw7RNCOHYLEcnRKyQHCDXOo2kjflSNJukoqO9styEgUQieXhLvMf3vwO3OM3PbB2niSbXSsiO/RU72Hyf26pnwvfZMrKZ+YJxInCM+8cmFswtmf7m9+li0UikXt8jKIyQi0nox9dmpaI3vVIhr8X8d1rdLLsG6PLP4Qe7yCqnr5pBXPBlqHr1JS10MAUo2maBjqGVfjocC13hQ0ZGpg/54dyerSpj9EaN09w4DADkSvNoSYnXS7X2Nj4hbWQU5D9xcG2iRvvGDm643++c2ZNwSzzweMTc4uo7u8sQ7PuXu77xyH7xPyiM21fnxgfn6DcuQXzS5aUv7tx2cRE1853/l6QlnzGO95zqGPwgfnQf6xzPBV57z/HHn5771M/Otm69YmXLJOU+xu9IfPp+kP/d77596tf3db6IquFCWraGT+SksQCviAzMzMQqfD5fKk0hySIaZj9AAAgAElEQVRHvT6vyzUNaUx6adrnywxlfFFGMoRK5k737rGH/xDgy+OlaZ9vWpQnJ4uTk1MCh/Hw2traPvnkE86IOZw3SOfxeKhE8s3Xf/fR3GTM4fwGc+utt/loThIc4vItc+bMOX369FVIvnewl3B5fDwQpGJYssg32Nvn8vh4NKSk35Aq5g30Ei6PT8Dne2lRzuyMoPKQiGakpyBuV9/ZQbdIKATwJc3KTKLHzvaNChCRgMdzU76M2ZjQ6+rtHfLxeQDC9BsyEwV0WAs/LP9uV98AlZKVJgxhPElI0yGSQbyjvUF8pabyR9wpWWmJF2Yt8+fP55lMpuPHj2dncyvbHPy4b+k9+/a3hn1AmJ6WVqq666f/42fz5i+48cYbOSlxOGctLa0jI+HWcvddS+rf+O/FixfPmc35Fg4AAKNjrhvxvG/2t4RbS3qa6q47/7TtXa/Xy81EHAJYft/Sb/a3kiQZ5ltUd9/Z+M57QgCYPXv2j370I05SHABgeHi4/fujy9XL2D998ZWZz+fNmT371ltv5QTFgbGWY8ft969cwf7py2Yz8HhpabO4Y7s5MBAIhG229uX3LYtoLTRNczMRh2Df8l2bTb3s3kjW8neapvmXo1eKJEiKE/5VKbrx8fGEhMiHZPP5PE5BHOK2Fj4nHw7B8Pl8IpEomrXENpgZMqdwU9sVw8TERDRrEQj4AiYJU6hyiM0ahUJVbo+kIdLZrFFqWoK0F7hD2PRqVRkAUKStXFNmdpIAELh5MXBaGtWqctLZpMLxMMJsxk04jpfrLRfZuD3uL7WY8nEWbmnctGk6tAWL7gcB6Wx++sGn45fDdPU7LeldWkRUdDz0zxDDuz7R077z2af+nfkvJ43r+IkulmO8rD55Wv6ZIiwbyzbbuejmiiA8diHsplYSlyM2Q4t9Wg2hUtXm6o1+FU955KCbl8iICYvZRgSmFbOh9QrLC8PVm6s3xBkHbDVCuVY+vdExwyYznkAUn9KvSsRP/w9ueFcF/rrjY04IHC6DtVwax3hBPnkaZCBYsU7Vt0Xfwin3ClhLeOzSqjegqrINOty0zRwILy2GarVChssUFbUGJqZk3yGd5pqqegCoLa+w9jk2aTR6GxG4aWtq0CgVOI4r1TqDxekPltVlm8q1SqVCoVDVGplYmGrWb1YrZTiOyxSqakNIgIxI8kpLUJO/JJCEzezEVHmSc0/Dob0wXZRrVTKF2mgnnJZGtUpXXqZVq1VqtU7f4vTbI+Vs2FQmw3FZgAzK2bBRp5DhOK7QbWxwUiGxXU3V1thlpgL8raDW4AgShdMIMgkWXehTBZvsCIIK4bf9SETy7M2NWpUCx3GlpqxpqpdgbY5OhgcuMcKXgH4by9RlDf7kFM6WBpWq3E5SEfsCAH25WjuVv4NZ+bAFPakwXGxkxKXUNBqNm3QapUKm0my0ENSlVXSIfTKkqkNIvdKGd/U7l4sIXyYPGN949rGH1Cv+5f7VT7/Z1M7562t+KopsLSzXGuwY2d7j2JgnhnOL6pNZQzJs2J7XP7MLAIBc/Thp2Gbhll4uv7Xww9bEDGZSq1MWqx9HbIYW/3sfQ0W1WddgtLUalZPtBEUNHd0Zdie4kcqGOkVm3hajUSfHAhZWXqnXVOttNlutLqe2vKKFoACAcLQg6s2trVZ9rdpQvcVGUoRFX1VrrWg02+12fZXKWLvFFmoESo2KMBuZmdhpNlAKTd7UkYLsXixDHsLRItFWm4yNahwDAKLbItFsNpnMjdXqxspKhgyyr71PqjNbLA2VCoYMm7FO78gzWm02iz6zXV9nsrGlGbsMRdl3mAm1yh/gR+A0kkzYovNXZ5EdTVABfqW299jkkXZjRUWDorLRZrPVaiVV5VU2kgrT78DkueCF9rqZf+e1LaVWaTeanBQAUFajCVNpMMLE7stfePU5JdqMRkSpwUPPhSQcLaimurW1tUaN1FTUlmxqbLW2alBrvcFyaRXtj0XsxopKvWqz3ma3VKmhprKOYHmeK2N4V7V/WbP6EebfhVUfaN9d96fvn/z1NtNnn75evuirPzUeD46jOVxbiGEtbNca7BjZ3mNesjCac4vlkyMNycCwVVCm2P452qSGSosVqNMw9XzC4fJZS0js4mzROzGVGsdQaYlWTm3TWwDAZjYiJWW6EhxBpdpNFVIEOfnNp2F3YndsMxqR4rKy5XIEQUp1lWrUaWi1AwCaWaxTywFAWqzCgCQowORag0mvkWMUSZAIChQZNovkyDQyaDfbCQDSbHQoNUoEkGi9fNrWh2bKdZoSqVTKFMJySsr8PWqUqNNocQIAmqnYWK7GULRErcOAJEgKkSCks1VvMDkpab3JvEUTYY0xdhnS2W4nUZkU9b+bYHEaTSYRwSY7mqAC/EoikWczG0hcW6EpZjpVIjaDhQjTb3aUrZexgSu1UqK11UlQpNNoJjVaZcS+mMLSEo2UtJrtBFBOo9mp0irDDAjNlGtVOACSV5KTI1Op5BgAKs/DSGffpVW033JajZRcV75cjgCqqahtqCtnH7F9ZQzvenZP6bi6/u3/vBdPnxwdGE1IhsmxQS50uS4R27WyvQfjsGI4nIg+OcqQ9A9b+/n8c3QHjsrz0HazndPj5UbwWcikaZvJYe1TKfQAMDk5KbG9b68oGbETaKbfmaNYDoogrhN9YXdi99FHkGhOjr8QgkoxxEqQkAMI4q86NQ1QFJCG2qoGYwugGI5j7GQHCCpdrkT1BosaRcxEzuZizBi9l67BCQRBg+chBJ2iFkFQBBx9JGCAIFhQGYoCwJdX1nbX1Tds3lo1kiNTb66rXo6HZ46KXYYinFRQs2xOI8sEIkuSTTYFSERBBfiNSF6fney2bi3GtwZafqCPDNOvJAEZHR11OrsjrOlPRl2AQTC5phgxmmwKRbsdkW2WY1ZDhL4AZdiRa5So0WhTafqspLxOHi7bIK0hMCW6hMug6Kl1FxJFMSTACR5RBVfC8K5GRLeWc6HHZ7954bfNTgBIu3ntc1n7A9cf1T17rjyMNf3pjQ++OgIpabm56cHVIyKeNjnMNIyNjZ3XWti+qxQLHkos72EHAIjo3ELWXcJ8cuQh6R+25/XPUQoAAEhwlGzt43R9+ayFoiZDYhfS2WK0Y3W79EoMBQCKtFfqKvTNThWGku0EBYD4vxCjkjIlpD3kTmwKJBhKOvqY8kARdoKSYGjEkhZ9TaNVojdb5RhC2A06bSNrDkEUWk1dlckspUCxPPhdA7uX5CWJYdEASXaTFAUIAhTpJKmcnMhkkE6nVFVuLKsiCXtDZfmWGuPyxrILKBMtFokuk8iSZJMdXVBIDPIypWiearOxsYwpRDgJBMMs9hD9utzeObOz3e7JSGTE+AAKUT6ubNxiNNnaMfUmKQLOSH2RtlZ/Ya2ycYvRDN2oUodHSCSGTMucLljR/mUeabAE7Hp9q7pMJ0V+AMO76pCRkTF/3twwd8NcDA+TQPtP1b2zvEb25CQAJIjSUhIeCFwHV2zfvXVHe/Jv3/3rjekJA12m/1Vxnn0z8bTJYWY9KAuFOXNmR/Qtw8NkIHUG23eV1ilCXE2o92BWVyI6t4ieKuaQROL0z/FPahwucCE2PT26bxn2eDz8oEWw90mpSiXHMQzDMEyKF+tUmGmbKVerA0tjY7OdoghDbb2TouY9+GjYnXA3D5TTeW73arFGQ7U0NDbZKKCaDXVmQqpRSiOSSxEkICiKIkARxrpGJ0WxH0cxuUpGmesarOrQdw3sXpYVzgqffbtb6vXNJEU16+taKbmmODIZNlN9WXm1hSBRFMMkCJKJAoCludlGkLHLBK1DSBEqVlQXRSbhootG9nkFFZE8XK0FS2Ndk4UCsDXVajVak5OQh+q3m7rAlXppsVZKmBrMpFYjj9ZXSGHS3GCwq7UKRolh4o2BS6hoBnKVBrHp9U02CkhTQ02j0YZEoucKGN5Vh2gHMIQhJT1rbm7u3Nzc7OyU4OuQJ++BUUhISUlJgMmBr977uGdyEmIuvcTTJocZhTiT/EXyXSGOke09zutw2D459pA8r3+OMamN2Ak0J5NT9+X2LVOxC+U0GGwKrTpoBkYUOg1l0dtAVVerM1Rq5HKVCZFJEWTWgvvD7oStrquV6JZntXVT+5Uwua6uRmes0spxeWVjd2VjXWmUELWkbJMSMZfKZUp1mV2uLcEoB2vbJILgy5VSEpGrQt81sHtRzgrPlYBKpJR5S7FcXqnvq2qoLY6SOrxYt7lM1qcrKcblSsOIorZSAwBbqyoaWp2xywQ9ystkKGm1R52MI8qELbpoZJ9XUBHJw3BNXW2ZuaZMjuPaKpOmpk6LYxiuiaHN+IGguEYlRaQqFY5F6yuksAIjQa4u9t8ME28MXEJF+wvjmrpanbFKJ8eL61ol1Q2VGBKBnitgeNczilaVFSUcfPLBh9Y9X3UKv68ofbKL2/ByXYLtu8IcI9t7nNfhsH1y7CF5Xv8cfVIjLA5SpsI5PV72UNhkMo2NjV0PJzE7LY1lFa0NpjocQS6yEZO54bwlm6p17yMbGitLZwLZ07MJ2hvx/reWw19+8blSufiuu++++F6aa8vqSa2+RoPMSEVfw/RcWuTMmR1xXfeLL79y2I/ff/+/pKdx73E4AAB4vT6Pxx3NtwwMDGRlZcU5E12Y9wj45Ms3JElnU1nZ+9WGBjn3fHI5fcvAwAB3bve0QBHdNgqVxFO0pGwDtBps3If+kaRoszRtMzo1rC+MOHDgwOEyeY8r4JMtxh2YdgMXuFwBcLHLdJYKGsrXVBiVOm08hVFp6QYNojfaOLmx1yF0ayooVbm2GOOkwYEDhyvjPS63T6aIFkNr5iZdMaemK4Dr6J0Rh3htIuY7o8ezfHK6n5MSBwDwZOWlloVkGgp7ZyQvLJTL5ZygOAAATQMffNF8y7TeGXG4HhD7nZGQExCHMMzJkUa0GAYir1swOcpJiQMAeCnXeQp4fQBc+nEOAAA8HgDNiYHDpQH3zogDBw7XFKjr/YxiDpwpXnexC9VibNCplTjO5MGqthFXWvDTSmjO4Qd7hMp9JOXlV3mzH0h5uWa6tX5AgvnCkDMD4qEfefGdpNJF/j8Sb05+dZfkxfKplYRk5MfvJJUuvBDG0xalvPKmIFHE2dKlni1s5Zoys5NkEvVxArnqEE1xtVpVIOErRVq0CplSWz11hAvZoFOVNZw/gXPE+YV0NmuUmhZWlNHSuGmT3nLxphj5V8KysWyznQttLkns0txQXr7ZqKqoa25padpVl9NtKivb7LyyssVw9ebqDZxirgrQgwcndv752qbf09YlKMjzhyBzlvA9ZyFtIT9FBACQmCXEwNPRxVnCzIpeKCYrnmpz9UZOHFcdoilOpcbt5nbSH9+YCEQKzlY7QQEARTrNdlBd0lNVSGfzViOUa+UXb4qRH4qwYp2qb4u+hdP4xcYuJNG8pcGmq6sr15RIMQyXl9Y01KkwyuYkmvWb1UoZjuMyharaYIGpdOGbyrVKpUKhUNUaLQDQWKYOxMXOlgaVqtxOkuy67BTnIUG33VRTtTV2GQ4zZfUlbVHiqicAIKHs7cDiBC9vneTlV/mJIn7+I8kvG1Jf+0yysUY4+9whHwlPvp2sWRy88sEPWn7g5T6S8lKN+MnfS14xoK+8mbCwVPzjNyWv7pJs/JUgxV+ML1+X8ooh9bXPJC/VinKzmCpJL76Dvvq2CEvj5T6S8nJtUtnvU156J+Wl2oS8LH/Lwixk7a/R1z5DX30HWXhzMP18+boUhtSXQkgFAJ/jIKQtZCgUyG/2te10jySL5mQBAA9byPN0eQZH2SQFGPFTlZbEtCa4rTzl1V2p1YaklWredbPZzGlpVKt05WVatVqlVuv0LU7GgZRrVTKF2mgnAMDW1KBRKnAcV6p1BoszYi0AsDc3alUKHMeVmrImGxHwRYGmassrrH2OTRrNNvPumqp6hgB2Lc7DzFiQTnNNVT1bQVKlCpytTpICAJvJKlWXqTHSZHMCAGlvJRBcKUWjGtKUheztPrdXz2KoVitkuExRUWtgL3+0NG4FtYY5ACaiKYYZHrvfgCnqbRF+BQC5+nHSsM3CLb1cZOxC2ExOBA8+GhnBirc01heTxqpaa0Wj2W6366tUxtotzPfxhKMFUW9ubbXqa9WG6i02klJqlXajyUkBAGU1mjCVBrUb2HXZKc7ZZMVThsPMgefbw4KixTwhAIiEC5f4jn7lkyxJevxR76evDG/WjH87Jn5qYyBA8Xx7kJ9/DzNzC4pKwdHsmwg5sYp/QxF9uH7k14+Nt02Kdc96Pn1l5N8em5y4GblNxoQ7yWsfcO/cNLxZM956NvGpXwmSBPwbiuhv3xipf8VNDAIAP01GH2kY/d3TYx/vS1j7Cybo4Ulw3uDukf+z2rXn+4QHnz0XMGGlSWsfcO/aNPzL1RM2EK99IjiqoIkjXsgWpqWAME2Yl+45ctjTcVZQhAMAf24RnN7vm3BHIClF5GeEoWrQBQC82eokzaLJ934y/OsXvUKcJ0y4fiyE6LZINJtNJnNjtbqxstIy5CEcLRJttcnYqMYxwqYvr9RrqvU2m61Wl1NbXtFCUOxaew/srKhoUFQ22my2Wq2kqrwq4IsCTVU21Cky87YYjavz/OcwkXYjuxbnYWY42ArCcCUOTquTBIowtxIqjVKlklqN7RSA3dqKyNU4ikQ1pCkLuTsnZWq+M1RUm3UNRlurUTnZToQukFCUfYeZUKvk0Qw4rFkFZWL3GzBFNZgiUoVKixWo09Di5NR9UbELNUIiSCY7KTQm1xpMeo0co0iCRFCgSGYPDJpZrPPnEFdhQBIU4EqtlGhtdRIU6TSaSY1WGbFu7BTn/rApjjIcZg58DpNPUiRMS4PELFFBivvbI4J8NY8wTRz5HjxuT+ufPO68hLnpU4W/8olvFmFpIMwS5We5vz0S1ho9Ynd3dAG4vY6zvtMHPWcGAcZ8vYO8tDQm3KFP7aRsDqZl93iWaE4aPWKfPHyYHjzr72LwMNVmBwD6VLNnPEs0NwsA6JF26qt99MSYp203DSl8sT90EOTdwzuzm7I5AMbcn78+9v5HtCeImokuTy8I5mSB5GaheMBz+qy34yAvdwk/MVmQn+u1tUckKSEvl2EkmCpBfint2DnpcMLE2ck97/k819GZ91hOSZnfXWiUqHPv0SE0U67TlEilUgTAZjQixWVly+UIgpTqKtWo09BqZ9f64K8fkLi2QlPMFFMiNoOFAIDgpiLMgmYDuxbnYWY42ApCUFyFQ0u7kyQsVhJTyqVylYq0NjlJst1sl6kVMQwpYCEJ56zCiJSU6UpwBJVqN1WE5UIhne12EpVJ0WgGbLQ4g5u1R+l3Kg6L9isqz0PbzXZO3RcVuyASDKi+sPdzJEGQQBpqKxQymVKtrde3UlMFEGQqhbg/9yaFYHJNMWI02Zw2kx2RqeUYFakuvryytkJlbti8vKRYpSlvshNssuIpw2EGYdTuPjUpkuP8OUv4brv7zCAfS+HPfTT1tc9SX/sstebdhBuyeZLkqWjA7naMiYpwHrZQIHa4Tw+Exy6e0anoYRI8Y8x14ONKniQlEA2AZ5QeneQlJQRVAQCA8bM0c/q4Z5L2AF+SAgC0ZzCozLk1Dx6WTI8PTjU46CPOhpLj9tq6BPm4IO8e6N3nnXDTpw/6RLkCTCa8YdJz6mxkkvw9hlDFuyGdHhmdis/O0tdT7IKgOVP+AkERGByeQBA0cPpoH0GiOTnIVFEphowQJLsWcXK427q1GMdxHMflpbsd3UQfyfwY4yDTPjvJrsV5mBmOSApCFGrc0dxuazUCrsZRBJOrpJTDare02pFShTSWIbEsZMROoJn+eyiWE/bQThFOCsGCq4SZYl+o4UXrN7Z5A4AER8nuPk7dFxW7YHK1lLIbLc4g/VnKNepf/OuvGq0SvdlqbTU3VOuwWAkgEOXjSqfRaNIbMbVWioBFX8Ou609xbrZaWpo0mH1LjZHdUDxlOFxu7DLu3mXc/cWXX8VR1u1pPcIvKhUp76FtJtoDvsFR79G3hn+5gvlH/udj44cd5wp/e4SXXyoqUtOOr8JeGDEFYvREj4zyJP4lHBCm81MSaNdkWBWeOIvHfFIkTOEnJvgGYx1IQw+O8cRTe1wSpQmlD4TtRPGd2gfYQtFC3Gv7HgBg4qynN0FUVMoft3sGxyKT5I9R3OGUB5L7iNOuq3dGJNntfy6iSCdJZWOJAOc8iQRDyb4+asrv2AlKgqHsWjlzU/NUm212P1qaW2r86yWxjmDPlKLsWpyHmekGE0lBUoUaHC0mY3ueWoECIKhUhVNGo9GJyhRSNIYhsS1EgqFkt/8zWookomyqRaIZcE5OSLPR+z3/rxwuNnZBsZINOnljRUWDsdlJEHZL06bycjumXjbLCwiKoghQhLGu0UlREH3vtLRYKyVMDWZSq5EDAEWQ7LqRUpyDpbnZFhSoRizD4QrjQc0DD2oeWHrvPfEU9p1q8kmWIPnJk4ftAOCzmWDuKkR+MwDw5c+mbPy9KCgnn+9Uk0+8CLkt1/Pt98wdQf4ifkpyPB15Dzfz8tYh8jwAkfC2J4SSs57TI2FleGlFicpFIBQJlU8IRXb3qbOxGuz4ip79ACLPA0gW3VOOFOWF0UMT7T7xQtFckcfBfFI05rXZhbfdQ586yCyrsElyOyL06P12N8xdheRLQZiWsPJJ/nUVu3S31OubSYpq1te1UvKl+bOCfy3WaKiWhsYmGwVUs6HOTEg1Sim7lnb9Y2BprGuyUAC2plqtRmtystdLEAQop/Pc7ltcrWXX4jzMDEdEBaG4Qkq2Gi1UqZL5pAhVqGUWgxFRlGJILENiQ67VgaWxsdlOUYShtt4ZOqkhmBShQgKaMFMM3hgavV+/KcqjUzViJ9CcTE7dFxW7AMDyyrq6CoWhuqK0pGT5msq+HG1jY82q5zcpEXOpXKZUl9nl2hKMckQ/9AVBcY1KikhVKhwDgJKyCHXZKc4BYGtVRUPruSWfiGU4zOB1F4CJLnfHWXrwoIcYBACaaHb9ZafowV+nvvZZyqolkzv/g9lFe67wqUEe2N2n/C+MkFW/QqY+CIoN+sxu187dolV1qa8ZxXdmTfzpPzyucIOkx89CwXOpNUaxMm3i3de9E7EWcoBodv1lt2jVltTXdiB5Y+Pv/Yn2hNLjOes5Pcab+J5ZZQEAn+MgLQavzR6VpNGxCJQzHa19K7XmXZHHfl3td0ElUsq8pVgur9T3VTXUFiaHLG1hcl1djc5YpZXj8srG7srGulIMZddaWrSqrrbMXFMmx3FtlUlTU6fFMZYLkqqV6JZntW//029vGK5h1+I8zAxHRAUhiFQlRylUoZzaiSJVlqIjoFDLkJiGxAaGa+pqdYZKjVyuMiGysP0uqFQmQ0mrnYxmwMWhr6Ai9hswRT2pikIVYXGQskv6aff1gxmXz4jJTm4yN3C6+aEQI4vEl198/lQmdfPk6YvvRbiyBkk0jX3cfOltOveRZF2R6/Xf+DxuTpuXFZPZN6Llv41mLQ778YKbZT/60Y+YQd1gqsMRZLquYLq1OMzo+SZ6rrSZls+oqVr3PrKhsbL08pki6WwqK3u/2tDA5Z2e7kw0MDAw03ICUES3jUIlnNquvnWXaYQtafzcxQlF2ewvjDhw4MBhJqCkbAO0GmyX8/AVi3EHpt3ABS4XhpkVuzQ3lK+pMCp1Wk4xMwHT2u8yjWevuatSfvq/eUc/nOwa5ITMgQOHGQhUWrpBg+iNl+vgH4poMbRmbtIVc6K+wHlkpr0z4vCDI/Y7I+XtyjvvXMxJiQMAAI8vzc2NZi2Bd0acnDj47eXqeWfEYSbPRAMDA0JOQBymBz7/uvq4lwMHDhw4zLiJiBMBBw5XNSiS4DKicOCsiFPB9Ry7UC3GBp1aieNMBqxqG0ExScPt0c90iTPXfMTk4xyuUjDajFP1M8EGIppxPPTXalWBDKMUadEqZEpt9dShImSDTlXW0HIBjJPOZo1S0xLJV7U0btqkt8Tt72zlmjKzk7xI+UxXlRRh2Vi22T5Tfe102ZlRw+oCrPQiR1+wFV18d5eVi4gDJ3CTdDapcFyhKrcH/W4zbsJxvDzuMRUnRxczbKc7kGf4cPvhY5fmhvLyzUZVRV1zS0vTrrqcblNZ2eYz5/vONM5c8xiu3ly9gZP4tYQ4VX9V069S43ZzO+n3vyYCkYKz1U5QAECRTrMdVJf0eAbS2bzVCOXa+NPrUCRFXXlVIlixTtW3Rd/CWeY1wcs5K7pM3V1JjVCExWwLHFpImg2tl7vH6Q/b6Q3kGT7cfuDYhSSatzTYdHV15ZoSKYbh8tKahjoVRh3vnaAoZ8OmMhmOyxSqWqMFQtN/G1qmcs3HTCtP2E01VVu51PPXEvzZ6gEay9SBxQlnS4NKVW4nKXtzo1alwHFcqSlrOudKQF+u1lY3BT+NBX+IyJjWxnKtUqlQKDWNRuMmnUapkKk0Gy1ThyKGJZQPS0YfMWE9ALDNOEC/ralBw5CqDiEVAKRKFThbnSQFADaTVaouU2OkyeYEANLeSiA4c0wWO8d9MFV7u/1JCSyGarVChssUFbWGiA9RLY1bQa1hjpFgC7ClsVyhLLOQFADZUKbWbNTXlFdY+xybNBq9jYhYhSFjEyPPKcbZwzAgimjiDW8BQK5+nDRsi9MvN+s3q5UyHMdlClW1wRJN5uybEayI7UOisxOReIuxVq2Q4bhMt3GTVqlpmv6q1QVYaZhJvGN84xJaadgQiCy36LqoDbKikO4i0X9eW4rNxYVZS8SBE/EmIskrLUFNU1ZKEjazE1PlnTt341LpJdqwZfsftnbYNASrgP1rYLhZuKUXduxC2ExOBA8+6hjBirc01t+dk0j2tfdJdWaLpaFSYajeEpZ3XiWVTC3NnT+tPJd6fuaDOdYl8O+LL79i/sWoomntjm8AACAASURBVNQq7UaTkwIAymo0YSoNRpgqKhoUlY02m61WK6kqrwoEKMrVKsJsZHyczWhElBo89IQDwtGCaqpbW1tr1EhNRW3JpsZWa6sGtdYbLEy4E5ZQ3jLkCVijGscgSsL6iGYMAKTdWFGpV23W2+yWKjXUVNYFHxyN4UocnFYnCRRhbiVUGqVKJbUa2ykAu7UVkatxFGGTxPQYoOrunBQAIGyGimqzrsFoazUqJ9sJ1mMWRdl3mAm1Su6niiXAEl21VmqrqTO1GKob7dLqKu3mhjpFZt4Wo1EnxyJWYchA1JtbW636WjXDeIxhGE28YS0AACotVqDOeCyKsOiraq0VjWa73a6vUhlrt/zj8E62zNmKcLRH4IhNfGyvEkb8Nwc+qNxs0tUZbTazGtpt5AW+bpuulbJN4hJaaXDLajyqJUTUhY2kKoOsKJoZBOiPx5aicXFh1vLNgQ/YAyfGaFJqznkYp9lAKTR5Ux7mkuslbNj6ewltIcxBRaQhoAI1mCJSyAw3Q4uTm6HCYxdqhESQTDTSuYFopmJjuRpD0RK1DgP/hiJ23vl40spzqednPm4rLor4L0YVXKmVEq2tToIinUYzqdEqbWYDiWsrNMVM2nclYjNY/A9/0hKNlLSa7QRQTqPZqdIqkXB7k2tVOACSV5KTI1Op5BgAKs/DSGcfREoo/2lbX5g1RklYH8GMAcDWaqTkuvLlcgRQTUVtQ115aP5YXIVDS7uTJCxWElPKpXKVirQ2OUmy3WyXqRVI9Bz3AaqY77JsZiNSUqYrwRFUqt1UIWWNNdLZbidRGbOQE1GACFZeXUnqN5VvNmmrNxdjIS1EkzmaWazzS0OFAUlQsYZhFPGGt8AoSp4XVxogTK41mPQaOUaRBImgQJGWlr+xZc5WRHdLBI7YxMf2KmHEW8yfQkmZrhRHEExbufGCT0qdrpWyTeISWmmYQ44x+ti6iJjiJTr9cdlSNC4u0FrMn7IHTozRlCPTyKDdbCcASLPRodQokamkiZdcL2HDFiL5n71Hh0K0E4WG2BQyw63dbOdmqPDYBZFgQPWFvXIjCWISAAnJBu4vwc4qHk9aeS71/DUJBJNrihGjyea0meyITC3H+uxkt3VrMY7jOI7LS3c7uok+cioakGuUqNFoc9pbraRcI2elpDlnWggg/nA68Fk2O6H82OBEmDVGSVgfwYwBgLSTKDoVBSCYHJeG2jWiUOOO5nZbqxFwNY4imFwlpRxWu6XVjpQqpBA9x30YVSN2As3030CxHPZzAkU4qSkiowkQk6vVchTQ4rBscDGqIFMynPLgVIxhGE28YS0wv0vwuGIXCkhDbYVCJlOqtfX6VoqiXCdH2DJnK2I4Ekds4mN7lTDih0/2opmZyBR/KOtUU8NGNdOhUlsbfH2RVso2iUtqpSEtxxh9bF1EVFkM+uOxpWhcXKi19LEHTozRhKDS5UrUaLAQTouZyNEUY3DZ9BI2bCO2MDgc4qCi0XDeXyU4Snb3cdNNeOyCydVSym60OINUYinXqOtbowmL/dR4/rTyXOr5azV6UT6udBqNJr0RU2ulCGRK0TzVZpvdj5bmlppzT8OIUqskzEaz0YCyXhhFNK1gsBPKJ6clhlWJkrA+ygO0FCWnHj4p0t7YoA/bhiVVqMHRYjK256kVKACCSlU4ZTQanahMIUUhVo57JJzy7kBHRPSteQhAVAHamuoMTkyO2moamsPqx5R5vMMwingvChZ9TaNVojdbra3mhmodhiBJsyVsmbMVQWdH4IhN/LS8Smq6JMAgRRIka0lAXdXY1NTU1NRkqCsPvr5IK2WbxKW10uCWY1gCWxfTpP+yu/QI1pIuYQ+cWKMJQRRaDdFqMpsMoFge7GEuuV4iyj+shWwsxEHFlm38kudil6mxgZVs0MkbKyoajM1OgrBbmjaVl9sx9dpb483QHTFruaW52RYUVHKp569VSIu1UsLUYCa1GjkA4GotWBrrmiwUgK2pVqvRmpxESGHS3GCwq7UKZkyH2UkMsNPNLyucFe5PYyasD4NcpUFsen2TjQLS1FDTaLQhofSguEJKthotVKmS+aQIVahlFoMRUZQyD8LF0XPch3Sk1YGlsbHZTlGEobbeyYpdEEyKUH4vHFGAFGHZUmNUV9XW1VUS+hqDjQBAEKCcTid1Ppmfd6jGL97glaS4nqQJEhAURRGgCGNdo5Oi5t6qZsucrYiblkXgiE38tLzKXPVD0NKob7FTFGGsq2d/+IpiUmbBQipFg6+nNRziMYmLt9Ko73CjWwJbF0BRwVYUP/2XyaVHsBb1avbAiT2aMLlKRpnrGqzq0FfSl1wvYcM2YgtL82fFYRt+FcijUzhiJ9CcTG6uCY9dAGB5ZV1dhcJQXVFaUrJ8TWVfjraxsWaeKO7hGilr+daqioZWZ+wyHK6FhRcU16ikiFSlwjHwp5gvM9eUyXFcW2XS1NRpcSyksAIjQa6eWs4Ns5MYYKebV84KXxiInbA+vDCuqavVGat0cry4rlVS3VCJISH0IIhUJUcpVKGcmsCkylJ0BBRqGRKFpNJIj0oYrqmr1RkqNXK5yoTI2PtdUKlMhpJWOxlNgMbaKrtUW6GRY3JNhRarq6wjEKlaiW55VlvX4owt8/MO1fjFOwXC4ogr3Cwp26REzKVymVJdZpdrSzCqJ+letszZirhZFoEjNvHT8iqp+Q9VV6kayzVyudpIYRiCIJchT3U8JnHxVhq19+iWwNaFg6AQ9JwVwXRM+nK4dDaF/Un3sgdO7NGEIPhypZRE5KrQV9KXXC9hwzZiC4XJwvPSEFCBnlRFoZCwOEjZJT2R4arGlctnxKQRN5kbOKHPdJuInnPkyy8+VyoX33X33RffS3NtWT2p1ddokMtjaZc8Yf2VQVO17n1kQ2Nl6cwnlXQ2lZW939K2J/jmzM9nRBJ2J4nKcQwASLtRq2usNemLr3gu36vaSi+Hb5kh+YwuTC/Bw/YyaZYZbtWGhusn73TsfEZXLCcARXTbKFTCRQYcgCJslqZtRqeG9YURh5KyDdBqsF0NpzhYjDsw7dV32iRpN5TrKpqdJFCkqbGRwpVSlDNDDjN92DLDTc7Z6hSuUOzS3FC+psKo1Gk5iXNwWhp1ayooVbm2GOOkEQZUWrpBg+iNM/3cI4poMbRmbtIVX3USlpaUV2jQCnUxLlc2OPJqa8s5K+Qww4ft1TvcLgkCJ40F37xy74w4XC24Mu+MOFwbiLGuOzPfGXGYmb5lhrwz4nBV+JaBgQEhJyAOHDhw4MCBw8zELuNu5mLpvfcEbnKxy4WAIomww4g4cOD8C9u/cODAOViO2YvEg5oHIGjdhUHYfheqxdigUytxnEmsVW0jIm8+ipFOPaJ2IjYbT2LxSwiSaPafkYnjOI7LlOpNDca4c5lQhs1lMhxXajZHS1Y+TZlc3WCYnW5e+x9QRBGNLR76Sbvx/2fv6+Pbps79j53EStJEadOoLUTlpdoAawNsBtiUoUBBZQWxUdy91Nxt9dhuPLbVd/feeGwke3O2cV1+21y24e6yuXvB5c2FXcQAm73YA2YPhg1jCm/KKHWhRSFtlbSNXDv+/eGXOJbkOGmcJun5fvh8SG3p6DnP832ec3Qkny81mTauQBTqoSnWlxuY6+fJxGW6zISYT2O5coGtlKTJIEUQBsrOl2Qmx/YQBGH3x2e3aJQh6uvpOYFLVO6sJMS32nr5U15/UfF9l0nrLmGv3eEV7P0et4mQBM7b12eziYHANvzEpoRqzZ4EH7R29Hp9DIFJksgnQv29PXZB5+tbj0zNMJ4Ncda7H3V0EUDiFHdExQi612U4pSiF4lSvS7/o7UdaO10+H42jkiTyEZ+z12k0sAwBt1Wcv+suC52Zp/rsZUY3tJIQj3ACkf8FgBgJxGp+P5wM72BBr5+sUWcRzGildmzzR732rlOZEFOsu4hCeJuXs3o8dsaMYxhBdvV7PRQmcUlRUZJ7Yno7+dsyve8KzQIlYXHFayl8qCS8Lpd9LzXmiTcPIwBBMQzDMBwnuhi7123lA9vjgiTTKC8XYe+x2CJDQzu/aHWxfKlY+aRbPT7U37dD0bDFiqKuvc9G27zh/M1K1EtRdl6U5OHIwW+nLa5g6f1x6W8Lc7HYareYTAaDifGxbI+VMRn0FLM1XlgFrEw5uQZ9vkjIyFa0nwt6mZyp9CRTizWko0AbfA2BolgrqkzLqM9uMNniogSA6LXRzFa/eCrVF/V1l/KEUvO5/EMFFslTTPZJMbI5bvTk6FSIe5x10wY9QeitW3ssJiaYFAHEvEFpgZWnmFp2I61rusxoiI0XhjMuksSoNa1VjlPVF43Jiy47AM3k9nGRtyAbVhQqRuXOAgBIerMY2BkX4VJvOSbmLgIXSiJE6f7HCGbc5ttulFhFSe7i2FP2rUzvW7nZ9QQKZMLizzz3a/m1FBXD5cLrarLvRWOuOqutrPO4mcGBkOAFMFlBXi7C/rmdO6jONa5HQ9sspFwvftJMTkkRftHDZDHxbCgpAQCkBBvCKAYTQorhAACYbppQqOdYFpFJGgmDUZRxxWKxfhrpd7jNPb5YIsagie2BeDWUAzIN+soq9iLPOpx+qtfP8fE+GvQ7PWVPSqWRwS925YXt1t/cr7f3dGGoIi3NVpcF5/o9oWjA5eNxV5/l1FmcUVzXzQdUllB/e/Fhuc/lgRgcUEhqeYpVTjphMIrQvbFYwu+mA65tzzx3n7M3ZPWwHBehwQAnwonL/EKxwNIgpDj0KGY3AMDETBSWZCQgGZg1hcIy60UDACBJ/O6IQFMTiy5lLciGQoWKMWVnUdxoQJOBaBISQ3XuIo2ICNIh17adrmD34/8cKtX7Vms2v7Q7WVg8/n8K11I0QC68rib7XmqM/PooIgmSVHaYXIR9qOpZr6Ii/KIHYbLgQiyWFCQxyUZExmJSC0d+yigmIrwApCQbSVKyHerQDtJCEQAga8ydnXqKIjEAUHINJiaHqqEcmKaKPRdjJdJqX08iAGUcbq/HXvbeHNLa2fvLh4LBYPDRRz29N8XcDl80qZwXCGZ3OUV/j703ZHH1GrFT6AW8Cusu8oSKR38v97k8EPuiCiySp1jlpEM7jNY8GSgMiPHI48Bss3YRCIJZnFtPqW1tFxbUhh7F7AYAdOoZPRiI8AIAYoQdNDGmgtj17BcNAICYHOBFVF8idFXWwh9ePVR6iemOpIVvUXINOhDhIR9U5y5IKwakobJnb6IgvDNNwe4jByfpfas1m/t3mbD4e8Mj8mspaoLLhdfVZN9LjZGtZIti4Q3v0sOqlIlXHsWVFOEXPRCMZIwIG+KSXIhH9DSJqYUDAICgJGNCWZZL8rGESDKy5auSWCAAyc97dVVTDkxTxV7kRRQtzDIQjCTk01ykM98RkrH12YxIIJBQk6rHSJomUYAap5RwO3UgT6ije0bkPpcH4rASi+QpVjnpkAKFciPZ4T3voh0dSCFuKPyBx3yFWoopZnfukPUmlA3EhWQ8InQyJVtfznrRAABIQrLs90FlLRw8POkSQ9McSYvfthKouG8I8kF17oKRNC7xbMnrLJIQtzP0E6MN0xLsXrJskt63WrOuoMJEsqlEnr54LUVNcLnwurrsu2pt4uNsEuAmHCs7rEqZeEXMuiL8Qpm9mDabkiwb8rMYbcERoB4OAABispiECBthA6jsgVHlkFVDOTBNFXsUR0UxP5mWRN7n9Vd8Symv3KcmVc8FPYEkRqJcvzcMn1GrJVTzaa1yn8sDkV2lwCJ5ik0r6dpKiowkCiJ8k2C+Qi3FVLMbQQwWRoiFIqEAMKwvLSyzXjQUi1VZC6uwSZdQ604130JUmrugmLnbSvocDi8bTgoCHw/22O08Rn+p++MVRMPlct5Xf2CS3rdas7YuBT3Ms9ddK7+WomK4XHi9gux7yf2fJAqCIAjJJB9mvU6nn7R2k7KFfSWZ+OOTRq8Svfh4OMyVTJ9nXRF+oQA3WnAh5I2IFoYEAFQOB2604GLEG+BpiwFRcmMFTEk5ME0Ve5JiEM7vD3ISEEPefh/LIeX2SENCnjfhgMcXFSlGr0hLSYhv62fpPrfH4xT8/QFOgCVGMaHOuIiW+1weiPdfrcAieYpNK+nOoD8Koj5/lJckgfVsn7M9GiCqvxHKFVhSKcUqZzdGUnop4vEm6MlPome9aAAAEAxHJKH0kUJZC+vOWVq5cDEmfMrOAgBGeAHt7IC0UJ27AADWOz0ehyHgcnSZzes3OYc6LT5f/yWGSqLhcjlv09LGsmsoNkso3Vq3vf/j8mspKobLhdcryL5PYGSo/+YbzGZzV9d6hytgsHs8ToUfSMtF2P/1XqpkYXCSXvyOPoc3NrGqNOuK8Aum3qAEQ+EITlEEBvIK9arhQFCCMWAiIOnCum6ZGyugGspNS8UeJRiP28r2WUnC6Im1urxODJlkjzSyr2/TerPZbO7qsrtClNPj6CIUacm6+3jc4mBIjGQcFszj9CThyKiUUPubr5L7XB6I8/QKLJKn2LSSru2cj7r6KJ+dIUmalTAMQRD4ysv8qiT5AusXKcWhp0J2Iwix3oSLCElNfhI960UDAIDiej0qJnhRrYUPLKmvbEMXhk7ZWQCE+KCopwhIjDJAPaNZQ076PBTxLnhOzImeUdht2y5a/P0MUptAzLoGPYQiFpyekSjwSRElCQwAIPKsxepzh/xG+NbLya4tVeoZ1Si7Z9Zs0GXdhXT7nF21M0xMBm22Xa6A9xRUkK6sZ6SF6TRLkIR9nIS2QkdU4youHtzJJhnZL4wgIGo+d+EDdqsjnBSBJIZ8Pokw4XDiAjEjmG3dIBbgavnKVJzdjVm6SUhRGeDcZXYQ9to3OViT1QJdUc0tjnWTQ6LsFiMGvQExx8DNdgeDOmgjQZq8g2vcbjtkIcTMgOJd3QziZ2u1iZckRAOxjh6rEbpaDvjMCELGiTl5ZgSxOLDgnhlBzM/aUuUzIwhYW+AzIwgICAgICIiFh5M/d5Em7VUIAbGwAfkMAQEzHaLmc5eXX365NBxR1mulTQSRUzVzcYJU4/ArK4DnxMdheOYtcgHKKSlO96yTaHDZZh7V2C/yLG2gy+T61E6srGgPMWOIyTBjYqJVjBXT5STEIitK1TMn6uvp8cdnd+SaOECIb7X18nB2U7u5yxlnnFH8R9hrt/eylMMTjkaDj3o694Vstt5krWcvSntDYQTd6+qG4ZnnQHGq17X1FLRf/cRKivYQkJMQ82c2vIMFdsuM9eamyHQEM1qpoW3+KHR1reYurS0t+VgK4W1ezurx2BkzjmEE2dXv9VCYxCVFZSFy2rY1pyxvYnws22NlTAY9xWyNCxJQVSqXwv5e2qQnCEJvoFyBeKkC+KSbJz7U37dDQeweYn7lf6S/bzsAwGejbd5w/u4n6qUoOy9KfNhnoQwEQZgYW7Akvn47bXEFS++SS39kOCW1wOzJ2Rft54JeJmcqPcnUKTou46can+ENcWmA5MTIHdCTC3ohOgCAeMBFG/SE3uBwB3IcUTu32HguNKoNsm7aoCcIvXVrj8XEBOEK2fxDD025wnwusia9KZdKfLCXtrjVRqJc9P+wb7TYiJw5skWXHYBmCARRLBdlpJJftyzT5QcAAEh6sxjYGYdLLzWauxw/frwwioSSCFG6ETKCGbf5thslVlmIfDCKMq5YLNZPI/0Ot7nHF0vEGDSxPZAvE3JJcSHu73MnHL4Iz/P+Pop1b7th2505BXArqfBDxcrS9hDzByaLiWdDSQkAICXYEEYxmBByOLwGp4/jOLeltc/eV5ygmG6akKrnWBaRSRpVptasy9mLPOtw+qleP8fH+2jQ7/RU+aRUzs+ior0in09lFANkAjFFYgiDUYTujcUSfjedi47ABRyuiNXLcjHWlBoQJOnIv36vdm5p9ItXlDfo7A1ZPSzHRWgwwIlw4jIf0WXCEiFeAiCZiAylhiKJJABSgk2suDilNhLlon9FZ0thLCtnTvmaicTvjgg0RaoNVaXNGqSQ/LqlmS6vSLkWUNxoQJOBaBLGtCZzl/FsNh/OERFBOlDZnoBq2txoB2mhCACQNebOTj1FkRgAKLkGE5N5xUu5pDhGWgIhP0NikiiICAokcajiIFFZ2h5i/oAwWXAhFksKkphkIyJjMXGRgEhYHIwxRxsTwgXi+aUI3MzgYiLCC0BKspEkJduhrjK1Zl3OnouxEmm1rycRgDIOt9djr3IjKMjP6lEMEK9CDLTDaM2HjMKAKEiAi7CI2WY1EwiKW3ocOILsefYRlXMnRb9wRYUGgdlm7SIQBLM4t8Jtl+cn9LRJTEQESUxEBOp6QzIyIIrJ8IB0zsEX1UaiXPSLUvNy5sjWTQd4EdXjKKhULgqMVRkBpxwiAUDJNehAhIcxrcncBYyPFwoxBqShsmd4oiC8oyZEPqHujYCCyryutLLLJMUlIAbcDoNeb6It2/0xaao3AypL20PMHyAYyRgRNsQluRCP6GkSG+LFfYkdRoIgCIIgux4b3CdMSNWTjAllWS7JxxIiyciWKCpTa9bl7EVeRNGCICeCkQRe5ZgG+TkNhhQCpEYMpBBoJC+9K43wAtqRjxiKdaIIcvhN1XPl0015g0O8gHZ0IAXioHCv0nkJnKQxcYDjuVgStVgsgI/Eudgg0K/IHJtqJMpDzpzydRchKZVUA5VyUWCsyggI1CtS8YBWAhX3DcGY1nbdBSNpXOLZeLIkwHE7Qz8x2qCizT1F5sslxeP+fl+i1R9JJGIRr8uKTXXfMy1pe4iTOzaZNpuSLBvysxhtwRHQgaNrqF6OzyMajvZPLEsgJotJiLARNoDKHhhNSa1Zl7NHcVQU84+JJJH3ef1VvlkF+TkthuT+V5EYskDvK8ZFECWp7TS1c6uahXSUMEcSBRG+iDBPb4QIChd3BQIiZjAYDTjgA4EAYug6cyVa5UgkZ05lTqqUC0St4LRiaOWKVHYARE3mLtnC3AXFzN1W0udweNlwUhD4eLDHbucx+kvdH1fT5p6issskxSVBBAiKogiQBNbjS0oSkDQ5BfBc4OPhMFcypZ2WtD3ESb5bMlpwIeSNiBaGBAAQtAXEfZ5gXAKAC7otjCWUFCYdLEa8AZ62GBCl0FfArMvZkxSDcH5/kJOAGPL2+1gOKbdHGhImUBzylPiJlPIZQmGxqiIxJsXFYgVxny/MS5IQcG9PStLpV91Y5bnKDTIWEPX5o7wkCaxnOw9/ETZPgZoYIurfjegNGEpQBHhsN2egDZfIEl9tJJIzRzY9whFpYk5TuVwYla87kelGdcNGeAHt7IARrcncBRTmLgCA9U6Px2EIuBxdZvP6Tc6hTovP13+JwaqizT0VAWWS4mZbjwmJdJF6E23jSYsZk/aOLc8pgHuiSQDAjj6HNzax8DMtaXuIk3y3hBIMhSM4RREYAAAjGI/bFum3kQRh6Qsx/R5LyXuUCEowBkwEJF2QNCoLfQXMupw9SjAet5Xts5KE0RNrdXmdGDLJHmlkX9+m9eYCHL6oGj+LivYe+IKeWvgqEkN2pDXgZEiSCiF6HEGWnn1dleeqMMfi6qN8doYkaVbCMARB4Csv8/NGyERjKZ2BIhGA6Cm9TkfQRlye+GojkZw55SmP6/WomODFasqF4nVLM13dMCE+KOopAga0FtDsDgS0dXWzriJxgoLgudNDES+M0EngxJzoGYXdtu2ixd/PzProUSMxeghFLCA9I1HgkyJKEhgAQORZi9XnDvmN8K2X+VFb5ljPKOiy7kK6fc6u2pULMRm02Xa5Al6oAj3rtWV4eHjiXd35BEnYx0loKwze4oQkcPHgTjbJyH5hBAFRw7kLH7BbHeGkCCQx5PNJhAmHg8qpCrOtG8QCXC3feYqzuzFLN5y41AgT77vMH4S99k0O1mS1wPAsSiTjPusmh0TZLUa4CQrE3AE32x0M6qCNBGnyDq5xu+2Qf6csULyrm0H8bK32DJOEaCDW0WM1QlfXCJqH7r+/HkGg8jjEBCfm5JkRxOLAAnpmBDGfa8scPzOCWNC1ZXh4WDs+H58ZQUBAQEBAQEAoQ3vSLYBK4hAQMPsgIE4dGsO8m4W5S3bSuosUZb1W2kQQOXk5FyfUWkV6Qklc5FnaQM+BOpqiVDrEDHyYU1JcEJ7PXbpsS49q7BeFME1MQG+ie7zsiXB01huc1LhSEql1szT75t75M+ldMsyYmGjtq/5sGQwxs2Eh0GvTE8Ql13yymvJSRmPGQJUqoSbjPpPBMuuUi/p6evzxEx/1lA8Q4lttvTyc3VREfem7umGv3eEV7P0et4mQBM7b12eziYHANryGL0pPoSReC2AE3esywNifOFCc6nXpF7/9rR29Xh9DYJIk8olQf2+PXdD5+tbPPC1mvcEZdvMkZB8ExFRDAs+GOOvdj9qNjRx3eB4OImIyvIMFvX5y5l2saDCCGa3Ujm3+qNfeBfmguu6SyWSKt4PbvJzV47EzZhzDCLKr3+uhMIlLimrK41tzEvMmxseyPVbGZNBTzNa4IBVuXMqFxQGQwv5e2qQnCEJvoFyBeJmSuGKYy04BAPjttMUVLL2n5ESJD/sslIEgCBNjC3ICkOmYT9yG8qH+vh1ASnq3Wg363AqTF+6EOqMcjvT3bQcA+Gy0zRvO3+hEvRRl55UikoNi+Cbd8lakFpApzpcFWoV7QJKS3h6bniD0BsrNxkvt54JeJmcqPcnUfCkBCIphGIbhONHF2L1uKx/YHheksusqp4mSJWoNylvooSlXmM/fPupNuTThg720xZ27ek/OUYUeVQqTjPBVZN/sDUjlzlfIa7UexQMu2qAn9AaHOyC/F52SMGrlKxe4X7F3VckWiLlBj8UWGRra+UXrd+97OJeekxJt4KWZ0njWKBf17QA0QyCIYoLLx50yBpYZLOcnAICkN4uBnXG49FJh7qJrbi6MIqEkQpRuh4xgqIaX9gAAIABJREFUxm2+7UaJVVMeRxlXLBbrp5F+h9vc44slYgya2B7Ih18uLC7E/X3uhMMX4Xne30ex7m03bLuzqCSuaJ/8FE6UTDdRQoTNzTY4lkVMDCaEHA6vwenjOM5tae2z9+WGw6KOOS3bf5NjPf7BNWyC4+L+jgG/J8RBNswYJouJZ0NJCQAgJdgQRqlGBAAgD1+ZpFFlaskV5+OH0mWBVhS1F4cGhnBrJB73Og0B17aiPSLPOpx+qtfP8fE+GvQ7PZWflOJmBgdCghdKCWaQQsppomSJYoPP/PEeeQtdJiwR4iUAkonIUGookkgCICXYBM5QuasjdG8slvC76dIeKUJOeKfXUzn7ZnOaO9n5zzz9a3leK/ZI4AIOV8TqZbkYa0oNCEo3rBUII2dLsXzlAndFZ8u02AJRa2wL+KjONa5HQ9+8+rTSEOfihXO/mYLGktB3g7n4TLZrU39ukUNxKJkB5SSJ3x0RaIpUG+bKxh05A7v6J0Y9NX6iuNGAJgNwe+4Kc5elS/NaMNKIiCAdcslNNYFvtIO0UAQAyBpzZ6eeokgMAJRcg4nJvGymXFgcIy2BkJ8hMUkURAQFkjg0VUGQnyJIADczuJiI8AKQkmwkSVlMfCQgEhYHY8wZaUK4QFwAJTrmCnJ/rYiYjPkDoaSEbw9FtjEkZMOMQZgsuBCLJQVJTLIRkbGYOJWI5IfqyeEri05laskJ+fg/h8oCrSJqb9hqpzEUNdNWDEy8LMfFWIm02teTCEAZh9vrsU+1mxSKIlKuohWvy6ukiaIlig2+/vRT8hb0tElMRARJTEQE6npDMjIgisnwgESbCAAA2mG05hunMCBWnnKdXMKXOT992nXyvFbsERdhEbPNaiYQFLf0OHClzU8rEKZC+coFTjdNtkCcFBTj1ToljRG0++6HwgXc69mSG9QUh5IZUE5MDvAiqsdRUKnUTJQjOQMfeT455fAKAEquQQciPAy96tyl+L4L0ooBaajsOZwoCO+oCHyXKI8joCA3r5tEoXJhcQmIAbfDoNebaMt2f0yq4iGl4ikISjImlGW5JB9LiCRDYkO8uC+xw5ibaZNdjw3uE4aU5dEnhtv1TreDinh715uNFGMP8gJkw4yBYCRjRNgQl+RCPKKn1SOiGL7y1ipSS644f+TgWFmgVUTtsZJjJsgn8iKKYkixJ8RU73dJoijl2yped0gtTZQsUWyw/uhReQs4SWPiAMdzsSRqsVgAH4lzsUGgNxFYvkkk76Z8ulSYX55Uwpc5fxSMKJYCeY9GeAHtyJ+KYp2o0tylAmGGpi5f02MLxMmpMIV4VUFjBC9FJ15hKJkB5SQhKZVwQ4U8E+xSYOB7R4B6NRspSMC2Eqi4bwiGXnXuotFoCiscNC7xpfeFkhC3M/QTow1VKo+XrxLLhMXj/n5fotUfSSRiEa/LilWhH6FyCmKymIQIG2EDqIkhUKQDR9dQvRyfRzQc7c/Px1UvISaTOGVnI4l4NMhg/LZ+FrLhRGqLabMpybIhP4vRFhwB6hFRCJ+8tQpXkivOL1nWWHaKiqi9yi0djoqFNQtJ5H1ef+WXn/g4mwS4CcdKTZVblUuTaizJNXj+6mXyFhCMoHBxVyAgYgaD0YADPhAIIIauGbw+P68I/6//21ZlKWjFUHFfMTqCykuOSPVskZevabEF4mRVmBOkcfWjz7Qop0IepBIDly+pgp8Q4O19ydL/Dh86mPsvP3c5enQsX8Exc7eV9DkcXjacFAQ+Huyx23mM/lL3x6tUHi+vlTJhcUkQAYKiKAIkgfX4kpIEJE1RSTwXvSFhAqIElE6RAAC40YKLEW+Apy0GBACCtoC4zxOMSwBwQbeFsYSS5fPxeDjMCRN3vVxou83uigsiimJYK4J0QMacEHCjBRdC3ohoYUgwVUTKwiePTgXIFeev/sDSKblXoUGSYhDO7w9yEhBD3n4fyyGT7ZGAJAqCIAjJJB9mvU6nn7R2kxhS2apcmihaotjg9Z/4qFILqIkhov7diN6AoQRFgMd2cwbaUHHqUp5E6oRHJmff3OH48IhiXitEx2IFcZ8vzEuSEHBvT05zBUQtLjNmC8TJxYxprDaUTJdyCIYj0sSEZkryyBl43cWriwZX4OcIL6CdHTDiqusue/YMFv+x3unxOAwBl6PLbF6/yTnUafH5+i8xVKs8Xn47KxMWN9t6TEiki9SbaBtPWsyYtHdseVFJHAAgjezr27TeXIDDF5WfMijkHhsRjAETAUkbMZAXPbdF+m0kQVj6Qky/xyJ7OXdHn8Mbm1hVMlp7bfohq9lIkKbAiMHtZCAbTui2CCUYCkdwiiKmjkhZ+OTRqQC54rxpaeOU3KtEVILxuK1sn5UkjJ5Yq8vrxJDJ9owM9d98g9ls7upa73AFDHaPx1n+e2a5Vbk0UbZEqUFcpQXcRGMpnYEiEYDoKb1OR9AVB1d5EqkRHkHx0uybS5yzaatiXiuEm2A8bmvAyZAkFUL0+DTFftXiMmO2QJxczJjGakPJdCmH4no9KiZ4sUryyBl4zZpziwar81OID4p6ioARV4MmFAodOXJk1lUkaicsXkTYbdsuWvz9DDIj20IRLwy/MifmRM9oxuGbD9xbcJbUDgtdz+hUiNGCqC0LSM8o6LLuQrp9zq7akUdMBm22Xa6A91SWoa7MFu2C7JMkcPHgTjbJyH6iUtXJ+zgJbYV1ZGGGDwICAuJkwmzrBrFATX82H2d3Y5ZuEi4BqqOe519fter0hWV0Mu6z3uwjN/dbjNPelyLstX9uW/Qmlw/GfiGGD2K+4VH2MegEiFMKKN7VzbB+lrPXZlNxSYgGYh09HiN0dQVo7rvv/sZGBCqPQ0xwYk6eGUEserYsiGdGEPOELQvomRHEfGCLdvnydugjCAgICAgIiIUC7fgkHemTCSgLDgEBAQEBAcfTqecuWm3p67pSlPVaaRNB5JSuXJwwm73PKcurOHoKWfBqGoGYM+SikFNSnBUCzI3B/OStGqq2XzkvZuYECLVwQEBUQPWJJibDjImJTnPoFnmWIiagN9GuQHR2CVq9YVFfT49/5gqglcdTSYhvtfXyC3xqo+X3vlP8R9hrt/eylMMTjkaDj3o694Vstt652riqWh1zjKB7Xd0wk+cDUJzqdW1d9PZXzouF7gQICFhtckBaO10PBaPRaDgc9DpMbK8zxItz31MxGd7BArvlRBTHKo2nCGa0UkPb/NGFPXdZhrbk/SWEt3k5q8djZ8w4hhFkV7/XQ2ESlxTVROQr6M4rioMXwYd9FspAEISJsQU5AYByHXP5AROzbz7U37cDAACkZJkYOsSc51gkJ1Lvs9E2bzh/Sx31UpSdFyW1IPrttMUVLL2XKv214ZTUAjLV+DLReTXuSVLS22PTE4S+IHZftJ8LepmcqXQ53yrkRZkTKnP+FIfcw/JwACCF/b20SU8QhN5AuQLxXGR7cmSYOAzEWTdt0BOE3rq1x2JigklRuWjAErEA0UNTrjCfSyiT3pQfEYK9H/lU70SiKbIi4KINekJvcLgDuYoiH7nUGqct7tyw3oFhGIbhOIGvIVAUa0WV2yksHJaspghStYZJ+yrTMurbAWgmt2eMYlUpq3hy88rGU/kBJL1ZDOyML+SlF217W2thFAklEaJ0S2MEM27zbTdKrJqIvJrufL5BJXHw3NKcw+E1OH0cx7ktrX32Pk6USnXMFQ9QqIasp0wMHab9yYLJYuLZUFICAEgJNoRRDCaE1IJouokSImwuYzmWRWSSRpWpJVeNjx9Kl4rOq3FPHBoYwq2ReNzrNOTE7icI6fRTvX6Oj/fRoN/pKX1SqpYX6wmF3aXVOH+qz3FlHh4+rhAOIe7vcyccvgjP8/4+inVve/1IWhiMInRvLJbwu+n8YVzA2RuyeliOi9BggBNFtaoCS8RCRJcJS4R4CYBkIjKUGookkgBICTZx+hXvKy0RclY4XBGrl+VirCk1IEjSoVfvl49cao3jDAUAkEYGv9iVF5Bdf3O/3t7ThaHyglMhr6sxbM+TP61AS0nid0cEmiIrV5VixTNIIbl5peOpov0objSgycBCvr+a0JGWRkQE6ZDLtFYQkVfTnc+dqCgODgDgIgGRsDgYY65BE8IF4pPudKc8oLC+N5UYOsRcgTBZcCEWSwqSmGQjImMxVQgibmZwMRHhBSAl2UiSku1QV5lackI+/s+hUtF5oCpMb9hqpzEUNdNWDEy8ycbFWIm02teTCEAZh9vrsZdOpdTyQhFqnD/VF11kHm5pUAgHRloCIT9DYpIoiAgKJHH4OEA7jNa8SykMiIIEuAgLzDZrF4EgmMW5NXd7qsg3WCIWIvS0SUxEBElMRATqekMyMiCKyfCARJ2PlZQIBVYgZpvVTCAobulx4Aiy58nfy0cutcZpEwEAQFo7e3/5UDAYDD76qKf3ppjb4Ysm1UZARVRjWEOrrgItxeQAL6J6HK1cVYoVj5/KPBX7UXINOhDhF/DcpagjjbRiQBoqe0gmCsI7U4vIl+vOF45VEAcHAAzx4r7Ejvzklux6bHCfMDTpmeKUB+THy6nF0CHmCAhGMkaEDXFJLsQjeprEKgQRQUnGhLIsl+RjCZFkyPId6ipTS64af+TgWKnoPFAVpsdKjpkgusiLKFpQVkQwkpgk0qyWF8rasiqcP+XXXco9rFMKhwTEgNth0OtNtGW7PyZJUt6RSJ4KuSOHeAHt6EAK8c8FXpFvsEQsROAkjYkDHM/FkqjFYgF8JM7FBoH+Iry1tESUsWKEF9COPKFQrBNFkMNDI/KRS61xU15tDenMU4hkbH02IxIIJIZURsDStZJpGXb6Vf9ZgZaSkJQmpYZaNctXvCnNUzuglUDFfUMLeO4yMbkjaVziS+8UJSFuZ+gnRhumFJFXLlgqyvIdOLqG6uX4PKLhaP/kieeUBxTmpzMUQ4eoxezFtNmUZNmQn8VoC45UDiJispiECBthA6jsgdGU1JKrxi9Z1lh2ihr3lG+VcFQUi5L3vM/rL30CrZYXriBfPedPccg9/M5xhcPi/n5fotUfSSRiEa/LiqmsdXWUEEASBVGU1IoGLBEL80aIoHBxVyAgYgaD0YADPhAIIIau03RgirKwT5hghSQ1d7TKRy61xnEFriE5AsoLTmEElCQgAQAkcaTCeyNyw468va8KWiJTVRVErR62TlYbnfKABT93QTFzt5X0ORxeNpwUBD4e7LHbeYz+UvfHpxSRV567qIiDE7QFxH2eYFwCgAu6LYwllBRKdcwVD4iHw9zk6aSSGDrEybtbMlpwIeSNiBaGVI9yycFixBvgaYshl4Ly+KpBrhp/9QeWVsk9RZAUg3B+f5CTgBjy9vtYDimxRy0vbF1E9Zw/xaHoYTkkQQQIiqIIkATW40tKEkilFVpjLCDq80d5SRJYz/bcD60V+QZLxAKd65oYIurfjegNGEpQBHhsN2egDZXvlUmLFcR9vjAvSULAvT0pSe+79jqlkaty49KQIAiCICST4YDHFxUpRi8vOIwJR7FOIHCRKC+KyYDXJ6j/qEdu2J4//bQCLREMRyShdKG3clVRNK90PFU5AIzwAtrZsRjmLgCA9U6Px2EIuBxdZvP6Tc6hTovP13+JYWoReWUCqoiDYwTjcdsi/TaSICx9IabfYyGwUh1zxQN29Dm8sUlvD8jF0GHSn8y7JZRgKBzBKYrA1KI86WADJgKSLkgayeOrBrlqvGlpY5XcUyYqwXjcVrbPShJGT6zV5XViyCR7FPOCQKbB+VN9LJJ5uL1B4TCzrceERLpIvYm28aTFjElvHUorEcDi6qN8doYkaVbCMARBEESRb7BELNQbIRONpXQGikQAoqf0Oh1BT3UbgBGMx20NOBmSpEKIHkeQped+UnHkqtC4NLKvb9N6s9ls7uqyu0KU0+PoIuQFpwtDUbyrx0H57DcYTRYOp0j1MVFu2Ps2fb0CLVFcr0fFRMlvsytXFUXzJo2npOIILsQHRT1FLFySaEKh0JEjR2ZdRaJ24uC5lkMRL8zwWnFiTvSMwm7bdtHi72dmfXivHffm53XnLVtqpGckCnxSREkCAwCIPGux+twhP5wmLnS2QD2jIoIu6y6k2+fsql1VEZNBm22XK+Cdz1LVU+gZLbSwSsI+TkJbIb8XMCSBiwd3sklG9gsjCIipyy4fsFsd4aQIJDHk80mECYcTF4hFBLOtG8QCXC03X4mzuzFLN7mQE2eBzV3CXvsmB2uyWiC/Fy6ScZ91k0Oi7BYjBr0BMV3gZruDQR20kSBN3sE1brcd0ghiMQHFu7oZxM/WajsiSYgGYh09VuOC9pLmyd8/ciwF4EodxAQn5uSZEcSiZ0uNnhlBLEq2wGdGENNii1Z46+15YuiC0L2EYtcQkEgQEBCwmJxcaBubsqVOqKmOdEXvV6sjPSWqFyuerlbnLBo5MxRlSE+6EOgppSMtcMGtFlpPEARBUIytyo20KzR+0okEAbGAUCGVcl8pZneFajOvJKPBialGT1lMFodqtMLcpe20CZGIBaEjPSWqFJqekVbnrBl5gpgnQqCngo60JPJ9dueQ3hoIhsPhoINCXHZ7sIppR8XG5wuRICAWdJ7OuATNE8loMAuq0VMUk8WhGq0wdwGa/Ou6M9CRLhPMVFPRVNQTLtOVrax7WSabWVkeNi80PZWEbLlWp8zyKcU5J0/w5QLCyqK4lXuh6Cu5PiqYH0Kgp4KOtCQmkyK2xW4hCRzHCYvD5WD0I4IkP6vMjFzjisaoEQkCAkJeTF569Y/9fdsVC2YxhSUp6bFb9ARhoCz+6KQ9r1UK0ZxIRgNQ/UhUI8losChUoxXmLmOHhwqjyLR1pMsEMxU/VNR3levK2jyVdC/LhIKrkYetfIyCVudky5957teVxTnLly5lUp9qorgVeqHoK7kMaeGGYx4JgS5iHWkUIymj1Gd3eP0sxwsAwWz92yxGTFEbucwMNW5UIBIExCkOeTE5a0n9lCVdHBoYWWOPcZzXvsbj6Cve5ygWVTBXktHTHYlqIRk93waLWZu7aLQz1pEuF8wEyiqaCvqulZV7pxQKrkYetvIxcq3OMsvjj/2+eu1QoCT1qSKKW6kXyr6SyZAWTZ4/QqCLWEcaIJjTy7ptpgTrta436w1Uj5cVVbWRJ5kB1I2BgICosphUU9LRDlOPg0YRxGxxUCjPcvksUytEcyMZPd2RqDaS0WARqEYrzF2QVqzAjGnrSJcJZgJl0VcFfdfKyr1TCgVXIw9b+RgFrc7Jlh8ePjyVdujkqZJM6lNNFLdCLxR9JZchLV50/giBLmId6VxzXRa7188meC7gdQz6env9cRVtZFS+2xMUl4aAOJFiUk1Jn6iNCIqhiFAQH1QvRHMhGT3dkahGktFg4atGK8xdQDa/7jJ9HemqoKjvWlm5d0qh4GrkYauTkFXdVbC5vXVavZZLfaqI4lbqhaKv5DKk87PgLFYd6Xhgq4nuKXyCkGaLjSYGo4Mq2shINdyA4xMERPXFpJqSLokjOVVnIImiBLCCwGHFQlQyD6mNZPR0RyIoGT2duYtGU5i3zrKOdH6yrKTvqqQrW0n3skwoWFEetkyIuLKErFyrU2b2tZXFOcvHJ5nU55SiuHILlX0lkyEttjCvhEAXq440QVlxgbU7XOE4l0zy4YDbw/KG9foqtZFVjFElEgQERFkxqaaki/ui/jAPAODD/ohIFPfsVi9EcyEZPd2RqEaS0WDhq0YrzV1KMLs60vnlHCV9V7muLI5V0r0sEwpWlIctEyKuLCEr1+osQ9s5H68szll+7y6T+pxSFFduoaKv5DKkhQbmlxDoYtWRRjGz1+9ZI8bsm27o6lrvcEcop6ePIavURlY0pgKRICAgyopJNSUd6ST27XRSFGXfPtjrdReVetQK0dxIRk93JKqNZDRYBKrRctRKR/okokqh6VKtzlm54hwLCNdOCBTqSC9WY2pSQaAmAMRssOWU1QQojkS1qxULQjV6umzRSqnM4mJCtULTc6DVWVMsYCFQqCMNAQEBMVcj0SJQjZZDu+fAonr3uHqh6VprddZ49F/AQqBQRxoCAgJibkaixaEaLYcmFApptZo1Z58NOQSRQ3Yc6khDVF1B4DMjiNlgC9SRhpgWW+oBACsxTNdQDz0FAQDIjI+nxzPQDxAQEBAQ8xbavW9DRRUIiDnFfNOsn2/2QECcgryFaTi9uUtjo67kn6kX//zAf91ipa/dQF+76b++v+ON4dSJX2P/wMOf+8x3oa8XE3L6ZBW06SucdRIN5ifvzVCl/YxeT5RAr6crqJxUUaEmNOun60AAgMAFt1ronEEUY6tSo6TChUrtgYBYOCN9nreiEKYJwuYOl7KdMlmqaSSvrag+ZdhKGXqCfJWnRH09Pf74iZcF5QOE+FZbLw9nN8W5C9beVvzHc/d/91vbw5d8+rbf7Lr3Fz+7bdWBZ79x+137T3j20r567Re/8nHo68WHGQvQLyz7EQTtvvuhaAGRSMCMncgb+xOa9dN1oCTyfXbnkN4aCIbD4aCDQlx2e7CKaUfFC0nzdbNmCIiq8ggAENnRFzipquxiMryDBXYLOSvdUahCmNFKDW3zR2Hg83OX8fHx3F+jw8//4v5B5uu3ferKC1a1t59BXOz41m2XtKf4A6NvPPuA/VOb6Gs3fOIW55MDB/JLKbf0fsvx2etu+sKf9g6/9dzDX/nMJvraDZ/4Yu8z/HDZNYb3Pnv3XQ8CAEDqwH3fd97I5BZ1Htifgv5f2CgK0Mtl63lRUpGeB347bXEFS9cDSn8fmNN835oTlzcxPpbtsTImg55itha1Yct03stk4hWl5AEAkpT09tj0BKEvaNYX7eeCXiZnKj3J1CIwDMcmgBZWcUruwwQpZ0ZPzvLCJeSNl2rWFw1Q61RZa5KYTIrYFruFJHAcJywOl4PRjwiSYhdK3RKIPtbft13RM6X2QEpDzIM5SdK71WrQEwRhsG715jaflheTIm8ffO0waO2kKMTtdMt3qi5Lq9yH8YCLNugJvcHhDhRrj1q9qnDK5EWXHYBmCARRzLKyGiW3qiwNFc0m6c1iYGccLr3k5i5abX5r3WH+r/t1+JX6lcXvdO36nu99XZ8Kf/vOx67c+j+PPfq7HmblL75zx4vDKQDAcPKlFvorv/xZ/4XgH9//wYP6z7kee/R3PeuXeL7zkzdGlWclb/z5t+ze1d7dv3ss8D/t/GO/eZaHAVgckMvWY0JIUXoeAGC6iRIibK7KcCyLyCSNhMEoyrhisVg/jfQ73OYeXywRY9DE9kA8N90p03mPH0oXZeJpAgMqUvLi0MAQbo3E416nIadZn5+B8azD6ad6/Rwf76NBv9Mz4ydCwmAUoXtjsYTfTecuIW/c5pnQrJ84UaVTZa2hGEkZpT67w+tnOV4ACGbr32YxYmpdKLqFwvM7Hsk94/Qq2AMBcbLAsR7/4Bo2wXFxf8eA3xPiRJ6VF5Mibz9+ThsCEEuPyyiG+nzhSfkoS6uoIAlcwOGKWL0sF2NNqYHcHv+KlyhpR+GUSdMtid8dEWiKVMuy0mQ0SCG5VaVpqGg2AADFjQY0GYCbcefmLu/u3Zv7K3VkVKdb1qLTlR3B/zms099401pCp9Ndcr1t7ZIDwZf2AgBalhHMlResWrVy7/Oh0dXXfOZKvU6nu+T6z13YwAcHDipeTNeiGz3wEhv86/7Uytt/8aueKwkYgPmGVCo1+K89wtCw/L/WVtUd/+Sy9WrS8wAA3MzgYiLCC0BKspEkJduhDu0gLRQBALLG3NmppygSAwAl12Bicggo6bw//s+hokx8rikVKXnDVjuNoaiZtmJg4r04LsZKpNW+nkQAyjjcXo+9bA8nSRL7N5mLr7v0qO/EgHYYrfnrUhgQBWnqxgv1WrFT5a0BBHN6WbfNlGC91vVmvYHq8bKiehfK3KLmmRlDEAQ1tqAoWtRKg4AAAAwNDb0x+KYaW4p30UgrIiZj/kAoKeHbQ5FtDFmhmEwMLijZ47Zz3klPjuRpFYjxXIRFzDarmUBQ3NLjyO3cX/kSiqdMXoEe4EVUj6OgUv3JJyOvZFXlalA4ACXXoAMR/hRnSxuK1tXV1e9PDl94MQAA6Ja0gxQ/mkqBkunL6PCwcPDIkpUrdYXZx6r2hoGDR8BKoNMtWaIDAIDhvUcOvPLgxmsfLJ515cFRAFbKrTljra3n0/f+5oG77r/ryMo1l33xG1++fHU7TOn5ho6O5RdeoLDLwp8jf1E7pShbbzAM8Ii+l8QSgZz0/I7iMdcPiQAFAAAEJRkTyrIcxQwlRNIju90var4DgICC0HyRlHKd970Hx0pOyX08SUp+cEgEGEBKtOYBmLh1EnkRRQsvsCAYKZtRIwi6ZZvHZsirmqEYLnKx0rlN6ZH5y+alXyV545Ko8GhGrVNlreUc0mWxd1nsAEhclO1z9PainYxKF8rcouyZE0Amk1FjS/gvT8NUgihny/J2o+HCymwh1jvd+zzbvb07+kY69XSvx5XilYqJ/A7KbHMyIbfT09lLqKVVQhBHeAHtyKcFiuXTYajiJRRPmXR7IySlkvKiUn/yyahoVakEvcoBAADQSqBibOgUZ0vk6Wc0Go22eUleg7eduGxlKvnngQMTt+DDA9+69d8jR+uPDB/MPwRKHdw7fLxl2RJQMpq0r1yy+uJ/f+zJx0NPPh568vH7f3WvQ2VBZXT/gZUXf9z764ce3vXzK9v3/sIbhvm8WFAuW19Reh4xWUxChI2wAVT2wCg/ZVGHXOd9ybLGslNUpORVFktwVBSLyvW8z+uXPzXHOwm8gIK9kgQkAIAkjlR4AF1N4+qdKkc8sNVE9xRaQEizxUYTg9FB9avIbhCn4xkIiLmHmEzilJ2NJOLRIIPx2/rZisVkUt1gnC6jyPbvCEkqadWKoa0YKu4rJktew7nyJRRPUTSgYpYhQN2qytWgFYN4vWG5AAAgAElEQVR5Wg7teDYvbtzSfsGnrl+z+wd33Pfn5/cPD7818Oy277j2Lrvs5k+sT730wO5n+RRIPRf87XMHV155waQ1ldVraTDwyK+fHUgB8Mazv9x661efOTAMABh47vk3hkdLj+T/eu83vr1jYHi0pWVZ+xKdblkLDMCiQZlsvbr0fOFgMeIN8LTFkEvoeDjMCVWtAch13q/+wNLy8ldRSr4MJMUgnN8f5CQghrz9PpZDprIHxTqBwEWivCgmA16foP4DAaXGJzTrp9UpAABBWXGBtTtc4TiXTPLhgNvD8ob1esUuKA8MCp5RsAcC4mSBC2232V1xQURRDGtFkA5UpZgo8BZByR6XNRmJiaJyWjEmnLRYQdznC/OSJATc25OSNGW9Ujxl0pwFwxFpYk5Tuf4oWlXaHZUDCitAnR2QJAAAbTY78Y/Lb7nt9k+fF/Te8enNN9/yHz8cXnnN97/3lfPPu/72rdf/eftXr7/2Y9sePnDL9267pH3SnKN9ddc3/vvG571911+7Yev2v1659bZrV7cDAO676477XzpQeqT++u6biIP/tfnj9A3W4JHz/vtzXTAA8xmauobcf1UtvEyWrVeTnp842ICJgKQLkkY7+hzeWFXvXsh13k1Ly5coKkvJlx9MMB63le2zkoTRE2t1eZ0YMoU9KN7V46B89huMJguHU6T6XZG8cRyb0KyfVqcAAChm9vo9a8SYfdMNXV3rHe4I5fT0MaRiF5TtkXkGQRXsqTVbIGBtUWOL0dpr0w9ZzUaCNAVGDG4no1hMirz1/n3SMxSiy9F3k14trbowFCMYj9sacDIkSYUQfe7llcr1SvGUyQVBr0fFBC9WU38UrSpNQ8UDAAAACPFBUU8RkC0AAM1Ptv38ymtNy5Ytrd2F9w88/I0f/OOXv/4mzNj5j2NjY6OjR4pvMGjqGrKZ47m//xz5y4MP3D9bekZht227aPH3M7OubVo7KfmFjln3zP79+5c0NymyJfyXp2Ox2LnnngcVaiByOHDgQCOiK77BUMaW119/A8OwhcuWoMu6C+n2ObtqV3/EZNBm2+UKeBeZIvR02RJ5+pk33uC146nhGtuQOnhgMLVkCUzdhYgiXWYTksDFgzvZJCP7hREEZAsEZMtChNnWDWIBrpabr8TZ3Zil+1SYuFTDFu25Fxtqesnn7v/u1h+EL7yehrm6UNCINCp+3trSOlt3/9ZNDomyW4xwQ5GFDY1Go8aWFni7AiFnS6MqW7Klry8sQKB4VzeD+NU3UDjhO75oINbRYzVCtrQsaclms5pQKNTYiJyxejVMLQgAQDabPXbs2PDBg1qNtvTzdDq95uyzvvf9783WMyOIxYGUNCZnSyaTPvuss357773nnqeHz4wgijiekt4bHi6vLZn02Wee+djjT6xcuRKyBWKCGMdTQ++9J68tZ55xxu+feFLz9+eff/W115qamqCnIIooKkWUQqvVJuLxkRERsgWiGra0LW3r7Fzd3NwMXQQxJVuOHTsGAIC1BaIathw5ckRz9OjRQ4cOAQDS6UwqBRWGqkJ9fZ1u8gbE2Wz22LGxU6HvBw7sB+CE9kvVaJQXh7NZuA1rlciW7VibzYITDEot0NbWprbqO9+SN5VKZTLjkFjVoKmpUTOZf3DsqB46na6+vq5seB4bgxsUVIW6Oi1SeANa8+ofA63nXTY0NNzS2oK2tiKIDjqoMtLp9MFDh0fEEQxbnvvk+PH04cPi8o52tLUV+mdKiCMj7w0Nt7WhDQ31uZFj//53sRUdrS0t9fX10D+VIUmpoffe0wDQ2prfqmBkZDQLwLKlS5ub4T3r1Mk7Mjr63nsHV2DLcwPw8ePp994bXrlqBUzeanD06LEDB94tJi8AQBDea0Vb4dhRZfKKIyOjI6MdHfkN5Y8cOZo6frxj+XKYvFWOHQf2v7tyJabRaDQvPHBXi+EjjY2NTU2N0DXVI5PJvPuu0NGxPJPJiOLIihXwtdPpIbnv7RVYh0ajefddYdWqlXV1ddAn1ePIkaOZTLqpqenYsWN1dfVLlsDnMtNL3v37D6xYgWWz2XeFIbzzdOiTaeHddwUUba2rqzt46NDy9naYvNNCKpU6evTYkiXNmUxm9MjRjuVQGGd62PPW3tNPW1Vf39Bw9OjR1taWdDoNnTIt1NXVZbPZw+LI8vZl0HvTBdaxfGxMQhCkubk5m81CB04LCKJ7+53hpqam4YOH8c7ToPemi+bm5vHxbCqVwjqWQ+9NF+3ty94VhI7ly8cz4zB5p4vc6xpLljQfPjyyfDkcO6aN5e3Lxsak+jqtVlNXNzY2Bj0yXWi0mkwmk5JS0Hszg5SS6uq0Gg2ADpxJBdRoxsfH6+u00HszuvHQptPHx6QxjQYcPw63pZl+8kqpTCZTVw/HjpmgoaEhm80ePXZ0yRh8VDQz+kn1oE6r0WoU3+aFqIzx8fFsNnts7FjbOHxSPsPRN3cXAuk3A+T2w8hms9B7Jzj/g36YAY4fP57jHnTgTJIXZAEA9XV10HszQzqd1o5LR6EjICAgICAgIBbMjUdr53mz2Nzw6+xagnAG/in7JhXq2yz7XPHDmUG1qT3ROzdu2bXQ4/TOP3dt2ODck5p9/8h9tTg8Vo0P33nhro1bdk6D2+RFd0X35B2a2uPcsJF9fXhB9D2XmAWQG7f0vfDOaCHiO0fnT4ymE5ESdg/f5dhIEGTfw8/l/2Bfn1/+3xNaR0zCBkegmhMXazLOIl4P79y87iKCIMiL1jrvZKckc2r09Tudd+5ZvL/pvnPzOmcJ/1OjexwbNvzid3fMJLPm89wFO//yWWzuH797qO2KS//x24ffgb/2h5j3OO2Dtl/8cNM0TpAO+/7z+/8cXpDkbjvzmideHOB5nh94+pYP7v3y5747D8v3tCOSr85vPvtc4/+9mOjrqsv94WLeP3/9z/M8zz/uscAEPHGMvhN1fv13N9/1GM/zf3vqV8gzP7x91wtTsGXk7b//491F7JMNN1/8j4eeKM7h3nn5wdeWXr3x6i/PILPm9dwlO3vP21Kje3b//sAntzrOOfzHJ19+J0ct9s7utRetXbfhs/e+vKfIN6UPAQDgneidGzZ2d2/ZvHHDus2OO3f2Ozdv3rBu3ebQnmEARkM7+9atXbv2orVb+nYW5kblTeVuU0aVVxpS4VwLa9ducd71zugsVO6TqsEhc0hqONDfvW7durVrL9qwpe+fw6kKrs7drcqOn2NoTq6IyTsv+275z4dytNmwsduxZcvGjRs2bul/fTSlyJaV51xz0/lv9f/o0VTlQMxz6NqZrT+4Gjz/4At7AAAH3nryyxvX5buZ32FslL3TsXbt2nXrNnZv2eDY+UKFJNoTvXPdhi0b11200bGr9G+5W4rffrR7W9+WjevWrV27bsNdodcVIzI6/E+VYxS8vf3rrr8d+Nt/f6Hn9v/6bu6PasiczWZP7oZ+O7s39OW7NnrXlo13RvdUl5IKjpWxdy4wHxSIUqkR0NjW0d4KAGhpf/9Xf3zn5gtOq8C9jY5dD93x47+9xt72lTsX6w32+9d+auVbf/zrO7nZS+r5Xc+cf/MG6bV8ZslTuG/jxsDrwwCkWOeGdd27UgAM7wlt3thfYaRQT08wV9wD9RqtduzYWMNs7AmWfOmBfyAX95x3wWnrVnh3PvOJC27c+5cf//T59z3w9E/bR7mv3rhlLJtJp9O80oe5Fo6NZw8fkL6w4xekbu9Xr9v8z6/v/M1t5N9+86Wf/+bFMy555oe/A/f8/qkzdKO/ua37695z7rn1UnlTmfEsANl0Op0G6XGQzZZ88tbfvD/+K/brpyKrdKk//OjWr9/9zD1fPSFdnkw6U1/fsGTJkjn4kVsmkwUgm0mn0wVtB/4PPy5zSP/aV4Pvdt0X/Gk7GP3NlzbvfOaVz7f8n5qrAQD7X/pd2fFfXJ4FIFv0WM07NT6u0WhGjxxpROZCGVXuw2JPM+PZwwekT+/4maE99cCXNv/8T//64vIny9ji/mgWAPSjfa69n3F6nzV+3gCyAGTH068++TM5M+egO+l0WqvVptPpaiKVHs8CAMbThc5r2y48A4kMCpmzsmOHDm2+576rV+keuM327Xs/9NNPX8r/5e6fPo898NRT7aN7b/vU5rHsePES8iT65uXZQwfG3E/80dDe8tbfflT8+9Un7yhzyzcvzh8JnvrmTwbt7D1Xj771l5/7X3z3qrPbQXlEXnlix973KRwjp/09t156q+v251//3+/c/YPVKW7vp/73O3f/gGjRVnbL8ePHm5ubj6ePa+Zk9pLOjB/e89RHLtQXPkCsP3vY9qnLf3ff04euOhu89dwzB1Z/5zws+dL9iilZ2he5B755cTl7f7CBqHWPEASpr2/IpDMn9ye+aOflWz8dvPXqS1decMXla7s+wlxz8bntFbhnaG8Z3b/qidd+/70f/QemPWm2S2MSAGC8Nj8v16LnWT4EHv3TK1d9wjA6/NKjr7V9+fazM2+pjoOfXdv28HODGzrbw/84PCb9+V+HPiY9F0TXXle0TT5SfHLkHsX0nBuMj483NiL1AIBMZjyTyZz4MsCzv/rjGR+5Hauru4BhDn/u3hfevmr4Dy+/33IbVpcBbed+csMFj2fHM5nMq0ofFmzKtp1jPLutri7VhK888zwCy2QyS5ejY7z06lN/f7/1W51NdRnQdvWnr3zg/z2d6f6QvKnx8SwA45lMJgMy2SwAJZ+89odnX/rLa59hHgEAjI0dWnn+vhPs9djYmFaraW5qOnbsWHGXydpFCxQ6loPcIVi349tbB6IP3/fKKy/+6bk9779CejWm6moAAHa+tez48WXZ3M+ncpeqaY/GxqTly9vr6+uPzdLUeQY+HM9mAchmMpnx8ezKc4xnt9VlMk2r8JXSYfG1hJwtKACgue3cnu9+7N97/+eynQ4AQDaTUWTmHPSlQdcAAGjQNRw/flyr1VYxbwOZTLHzmTEApPHs+Hj2zEtuXtvZlgHg0k9c9pt7XslYP/Tq75/9oOVbWF0daDvrEx+75IFstugyeRKNX5ZdecFlZ7c15d1Y+FvulvGLQO7bI+QVb9359Zvf+PAN19/4mS9e21ZCtWJEVqgco+jtkt6VdVMVR48eW7ZsWV1d3cGDh3S6htpP07NtZ17z6IN3Ei26koVqZoX7jpff/ijy7MONa288valOp5KSpd1Rduxk9tY6eTOZDNraqtVqxsbGal36pkLdWmv/Xzf958CLL4b/9Afnpjs/9J87rnhRlXuZTO5udlIdmHuMZ7M5neRUKlWDnf3qLrz5hl9+5/G3bzh/OHz/2IduOret7mAhs+QpTHyeeveel942dAgrN2wYe+G5N98Gkb2mTxNFB8lHihUfVE3hOcCRo8dWYFi9RqM57bSVb+1NtpzY1pyj775w71/2vPaXf7/sV40AjB0+LP069NqGLADjeamLjC6bHc+kUqmM0oeFu5NsY7YllUqlUsezAIyn06lUKp3Jgux46VnH0+MAZBWbSmeyICulUqkUSB0bk6T8J9lUKjU+Bj78hR/95PMX5crGaEp3IhocR4+NrVq5EgDQ0rJEFMV0Ol1Xp61dtI5nsgBk0yUWyx3yauTH//GD+A22jaZrPnWa8MZz2XQFVwMA/hX9WdnxOV8VPVbLNYOMRqtpaGgAACxbunT44MGmxpovvch9eDw9nutpOpMFOeIBkMlmQTYtZ0taiACQTadA54X/1n3Z579550OrwVgmnQZKzKz1Wr0kpXC8EwCAdXQkk/sQRKepuICQTmfyfU/lVtr3Jd6SziPa06mJWKcz2cZsPq2kIm3Gs6U+k7vl8Gv3NGbbcw2nM9ni33J+pjMg9+0y4iMPPmZ+Of5s8Imf33P3fXfd+4NzCiN6MSJqxyjWgVQ6ne9d8Y+KEZCkVCuKajSahoYGKZXKZDI1TV4AQDrngTLDdKs/chF45K8xlN274RvvB6nUqyopWXqaomPL2FtTBo6PZ8fHx5cvXw4AwDDswLvvzkHyquFf0QceHyZvve6DxIWXExdezlxz3pfdj6wlVLmXAiB1PANq7aPKY+WRo2esxgEA7cuWDv7rzeamJq12llf/lq3uMoL/Dr/26tvsG9dvtYNUqphZ8hTWgX0r3v3JX//aiF5hMYt7H/xTGOxd8WV8SdFD8pGiQgrXfr0509TY2NBQX39sRKyvrz/7rDOFofe0Wm2ZSln1eCX2kHSB/dnffim3dpR45KuOnz28+bYPvv7Lxw/dQLan3go++Q/NrbrGpmb9NR/8+Y7yD/O53KAFGm1jU3NjXaMWgDqksbGpWVevBdo6Pf2hn/seF64lV+tSsV2RlR9yKDa1ZNmKsXcHjmXq0dSbf3phDzDrdA1aoKlrbGo+75oPvu7yv3KzwdAOHrz9c8HVX/vfGT0zSqVS4+PjZ6zGize7p59+2pGjR0dGjtROk0LXUAeAVtfU3FiIj9wh70S8Z2ywf3nzFanRNwIv75HMugquBgC8E4mXHZ/zVdFjNepLSkotW4YWNShaW1uam5sOHjpcp62rq6/h5uJyH+oa6nJ8myAeAPVaDajTydnyPx+tL5zezDi++8cbP/nUgaUM0niOEjNr14ujR442NTWtWLFCU9gdZ/VqXBRHjh0ba1a//dAh9QBodE3NjU06kBr+0y9/9ELj5bdeeBZIaA+8/PS+zCZ9C3jtqfjqa3sam5r19Id+7vvjoRsM7ak32ODz0ie6iz2Su+Wbl+fZ0pjP3/zfcn7qGp7LffvSz279Ndj8w1s3XXwxOfSpb4qZ+pIKkI/I31SOUawD2mO6fO9SuoluqjznzYxnTj99efFmdzXeeezY2JEjR3W1lOPR6eqUDGu++JPX3vUfdyFtl9ved3qjTjUlSxml4thJ7J2SgeMVhSe16jO5o0ePoW2tzQW158ZGZDXeOfTe8ImMHSc0SK9sevJb7tUrvvuxK0iQGo7/4S+Nq9fr6SY17jUCkEYaAEiBuno1ktQOqVRK19CAYVjxTmPN2WeNjo6OjaVmmX5NZ234+Orv/+oeRPqQVX9Wo24is5TGQRP1PuGHvzj8ZW/feanLXv73u864+jsEtlSnPlK85PtveXoODw+3tLfrAJD/MTurfelMJpNZ3rEU0ekAAPW/+NVv/+3frBqNZgXWcQIPAPY9+tvXr7n922cV9OEu3fDlc3+45YXlv3Jc8tPPXnM1WLryzJVLVzQgaGuL8bqvOV7oKfsw73BECzT1La0t6FiTFoCGxma0taWpQaPR6Iw3fs3xcs/nr7t6DIBzr/niD50b0EYgb+qcCz9hveDzm9ZdvnTVhZdccCZoQHJtoq0tH7jua9/7Z+/XbtwwBsCZl1p/+B9Xoa2zJuG0pLl5SXMNR6yRxvoDrwXo8/O/q1x5wS3xJ8odgryZvc/2jWv/tPLMM858/yXn/uMV0XiLqqsBAB/+fHfZ8U3naoGmvuixWnVGtpNfXV3dHIh6yH3IutBcTyeIB4BOq9HWI3K2tLz9ONBompa0oI0AtF767btufe7Tfl1jsyIzawd5XDQaTVsb2taGViqajQ2H9zx1/Yc+CAAAALmA3uT9Rd8HlrcMItrGRvFHX711bGxs5fmbf3Dzh9FGYLzxa/a/f+WTH75i6aozVzYubWtvLV5U7hbw0t+Lrit1o9wt0vP5Iy+95Sv/93knfd83GhuXfth2+7r3r2qciFGee2rHKHp7TEI0QNO0pLmlIf/HtFK7qanmam6pJl2J/wEAYOW5N8f/tA298GOXgLsOb77xnOUtFVKyNOgVHFtkb+2SV96yVqs9obHjBO0x3eLblrmtr7tvzwEAkEtvuOXH/+/m89BUBRehDRec0/gN601fffjJHeehJ1/Fr6WlpaUG4TJ85LNS/6fP/PYDOWoVM0txHLzkuvPH/rD3cv2KM8DlZ4K7zr/x4o6KI8WlX1NIz89cSn/2sUc3rumQ/1ELv2m++dP/tW+8XqPRAAgICAgICAiI+Y1sNltvNF129CjcWhcCAgICAgJiYaD++b++gpvPhI6AgICAgICAWBhzl6tWazo7O6EjICAgICAgIBYENEePHr377ruXLVsGfQEBAQEBAQExH1BXV1e2+c34+Hg6nd67d+8XvvCF+kw6vW7dOoPBAD0FAQEBAQEBcdJxaHjoX2++VbZvZF1d3Wuvv9HW1gYAqK+rr4dugoCAgICAgJgPSKfT0b89/5H118i/WtLcHHvueQCAdvwkbowMAQEBAQEBAVGC8fHxY8eOKX6VBdmcCKhWW1cHPQUBAQEBAQExD/HQ7kfkH2pffOZp6BoICAgICAiIhTJ90YbfeAv6BQICAgICAmLezlrKpi/1I6Mj0DsQEBAQEBAQ8w2bbrpR8XPtVdZu6B0ICAgICAiIhQLt7ju+L//00Jtv3nHHU1tufOLNsUmfj40N2WUfTgtqLZ90vJl4ZcuNDyUOpeVfnWCv/+xlDeb7ovtzLY/dcePOK7dE94/V1uYTQfLl6EMPRas3cOzQm08//dQj9z0x24aU9DS688ePvFL6yf6hl8/6Tr/9jaEJah16846nn9py3xNvyswYSw/ZlT6vlrTqLZ9k0u5/Zct9DyXGlM06kV4/8fRDH3nkiZ2v7M9d5bYnHvrII8/Put/273/Fft9D0YL98phCQECcivMSrTaTyTy0+xH5f3977u+5Y+p+//BvxCPHVq1aVXpm49KlH/7wGeDN4VVmfGnJ/i/19bqLzafjHboZ26TW8knH0lUdS/cPNxrwVY3asq9OsNdLW8bfBPVDhxo//MGW/a+88sRos/nD51zzweaa2nwiQFd0pN4+1LFmVZXxqf//7d1hcBzXfSD4P6mW8cqYkM/UiGkxoNy0QLvXxq7aITZq6bhSb1aOx7Ec9V68pd7kg3vvw3kuVYnGV+VjV11yNdn1LeYud4VJbao4/rLqnC/F2RIV9JXssDdkzJbIFVoRFTRLkNAUYKFjIESHGBGP4oB4MEec+zAz4JCYGQxIkATI/6/4gXjoef3evxsz/3nT039CH3/8cWAXE319GzqQlRfh2M4e1dLfFsn1EQnbf3E0mEoN/tpgon5cCKEHH38c2EWxr4/eOAxh+2cG+/b0ffYWj2CHnu/xSZtI0vJFIvaJQoth3c6sE5+5xumX019M1vYyQK/xHZK6i2xs3BKJZIKfF3ZLfcL2lscUIfRg5i4ffPDBt1745pe++MXav75f+ZV9+6Tav7//+5/v3btX6P3co3DhYlfvosKpghOFfiVbTEmNJ7HAPWNlx5W0ljWlyA2s7BnZ1HLp/sgL8k5MiMB5RTVUQ6Xt37WXLMPhKS2f6QfOCukfe6Li5AZabuzkjmbdiqokWFyhlBCAlKWlJBIHYc6OCBEAQE4pppasD885k7ejVFoO3BgIKPqgFIU5e1aSCBBCoELl/ky6n9TXV5idPUGIALyiNMbcctYAwKJZuxBxCgA8CplmvWDIbZ/ZRVmS/CjSaeiylEbDGADgzo25pXIc+sEsSRDOy2Uu6i8otUbPG1d0vY9UwjNnxiNI6QcTAlQq5eD0iTIHgApJyqoiCfWDNRuciSqkdtyYdPCFgWTbWZeiIJgqAUClUulXtX5K2g2jQzsAxKHjUy1Db9gRERIKTcqJtV9NWWmqEEbhbCX77VRtGsHUGcsbVwa1rCJFU4HlnZEVLTfYH0VBPoyJIPBKRR1Qjb72Jy0vWUcd3q/l1X6osMKPf+wlFOf5Nift6aPZqYoqJli5QgkhAKmDWoqS2sJDLoiIIACA3K+YUhIAgvBMPohSg3IwFYMAijxo9FF/3M8FsxIlIBACFZrszwz2EwBeYbZ3gggCVCpK05hXzxoAGJu1z0ScAACPSkw7+ILR5vDRRILHnPPY/H9dXTdUzmkjcex+zO2iF0ZBIYyJIAAQWqlo6z+mCKEH1rZt2wAAFhcXx8bGqi1cHRkanV5au3Fs5NSRicvVanVpYW5oeHKpWl2Ynn750MTSykOGT43OXe3QycLExNCRuWq1Wq0uHRkanViqtjM3MTE0MletXh05dHxi4erCxMTwyPzSwvzQobGFxjYnDx8faeri2NCr3xlu7nJp6OtHRhq7nzg2evjkQmPL14+MXa5Wq9Wly4ebOmw568OHrrdMj07cOMEb1AY5ffKdoVfGhg5Pz92lMd9sZuz4e3OXa9NZmLu+4cw7p2aWaoNfeu/4O5evVqvVpVM/OjKxUN/d/MSpd6br279zfHShMdGFmYmZyyuzvjpx6vqvbj5pLs8cf2d6jWG0aa9Wq6OvfOe7RyZanAzzC0urT9pTo9NXW53MN7aPTZw6Mn+5Wq0uLc0NjU4uVasLC9MvH286aUdPjV6+2qGHhfmJofcaJ+2p0Ymr7U/a+Ymhiblq9erI8eMTS1cX5ieGJ+ar1erS0vzQ8aZz4J3jI/P1/R879ep3bv47WBr60ZGRxownJkcPTy9Uq9Vjp14/Uovb1cuHj990Atw85sPHr/84PTNx4wRv3NnS/PDo9MT0O4feGR16b25iYrQ2tnWOuVXcLk/XAl471C//6Mjo0tWOxxQh9MB59dVX+dKVlX8fl+ZX/r322mvnz5/fgI9tZK3fLcxySw7dKTk1SADiOI5ils/VP7dmMVNZBdp/BEHlftnxA5YUo6lY7pdJ54VoAQCAEmi8EWRxTNTr7/JkNVmMODR6IZSmjf7mLkWlX20soUhqHysy0GhtiVuutROBAHS+4IOJ4soyjKTK0lpREtV+lnfVvE54dE/G3KcchHDqTFSuQIXQfkXs+JGB2N/XWOegksTHGUgUAHhCXPmkj/bJtOOUS9F4MBUTQjhnZSJ3HkaH4XHGG4++MaRJeusnrdTvnpnlB+VwakruHyQAcTmOyix/unHSlpnKK5Bof9Im++XQD3hSZFNxsl/u+JdUW6UAQqCpBAcrx6Sv6RzoSxYZhySpHdb0QH1Gkh8AACAASURBVP9Nfwei2K82DorU18fGGUiUCFSuNQpdnLQJcWUNRurrdNISQSCVcjjLdEUJ/NmQlsU+4RbG3GIMrET7Gie6QPX+5EYdU4TQA/S50rZt1dvsglBRoyUvjP2IajIBAFHq05T+jHXQsg5a1sFc/gW9cz4CgmaIbnHKLZb1VLL54yQ773trXSVLRZH7s2xlRdovSVKn3cXhlN/oM/JnqXwrT5c0ilfGxVkpaPzQbsyE0Jxj6I2B3ekxcxba+bwXrewBZiMmygODqqqqaqI01RR7qFQAACoVzhpXTZbjqdkSX/l0jDReUQiLVy7IrfBSzHj7AUwFpYT2/PMHDx7U1IFE4zW73TDaDg9AlCXWNJENQYiokZJXin1GtSQBAJH2aWJ/5uBB6+BB6+DBXOoFPbnWSTsguuNT7nj5phdgzku273tsrfM2IfLZpnNgtiTRjudAacpv9BnNztL1v8xTFq9cNst5KWga4c1jFggpz3rlpJxIyrTkxZXa0NY75hZjoEk227hUvcKccO3L1iO/mMsVQsbx+RohVH+K8q9s/9yqVtf2vbAcerMiK0ti0kgrEgHX9oO47Ds3NNbfful96bSnWanasykR+wwtzFonAAilwJhgZAYVUWjXc+3NvRw5nnrQbL6mJIys751IUUkz62/DfSd0w6SuDfIodr2SIVV8Z0pPqaZRymZcQgSAiqwNmo1UqVg47RQjEnqeSGRN0dUEAFApGRa8DAjAOZHlbLp+XYvthJSIuXR/5I4XvZC7felUst2sjYyYs04AqT8d6+mBdmP23NDxBJGqhpZkUZTLBwHv01MH79yYAYCFnvU9K0U1zaxfODIb+ONTiQQhnJcTyYH+RpCTfaLnnZgiQoVzVmKJWE6ycBaEsn8iEoggVBJJebCRKg2o4ukTJ6C+iJCUBwcAYCrwo1K5FM0meJkmkgODChWAJJKU+d6JWUKgXC7FMYRSUhYT7YbRrh0AJFUnRZ+l1c6v1W7ge6VyGM2KvCwlksZg/SIdN/CDctkPb26X5b70jz3tYOOkTfQZUpg9cQKAUAKMC4Y6qCSEDj1TKsnM8foOmjcuurBSZP3XEykiaYoIAH4YuqWkLg1yFrtRyaAVP5yK+pMSSZoDpazrEkEAqMjSoJkkAFA8c9oZj0jJ8xJElhS9L7Hyqh+e8TIgQIWTpJwdpKw0ZYchFcTcYH80NV6MQj7Vl+5Ptpu1oYq5xuGjJKkPDrQbM4AAPGaSQgHkPhqMxwSE2kHvfswt40YTki4GlusSQeC8whNQPBNqBwc65OFO1rIhnbbwOhiEUN22//TDtw/+2mcURbnXI+G2FWhZVSJ3YUehnlO21Nr0VhzzRvLymUizzM4fdN2T43Ii0DRVEu7OvkL9+QfuHOAs0BXDcLzNd/QRQnfK0aNHv/XCN1d+XFxcvP5y8MabTz/9tPDo0jGAF+/tk5NdGA/CWT9KSDGX7nDy4heDojcV5Lhp1peCNr+tOOaNpaWtINpMA6ow+8x4UJr1WUIq8/V+bnIr58B4UIymgtPcVOqrQQ8IFvlUzxqYuCCEmmwbO1YE8UubYN0FIYQQQmjtdZftTxx4EsOEEEIIoa1iu5D4PEYBIYQQQlsmd6lWqxgFhBBCCG2Z3KV2d93VNm1dNF4pFc60uOXLbdbb28BZB+P5XODhuYUQQgjdjtd//JPXf/yTn568+SVVAGidvNAEFXsTyiasLVIB1qpwLhFoNnXwNr+FsxGz5hEDQ9XwnEMIIYRuR+2K3eZrdVdyl9afGd1UF61dKThoU4atZcG2dp20rIHXslvOmX3Gd8Myg5gCSH0DhkShTeU5aNNzHIf5YJYmCOPlmIt2U9k/rAaHEEIIbRKv//gntf/8+r+8YUVAuHbtF60fIdCs/gJt3ElCHVDUIJIPPq9TAgDhlG9HybREAUCRB41SVCwJhdTzjeLGJXucZ1P1O5Z6Z044iYN6krTsxKAsP0VyqRQBAKg4vu9TVU0Iq7sFAEKoOagyYJmDN1ROocl+66DknD7TPAPGopY9R/GsoqiGmACoRHG5w6xvRSWOywRzH4QQQuhOrbts397T7jE31UVrWQpuJaVoLsPWoWDb6k6Y0LYGXpfV3dphbarrqcpBCKcKUZlDhdJ+U+w06/UKppxAEE0BTzmEEELozqy7jL9/9mGhq/QgLk35bKC2ZBLNztKk3G5LmhB5MMvkehYQzpYkSW7XiUgFTUym1a5zlK7TApH2tezZj5giD6gAABX3tA+wxi07I79Y9JieNuUubp+qyOlUqRBXQML0BSGEELoNbddd/ttpX9O0brpYXQqu1r66DFu7gm0tOyFAW9bAa1eRjghUJaF1IhIJAQ7q4KBGScvKc+2q6/mBX5xKiIQwXhaTA6k15o2l4BBCCKFNZNuVK1fOnTvXRU2ADSkFt/Xqya2/FBx3T2epklXxgl+EEEJo/dauCVCpXOmmI388KEbj2dN+UL71O6hsSCd32fpLwRFt0IxnAzz5EEIIoTth25Url8+dm8JajAghhBDaDNZedwF4CMOEEEIIoa1ie7t70yGEEEIIbc7cZRtGASGEEEJbJne5hnWkEUIIIbSFcpe2haTvogoPg4LX5VePeOS9nbOO6ZlL/I4MBqtAI4QQQps6d4kWNsHXlTkss24zESJpT1nZflW6Q0OJGBgDGp4ZCCGE0OYkfHTx01+5i/tbDJx3bb9HpMssXmTKNwpmhUXjhXzkxMsQ9ADsVA1ZkyosfNMwP01l/2UmBTw6m07PiKaeM9p1e8mz33UCgZAK53uMjNyU2Sz6hT/XMvsK/jdM/B44QgghtPVzl19/oufcubu3v0uBv9vMyIoIwC8FMQAIVBpIZ5YhOmClVkoACVR+Jm+dDUQBAAjtlVP/ItM2ceGR965Ln83nBQAAPpnPn5cye8T6bW17ZO3ZXG6nJnU1PqwCjRBCCN1rK1UYb7J9+3YAEAD+8W6OZo9pgeMGXvwp8B4ptbP9UgiRU7uc/AUm90buopyS2ycUy3HwSRy9mwsbP0aPMQ6N3EWg8kBG7nJ4WAUaIYQQuucOfPXJlu1jZ98DAOEnk9f67+JoznvRbt3YAwDAp3N5AAUAoHVeQvYaytmi2xvF/dlOyUevpO5V5CczqZYpR4WFoe3u1M290tpllLAKNEIIIbTJCU/9ivjxzCd3bX9zdj50xV5Kl1ncKxv7aoMg0h7qvGl5vZQCgz3pdC3PIJK2KzJnVGugKbmZtvMzYXzR8yMW7xBlOW3uFFVZc96yLADaQ2GZETmT3t1Yd1kOvTe/Z+2j2l683gUhhBC6D3KX5Ge3fXwX93fAtls1k71pa2+Ldr4M6oHUDTnHPjOzb9V2vYr+rKK33GOvmv69arr7ERKIY84lrAKNEEIIbc7cpbo5703Ho/FC8ULoz0Xizpjt7OLjng1CtEHTjQKQVTw5EEIIoc2Yu2zbtilrAhBpIGPdmz0TWZfxxEAIIYQ2qe2fXsOaAAghhBDaOrnLQ9uxFiNCCCGEtk7ucvKjZYwCQgghhLZM7vL4zocwCgghhBDaMrnLE4/cJ7lLhUfvZjJvWtbbudxkEDe1h8dvLDrdrhL17VeorkR+bFmzOWvWsmbS5rwfd9zYi3NWpGeW+R0PThQ4pm4EbQpech6m9UzEb2gpFDyOfx8IIYQ2H+G99/7uM59J3AczWQ480DPPrqpbJBDpmbzV23S7FiJpT1nqZK5w05bt2rvFo4/zwedyuR4CAMDdfLlz6CVNtFR2y7tbD0nRTS1s91tCpGzeEpvvaMOBMUxdEEIIbcrc5eLsvPiFLZ+7fOwVz9rFee5XfEkQla+YqdoLMQ/ds4530efPFPM7b/Vuc11Wor4aepBK9TT2QlKZlR1eDZzY9rYRAgAkZSa1Tl/CbrnxFadwwfZ2pPUrbgAEPqund6lSy4f7xYxl82whp0mUs6hgpX2aLuZ0ziM7axFCgHPFyBiNh7PQLThe6PNsMS/Vsi4W2YW868QMAgogqYbRyAgjz847ASGEc642dYIQQgjdvdyF9Dx8H0zjEc14irBJnlJuXHchcuopS5u8vbWNLitRX+P8IdoiP7rGwo+L7LF6mWu4XLCYaFG59d322m38WT39udBbCMnj+dz2jsNQ9LQeRarICxlLzWY1TVNUrfYr1bQMRQQeF7IuU83aCKicsizNaQoRoZKZzjCIMlaqeT4s8vIuzeXztQzHyed9KaOKeANihBBCdzd3WeLLFMPQOUbdVaLeTsinMQMQb2r/NA62qepKbUeiyhcjBm1ylw4bb6dS0khtX2sYhEgSuEHIAmDcD6WIKDqttcu12xMTQgBu4QMhFgdRHOUb9bpZHKlN9boRQgihu/S6vFuSMAqddVmJ+mE59VCxyFWJUAIAVwNnEVSqiA+JStX2K7pcy0i4H/ZoertO1rVxDWdh0XYl3dTqwyOSxItFX0+nw0LRF9XULWQXrR4iSqqmyOlMi/4iv1j0mJ42ZYqpDEIIoTucu3z5y18+d+7cVp/GBacw7jjzPFj2pR5ZU/R6NaJpO38hjuecpqLTpFUlalLfuGV7t5WoibjL0uZz2RIAABckLZkWAWA7lR8xwrlMZhshAJxo6aRMAeCSnb8cxtzzH2Zxjyh/Lm32kLYbXyzkWNHbHmbLIiWaSdXrqzss9KzvWSmqaY3hiRINisSSZRDDQNQJAAtd23EoUXLpVOQWi57DXTWdkgHAtfNBHPuOL7JYEmUjbUoECJFU6liWJ1IKDNR0WpMoEVVDc7KWBUApBcaIkUkrIgHgTtayIZ22MHFBCCF0x20rl8uTk5OKomAs0K3hLNAVw3A8UxExGgghhG7T0aNHD3z1yZa/Gjv73tNPP719+/btGCZ0O1jkUz1rYOKCEELorhAwBOg2iUq6mMcwIIQQuktw0QUhhBBCmLsghBBCCGHughBCCCGE17vUnS/m33Xga8XMTV/z5ZF3tuh2WVWAx/7ZvLMMAADLcbQrnTuwzrvmtxxGu7HVVHh40ij82m0UPVgXzqOClY8JoZTKKVNvf4kui7xC0W2uNoAQQghh7rJh9hjmxcBZ3b6OAo08ej/r9eeyj1ACADx054FuyDDaja1+CFcVm7yjWOCBnsmtVSEBAKikWZbq3JVikwghhDB32WIuefa7TiAQUuF8j5GRVQkAKnHwpplZlOSdlALnuxvtH3v2+24IABXO92Wy+xp3y63w+P2ctcgAgPfI+gFTE9azx8XQA11/pHFjWSKn9jY2vuAU3rW9fWn9ghsAgd16WlaldQ2j3dhWF5tsO2vXPuuFAvBlxnkY78lkD+j1m/p0WWwSAEKvWLCLAfe5LxFRMc0UBQg923ZDAOCcpzLZVMe7D8eBk7d9KlLG4pgpdsGstWOVR4QQQt0ql8tjY2PVrWxp+uTfHBq52vjpw+Ghf5hbqv3w8+GXJyYWqtVqtTr33qFXlm584NW50TcOn2z8tOB//cUPp2sbV0sjQ2Mnp1f28OHQMFtaY49s9PDY6Fy7QX409NJfDa88ZL3D6DC2FsNbPeul6ZNvDB+7Wh/8yMiLQ82huLow8d7w8M8b/Xc2N3r48A17bxrH3Oih6xOpt40MDU837Wz0lUNHxubqAxmr97MwffLlQyNLKw8ZHhqdW6oihBB6IL366qsfTX3Y8t9rr712/vx54T64N91yHHwSR+82agQux9FjKzUCCdlRLxZIBAqfAgDAx17xfTfooXSZRYv0erWgXiW1p7FmsFPTpooRtPlkpOUedxLyacxrKx/jtvtJHIJsPpvW6gtcVHrSSDUv5KxnGEr3Y2s560oc7lD12t6JqEoyu2Hxrbtikx0WY2w3oJQyFsV0jepLqmmB4xa8mAOnUqq20INVHhFCCK3jM6P5mZmtPodeSd2ryE9mUt18AMYj9/1QfCaXEwAqsfdW8fqvFgP3fGjsrxUb8vweWV/fHrkGtruopXtFRbGURb8wyaWNGkb3Y2upR5Q/ccKKKgoAPA6iMG5OVbosNtkSi1w7FLO5HAHgsZctrrG970WKbqgAANzN5QEUwCqPCCGE1pW7zE1P9/zyL2/tOYiqrDlvWRYA7aGwzIicSe8WCY+8ccfrAW93OrUcuKHjgKbJirwjyr9l+T0UFuNwPoBJTd6viOeL9hyQxbw1Q6hAeK+sP6lL0KZAY5s9Sl/JKGez1jLQHgoAsMeopwJhITdZ9IQwOyPSXZq5XxWJuI5hnC/mW44NWhWb7IlbzVrVviLbb1qWAABAd92Yo3RbbBIgcAq24wQ8YL5EZS2tq1SUpSiftXxKIY7DIABHk2tfPnLtvBfGoXdDlUffzhddUaSUsViUjVRjKQirPCKEEOrStukwZEtLWIvxAcKjIOvLOWPzpwNY5REhhB5Aa9ZiFH758cfZuXMYqQcAmyzYF1m8zGCvmdkS6xhY5REhhNBqwrVr1zAKDwa6P53ZWiPGKo8IIYRW234ffM8IIYQQQg9Q7nLqjTcwCgghhBDaMrnL55NJjAJCCCGEtkzuslyaxygghBBCaMvkLr/yD+cxCgBwvph/3cjzVe088t7OWcf0zCW+Rg8VHv1U147ni4ucX3DyR1V9Mow7bN99zxuC87BQ8DgeaYQQQls9d6liDAAAYI9h7mt1V1kiaU9Z2f4uSgMKRNqfSj1p6r2E7NZNWdP3yJ2+3Nt9zxuUvABjmLoghBDa8oTl0oX7YBqboY50h+G122NLi4Hztu0JhADArpQ5oMm1xndtv0ekyyxeZMo3GuWXobsq0JxFdiHvOjGDgAJIqmE0yiEFTiFve6m0HrgBEFD0tEaCbLZo2rZKuVMoFD3I21atuBBWe0YIIXTvc5eHHnpoq8+BR967Ln02nxcAAPhkPn9eyuwRiSAq+1PKYioryxQgHrdcrpoE4BHNfFYDAKjE/ltOsK9RLnE59Hdl7AMSBYCPndy4Jylt6h222yOw8N1sdpdIl1l8KRL3NbZvt8fVKiwcL7Jn8vnaveNmCtakaO2X6aXA321mZEUE4JeCGz6K6pG1Z3O5nVqnNIJQyUxnGEQZ6+aaQYqeNkKvGJJCPtf4lWSmamURqZ5O86heo4hFXt6lufrYuJPP+1JGxYqJCCGE7nLucmmpvNXnsEnqSINIgMoH0pndlACwcctpWndpvceWPQuqupIO7FLlMGIg0z2mBY4bePGnwHuk1M6mFZbbrAJdy2zSRmrNHASrPSOEENoUucup/mcHt/gcNksd6fXvcbUeUanYPtflWkZw0Q93aDoAnPei3bqxBwCATzfKL68s1XRVBXpdOQYBzgEAOGdR4yoZrPaMEEJoU+Quv9ix5e/vsknqSO/g/rjjCFx6Jq0vunbouRVXVVJyu5LRrXum8oARvpXJCIQA8F1aekCmADBn50NX7KV0mcW9srGveammuyrQhEgqdSzLEykFBmo6rUkUAIqFnFP0SJj1RCprpq6KACCrSjZruZRwxqIwEgPdVCWs9owQQmgz2Pa//+jUbw4ksI40umVY7RkhhNAGWrOO9PZtWM8I3R6s9owQQuhuErZ9ehWjgG4HVntGCCF0N22XH44xCgghhBDaMrnLl578ZxgFhBBCCG2Z3EWSJIwCQgghhLZM7nLt2jWMAkIIIYS2TO6yHb9nBAAbUUd6ppD+c1U/H9e2Y2/r2n8x84sbUf3wUuAc040Lqyop3rk9rgtWqEYIIXRXcxcMQc3t15F+VEvt1dUZLwSAxdBdVFP9eqp3I+7WtlPRBzTlbu5xnckLVqhGCCF09wj3xzQ2SR3pXlnb6XuXdOmiG+3TpIuNr3C1LA19wSm8a3v70voFNwACu/W0rErni/m/tf0dEgVCBeA9cupAOiUAVHg0mbUEQpon0m6Pq8fWLhSLgfNWtvgV295D+WShEHrw67ZVy366KU8NWKEaIYQQ5i638rZ/c9SR3gUgAH0sRcKiA0QdoKyWSbQrDb1bT8uhF4bka/mc0LT885jt7bJy+2vDcPPjnlwbxh7TkhUReBxk6xOBVntsE43WoehV9K80SkbvT6c/ja4XW+qmPDVghWqEEEKYu9yCTVJHeletEzW1nM88lrcf4t7Kxi1LQwOAQKUnjZsLOt4wDFWtDUMgUm+tkRAB6hOBVntsG41Woeh0Ztx2eWrACtUIIYQwd2lpk9SR5iEAgECkZx1n5UdoXxq6ncXQPR8ZtXWXS36nYdQP4Y17XFc0AAAIfMoBACqcXWJ8b6O52/LUgBWqEUIIYe6y3jlsjjrSl1xnyiO9NCNrMo+8v83bF7jan7J2tikNHRZyk0VPCLMzIt2lmfvVej2gHkm+WMj+FAhwJsj6M2mJh+644/QQ5dl06pJbDD2nVqF6ps0e29S4XhUKVQKAXaryVtaapqTC2Cdh1BvoA6oEXZenBqxQjRBC6O7aduXKlXPnzmEd6U2DjVtOf87E12rACtUIIfRAWruONMZoUzlftEOv+FYufyHGbx1jhWqEEEItCBiCTWWPkfm2kcE41GCFaoQQQqvhugtCCCGEtlTuUq1WMQoIIYQQ2jK5y7Zt2zAKCCGEENoyuUt1eQmjABtRixF4/K6ZcszM2znrzUzm3aJfuSsjr/DweDfD2whYdhEhhNA9J3z06hj880cwEHsM82LgrG4nkvaUpU7mCmt3QcR+I9UrmbJMAeCCkwt9ceDO1+URiPRM3rpLJRix7CJCCKF7nrv849mHHvnnW34am6QWY7NdKX0mH4IqQZuyi+2G8bFrn/VCAfgy4zyM92SyB3SlZSMA8NA963gXff5MMb+TQKdZt+kBbrvs4uqai4YqxYHTsuwi1lxECCF0u9x/+/+NjY1Vt7Kl6ZN/c2jkauOnD4eH/mFuqfbDz4dfnphYqFar1erce4deWbrxgVfnRt84fLLx04L/9Rc/nK5tXC2NDI2dnF7Zw4dDw2xp7T2yY8ON3VWrS3NjQyMrD/lo6KW/Gl55SNthLE2ffGP42NX6/0dGXhxaatPYHICbhrd61p17uLow8d7w8M8bc+8U6oWJoaFjS6vajw299J3hkZvaRw8PjS7U2haOHDo8t1RdmD758qGVzZZGhodG55aqCCGEUJNXX331o6kPW/577bXXzp8/L/Tu37nV069NUovxptqBFWCfNlX6WV12seUwluNwh6oL9c+gVElm7Ro7fnp186wrHXu4/bKLWHMRIYTQ3fvMqP9rvfEWn8MmqcV4k4uu85BqrHcYPaL8iRNWVFEA4HEQhbHcpnFdOvdw18oudqi5iBBCCHWbu+w88JX43LmtPYfNUYtxN2VTRXcGokuyuMziXsV4srFss7rsIhFbD4NI2ldk+03LEgAA6C6JAkDLxpppO38hjuec68PriVvNWm3bA9x22cWWNRehddnFdjUXEUIIoW5tWyyXP5ycxFqMmxGPgqwv5wyyZuPtd4sQQghtDmvWYhS2bceyAJsNmyzYF1m8zGCvmSGdGm+/W4QQQmiLwVqMmxDdn85013j73SKEEEJbDC66IIQQQghzF4QQQgghzF0QQgghhDB3QQghdM8sheG7Dz88+Vu/haFAmzp3CacKlu9gQT+EEELbBEH45V8WKMVQoO7dg+8Zyf2mGhfiCkj4JSeEEHqwkf7+J2dnMQ5oXfAzI4QQQghh7rJmog1xzBlGHyGEEEJbInchNMGL4z5GHyGEEEJbInfhcVnKDKaamyK/mMsVQoaX8CKEEEJo0+UuLbIZJ2vZHhMpltlBCCGEUCf34qs+FRaXSXOSwlnohsRyTPySHEIIIYQ6uwfrLtFsoKiG2JQ1scinetZQRDweCCGEEOrsHqy7SFJKurFFVNLFPB4LhBBCCK0N7++CEEIIIcxdEEIIIYQwd0EIIYQQwtwFIYQQQpi7dFTh4XE9c6njXeimc8ZRMzPuBABwKXDezBhHzcIt7ItH3ts561ib3S0GznHdOH9LN8TjPCwUPLyVHkIIIXSX3YPvGQlEeiZv9Xa8C93ulL5PUQdSEgDsVPQDaR5G6i3si0jaU5Y6mWud9/Qqupy61dIEHBjeBRghhBC673MXHrpnHe+iz58p5nc20pfFwHnX9ntEusziRaZ8o2D2iGIlYBUWHEtl9tvOY4z1NG65uxg4b9ueQAgA7EqZA5oMABecwru2ty+tX3ADILBbT8uq1G4MH3v2WScQCAGgPZzvbfrVol/4cy2zr+B/w1Q6zYJFdiHvOjGDgAJIqmFoEgAETiFve6m0HrgBEFD0tKFKceBks0XTtlXKnUKh6EHetkQCkWfnnYAQwjlXjYzRfsAIIYQQume5C5FTT1naTQshlwJ/t5mRFRGAXwpiAAAiCiy+FIQ7Tf1SED1KeI9MAKDCwvEieyafryUyMwVrUrT2y3S3npZDLwzJ1/K5zlPisTcViM/m8wIA8Oineqb5tz2y9mwut1NbI40gVDLTGQZRxko1rx8petoIvWJICvncSruo6GYqBAAAqqfTPCoCAIu8vEtz9YlwJ5/3pYwqYkkEhBBCaJPlLi3tMS1w3MCLPwXeI6V2KiAQ8hCPL/pRv2leyPsXpbhXJQCwHAeCqq68wu9S5TBiIFMAEKj0pJFacz7LUdij6vXNiLQ/Jd8QDioPZOTbSs6olDZSa+YgLA6iOMrnwsaPkco4YO6CEEIIbYnc5bwX7daNPQAAfDqXB1CAUCH2Z0B5RpQ/lezJgD9pAgD0iErF9rku117kL/rhDk1f1756JHm5GFTUVG3dZdIJ9pvXf1thYWi7O3Vzr7RWbaV1pRkEOAcA4JxFjAOAKKmaIqczKcxWEEIIoU2du0zb+QtxPOf4EYt3iLKcNncSmLPzoSv2UrrM4l7Z2Fd7tWfBsmYSgF2qNF8MBCBQWxcxwrcyGYEQAL5LSw/IFADCQm6y6AlhdkakuzRzvyqu7G4mjC96TbsTtX7FfjOTEQipMP6pCGHB2WsZte2XQ+/N71n7qLa34/UuAECIpFLHG3VK9gAAGwBJREFUsjyRUmCgptOaRIuFnFP0SJj1RCprpt4Yhqwq2azlUsIZi8JIDHRTVQ3NyVoWAKUUGCNGJq3gugtCCCG0lm1Xrlw5d+6coigYC4QQQgjdc0ePHj3w1Sdb/mrs7HtPP/003psOIYQQQlsJ5i4IIYQQwtwFIYQQQghzF4QQQgghzF0QQgghdF/kLuFUwfIdLNiDEEIIoa2Ru8j9plqJ4gqGCCGEEEJbIXdBCCGEENpiuQuBOOYMY4QQQgihLZG7EJrgxXEfY4QQQgihLZG78LgsZQZTzU2RX8zlCiHDS3gRQgghtOlylxbZjJO1bI+JFEsGIoQQQujeaF9HusLiMmlOUjgL3ZBYjkkxbAghhBC6R9quu0SzgaIaYlNuwyKf6llDETFqCCGEELpX2q67SFJKurFFVNLFPEYMIYQQQvcS3t8FIYQQQpi7IIQQQghh7oIQQgghhLkLQgghhO6L3CUujUt//IP0VGkTDppXSumiGz0wdSKjODSLRwNeuefRYCzKnT5hdrc7XikVzkT8rgx4o0K0Uad9MJ7PBR4+vyCE0F3NXWiCir0JJbEZb0NHBJpNHZSEB+UgSaJsSuJmiAalknVQ0/u6u8VPBVirZOJODHijQrRBpz2PGBgDGj6/IITQnSC0f7pPKDQpNz2Jh1FgT5UAgFcqKVVLNe6uy9isfSbiBAB4VGLawReMJGnZCABRFOTDmAgCr1TUAdXoowAQx2E+mKUJwng55qL9gtKuEQBYaaoQRuFsJfvtVO3ViJdjy3FjmpQIgUpFaXQLAOFUUIhKBCqMV1iprKpaRr5T96dxTh/NTlVUMcHKFUoIAUgdrEcpjsNcEBFBAAC5XzGlJAAE4Zl8EKUG5WAqBgEUedDoo/64nwtmJUpAIAQqNNmfGewnALzCbO8EEYSbJrg6Gu2OSNsVglbDaHmY2ml5YnDO7DO+G5YZxBRA6hswJNpuwC1D1OGwtjw3ug9RuyC3PO0RQghtOleuXBkbG6u2Mje/sNSqfenyzKF3pld+PHx8dPpq/f/TMxOjl6+2a1xYmH75+ESjz6sjo6dq7aNjx4/MXa41Ts8t1H7dsrG68thT1/uvVqsnR48dma91fPmV42O1rRcWpg+NTi7V/z/x4pFTC9VOhkaOfP1HP6r9e/HI67WxtWxsE66JoYm5avXqyPHjE0tXF+Ynhifmq9Xq0tL8UGNI1Wr15DvHR+pDrR479ep3RiduDPLS0I+OjDQCPzE5enh6oVqtHjv1ej0aVy8fbuqtZTRaBr+Dm4bR7jC12127E2NpaX7o1GSrU+jmHtqFqOVhbXdurCdErYPc+bRfh6vTh48dnrtaRQghdAteffXVj6Y+bPnvtddeO3/+fKdldDFJb3x7PW5PxZQQxllM5JV2lhBX3kBLfbLUobEcR2WWP12/mICVmcorkBBU5SCEU4WozKFCab8pAgC0bGy/fiRIidr+BEKA1/svSX0yqX8W0JdKrlFC0tINq7vG9otVAgAAISBcDywrx6Tv+sKF3JcsMg5JAgCE0PRA/03v8UWxX22saUl9fWycgUSJQOVaoyAQgM4zaRn8TsO+cRjtDlP7dZfWJ0b32oao1WFtd26sK0Qtg9zytL8FwZQTCKIp4DsjhBC6u58Z3fzqwqbsUiL7/PMEgJej7Pj1X1EWRxWp/vENL4U8oVDSslGkfZqYTKs3v1r7EVPkARUAoOKe9gHEdo3rQhPJKCzxvgQBYOXYLZWNexFimhB5MMvk+ktiOFuSpE4v8HFpymcDOiUAEM3O0uS6s4GWwe/+4e0O03pPjK5PrnWH6PbPjfUGOfKLRY/paVPuIpKKnE6VCnEFJExfEELoHuYuNJGUmJ89MUsJxOVSEIMjJXUxAQCGKuZOnKj1RElSHxxo10gSfYYUZk+cACCUAOOCoQ4qCcEP/OJUQiSE8bKYHEjVXp9aNQKAG/hBueyHsyIvS4mkMajQcmSHEYVIGexn8VQxDEGSjD5KqWQmA+vECQIAQOQ7XP7aD0O3lNSlQc5iNyoZtOKHU1F/UiJJc6CUdV0iCAAVWRo0kwQAimdOO+MRKXlegsiSovcl6qGmyfCMlwEBKpwk5ewgZaUpOwypIOYG+6Op8WIU8qm+dH+yZTQkoXXw21k9jHaHqbY7r1QOo6bdtT8xiEBVElonIpEQ4KAODmqUtBwwaRUixlof1pbnxnpDtDrIHY8td7KWDem0hdfBIITQvbftypUr586dUxTlPp9ohRW8WeP5gU1fBJvbJ0L9eQWLdW+eIHMW6IphOJ7ZbSFS7p7OUiWr4jW/CCG0fkePHj3w1Sdb/mrs7HtPP/30fb+ozZ0zQcjLjIOmqJs/IfDHg2I0FZzmplJf6kD3PMjrr6BOtEHTjQKQVYw2QghtuAdm3QUhhBBCW8Ga6y5YEwAhhBBCWwnmLgghhBDC3AUhhBBCCHMXdHcxO2MFjGMgEEIIYe7S1mLgHNeN8ze+XjY3zhTSf67q5+P6jXPf1rX/YuYXN+Ll9VLgHNONC7f9Us35pXzmp5b1Zi73thMsblRkOP+4UJjhbX6V1n8a3XYQIt/OO2E9bYk8yyoQTfVyaSPjPMh/IVHgmLpxN3M4zsNCwbtpf14hrai63zjzc7qmmfmY36kJxoFjaqqZsXK5nJXJFJygi2FH+UzGsqxcLucE8YZl0JGbK3jreggW8Ubovre5voXbq+hyyu/Q+KiW2svCGS/cYyiLobuopvrlVO9G3ERjp6IPaOEGPNUGM6AfyGk7N/oFDRirtPwNITuz+afE2618HDuFQMsbjZcuXzHThkxBT8XxA730Iim6uREnxjqP9c0xV7SUxkLPC1VDiUM3VlO6nBLJnZqgqOim7lMzq1ACwN1cPuSyTEjHM98DPZPTpI0NBpU0Kcy4kZKSur0dT8TAUDV8ckcIc5cN87Fnv++GAFDhfF8mu0+itcazTiAQAkB7ON/b2HJ1IwD0ytpO37ukSxfdaJ8mXYzrazNv255ACADsSpkDWv0W7xecwru2ty+tX3ADILBbT++InL+1/R0SBUIF4D1y6kA6VYtChUeTWUsgBDjfbWRktf4svOgX/lzL7Cv43zDX+CZ56IUFOwz4HPd3EHG3ae6jAHEwmc2Gpv0NlVacwtmiB3n7KcouWObJWNol0R7gFcU4YKg7G280z9uFGU4BYDkKL2nW13Rx2S78nessMrhAASRVNhq5EQunC85M6FeyxV+XyMqb5smcPUOIAABy6ium9giP2+6u/pDQ8amWWSnxo+leoZADIkpKStea347nbZ+KlLE4ZopdMOPAyWaLpm2rlDuFQtGDvG2JBPxiPmf7kkSBUAKcyqlMOkUAIs/OOwEhhHOuGhmjEeTAKeRtL5XWAzcAAoqeXvlVN5yckXW5qogs5pRSApCysrVXuzhwcrZHCAEAOWWamtxyd1LktBxwbUXBzlqEEOBcaRpz91qOoWWIgEV2Ie86MYOAAkiqYTSyAVHWJN+LdCl0o5QmhXHbnjd4gpxFMchQPzdaHsHQKxbsYsB97ktEVEwzRdczNkOV2p0YAERNSVknSGUwHUEINXSoI31HXZ0bfePwyWq1ujR30h8+Vq+5uzT9N19/8R8Wllo2VqvVpYmRMyMT7ORh/5VX/MMnyxMjZ0Ymri5M+IdeWan9+/PDhz6cuF4W+KOhl/5qeKSppu+C//UXP2zUDS4dGx47Od3Y8rsTY3PVarW6NDfW1OHVhYn3hod/Pr3QzbzmRscOn2Q3NY4e9kcXakNYOnJobG6pWq1WTw7/zZF6tebyK4feW+n98KEz0419T49+ODp3tVqtLi2UhoY+alPf+OrI0PWHLC2Uhpp6O3n4jZGJpQ67q4/wle9898hEi+lMnDx06JWmzQ4dqYWoujQ9Nt2Y3dBovfTywpFDh+fqI1kY+vqLI42gTRwbPnxyemH65MuHRlZGOjI8NDp3fU7Hhl76zvDIrdVwnpsYGRoZq1aXRg4dmlhYWpgYGR6ZqFarSwsTQ4deaYrGoZHGubFqdy0G3Njyu0caJ8bhpt661H4Mrfe4tDAxNHTspjjUZjR98vDQK68MHT45NzEyPDLRYXa3P8FjQ9/5zsuHDh069NLXn3qpMZ4OR3Bu9PBKh50jv3psnU+MheljL750GIt4I4R1pLuqI31n1l2K77tBD6XLLFqkem1toUfV6+Mg0v6U3K7x+qdIamo5n3ksbz/EPQBYjgNBVVeWs3epchgxkOsrzAKVnjRSwg0fQqX2NNafd6rqVDECTQIAgUi9tXZCBIBPV9amqDyQkTc+FkSQxNq4HiL0et1jJu5eWUGR1P3rfY/P4nmiPna9JrO6qxgtg0za7a7x1po3V4AOPY+qmkhAlCQJrn+goJoWOG7BizlwKqU6r0OJSkptxFlSVVaMGAmiOMrnGlfVxJHKODQ++SBUShupW/4YpPb+HiiFpo82WBwQVW2KhlxsnBurd7d6wLUTgxBJbpwYa1aobnVE2o6h3R7bhlRNsXxGzduEe517vv0JEiJmsrXPjCB08wVXyqRkFnc6gl3OevXYOndbWxDqMtpYxBuhB+Izo2vXrt21nfHIfT8Un8nlBIBK7L1VBADokeTlYlBRUwIA8GjSCfabrRuvD5pIzzoOAPAQAKBHVCq2z3W59lR30Q93aHqHYSyG7vnI2C9RALjk+z2y3nnYFRaGtrtTN/dKt1pUoPHcy/lyxD7tvC2NLkR8by194ezjkPUqEoGuX9Kp+Ci355j+SL0ms39R0vrXfJQoSyxi1z/jiEI3CKIgAFEx0tdD73uRohsqQO0aCADlxtmxqOlCjTh0/cjQJQoAke9TWRcloilyOrOOBGVdBZxbRUPhts90uRGNUGp/bqwe8IaMrcMYWu+RdMjPpJzjAAAL1z27W5hg0+khc48BgCipXR7BdY2tc7csjojUbQ6PRbwReiByl+3b795XjYgo74jyb1l+D4XFOJwPYFKT9ytav2K/mckIhFQY/1SEsODstYyWjTOuM+WRXpqRNZlH3t/m7Qtc7U9ZA0b4ViYjEALAd2npgcbbu7CQmyx6QpidEekuzdyvirVs6WIh+1MgwJkg68+kJQDgoTvuOD1EeTaduuQWQ8+puKpSWwQKvTe/Z+2j2t61rncJnMB2pgI+z/wdVN6b1vc03nTuzmbfdKnA2XIUXhKDfl38xHZmKMwo6X0siIrOFGh7a9egGJndOetNqC8i7NLTMgAQslOlU5Y1I9IeYKCmn9QkAgCu/W4QL/rOnMgWJXGXkR6Q6COmcTGb+SkhAkBF1p40ZcKimXa7a7wL10nRZ+n6G2XNTGvAHaugZDNS0+uJb+eLrihSylgsykaqPjslm7VcSjhjURiJgW6qEgBQSQ4L2QwQ4IzIejYtEZAMzclaFgClFBgjRiatiAQAioWcU/RImPVEKmumrtaKB3VbwNl3HDeUdS3No8D1QkPivuNGKVmismmE2UymtqAga2lTpu12t3rAAMBC13YcSpRcOhW5xaLncFdNp+Tux0bajKHdHgmRVOpYlidSCgzUdFqTqOc6jkdEmjE0mUVeLm8HXNVTVrueb3OCuhjajgdRVhYpMMZANKw0ABBRbXkEA6dgO07AA+ZLVNbSutph1qvH1q7bRo7oq7qFT9YIoetG33rrnlzvcu8svNd0LQtacXL45Vfq17LULzsYfWVk7jbi/Mr6Lw1ZdaXI2Nc//6UbR3UHT4x1DXgjxrYBIdrEu9sYSwsTh747vJ4oLx07dWj0Mv6JI3Q/X+/y0L/5zd9MfO5zoig+ILna+WJhrOiUSqXefqUXCzU3kRQFyiAmEytrcn2KnLjV3vxi4c+KznipJPYr4q3GuRQ6Hk/9oaneheO03gHf/tg2JESbdncbpcJL0sHnpXUMWOjb3Rf8PJKTffhHjdAW9cEHH+x5rHVaEv/jhb1792IdaYQQQghtIlhHGiGEEEL3FcxdEEIIIYS5C0IIIYQQ5i5dCmeDdbUjhBBCCHOXe4Yx14lZ9+0bjleivJuxTli50zknjpvaw3QxE1VuuduwcMbr5t6iUeyYRSPgG1NAMY6ddNHw1+rtNmfX/mh6udOWeQd67j6eLTfeqCCvaxh38qS9x8PY2JMWIXTfu8++JMz90FMHsl2334HkKfZAzuRW3QaUCFI2ZYm3HO8KsO6e2SVRN6UNq3ssirrR76+52e3Org1KNeug6pwubPxx6jqeLTfesCCvaxh3zr0exsaetAghzF22Esa8QEhZCdJlezPntJGd4qoosjKnhBKA1MGsRmLrqMn7s3k1BZWo8OO0lzCd5412nYRRsRAUg4rPZyWSUEwlVbuTKCu5hdALZ3n22/mVW5UHYSEfeKlBPZgKQABFTht9Um2pIx/4NEEZj2Ou2C+YnEf2mbwbNmoL9xlGx1uk80pkexYRCFS4MpCpdRtGtj0VAgCv8JSaTVEKALwcWE4mprJE6E0bF8KACASA0grXOoe91exaTqRDJy2H1/2RSlEax04u8IhAAEDuN01JbjeMdcWz3cYtgwwAUWTnw4AIhFe42tTefc8tJ+KP53OBL1EKAiXAaTKVGUy5bULRrpOWR2Rd0VhX8Fue4S0nQtrHEyGEWrhXdaTvxB04j40eOtnifprt2m8sRDw/MjQxVq0ujRw/NLG0tDA/MjwxUa1WF+ZHht4bqxdJPjU8sVZ92rmZw4enp1sOb+TU8PSNDz926qXvjN5cOXl07NCRuUat5rl6V0tLE0OnjnV5r9Bjp75b7+Hq3OHjN99Kdeny6KF3Tl6/ne7oy0fma5vMvXL8lYVqdeHyyaHRxr6uTr/8oxdHl9bcc4vZtZzI2kfxxuGt7rnlkVpamhhqmunJdw6N1Ce1AfFsuXHLIC8snHz5eFM95NGhzjd4Xd1z+4ksDP3oxZGFRhXoyeHD09PtTtp2nbQ7It1HY73Bb3WGt5jImictQgjvq3sv60hvzkWXxgcfBACAUBCub0yTKTnMB1wWmRsnU/KGBowQKT1wc/05VbEgdAtRzIFTmjLXf8djIkhybd1CuF4WOIyK9lRACWU8iklTVTyBSPXgEEKAA3AW0j69PipB0vtvsYb2uibSdnjdHSlWDkhfU9XiPrnIGCTphsSz+yCzchCVo/zpRj3kcqRyDol1VJHsMBFRTKmN5SipT2XjESRan7TtOtmQUKwr+C3P8BYTkaSW8UQIoZtcu3btypUr903ucueudCHagFIYd0UW65p8F2biR5EiN2o1n27Uar69A8WYa5fE7PM5AsDLXna808aUymw84H0pAgCVyAkDXdm4idz28FqPOaHwwGdyo2rxbChJ+obFs+uNRapqopxWuy6ULaxjInHJ9ZmhUwoA0axPkzpAsK5otD0it3d2dRhzS60mghBCdb/4xS+2bdu2xJdX/+rSpUuf/exnGWP3Se5y+4sufui4JVmX0pwFbhQalPuhG/XLkgCUajIzvT7LXCtaQViwQyeoBGxWokktLau1djfIB+XYD32Rx1JCNgZNSYDimZwz7pFS1ktQWTL1vvq7YD/IF6dEkVDGYzFZr9VMBEkljnXCEwkFDupgWmtzRQgruXboUEHJDaaiqWIxcviUmpZkieWzJ3xKIC6HQQyOJOuiyJhnhx4FTxlMsdgthg5ImtGn6aJtuRkiEM45T0DxjKMdbHuVT8vZtZtImxe/1sNzg7xXisPohp5bHim9P2MOhFk3QwQCwGUpbSbphsSz5cZKxW8R5H6ZJFRDcrInLABKCTBODDWttD/9Wg1DbjcRSuXwTDYDBCqMJPXsoOSezrY+aUnrTtodke6jsa7gtzvDV0+k9UnbL+OTOEIPpu3bt3/5n7R4Bvhwcurhz/QAwH1Sz8g/kwc5ra56kWjXvt7UyD5ha1pGwtKN6N7l5/YJR3/epDgRhND9vu7yk5/85F+/+K2b2j++eDH6+5l6cnN/TFUdzLRMUNq1d6sS2X4u82OzEIdRmeEphe5Zdj5uF6Ni9nQ+KHOcCELoAbHtoYdr/174LX0lcYH7Zt0FIYQQQveB5nWXbQ89DADf/OY3//iP/7h5G6xnhBBCCKHNqPrp1dWJC+YuCCGEENqkPr54cXXigrnLPcfsjBUw/OAfIYQQAgB46KGHPvc5CjdenIu5y6ZJWyLPsgpEU71c2sg493w8kW/nnTtbUyYKHFM37nKuxnlYKNxQaNArpBVV9+P6/eRyuqaZ+ZjfqQnGgWNqqpmxcrmclckUnKCLMUf5TMayrFwu5wTxxp1ybq7g4Z8eQmiT5y7as//i1H97q13iArVrdX/4wx8mEgmMF0IIIYTuuV27dj3++OPbtm3rlLswht/+RQghhNC9101asu0Xv/gF53i9xa2Ym5t7//332+WMv/qrv9r54X/37t/96oFfvXLlykrLtWvXulwAq1arLRPS5U9+VvzPr/d89VvGc0+0e+zP3jj6TuWffvtffUkAmB173Z//4rd/40ubNMIf/NVPz/W99K//WdzdOD+ZGzvqvPPol5/71nMbPKNK5eJf/8Xrj/3mt7/6aG+7Qa5558LmyAPA7Duv+5988dv/6kud5q7/U6H9O4/73sLFj9v96nO7Hln5I8LnIoQeNMLDDz/88MMPYyBuweTk5DvvvNPyV1/4wheee+65NR/+nPbc8vJyc0byS7/0S93semb0qH1iYnl5uWfHF34n/btP7OiptY/m/4//x1/uef2DwZ/YX32056//8L//wzHog/l56Hvi0eWf/aznB0d+uDz213/2+l84f/bJ8qO/8XtP/fz1f/jMC/8k+u53/89PHu2D2fnfsf/yiTe+/6cf/bb9R098/5t/8DX7yG/AB3/w3T8cm1/+8nP/7ttffPsv/v76r54Y+9PvF3xYXlbTf/KD31UBYP6D1//gu//hZ8vw1W/90Q9+Z8f3Gw/8kz/5n2b/s/kHr33yxI5P5uGrv/fsP+Z+XK79/4f2D3p+9vr3v1+YXQb13/3R/6J+stJD7xv/0fkI5j//l1/74K9f/+gzv60s/kGbDn9o/+CJHT3/3vj91ybgt//wv0vm/8fvvz776KNf/b//r98a/v0/XnnIB/+hRUCe69vRYeT/8+/uyP7+ny4/+ugns/PpX3/pC1P/dWWof/I/PAcA//5//Y+vfQTzn//Ll/tmm4fX1wOf/OyN5pYLTZH/4Q//6MK5v379o1/62uejDnO/8Phr/5vW/8D+iZUutL3Wp/aXUvsjwucihB40/z9BZe4FJUuR8wAAAABJRU5ErkJggg==","_NodeClass":["morph","image"],"_NodeId":"morph-d8ea8459-4610-4812-b913-f5c1a2518bdc","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(621.6,303.9)","_Padding":"lively.rect(0,0,0,0)"},"16439":{"morph":{"__isSmartRef__":true,"id":16437},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16440":{"submorphs":[{"__isSmartRef__":true,"id":16441},{"__isSmartRef__":true,"id":16454},{"__isSmartRef__":true,"id":16520}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16548},"derivationIds":[null,"B957A7F7-F71E-4170-8C72-7020680F5959"],"id":"45685811-2AC4-49D3-B759-302388375B7E","eventHandler":{"__isSmartRef__":true,"id":16549},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":16550},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":16441},"reframeHandle":{"__isSmartRef__":true,"id":16520},"titleBar":{"__isSmartRef__":true,"id":16454},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":16420},"highlighted":true,"isBeingDragged":false,"showsHalos":false,"_Rotation":0,"_Scale":1.11,"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(23.3,602.2)","contentOffset":"lively.pt(0.0,21.0)","prevDragPos":"lively.pt(286.1,569.0)"},"16441":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16442},"derivationIds":[null,"4A0968EC-A0FB-461E-B2F4-49244AE2E6EC"],"id":"D1E83DAB-40D1-4838-A9CC-187BCAA2024C","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16443},{"__isSmartRef__":true,"id":16445},{"__isSmartRef__":true,"id":16447},{"__isSmartRef__":true,"id":16449}],"eventHandler":{"__isSmartRef__":true,"id":16451},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":12,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16440},"_MaxTextWidth":326.03885755584884,"_MinTextWidth":326.03885755584884,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":16452},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":16453}],"doNotSerialize":["$$textString","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$textString"],"_syntaxHighlightTimeout":null,"lastSyntaxHighlightTime":1354,"accessibleInInactiveWindow":true,"charsReplaced":"","lastFindLoc":24,"showsHalos":false,"_WordBreak":"break-all","_lastSyntaxHighlightTime":41,"__serializedExpressions__":["_Position"],"textString":"this.owner.owner.owner\n\n// Parts Bin","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,21.0)"},"16442":{"_BorderWidth":1,"_NodeClass":["morph","text"],"_NodeId":"morph-4a0968ec-a0fb-461e-b2f4-49244ae2e6ec","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(336.0,90.7)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"16443":{"style":{"__isSmartRef__":true,"id":16444},"chunkOwner":{"__isSmartRef__":true,"id":16441},"_id":"_7051","storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16444":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"16445":{"_id":"_7150","style":{"__isSmartRef__":true,"id":16446},"chunkOwner":{"__isSmartRef__":true,"id":16441},"storedString":".owner.owner.owner\n\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16446":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"16447":{"_id":"_7151","style":{"__isSmartRef__":true,"id":16448},"chunkOwner":{"__isSmartRef__":true,"id":16441},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16448":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"16449":{"_id":"_7152","style":{"__isSmartRef__":true,"id":16450},"chunkOwner":{"__isSmartRef__":true,"id":16441},"storedString":" Parts Bin","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16450":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"16451":{"morph":{"__isSmartRef__":true,"id":16441},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16452":{"resizeWidth":true,"resizeHeight":true},"16453":{"sourceObj":{"__isSmartRef__":true,"id":16441},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":16441},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16454":{"submorphs":[{"__isSmartRef__":true,"id":16455},{"__isSmartRef__":true,"id":16461},{"__isSmartRef__":true,"id":16479},{"__isSmartRef__":true,"id":16496}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16514},"derivationIds":[null,"5A8CB99C-7E98-472C-8F1E-8B935107C3E3"],"id":"AD03AF20-0F4F-41F6-A0FE-2D88621331B2","eventHandler":{"__isSmartRef__":true,"id":16518},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16519},"windowMorph":{"__isSmartRef__":true,"id":16440},"label":{"__isSmartRef__":true,"id":16455},"closeButton":{"__isSmartRef__":true,"id":16461},"menuButton":{"__isSmartRef__":true,"id":16479},"collapseButton":{"__isSmartRef__":true,"id":16496},"owner":{"__isSmartRef__":true,"id":16440},"showsHalos":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"16455":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16456},"derivationIds":[null,"111B5C6E-A7DC-4728-9424-CA17E14A12A9"],"id":"13A85953-8B19-4C0D-A52C-F70E15849E0C","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16457}],"eventHandler":{"__isSmartRef__":true,"id":16459},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_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":16460},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":16454},"_MaxTextWidth":277.03885755584884,"_MinTextWidth":277.03885755584884,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"_WordBreak":"break-all","__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(102,102,102)","_Position":"lively.pt(20.0,3.0)"},"16456":{"_BorderWidth":0,"_Fill":null,"_NodeClass":["morph","text"],"_NodeId":"morph-111b5c6e-a7dc-4728-9424-ca17e14a12a9","_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(277.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"16457":{"style":{"__isSmartRef__":true,"id":16458},"chunkOwner":{"__isSmartRef__":true,"id":16455},"storedString":"Workspace","_id":"_301","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16458":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16459":{"morph":{"__isSmartRef__":true,"id":16455},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16460":{"resizeWidth":true},"16461":{"submorphs":[{"__isSmartRef__":true,"id":16462}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16467},"derivationIds":[null,"B058F834-5181-41DE-A0E6-B27C82C52B55"],"id":"6ED08D93-8622-46DD-9F8F-1CF3FFCF6E40","eventHandler":{"__isSmartRef__":true,"id":16473},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":16462},"owner":{"__isSmartRef__":true,"id":16454},"layout":{"__isSmartRef__":true,"id":16474},"attributeConnections":[{"__isSmartRef__":true,"id":16475},{"__isSmartRef__":true,"id":16477}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(316.0,3.0)"},"16462":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16463},"derivationIds":[null,"07C65822-8E56-4F30-841A-04D4655C36BB"],"id":"E973F4CF-56BF-4D93-AEF4-7F4AA715F408","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16464}],"eventHandler":{"__isSmartRef__":true,"id":16466},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16461},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16463":{"_BorderWidth":0,"_Fill":null,"_NodeClass":["morph","text"],"_NodeId":"morph-07c65822-8e56-4f30-841a-04d4655c36bb","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(15.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"16464":{"style":{"__isSmartRef__":true,"id":16465},"chunkOwner":{"__isSmartRef__":true,"id":16462},"storedString":"X","_id":"_302","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16465":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16466":{"morph":{"__isSmartRef__":true,"id":16462},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16467":{"_BorderWidth":0,"_StrokeOpacity":0,"_BorderRadius":5,"_NodeClass":["morph","button","windowcontrol"],"_NodeId":"morph-b058f834-5181-41de-a0e6-b27c82c52b55","_Fill":{"__isSmartRef__":true,"id":16468},"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"16468":{"stops":[{"__isSmartRef__":true,"id":16469},{"__isSmartRef__":true,"id":16470},{"__isSmartRef__":true,"id":16471},{"__isSmartRef__":true,"id":16472}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16469":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"16470":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16471":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16472":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"16473":{"morph":{"__isSmartRef__":true,"id":16461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16474":{"moveHorizontal":true},"16475":{"sourceObj":{"__isSmartRef__":true,"id":16461},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16440},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16476},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16476":{"source":{"__isSmartRef__":true,"id":16461},"target":{"__isSmartRef__":true,"id":16440}},"16477":{"sourceObj":{"__isSmartRef__":true,"id":16461},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16440},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16478},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16478":{"source":{"__isSmartRef__":true,"id":16461},"target":{"__isSmartRef__":true,"id":16440}},"16479":{"submorphs":[{"__isSmartRef__":true,"id":16480}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16485},"derivationIds":[null,"6EBE4F41-44B8-49D5-8E76-6E5FDDFF96EB"],"id":"EE36ED22-D248-46FD-A62A-5EFC880C99FA","eventHandler":{"__isSmartRef__":true,"id":16491},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":16480},"owner":{"__isSmartRef__":true,"id":16454},"attributeConnections":[{"__isSmartRef__":true,"id":16492},{"__isSmartRef__":true,"id":16494}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"16480":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16481},"derivationIds":[null,"FC25B34A-F616-4C8E-B326-2AF973570FD3"],"id":"1AD7CF3F-0805-4AE4-A03E-48A2BA89A74F","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16482}],"eventHandler":{"__isSmartRef__":true,"id":16484},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16479},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16481":{"_BorderWidth":0,"_Fill":null,"_NodeClass":["morph","text"],"_NodeId":"morph-fc25b34a-f616-4c8e-b326-2af973570fd3","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"16482":{"style":{"__isSmartRef__":true,"id":16483},"chunkOwner":{"__isSmartRef__":true,"id":16480},"storedString":"M","_id":"_303","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16483":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16484":{"morph":{"__isSmartRef__":true,"id":16480},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16485":{"_BorderWidth":0,"_StrokeOpacity":0,"_BorderRadius":5,"_NodeClass":["morph","button","windowcontrol"],"_NodeId":"morph-6ebe4f41-44b8-49d5-8e76-6e5fddff96eb","_Fill":{"__isSmartRef__":true,"id":16486},"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"16486":{"stops":[{"__isSmartRef__":true,"id":16487},{"__isSmartRef__":true,"id":16488},{"__isSmartRef__":true,"id":16489},{"__isSmartRef__":true,"id":16490}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16487":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"16488":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16489":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16490":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"16491":{"morph":{"__isSmartRef__":true,"id":16479},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16492":{"sourceObj":{"__isSmartRef__":true,"id":16479},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16440},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16493},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16493":{"source":{"__isSmartRef__":true,"id":16479},"target":{"__isSmartRef__":true,"id":16440}},"16494":{"sourceObj":{"__isSmartRef__":true,"id":16479},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16440},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16495},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16495":{"source":{"__isSmartRef__":true,"id":16479},"target":{"__isSmartRef__":true,"id":16440}},"16496":{"submorphs":[{"__isSmartRef__":true,"id":16497}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16502},"derivationIds":[null,"A6D06038-6C6F-4093-845C-4787D16351E2"],"id":"B966F1A8-43A9-4500-8433-CA147CA6AE21","eventHandler":{"__isSmartRef__":true,"id":16508},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":16497},"owner":{"__isSmartRef__":true,"id":16454},"layout":{"__isSmartRef__":true,"id":16509},"attributeConnections":[{"__isSmartRef__":true,"id":16510},{"__isSmartRef__":true,"id":16512}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(297.0,3.0)"},"16497":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16498},"derivationIds":[null,"45676BBD-7F6A-4056-9CFE-548657A44E70"],"id":"59D717E2-A17B-4B54-9EF6-CBE26B7F1CD2","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16499}],"eventHandler":{"__isSmartRef__":true,"id":16501},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16496},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16498":{"_BorderWidth":0,"_Fill":null,"_NodeClass":["morph","text"],"_NodeId":"morph-45676bbd-7f6a-4056-9cfe-548657a44e70","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(14.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"16499":{"style":{"__isSmartRef__":true,"id":16500},"chunkOwner":{"__isSmartRef__":true,"id":16497},"storedString":"–","_id":"_304","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16500":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16501":{"morph":{"__isSmartRef__":true,"id":16497},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16502":{"_BorderWidth":0,"_StrokeOpacity":0,"_BorderRadius":5,"_NodeClass":["morph","button","windowcontrol"],"_NodeId":"morph-a6d06038-6c6f-4093-845c-4787d16351e2","_Fill":{"__isSmartRef__":true,"id":16503},"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"16503":{"stops":[{"__isSmartRef__":true,"id":16504},{"__isSmartRef__":true,"id":16505},{"__isSmartRef__":true,"id":16506},{"__isSmartRef__":true,"id":16507}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16504":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"16505":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16506":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16507":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"16508":{"morph":{"__isSmartRef__":true,"id":16496},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16509":{"moveHorizontal":true},"16510":{"sourceObj":{"__isSmartRef__":true,"id":16496},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16440},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16511},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16511":{"source":{"__isSmartRef__":true,"id":16496},"target":{"__isSmartRef__":true,"id":16440}},"16512":{"sourceObj":{"__isSmartRef__":true,"id":16496},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16440},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16513},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16513":{"source":{"__isSmartRef__":true,"id":16496},"target":{"__isSmartRef__":true,"id":16440}},"16514":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":16515},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","_NodeClass":["morph","box","titlebar"],"_NodeId":"morph-5a8cb99c-7e98-472c-8f1e-8b935107c3e3","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(336.0,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(102,102,102)"},"16515":{"stops":[{"__isSmartRef__":true,"id":16516},{"__isSmartRef__":true,"id":16517}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16516":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"16517":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"16518":{"morph":{"__isSmartRef__":true,"id":16454},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16519":{"resizeWidth":true,"adjustForNewBounds":true},"16520":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16521},"derivationIds":[null,"C3FD7B87-ECE5-41C0-B058-3FDCC171F228"],"id":"8A472CCD-761E-4449-85AA-2498694A2D12","eventHandler":{"__isSmartRef__":true,"id":16525},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":16440},"_Rotation":0,"_Scale":1.0000000000000002,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16526},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(322.0,97.7)"},"16521":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":16522},{"__isSmartRef__":true,"id":16523},{"__isSmartRef__":true,"id":16524}],"_BorderWidth":0,"_BorderColor":null,"_NodeClass":["morph","path"],"_NodeId":"morph-c3fd7b87-ece5-41c0-b058-3fdcc171f228","__serializedExpressions__":["_Position","_Extent","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(15.0,15.0)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(204,204,204)"},"16522":{"isAbsolute":true,"x":14,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"16523":{"isAbsolute":true,"x":14,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"16524":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"16525":{"morph":{"__isSmartRef__":true,"id":16520},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16526":{"onDragStart":{"__isSmartRef__":true,"id":16527},"onDrag":{"__isSmartRef__":true,"id":16534},"onDragEnd":{"__isSmartRef__":true,"id":16541}},"16527":{"varMapping":{"__isSmartRef__":true,"id":16528},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n }","funcProperties":{"__isSmartRef__":true,"id":16533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16528":{"this":{"__isSmartRef__":true,"id":16520},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16529}},"16529":{"$super":{"__isSmartRef__":true,"id":16530}},"16530":{"varMapping":{"__isSmartRef__":true,"id":16531},"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":16532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16531":{"obj":{"__isSmartRef__":true,"id":16520},"name":"onDragStart"},"16532":{},"16533":{},"16534":{"varMapping":{"__isSmartRef__":true,"id":16535},"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":16540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16535":{"this":{"__isSmartRef__":true,"id":16520},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16536}},"16536":{"$super":{"__isSmartRef__":true,"id":16537}},"16537":{"varMapping":{"__isSmartRef__":true,"id":16538},"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":16539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16538":{"obj":{"__isSmartRef__":true,"id":16520},"name":"onDrag"},"16539":{},"16540":{},"16541":{"varMapping":{"__isSmartRef__":true,"id":16542},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n }","funcProperties":{"__isSmartRef__":true,"id":16547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16542":{"this":{"__isSmartRef__":true,"id":16520},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16543}},"16543":{"$super":{"__isSmartRef__":true,"id":16544}},"16544":{"varMapping":{"__isSmartRef__":true,"id":16545},"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":16546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16545":{"obj":{"__isSmartRef__":true,"id":16520},"name":"onDragEnd"},"16546":{},"16547":{},"16548":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_NodeClass":["morph","window"],"_NodeId":"morph-b957a7f7-f71e-4170-8c72-7020680f5959","__serializedExpressions__":["_Padding","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_Extent":"lively.pt(336.0,111.7)"},"16549":{"morph":{"__isSmartRef__":true,"id":16440},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16550":{"adjustForNewBounds":true},"16551":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"16552":{"options":{"__isSmartRef__":true,"id":16553}},"16553":{"override":["onDrag","onDragStart","onDragEnd"]},"16554":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16555":{"morph":{"__isSmartRef__":true,"id":16420},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16556":{"_BorderWidth":10,"_BorderColor":null,"__serializedExpressions__":["_Fill","_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(204,204,204)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1044.0,788.0)","_Padding":"lively.rect(0,0,0,0)"},"16557":{"morph":{"__isSmartRef__":true,"id":16419},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16558":{"submorphs":[{"__isSmartRef__":true,"id":16559},{"__isSmartRef__":true,"id":16565},{"__isSmartRef__":true,"id":16575},{"__isSmartRef__":true,"id":16578}],"scripts":[],"id":"CC185752-ED01-4F70-B329-5B5E975F72A4","shape":{"__isSmartRef__":true,"id":16689},"__layered_droppingEnabled__":true,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":16690},"draggingEnabled":true,"name":"SWASlide46","partsBinMetaInfo":{"__isSmartRef__":true,"id":16692},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":16693},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","70107993-916C-418F-96DD-2EDA00F22575","A691AE87-DA0D-42D2-906D-28F49049F61C","FB6D7355-F47B-448C-AC25-E1C2A7513387","ACDCA81A-A376-42F5-94A8-20BC7FCEBF1F","5F071D0A-0824-4B1C-B099-D363CA59D109"],"prevScroll":[0,0],"eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","eventsAreIgnored":false,"_ClipMode":"visible","owner":null,"__serializedExpressions__":["_Position","distanceToDragEvent","lastWorldPosition"],"_Rotation":0,"_Scale":1,"grabbingEnabled":false,"_Visible":true,"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","_Position":"lively.pt(10.0,10.0)","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(370.0,1520.0)"},"16559":{"submorphs":[],"scripts":[],"id":"A8E56EFE-A541-4D9E-A49D-5E05E945E9EE","shape":{"__isSmartRef__":true,"id":16560},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":16561},"textChunks":[{"__isSmartRef__":true,"id":16562}],"owner":{"__isSmartRef__":true,"id":16558},"charsReplaced":"Solutions Propo","lastFindLoc":30,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16564},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","6771D830-56BA-415F-92F1-5CE3E5D687C3","C9B1DB13-AD06-4936-8DF3-61B56BC68B5D","19DCC3E8-1913-40E8-B3B0-EF84063A0B38","44CE2EBB-C48A-402E-B48B-586F11E82405","EA29E825-8C6B-4E8F-B5CE-5631D432A266"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"previousSelection":[6,11],"isBeingDragged":false,"priorSelectionRange":[0,12],"__serializedExpressions__":["_Position","textColor","_TextColor"],"_Rotation":0,"_Scale":1.001001001001001,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"16560":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"16561":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16562":{"style":{"__isSmartRef__":true,"id":16563},"chunkOwner":{"__isSmartRef__":true,"id":16559},"storedString":"Scene-Graph ","_id":"_298","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16563":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16564":{"morph":{"__isSmartRef__":true,"id":16559},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16565":{"submorphs":[],"scripts":[],"id":"B036E432-A10C-4432-AE6A-6B8FD021CF92","shape":{"__isSmartRef__":true,"id":16566},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":16567},"textChunks":[{"__isSmartRef__":true,"id":16568},{"__isSmartRef__":true,"id":16570},{"__isSmartRef__":true,"id":16572}],"charsReplaced":"M","lastFindLoc":6,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16574},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","56C6D476-47A1-4AD3-9340-9EE470F9BEAE","6734B205-3A4F-4F2F-A339-2CD871E82936","BA59A4A0-07FE-46B3-A0A4-70A9F29AA40D","87DAA03C-DD82-4EB7-A632-4799DC6A5341","94809990-060C-462F-8C42-8BFF1B365D2F"],"owner":{"__isSmartRef__":true,"id":16558},"previousSelection":[0,46],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"_Rotation":0,"_Scale":1.001001001001001,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(65.6,193.1)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)","distanceToDragEvent":"lively.pt(499.7,-16.4)"},"16566":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,31.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"16567":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16568":{"style":{"__isSmartRef__":true,"id":16569},"chunkOwner":{"__isSmartRef__":true,"id":16565},"storedString":"","_id":"_744","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16569":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16570":{"style":{"__isSmartRef__":true,"id":16571},"chunkOwner":{"__isSmartRef__":true,"id":16565},"storedString":"■ No mechanisms for browsing part compositions","_id":"_299","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16571":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"bold","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16572":{"style":{"__isSmartRef__":true,"id":16573},"chunkOwner":{"__isSmartRef__":true,"id":16565},"storedString":"\n","_id":"_300","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16573":{"textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16574":{"morph":{"__isSmartRef__":true,"id":16565},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16575":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16576},"derivationIds":[null],"id":"D8EA8459-4610-4812-B913-F5C1A2518BDC","eventHandler":{"__isSmartRef__":true,"id":16577},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":16558},"name":"Selection_041.png","isBeingDragged":false,"showsHalos":false,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.1073654710215566,"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(262.2,231.5)"},"16576":{"_ImageURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAukAAAGHCAIAAACCsFvrAAAAA3NCSVQICAjb4U/gAAAAEHRFWHRTb2Z0d2FyZQBTaHV0dGVyY4LQCQAAIABJREFUeNrsvXtcE3e+N/7JjSFABrlMQQlemBaa0JXQ2gZtG1pt1NOmF43aNvZGLyvbfVb26T7S3ady+pwDu6cHt3sWen4tPttdbLuml91onxq3ltS2ZFuF1ZrollDRBJWgyHAdIDDkMr8/JsQkk8Tgrajzfvlqh8n38rl9P9/PfOc73w+PpmkIBU3TPp8POJwPhw4d2rFjR8SfFixY8Nxzz8Wu/se3//jc88/19fUF7ng8nuzsbE6wHDgw6LQfi/bTAvymwCC6Zvg9deoU0DB33lxO9Rw4BEMgEITd4QXHLgRBfP7553w+Pzc3Nz09nZPXecGO/Pxi5fE44XDgwIEDBw4XiWPHjpEkeccdd9x0000RYpeWlpbR0dGlS5dykuLAgQMHDhw4zBz09/d/+OGHGzZsEIlE52KXlpaW7OzsnJwc3xQiVubz+Twej716w4EDBw4cOHC4zkHTtNfrjRZC8Hg8Pp/PDiGYnSperzdaswKBgKnV0NDw05/+lM/n82ia7u3ttVgspaWlbrfb4/GclziRSCQUCjklceDAgQMHDhwYeL3eycnJ8xbj8XgJCQl8Pp/50+fzURQVZ62JiYm///3vDz/8sBAAvvjii4ceesjtdo+Pj8dDn9vtFovF3OoLBw4cOHDgwIGBy+WKtgc0DDRNIwjCXI+Pj8dYcQmLjcRiMU3THo9HGFirmZiYcLvdcZIoEAgSEhI4VXG4VuC2H2j6f037Tw9OgDARv2XxQw8tz0FFl6RpsvvAf/3Xh5KS9S+tKT5/4V7LG7XbxYpHn18uZC5eeuL2afQ1VX1atS45AmT87InbRRdE3p9/vfm7kRt+8upP5olFvd//v9+9/XcPpK2vfKn4BvHASfPv3vhEonj05Th4jNaje7x3W+3vTiYqal5+7NKy/NITt88QLXDgcIURz6JLYAUk8PZmYmIi/loJCQnFxcVnzpwR+ny+rKwsn883OTkZ6NjeXP1AWeOaBlPNchwAKNK24b7V5IP1O6qWMwV4PB732ojDNRO4fPe3d979qgOEGfmFuKvrqN365du94z/96er0SxG9CMWZhUVFKJ4Zz9EDNPB5AHw+PzEx85aiImFB5rQOLAhU/2GPOQgmI5iO+JkqzEu1fkuc6nHlzpN0t53yAAAMdnT3F2XOIU93TgAUFuZOS55hhX0+4POAxxdcKkEFdzRDtMCBw4yNXQAgMDrOBR5NtRvriPr3a3AUIZ1NGzfoy7bWl0rRsFqzZs0ymUxCAEBRlNlcE1jtESQkpmXN6/j4wIQ6DwFwWv92Ilk8LzEhUCD2thoOHK4ijA8e//Rrhxgt3PjKj3OT+DzaZfjv2oPDfaeHR1PTxCO9HcaPjUc6CRCmyJX3PbJC6Tnzdf1buyVyOTg6xtMWvrJx7em2r/768d4zo55Zs2/SrFlbOEcS3D41RrQdPowmFd5bkPz1x3/Ze+jYBEDirNnLVj12V/4NALCz/t8OjcyufuXHAODz0gBAAz06SrQdPizmFSxXSI31/9ZKpD1Z+ZN8iWjkdGv9Gx9Lbl2zce1t7H4D1b1er7H+31oJyZMv/SQ/TTx46uv6t3Zjdzz24qoihqpBx57f/aE59447ofNwJzE6+6Y7SwuFez//hhgVyksfeWxlkQiAzbtEBExTAfY3rplb/8bHkoV3JJ6xdRITs2+6dc1aDeqlAcBFHjO89fmhTiJl9k1rn3w8P00czNSg49u/fLynkxgVJs5auGzVI3flBweKWTdL4dtv7af7b8uijtp7QYgKPeTJttMTt6R3H+0GQG/OkXi93vNqp0InDwgEAE4f/uqDj/cSHuFNRUUuN4CY9nq9wfKPM9ht++rjj/ceGvWAMHHWrSvXapR5wZIPvubGF4frB3G+MGIQGB2BWgUPv/qrg2urapve2iTbUvl/7/vPt1fMSx33+Ni10tLShIFAJKzX7KLl8/tNVuIRJQZH/naidLmiJ5REblhyuDZAnrYRHs+CRUvSPCNDwwDAe/Bn1Wv53pFhcmzoxPt/eK9zVFS4WCXs/+7wNx8PuPiPLRbyAAhbp6xkce78oiHngff+/BmVnr9ihbTNbP5r487UinWzxecmYq8PeADA452w7tp9qLNo6brbc6F55469xs9u/PFaTCy6AZudnTKHGVBeHw0AQPt8tAAAgAder3fRfYXfvPftkaNn8eLZJw8dGgXxstKbIvYrmaru9XoVpQXffHD4yMkBHM0+bft+AsR3LLnpnL/gCQGg65+d9695dMGhj79o++avPfMeXr3+5GcfHWzebVXgP0rsY/O+QXsrzQth3wdn+ABnjvxT+fAjt08c2/HZP957f9Yzj2AAMHDcesOd9y7NOP7FwWPGPW0V64p9NI9harSv/b3GjwlRhmrFnX1t5kO730vOrlixIO3cCs2cAhS+7e04PZaX4ugdly5akdv1mfXU0f6h2Z2nx8Vo/pwU4UQc2vH6BgMCGSeOfPDBZ4PCLNWyosHv9x8b94hR8Hq9wfKPB4NdX//1s0NJ+YtWKTKse/YeMhp/VPBjLEjy3qBrbnxx4BA7djn3TOAaV1W90aRZqyuj81b/7tlFmePj7oi1vF6vkAlE2OESkiB/QNn56QGH4i7qH2M3P7z41J86QmKXaUVYHDjMWEyMuQAgEeW5mSkH6NGh/lEAADhzfH/nqKdo3c+eWzIPfP/y19/9+75/tpxeWAwAGfkrnn7sngT3xLfGvw2BcPlTuhVzU4uzyNfetX7XM5I9P439TMIHIYDH8f3htBTFgz//9U1Z4sHBYS9N3/v8L1byPINDI0yxQPnAWEudv1gqPNxhOU4WCL6zEeIM+S1pKSf2Wtn9LkbP1cpccHsWHO60dLoKEo61nxZn5OPpiTTtm2qdBoDcRStKFxac4c//oq0/f+kji38kxc7sO2jqHB+bOOOMwHuX+pZ0mg5mv/fUaQDIKnpkjepWHm/hcEfH3i7r6bF7AQDN1zyzVsUf7+6w1g0PD9A0HWCq78ThMx7PIt2zqxWYt/S2410jaLok2KUkpORIUWHnmc4TJ2AAhPKivILE7P1fd53ocZ4eGBcvLEjh+brj0E7v6YGAQPpOtBEAi9Y/ubpozsSSm/6reisJQIfKf7Bzn37H/gkAYWK2etncL3f/g7le/ey63Kl4NH3+il/Xlk7S/NGertPp+ztJykW5gUcHPUTS7MfQ4JZXP7supedA8J+5YhE3Ejlc94s0tM+X8fiPZX/5X0f/VZM/Oe6OUSvquguA4MaHH/zz6wesCU6B+hGUvw24dRcO1yISJWIAcPW4AiY92tczIZyVOSuR6ncBCDPThANDQwDeG9JRj3NklPICQCKWTA0NTQBQw6MAnqbf/5+mqQaHhyaCR8fUUzidVfTgCvvQZ4ePfvXJ0a8++TDzxpInHrtvllA4MtA3cu6pwh8/BV14BSLszsJUQ9uh9g5Xx+C4VL0o0eeO3G/yuVr8pDkLF6BfdrU7Tid09I5n36WQ+NwBsph3zYkojIy53D4BACCId3RsjBIJAWAC6Ii8D49PzvLRwewz3ImTRWMjYwCelBSxx+OanPAAgDglYXSIhAlKKAKex+P1egNMTYyNAQiThZNDJAn8pLlzJR43FepSxAXSVJvNcWAfCIUZ8ixxsmCe8OuvLAf+0Qtw280Y7fXGo51gMU4MUwDCVASGSNIzmZCeBCTQXq83WP6eycGeoSEAEAoTJibQwDU16fMm+Mmjxjo/NRpbvjvhAWGi0AOQDj6fF851FNwpRGqZmvQlhv4ZaJwDh6sdFGmvrdziCPrsWabdVKmRn3fdBQB6j+2sqRuq2DC/5sXaP/5pM4ZEXq2hadq/7hK82SUQn8xacOf8/g3vbJv19Bu46Jvw2Ifbhsbh2oA4qzBL+I/ettZTS+ZKU4Qez9DnH2yz9tH3//inuVkogKeni/BlicEz1tVPCoUZsxA+AIgEPK/PBwBiNAlAuPT5jcsWZIyT/S5ISk3he92+oMHi/7+LJPPvXqVan9Hf2WHes/Pg8YMHT92xdP6siE8VwXvLwAc5JbfCYZPp85EJyFhSjLl9voj9jvQOBNXi3XzHTaYPD3/z1fggiO+9NccdNGZ9NA0AtI/v8/mYaxD4zl3TvsRIvGckCnwUBLPP0Nl/9oTLNz8RXD0DpFCIpiB8ABAyXmJqpSfYySSiKICnv2/YJ02e6D2ys/loTtGdi27MDBYFVpADtiOOM4BKi9L5QlG6LFv49SlbFwC6IDvZ54tMYZh2gsXIlO/vG/VlJ/moIdIFIIYwP5YpX7d1axkA0LR7aHBy5fLnmOv+nl5qqqTjwJ6vvzuxaN3P1qvyLdv/8939LpqmaaDZbAY3Htxyf0+vN/RPinOnHK6Zp8FZN/9+505RUGKcyZGBgbHwbbzsEIIi7b99+f8u+Y8//0p9g+SJlf/a2Pz78lIkUi1/7OJlnhRYCzgiPna/Kul/mosKMfEZ1roNt+7C4dqAQDz3flV+4xcd79b9f3PmZYydPdk/5s3IX66Yk8zPKMkXH2n72wfjznxh38mO0+ML7r4PQ/qYxU1mCMy59Q7UfGLfx5/ArXMd/zCfGEpZveG5BcLunR+YhPnqtUtxZhIFmu7av+v9ffYsuXLJLVKPDwCS5iQLvV7vvr802iaynn/y/qBFGp/Xx/dfeL0AIM4oKkS/PDw0gS5YPFsMXo83Yr/zhCE7LZLn3ZYlPNx1/Iw4o2g+Khjr7whQ5Qvak8Fc0/71V//SLZYXgfesRBgepIPZ9/oAAEbs5u0fDGVA/5Hu8Qy5OgMJIn6KpeCNIGnzFkmFR7775IPJE3nUyY6Tw55ZynuCyQOA1Nl5YjgyDpB1440i2uMTzboxN8nZSQrRrNlJAq/XG5HCMO0Ebz1Jm1uUJTzyXZMxbVIx1N7S7fGIgQ6X/1j/qbH+gG2MjPazDUboBQCYIHsOt3R+aekBELt9lH/dJfp+l7CWwR36JwcO1wpon7v/7NnzFmOHEMaal3vufPmNuzIG+id1da833/MTvQIvK5FGrHXunVFwQ3n3/Kb5Iaq7Z6Tklc+O10w4nf2zHm38GBk90zfGKYbDtQavL2/lCz/L/nSncf8phwOEaOHiZeseum1yeNQruOGJnz/3ieFj65EjHqGkaKluzX14r52AqckYAIRo0Y+fd3/w4a4vmo4LJdJVP3miOJNPEJ7B/n6xa4KJDGgAAN/N9z+lS9yxy9y609YqlGStePpJGYZQk96x0cH+kUSmtalnkcC6pr8XHl986225h7/svGmxXEB5vFH67esLqcVPSFcuSPrkGJklW5jsdQ97g6jyv9agz137fEH3fV5+BN5d5Jifm6kufD4fDZBRuDh98Lsjp0ey8hc/8egib88/p1rxMm+naICgk8JpPpLz3M907+t3dhw5IhSnq9bp1HMlvT3dAfIAgC+RSsXCY+MwtyDN7fWCl4/nZX3VSaI5t4j54PV6eXFoJ1iMfGTBC+WPbNfv/tK4J69YWZgx5KDB6w2RfzyYe5dm8cn39u/5S+csaWFhbte3Xad6x6WZ5zoK0x0HDtcJpvU2JjA6ArWe+tO+/+EbOt03SgPwBfKP7TZX7+nhcQ+7Fk3TPI/HYzab586dG3HpJRq4rEYcri3wxGh6RpoEEQrA53GNDhP9wx4fDQCChKSMzIxkcQLf5xkjB4kBkpeQKpVmuofOdPe7mMpIyiwsIw0R8n0eapDoHXJNCkQpOXOzfCO9zt6R8YH2bW/vSi95/NHS+Wg6loYmC/ng80wOD/QOjlA0QKZ0vkQw2XnyNAAEKp4ZpAMtML0kZeTMnpU40uvsHaHi6ZdxC3bTewYL+eBPy2XJouBfhYnpuTlpE/3dZ4YmREnY3NnoyNmu3tFJ8azZczISB7u7BiY8bN69NAiREPbHB77f9vYnGUue3vjYHcmIcHKc7D3b5+EnMx11944AP2HO3Byhhzzp7A8lQHIDli5OEPq87pFBon94nB9KPI+fMHtujlgADDEAIE6fMydN7Hb1Oc8MM97uvNoJE4hInHoDlpYo4o2PjNCJEoQePdFFBMs/LlsRIJnZWWiiyOOecE0AKkkYPuMcdCOBjlha4MDhukA8OYXOrV9OHRF3AbWOHj3K83g8X3755dy5c5lzduNaEaJpoVAYSEbAgQOHaBju+vaTz77uHfbc/OBTD+RjV7Tr098fajtqO3Kcl3Hbj5+/TzgdBxE/xoc63vvjrnTlujV35XLq5sDhekb8R/MHH2/r8XjiXDcJ1Dp27Ni5d0YQ9y4WgUDA7XfhwCEeDPX29A57UGnR8oJsr2fyivoR0nnoyHEhKl37tBqZnJi8PGca+CJ9U8OBA4frE/GsgDDvbYLPpruAWjyPx/P555/n5vqfmcI2vrDBrbhw4BA/kjOk87JQzwTZdbJ73HtFj0RCUufgObN8nomzXV2D4+7L1IsAScPx2ZMDXSd6uPcjHDhwALfbHWMdhc/nR0woNK1aDoeD53a7TSaTVCrlJM6BAwcOHDhwmOE4ceIEz+VyjY6OcrLgwIEDBw7XCQYHB5mLsbGx8fFxr9cXdBzJ9QA+giRIJCnBb1F8Pt/IyChFTQLMxNOG+Hw+giASiQQAxGKxEAAwDONMmQMHDhw4XCdgNlj09fVj2A1iceJ1KAGv13v6TE9mRoZAwAcAr9fX198/b97cmfwF8eSk29ndLc2ZAwA8l8slFos5U+bAgQMHDtcJzpw5MzbmomkaQRKuZzn0Ev05c7IBoOdsb0Z62swn2O12T7o9s1JRPgB0HdhW/6E15GdXj/WAw+XqsR5wxN7j5+qz/mH7Aea/XQe21e/4rse6/c0d38VDBFM+1q+hVF0wYncEcTB4CUXPyMcdh2wvhpKLl17sFqLRz7acixTgBZhWDHVfKm2GCScGYZfcfjhw4HBJMD4+LhDwPdc3REIBTdM+H83n8a4Kgnk83tjYKABE/mJouKdt7/5Osqdt7/7O2Orv72jLKMxl/svcyVasf3H1LdeMfQezdknAyGc4DtlebkouBtHoZ1vORZJ9aU3rMskwBmEzSmscOHAIYOQKbvQkieYy7eaIP9mMm8qqm34oIQhFQgDw0T7m4gJgM24qq22+MrUYCPgCYHICAEBPx9761/f2DQ8XLHtmfWne4b0HHA7Xnz8UdJ717ti3YInI/Naefmk2CuPj2YtXrVzQ/9ZbB35R9QKAy9HmKlwndnzkKlyXAR3+R9KdDsXGRxV733zNvez5lQWZfUf3vLNXvPGZwl3b32nrd4vcottXrV92SzbTdfObr/Wonnn0luxhR/Pbezy/eHFZyGPrsGP7Wx/laZ5R5QnDqncd2PbWnh4xgGzhrCPtk7kZ4nGyP2vxutUKNGJHwWsDO7Zt7yTdbjfc/uD6lYrcQFPKhx4YbN7d6RIlJYmGh8VVVesdba7CdRlBBbSj//gk0Hj++J5gyay+PZfd+HDXvnc+2u8Gtxuy1z2/XtSxfadDUUgecDhcO/YtWK1ICi5f6N7LdJSFeFLvfz5ILIsZSra/9nrh8z8pFHW9XvPO4o0vL8ke3/76rtIXHrTs2B7Gck/bnvrX97pc7vyV68f3fsSutWzjM9kwHCyr/PE9TO9L1j2fHyr/RamOYC469x5wOFx/2ZtAt/2jyw3u4eG8ZevXlxaEWc6jS7Idba6CB9073ny9jXSLQLR41dNLcj3R5R8i3mW3oAzX0zKt/ClFs0xrsaPNheX/7V9fG8xGxWR/f0Z+HpDD/T39ilUvLMuDaFTJFs46dGQsWMthQ0aVZGYIc7t6dm3bHuC0tCDJTz8HDhyuY/AFSEJC5F01IiQxQYz8wPTRF358w4XRf/Fc+2MXYWrh8xtXQs+B+m37oTSvaNnt1nFYr4HtRli9JK/ngFmcseiFF0rB1bWtflfPxhd+UaVggoBOyFOI+vdD3u2porDEYoVLFmzf37GsILVjf9sC1dNHzR850WW/fEHhHj76dv2O/LwXmGIFqvyD5qOuWzI69h+WLlkX8hDf37btra7Cdc+X5mV+t+dNVnW3OOP2X764rOfAtvZu2TMvlLr7rG+9vf8oORyxowDa9nzUn7filytvcQ8ffat+54IFP0maaurojvqThat+uaygz7G3fpuDYfD2VFF/oMCeN78Iahy9NzFYMo7CF0hW4+MHDsKCZT95sNDlaCOnjh1kJLx6SV7bjvrg8skqhOmo/7sd24PEEqDEnS863NmfLW5ziaGjo6fQ7SSzC8kDO9gsizMVz29cKRo++lb9roUFgjZWrewk0dE9IUpB7xUwvYsAug6EyN+646NgLhj6ly5IdGStX39L9nDXvre2H+xbUhBmOW6XoxPy0tp2ObNXVL14i6vvu/1t/W1tn0WVf6h482bf1zl900LvTYxoWowM70zqEqGKF15c1m/d9qY545cb17uO7njb7MjuOBiNKsbAgrUsChsyU/G2Y/+OYE7duSRDP+e7OXCYaUhJSbn4RijSXldZZSYoBBDtplqtnKqtrLISFEWBZmN1WQlUV1S1k4Ak8gcnigCAIp11myvN3RRCIZpN1WWlOAB0fP7fZYe2kiSlLK+uUFLVlVvaKaAIQlFWXaMrIWyGyhoDBRQFeZvrauQIwW7hguFxewBAIBB43B5IvCg5BDNevlweLhmcCObr6Yv4QGjS7T4Xu2RmZScBuMWoKNKZviIQZeRliwAgCc0QjfeT7rwkEQAMO6yifIXbYRXlK5IAwiaYjPzSjD07jnah1p6M1QWZR809Xf1736o3A7hdIBp2uVOZYgVLMowfdXRlW7vEK1dl7Nv2+s62HjG64IWVST0dbYAKPW4AgH4Hu7ooNSODmRZSM1JFACASA7gjlQzBcI8re1k2AIhSs6VJrn7SlTTVVH+PK7cwAwBSsxdkJ3UNn2NtqkBo4+OTgjDJuFiN375yVc/OXa+/+hFkLFi1Pj82McPjiUxHYWIZduxjKMlVFH2x1+FI6lGsVDkPdnb0ObIWrR4y7wljORNEGfkLkgAgKTsraZy3YGG/NbwWm53RyYSASAEgWP6FoVygAAAgRtHOPR/t/wxEIpfLnc22HEaAo50HshZlA0BS5i3LSqH5zZ1R5R9Kz5mjVlH+ouma1uik/wO/iDJMhC4/j0JxKsowmyRyu2NYBdv+s6MMmf4uMpjTvu92MFrjwIHDTIM4MXFkZDQh4aIeLQ58VHvsll8e+vWKwZOf/WFH196vtvbe+ct9lSuos+bVD/zG97Vv4v7X9m1UdTb/9vGXHRRFff1e9bG5P9/3l4fHzzbrHqgtlm9J8NKz5j+yfedLycTXax543SxZeefP3/zj8oKzbe+v/cnfHJriDuPfEu78uf5/rxg58Dfb2MjXH4W3IEMvfAHD6/XxeDwAoKjJhATqAlpwe2nwefa+WR3M+N/ldbw9IZI5LewP5sv5FA0+D0VNu0e325Oaip6LXVjByrn/AoAb3P0OpwsKRMM9Tpf4dtT/i7Otf0FptrO5f0FphHlLlJS9KB+MO42oQpMtgr7szAV5S19ceYvb3XfA3JGbmkQyxUTZixRC4y4jmr8sN0mU+8wvloD/BUHB4nW6JcNvb9uZ/4tnMiJWj/SKLiNKRwGkZie1OfuhINM93ON0JRWiSdDjbyojO2m/sx8KMl09Xf0uN8PgFD9CduNpSR3934dIpp/VeJd1f4ZqfdX61KN73zTu7ViXHyLbMGKKxUJwCdlisU5RkpRbgPZv29+fsUqjGDf/wdyRuu7BDFcHm2U32dXvBgBXf79bfEf+zZ17t4fVisjOP4NEGix/t7UtmIvnFwMAHNn5kUvxzC+W5PY59r61vYttOYwAM8ZRq7MHbsl09Vi37+m/PZb8Q+ihT7YtuHfappWW1PHPIYgqw67IQyKGVUSz/0i2F8qpOPLQ4MCBwwxYd0keHBryer2iC93qAQBnjw8VrM44dvw4X1T0/NP0tud/n78y4/jx4zzhLEWG6+QJ97xHxMePH/dl3zo3tdvj8Zy1nfzOWadR/zfwPJQwZXDYleND5t5ZOOxwDHlnFWSMDwrTvnvr59t+40sUu0h3Ac/rue8XNUTNvy9b+Ate7m2b/vVX7BY8SRfyVTNN0xMTVE7OHObPnJzZ3d2nExMR3jQPuvH5AGgf2TUezHhv3xCESsZ57MD+3wTxRfOA9nmmmWTN4/H6fD4My/THLj6apsHn8/l8PpoG2ufzCdJyhGfe0beUCs80/8FwwwO5NNm1r/61A+CG2x55Km3sn7+tP/xS5dNH+9GlaYlf9KNL0xKZ2jRNB1oDgJySRa5a49I1830+303L17S9q69+zSgCWFDyyG0C3xBT3uebf1uJa89f7n5kXnAGbaad9JySB+TWDz/8x8/WRq0eRn+0jkaJQw0NB1965XnZ8oePvvuX6gM7RW4oWvH4TRJB11RTNy1/2PrH96sPCMVicAN6tD81hDUWF1n8EMnkJApuYDU+nCPZsa1+r1gEHnT5U/N8TgsNfgn/wXDDcytCys+FLw7RNCOHYLEcnRKyQHCDXOo2kjflSNJukoqO9styEgUQieXhLvMf3vwO3OM3PbB2niSbXSsiO/RU72Hyf26pnwvfZMrKZ+YJxInCM+8cmFswtmf7m9+li0UikXt8jKIyQi0nox9dmpaI3vVIhr8X8d1rdLLsG6PLP4Qe7yCqnr5pBXPBlqHr1JS10MAUo2maBjqGVfjocC13hQ0ZGpg/54dyerSpj9EaN09w4DADkSvNoSYnXS7X2Nj4hbWQU5D9xcG2iRvvGDm643++c2ZNwSzzweMTc4uo7u8sQ7PuXu77xyH7xPyiM21fnxgfn6DcuQXzS5aUv7tx2cRE1853/l6QlnzGO95zqGPwgfnQf6xzPBV57z/HHn5771M/Otm69YmXLJOU+xu9IfPp+kP/d77596tf3db6IquFCWraGT+SksQCviAzMzMQqfD5fKk0hySIaZj9AAAgAElEQVRHvT6vyzUNaUx6adrnywxlfFFGMoRK5k737rGH/xDgy+OlaZ9vWpQnJ4uTk1MCh/Hw2traPvnkE86IOZw3SOfxeKhE8s3Xf/fR3GTM4fwGc+utt/loThIc4vItc+bMOX369FVIvnewl3B5fDwQpGJYssg32Nvn8vh4NKSk35Aq5g30Ei6PT8Dne2lRzuyMoPKQiGakpyBuV9/ZQbdIKATwJc3KTKLHzvaNChCRgMdzU76M2ZjQ6+rtHfLxeQDC9BsyEwV0WAs/LP9uV98AlZKVJgxhPElI0yGSQbyjvUF8pabyR9wpWWmJF2Yt8+fP55lMpuPHj2dncyvbHPy4b+k9+/a3hn1AmJ6WVqq666f/42fz5i+48cYbOSlxOGctLa0jI+HWcvddS+rf+O/FixfPmc35Fg4AAKNjrhvxvG/2t4RbS3qa6q47/7TtXa/Xy81EHAJYft/Sb/a3kiQZ5ltUd9/Z+M57QgCYPXv2j370I05SHABgeHi4/fujy9XL2D998ZWZz+fNmT371ltv5QTFgbGWY8ft969cwf7py2Yz8HhpabO4Y7s5MBAIhG229uX3LYtoLTRNczMRh2Df8l2bTb3s3kjW8neapvmXo1eKJEiKE/5VKbrx8fGEhMiHZPP5PE5BHOK2Fj4nHw7B8Pl8IpEomrXENpgZMqdwU9sVw8TERDRrEQj4AiYJU6hyiM0ahUJVbo+kIdLZrFFqWoK0F7hD2PRqVRkAUKStXFNmdpIAELh5MXBaGtWqctLZpMLxMMJsxk04jpfrLRfZuD3uL7WY8nEWbmnctGk6tAWL7gcB6Wx++sGn45fDdPU7LeldWkRUdDz0zxDDuz7R077z2af+nfkvJ43r+IkulmO8rD55Wv6ZIiwbyzbbuejmiiA8diHsplYSlyM2Q4t9Wg2hUtXm6o1+FU955KCbl8iICYvZRgSmFbOh9QrLC8PVm6s3xBkHbDVCuVY+vdExwyYznkAUn9KvSsRP/w9ueFcF/rrjY04IHC6DtVwax3hBPnkaZCBYsU7Vt0Xfwin3ClhLeOzSqjegqrINOty0zRwILy2GarVChssUFbUGJqZk3yGd5pqqegCoLa+w9jk2aTR6GxG4aWtq0CgVOI4r1TqDxekPltVlm8q1SqVCoVDVGplYmGrWb1YrZTiOyxSqakNIgIxI8kpLUJO/JJCEzezEVHmSc0/Dob0wXZRrVTKF2mgnnJZGtUpXXqZVq1VqtU7f4vTbI+Vs2FQmw3FZgAzK2bBRp5DhOK7QbWxwUiGxXU3V1thlpgL8raDW4AgShdMIMgkWXehTBZvsCIIK4bf9SETy7M2NWpUCx3GlpqxpqpdgbY5OhgcuMcKXgH4by9RlDf7kFM6WBpWq3E5SEfsCAH25WjuVv4NZ+bAFPakwXGxkxKXUNBqNm3QapUKm0my0ENSlVXSIfTKkqkNIvdKGd/U7l4sIXyYPGN949rGH1Cv+5f7VT7/Z1M7562t+KopsLSzXGuwY2d7j2JgnhnOL6pNZQzJs2J7XP7MLAIBc/Thp2Gbhll4uv7Xww9bEDGZSq1MWqx9HbIYW/3sfQ0W1WddgtLUalZPtBEUNHd0Zdie4kcqGOkVm3hajUSfHAhZWXqnXVOttNlutLqe2vKKFoACAcLQg6s2trVZ9rdpQvcVGUoRFX1VrrWg02+12fZXKWLvFFmoESo2KMBuZmdhpNlAKTd7UkYLsXixDHsLRItFWm4yNahwDAKLbItFsNpnMjdXqxspKhgyyr71PqjNbLA2VCoYMm7FO78gzWm02iz6zXV9nsrGlGbsMRdl3mAm1yh/gR+A0kkzYovNXZ5EdTVABfqW299jkkXZjRUWDorLRZrPVaiVV5VU2kgrT78DkueCF9rqZf+e1LaVWaTeanBQAUFajCVNpMMLE7stfePU5JdqMRkSpwUPPhSQcLaimurW1tUaN1FTUlmxqbLW2alBrvcFyaRXtj0XsxopKvWqz3ma3VKmhprKOYHmeK2N4V7V/WbP6EebfhVUfaN9d96fvn/z1NtNnn75evuirPzUeD46jOVxbiGEtbNca7BjZ3mNesjCac4vlkyMNycCwVVCm2P452qSGSosVqNMw9XzC4fJZS0js4mzROzGVGsdQaYlWTm3TWwDAZjYiJWW6EhxBpdpNFVIEOfnNp2F3YndsMxqR4rKy5XIEQUp1lWrUaWi1AwCaWaxTywFAWqzCgCQowORag0mvkWMUSZAIChQZNovkyDQyaDfbCQDSbHQoNUoEkGi9fNrWh2bKdZoSqVTKFMJySsr8PWqUqNNocQIAmqnYWK7GULRErcOAJEgKkSCks1VvMDkpab3JvEUTYY0xdhnS2W4nUZkU9b+bYHEaTSYRwSY7mqAC/EoikWczG0hcW6EpZjpVIjaDhQjTb3aUrZexgSu1UqK11UlQpNNoJjVaZcS+mMLSEo2UtJrtBFBOo9mp0irDDAjNlGtVOACSV5KTI1Op5BgAKs/DSGffpVW033JajZRcV75cjgCqqahtqCtnH7F9ZQzvenZP6bi6/u3/vBdPnxwdGE1IhsmxQS50uS4R27WyvQfjsGI4nIg+OcqQ9A9b+/n8c3QHjsrz0HazndPj5UbwWcikaZvJYe1TKfQAMDk5KbG9b68oGbETaKbfmaNYDoogrhN9YXdi99FHkGhOjr8QgkoxxEqQkAMI4q86NQ1QFJCG2qoGYwugGI5j7GQHCCpdrkT1BosaRcxEzuZizBi9l67BCQRBg+chBJ2iFkFQBBx9JGCAIFhQGYoCwJdX1nbX1Tds3lo1kiNTb66rXo6HZ46KXYYinFRQs2xOI8sEIkuSTTYFSERBBfiNSF6fney2bi3GtwZafqCPDNOvJAEZHR11OrsjrOlPRl2AQTC5phgxmmwKRbsdkW2WY1ZDhL4AZdiRa5So0WhTafqspLxOHi7bIK0hMCW6hMug6Kl1FxJFMSTACR5RBVfC8K5GRLeWc6HHZ7954bfNTgBIu3ntc1n7A9cf1T17rjyMNf3pjQ++OgIpabm56cHVIyKeNjnMNIyNjZ3XWti+qxQLHkos72EHAIjo3ELWXcJ8cuQh6R+25/XPUQoAAEhwlGzt43R9+ayFoiZDYhfS2WK0Y3W79EoMBQCKtFfqKvTNThWGku0EBYD4vxCjkjIlpD3kTmwKJBhKOvqY8kARdoKSYGjEkhZ9TaNVojdb5RhC2A06bSNrDkEUWk1dlckspUCxPPhdA7uX5CWJYdEASXaTFAUIAhTpJKmcnMhkkE6nVFVuLKsiCXtDZfmWGuPyxrILKBMtFokuk8iSZJMdXVBIDPIypWiearOxsYwpRDgJBMMs9hD9utzeObOz3e7JSGTE+AAKUT6ubNxiNNnaMfUmKQLOSH2RtlZ/Ya2ycYvRDN2oUodHSCSGTMucLljR/mUeabAE7Hp9q7pMJ0V+AMO76pCRkTF/3twwd8NcDA+TQPtP1b2zvEb25CQAJIjSUhIeCFwHV2zfvXVHe/Jv3/3rjekJA12m/1Vxnn0z8bTJYWY9KAuFOXNmR/Qtw8NkIHUG23eV1ilCXE2o92BWVyI6t4ieKuaQROL0z/FPahwucCE2PT26bxn2eDz8oEWw90mpSiXHMQzDMEyKF+tUmGmbKVerA0tjY7OdoghDbb2TouY9+GjYnXA3D5TTeW73arFGQ7U0NDbZKKCaDXVmQqpRSiOSSxEkICiKIkARxrpGJ0WxH0cxuUpGmesarOrQdw3sXpYVzgqffbtb6vXNJEU16+taKbmmODIZNlN9WXm1hSBRFMMkCJKJAoCludlGkLHLBK1DSBEqVlQXRSbhootG9nkFFZE8XK0FS2Ndk4UCsDXVajVak5OQh+q3m7rAlXppsVZKmBrMpFYjj9ZXSGHS3GCwq7UKRolh4o2BS6hoBnKVBrHp9U02CkhTQ02j0YZEoucKGN5Vh2gHMIQhJT1rbm7u3Nzc7OyU4OuQJ++BUUhISUlJgMmBr977uGdyEmIuvcTTJocZhTiT/EXyXSGOke09zutw2D459pA8r3+OMamN2Ak0J5NT9+X2LVOxC+U0GGwKrTpoBkYUOg1l0dtAVVerM1Rq5HKVCZFJEWTWgvvD7oStrquV6JZntXVT+5Uwua6uRmes0spxeWVjd2VjXWmUELWkbJMSMZfKZUp1mV2uLcEoB2vbJILgy5VSEpGrQt81sHtRzgrPlYBKpJR5S7FcXqnvq2qoLY6SOrxYt7lM1qcrKcblSsOIorZSAwBbqyoaWp2xywQ9ystkKGm1R52MI8qELbpoZJ9XUBHJw3BNXW2ZuaZMjuPaKpOmpk6LYxiuiaHN+IGguEYlRaQqFY5F6yuksAIjQa4u9t8ME28MXEJF+wvjmrpanbFKJ8eL61ol1Q2VGBKBnitgeNczilaVFSUcfPLBh9Y9X3UKv68ofbKL2/ByXYLtu8IcI9t7nNfhsH1y7CF5Xv8cfVIjLA5SpsI5PV72UNhkMo2NjV0PJzE7LY1lFa0NpjocQS6yEZO54bwlm6p17yMbGitLZwLZ07MJ2hvx/reWw19+8blSufiuu++++F6aa8vqSa2+RoPMSEVfw/RcWuTMmR1xXfeLL79y2I/ff/+/pKdx73E4AAB4vT6Pxx3NtwwMDGRlZcU5E12Y9wj45Ms3JElnU1nZ+9WGBjn3fHI5fcvAwAB3bve0QBHdNgqVxFO0pGwDtBps3If+kaRoszRtMzo1rC+MOHDgwOEyeY8r4JMtxh2YdgMXuFwBcLHLdJYKGsrXVBiVOm08hVFp6QYNojfaOLmx1yF0ayooVbm2GOOkwYEDhyvjPS63T6aIFkNr5iZdMaemK4Dr6J0Rh3htIuY7o8ezfHK6n5MSBwDwZOWlloVkGgp7ZyQvLJTL5ZygOAAATQMffNF8y7TeGXG4HhD7nZGQExCHMMzJkUa0GAYir1swOcpJiQMAeCnXeQp4fQBc+nEOAAA8HgDNiYHDpQH3zogDBw7XFKjr/YxiDpwpXnexC9VibNCplTjO5MGqthFXWvDTSmjO4Qd7hMp9JOXlV3mzH0h5uWa6tX5AgvnCkDMD4qEfefGdpNJF/j8Sb05+dZfkxfKplYRk5MfvJJUuvBDG0xalvPKmIFHE2dKlni1s5Zoys5NkEvVxArnqEE1xtVpVIOErRVq0CplSWz11hAvZoFOVNZw/gXPE+YV0NmuUmhZWlNHSuGmT3nLxphj5V8KysWyznQttLkns0txQXr7ZqKqoa25padpVl9NtKivb7LyyssVw9ebqDZxirgrQgwcndv752qbf09YlKMjzhyBzlvA9ZyFtIT9FBACQmCXEwNPRxVnCzIpeKCYrnmpz9UZOHFcdoilOpcbt5nbSH9+YCEQKzlY7QQEARTrNdlBd0lNVSGfzViOUa+UXb4qRH4qwYp2qb4u+hdP4xcYuJNG8pcGmq6sr15RIMQyXl9Y01KkwyuYkmvWb1UoZjuMyharaYIGpdOGbyrVKpUKhUNUaLQDQWKYOxMXOlgaVqtxOkuy67BTnIUG33VRTtTV2GQ4zZfUlbVHiqicAIKHs7cDiBC9vneTlV/mJIn7+I8kvG1Jf+0yysUY4+9whHwlPvp2sWRy88sEPWn7g5T6S8lKN+MnfS14xoK+8mbCwVPzjNyWv7pJs/JUgxV+ML1+X8ooh9bXPJC/VinKzmCpJL76Dvvq2CEvj5T6S8nJtUtnvU156J+Wl2oS8LH/Lwixk7a/R1z5DX30HWXhzMP18+boUhtSXQkgFAJ/jIKQtZCgUyG/2te10jySL5mQBAA9byPN0eQZH2SQFGPFTlZbEtCa4rTzl1V2p1YaklWredbPZzGlpVKt05WVatVqlVuv0LU7GgZRrVTKF2mgnAMDW1KBRKnAcV6p1BoszYi0AsDc3alUKHMeVmrImGxHwRYGmassrrH2OTRrNNvPumqp6hgB2Lc7DzFiQTnNNVT1bQVKlCpytTpICAJvJKlWXqTHSZHMCAGlvJRBcKUWjGtKUheztPrdXz2KoVitkuExRUWtgL3+0NG4FtYY5ACaiKYYZHrvfgCnqbRF+BQC5+nHSsM3CLb1cZOxC2ExOBA8+GhnBirc01heTxqpaa0Wj2W6366tUxtotzPfxhKMFUW9ubbXqa9WG6i02klJqlXajyUkBAGU1mjCVBrUb2HXZKc7ZZMVThsPMgefbw4KixTwhAIiEC5f4jn7lkyxJevxR76evDG/WjH87Jn5qYyBA8Xx7kJ9/DzNzC4pKwdHsmwg5sYp/QxF9uH7k14+Nt02Kdc96Pn1l5N8em5y4GblNxoQ7yWsfcO/cNLxZM956NvGpXwmSBPwbiuhv3xipf8VNDAIAP01GH2kY/d3TYx/vS1j7Cybo4Ulw3uDukf+z2rXn+4QHnz0XMGGlSWsfcO/aNPzL1RM2EK99IjiqoIkjXsgWpqWAME2Yl+45ctjTcVZQhAMAf24RnN7vm3BHIClF5GeEoWrQBQC82eokzaLJ934y/OsXvUKcJ0y4fiyE6LZINJtNJnNjtbqxstIy5CEcLRJttcnYqMYxwqYvr9RrqvU2m61Wl1NbXtFCUOxaew/srKhoUFQ22my2Wq2kqrwq4IsCTVU21Cky87YYjavz/OcwkXYjuxbnYWY42ArCcCUOTquTBIowtxIqjVKlklqN7RSA3dqKyNU4ikQ1pCkLuTsnZWq+M1RUm3UNRlurUTnZToQukFCUfYeZUKvk0Qw4rFkFZWL3GzBFNZgiUoVKixWo09Di5NR9UbELNUIiSCY7KTQm1xpMeo0co0iCRFCgSGYPDJpZrPPnEFdhQBIU4EqtlGhtdRIU6TSaSY1WGbFu7BTn/rApjjIcZg58DpNPUiRMS4PELFFBivvbI4J8NY8wTRz5HjxuT+ufPO68hLnpU4W/8olvFmFpIMwS5We5vz0S1ho9Ynd3dAG4vY6zvtMHPWcGAcZ8vYO8tDQm3KFP7aRsDqZl93iWaE4aPWKfPHyYHjzr72LwMNVmBwD6VLNnPEs0NwsA6JF26qt99MSYp203DSl8sT90EOTdwzuzm7I5AMbcn78+9v5HtCeImokuTy8I5mSB5GaheMBz+qy34yAvdwk/MVmQn+u1tUckKSEvl2EkmCpBfint2DnpcMLE2ck97/k819GZ91hOSZnfXWiUqHPv0SE0U67TlEilUgTAZjQixWVly+UIgpTqKtWo09BqZ9f64K8fkLi2QlPMFFMiNoOFAIDgpiLMgmYDuxbnYWY42ApCUFyFQ0u7kyQsVhJTyqVylYq0NjlJst1sl6kVMQwpYCEJ56zCiJSU6UpwBJVqN1WE5UIhne12EpVJ0WgGbLQ4g5u1R+l3Kg6L9isqz0PbzXZO3RcVuyASDKi+sPdzJEGQQBpqKxQymVKtrde3UlMFEGQqhbg/9yaFYHJNMWI02Zw2kx2RqeUYFakuvryytkJlbti8vKRYpSlvshNssuIpw2EGYdTuPjUpkuP8OUv4brv7zCAfS+HPfTT1tc9SX/sstebdhBuyeZLkqWjA7naMiYpwHrZQIHa4Tw+Exy6e0anoYRI8Y8x14ONKniQlEA2AZ5QeneQlJQRVAQCA8bM0c/q4Z5L2AF+SAgC0ZzCozLk1Dx6WTI8PTjU46CPOhpLj9tq6BPm4IO8e6N3nnXDTpw/6RLkCTCa8YdJz6mxkkvw9hlDFuyGdHhmdis/O0tdT7IKgOVP+AkERGByeQBA0cPpoH0GiOTnIVFEphowQJLsWcXK427q1GMdxHMflpbsd3UQfyfwY4yDTPjvJrsV5mBmOSApCFGrc0dxuazUCrsZRBJOrpJTDare02pFShTSWIbEsZMROoJn+eyiWE/bQThFOCsGCq4SZYl+o4UXrN7Z5A4AER8nuPk7dFxW7YHK1lLIbLc4g/VnKNepf/OuvGq0SvdlqbTU3VOuwWAkgEOXjSqfRaNIbMbVWioBFX8Ou609xbrZaWpo0mH1LjZHdUDxlOFxu7DLu3mXc/cWXX8VR1u1pPcIvKhUp76FtJtoDvsFR79G3hn+5gvlH/udj44cd5wp/e4SXXyoqUtOOr8JeGDEFYvREj4zyJP4lHBCm81MSaNdkWBWeOIvHfFIkTOEnJvgGYx1IQw+O8cRTe1wSpQmlD4TtRPGd2gfYQtFC3Gv7HgBg4qynN0FUVMoft3sGxyKT5I9R3OGUB5L7iNOuq3dGJNntfy6iSCdJZWOJAOc8iQRDyb4+asrv2AlKgqHsWjlzU/NUm212P1qaW2r86yWxjmDPlKLsWpyHmekGE0lBUoUaHC0mY3ueWoECIKhUhVNGo9GJyhRSNIYhsS1EgqFkt/8zWookomyqRaIZcE5OSLPR+z3/rxwuNnZBsZINOnljRUWDsdlJEHZL06bycjumXjbLCwiKoghQhLGu0UlREH3vtLRYKyVMDWZSq5EDAEWQ7LqRUpyDpbnZFhSoRizD4QrjQc0DD2oeWHrvPfEU9p1q8kmWIPnJk4ftAOCzmWDuKkR+MwDw5c+mbPy9KCgnn+9Uk0+8CLkt1/Pt98wdQf4ifkpyPB15Dzfz8tYh8jwAkfC2J4SSs57TI2FleGlFicpFIBQJlU8IRXb3qbOxGuz4ip79ACLPA0gW3VOOFOWF0UMT7T7xQtFckcfBfFI05rXZhbfdQ586yCyrsElyOyL06P12N8xdheRLQZiWsPJJ/nUVu3S31OubSYpq1te1UvKl+bOCfy3WaKiWhsYmGwVUs6HOTEg1Sim7lnb9Y2BprGuyUAC2plqtRmtystdLEAQop/Pc7ltcrWXX4jzMDEdEBaG4Qkq2Gi1UqZL5pAhVqGUWgxFRlGJILENiQ67VgaWxsdlOUYShtt4ZOqkhmBShQgKaMFMM3hgavV+/KcqjUzViJ9CcTE7dFxW7AMDyyrq6CoWhuqK0pGT5msq+HG1jY82q5zcpEXOpXKZUl9nl2hKMckQ/9AVBcY1KikhVKhwDgJKyCHXZKc4BYGtVRUPruSWfiGU4zOB1F4CJLnfHWXrwoIcYBACaaHb9ZafowV+nvvZZyqolkzv/g9lFe67wqUEe2N2n/C+MkFW/QqY+CIoN+sxu187dolV1qa8ZxXdmTfzpPzyucIOkx89CwXOpNUaxMm3i3de9E7EWcoBodv1lt2jVltTXdiB5Y+Pv/Yn2hNLjOes5Pcab+J5ZZQEAn+MgLQavzR6VpNGxCJQzHa19K7XmXZHHfl3td0ElUsq8pVgur9T3VTXUFiaHLG1hcl1djc5YpZXj8srG7srGulIMZddaWrSqrrbMXFMmx3FtlUlTU6fFMZYLkqqV6JZntW//029vGK5h1+I8zAxHRAUhiFQlRylUoZzaiSJVlqIjoFDLkJiGxAaGa+pqdYZKjVyuMiGysP0uqFQmQ0mrnYxmwMWhr6Ai9hswRT2pikIVYXGQskv6aff1gxmXz4jJTm4yN3C6+aEQI4vEl198/lQmdfPk6YvvRbiyBkk0jX3cfOltOveRZF2R6/Xf+DxuTpuXFZPZN6Llv41mLQ778YKbZT/60Y+YQd1gqsMRZLquYLq1OMzo+SZ6rrSZls+oqVr3PrKhsbL08pki6WwqK3u/2tDA5Z2e7kw0MDAw03ICUES3jUIlnNquvnWXaYQtafzcxQlF2ewvjDhw4MBhJqCkbAO0GmyX8/AVi3EHpt3ABS4XhpkVuzQ3lK+pMCp1Wk4xMwHT2u8yjWevuatSfvq/eUc/nOwa5ITMgQOHGQhUWrpBg+iNl+vgH4poMbRmbtIVc6K+wHlkpr0z4vCDI/Y7I+XtyjvvXMxJiQMAAI8vzc2NZi2Bd0acnDj47eXqeWfEYSbPRAMDA0JOQBymBz7/uvq4lwMHDhw4zLiJiBMBBw5XNSiS4DKicOCsiFPB9Ry7UC3GBp1aieNMBqxqG0ExScPt0c90iTPXfMTk4xyuUjDajFP1M8EGIppxPPTXalWBDKMUadEqZEpt9dShImSDTlXW0HIBjJPOZo1S0xLJV7U0btqkt8Tt72zlmjKzk7xI+UxXlRRh2Vi22T5Tfe102ZlRw+oCrPQiR1+wFV18d5eVi4gDJ3CTdDapcFyhKrcH/W4zbsJxvDzuMRUnRxczbKc7kGf4cPvhY5fmhvLyzUZVRV1zS0vTrrqcblNZ2eYz5/vONM5c8xiu3ly9gZP4tYQ4VX9V069S43ZzO+n3vyYCkYKz1U5QAECRTrMdVJf0eAbS2bzVCOXa+NPrUCRFXXlVIlixTtW3Rd/CWeY1wcs5K7pM3V1JjVCExWwLHFpImg2tl7vH6Q/b6Q3kGT7cfuDYhSSatzTYdHV15ZoSKYbh8tKahjoVRh3vnaAoZ8OmMhmOyxSqWqMFQtN/G1qmcs3HTCtP2E01VVu51PPXEvzZ6gEay9SBxQlnS4NKVW4nKXtzo1alwHFcqSlrOudKQF+u1lY3BT+NBX+IyJjWxnKtUqlQKDWNRuMmnUapkKk0Gy1ThyKGJZQPS0YfMWE9ALDNOEC/ralBw5CqDiEVAKRKFThbnSQFADaTVaouU2OkyeYEANLeSiA4c0wWO8d9MFV7u/1JCSyGarVChssUFbWGiA9RLY1bQa1hjpFgC7ClsVyhLLOQFADZUKbWbNTXlFdY+xybNBq9jYhYhSFjEyPPKcbZwzAgimjiDW8BQK5+nDRsi9MvN+s3q5UyHMdlClW1wRJN5uybEayI7UOisxOReIuxVq2Q4bhMt3GTVqlpmv6q1QVYaZhJvGN84xJaadgQiCy36LqoDbKikO4i0X9eW4rNxYVZS8SBE/EmIskrLUFNU1ZKEjazE1PlnTt341LpJdqwZfsftnbYNASrgP1rYLhZuKUXduxC2ExOBA8+6hjBirc01t+dk0j2tfdJdWaLpaFSYajeEpZ3XiWVTC3NnT+tPJd6fuaDOdYl8O+LL79i/sWoomntjm8AACAASURBVNQq7UaTkwIAymo0YSoNRpgqKhoUlY02m61WK6kqrwoEKMrVKsJsZHyczWhElBo89IQDwtGCaqpbW1tr1EhNRW3JpsZWa6sGtdYbLEy4E5ZQ3jLkCVijGscgSsL6iGYMAKTdWFGpV23W2+yWKjXUVNYFHxyN4UocnFYnCRRhbiVUGqVKJbUa2ykAu7UVkatxFGGTxPQYoOrunBQAIGyGimqzrsFoazUqJ9sJ1mMWRdl3mAm1Su6niiXAEl21VmqrqTO1GKob7dLqKu3mhjpFZt4Wo1EnxyJWYchA1JtbW636WjXDeIxhGE28YS0AACotVqDOeCyKsOiraq0VjWa73a6vUhlrt/zj8E62zNmKcLRH4IhNfGyvEkb8Nwc+qNxs0tUZbTazGtpt5AW+bpuulbJN4hJaaXDLajyqJUTUhY2kKoOsKJoZBOiPx5aicXFh1vLNgQ/YAyfGaFJqznkYp9lAKTR5Ux7mkuslbNj6ewltIcxBRaQhoAI1mCJSyAw3Q4uTm6HCYxdqhESQTDTSuYFopmJjuRpD0RK1DgP/hiJ23vl40spzqednPm4rLor4L0YVXKmVEq2tToIinUYzqdEqbWYDiWsrNMVM2nclYjNY/A9/0hKNlLSa7QRQTqPZqdIqkXB7k2tVOACSV5KTI1Op5BgAKs/DSGcfREoo/2lbX5g1RklYH8GMAcDWaqTkuvLlcgRQTUVtQ115aP5YXIVDS7uTJCxWElPKpXKVirQ2OUmy3WyXqRVI9Bz3AaqY77JsZiNSUqYrwRFUqt1UIWWNNdLZbidRGbOQE1GACFZeXUnqN5VvNmmrNxdjIS1EkzmaWazzS0OFAUlQsYZhFPGGt8AoSp4XVxogTK41mPQaOUaRBImgQJGWlr+xZc5WRHdLBI7YxMf2KmHEW8yfQkmZrhRHEExbufGCT0qdrpWyTeISWmmYQ44x+ti6iJjiJTr9cdlSNC4u0FrMn7IHTozRlCPTyKDdbCcASLPRodQokamkiZdcL2HDFiL5n71Hh0K0E4WG2BQyw63dbOdmqPDYBZFgQPWFvXIjCWISAAnJBu4vwc4qHk9aeS71/DUJBJNrihGjyea0meyITC3H+uxkt3VrMY7jOI7LS3c7uok+cioakGuUqNFoc9pbraRcI2elpDlnWggg/nA68Fk2O6H82OBEmDVGSVgfwYwBgLSTKDoVBSCYHJeG2jWiUOOO5nZbqxFwNY4imFwlpRxWu6XVjpQqpBA9x30YVSN2As3030CxHPZzAkU4qSkiowkQk6vVchTQ4rBscDGqIFMynPLgVIxhGE28YS0wv0vwuGIXCkhDbYVCJlOqtfX6VoqiXCdH2DJnK2I4Ekds4mN7lTDih0/2opmZyBR/KOtUU8NGNdOhUlsbfH2RVso2iUtqpSEtxxh9bF1EVFkM+uOxpWhcXKi19LEHTozRhKDS5UrUaLAQTouZyNEUY3DZ9BI2bCO2MDgc4qCi0XDeXyU4Snb3cdNNeOyCydVSym60OINUYinXqOtbowmL/dR4/rTyXOr5azV6UT6udBqNJr0RU2ulCGRK0TzVZpvdj5bmlppzT8OIUqskzEaz0YCyXhhFNK1gsBPKJ6clhlWJkrA+ygO0FCWnHj4p0t7YoA/bhiVVqMHRYjK256kVKACCSlU4ZTQanahMIUUhVo57JJzy7kBHRPSteQhAVAHamuoMTkyO2moamsPqx5R5vMMwingvChZ9TaNVojdbra3mhmodhiBJsyVsmbMVQWdH4IhN/LS8Smq6JMAgRRIka0lAXdXY1NTU1NRkqCsPvr5IK2WbxKW10uCWY1gCWxfTpP+yu/QI1pIuYQ+cWKMJQRRaDdFqMpsMoFge7GEuuV4iyj+shWwsxEHFlm38kudil6mxgZVs0MkbKyoajM1OgrBbmjaVl9sx9dpb483QHTFruaW52RYUVHKp569VSIu1UsLUYCa1GjkA4GotWBrrmiwUgK2pVqvRmpxESGHS3GCwq7UKZkyH2UkMsNPNLyucFe5PYyasD4NcpUFsen2TjQLS1FDTaLQhofSguEJKthotVKmS+aQIVahlFoMRUZQyD8LF0XPch3Sk1YGlsbHZTlGEobbeyYpdEEyKUH4vHFGAFGHZUmNUV9XW1VUS+hqDjQBAEKCcTid1Ppmfd6jGL97glaS4nqQJEhAURRGgCGNdo5Oi5t6qZsucrYiblkXgiE38tLzKXPVD0NKob7FTFGGsq2d/+IpiUmbBQipFg6+nNRziMYmLt9Ko73CjWwJbF0BRwVYUP/2XyaVHsBb1avbAiT2aMLlKRpnrGqzq0FfSl1wvYcM2YgtL82fFYRt+FcijUzhiJ9CcTG6uCY9dAGB5ZV1dhcJQXVFaUrJ8TWVfjraxsWaeKO7hGilr+daqioZWZ+wyHK6FhRcU16ikiFSlwjHwp5gvM9eUyXFcW2XS1NRpcSyksAIjQa6eWs4Ns5MYYKebV84KXxiInbA+vDCuqavVGat0cry4rlVS3VCJISH0IIhUJUcpVKGcmsCkylJ0BBRqGRKFpNJIj0oYrqmr1RkqNXK5yoTI2PtdUKlMhpJWOxlNgMbaKrtUW6GRY3JNhRarq6wjEKlaiW55VlvX4owt8/MO1fjFOwXC4ogr3Cwp26REzKVymVJdZpdrSzCqJ+letszZirhZFoEjNvHT8iqp+Q9VV6kayzVyudpIYRiCIJchT3U8JnHxVhq19+iWwNaFg6AQ9JwVwXRM+nK4dDaF/Un3sgdO7NGEIPhypZRE5KrQV9KXXC9hwzZiC4XJwvPSEFCBnlRFoZCwOEjZJT2R4arGlctnxKQRN5kbOKHPdJuInnPkyy8+VyoX33X33RffS3NtWT2p1ddokMtjaZc8Yf2VQVO17n1kQ2Nl6cwnlXQ2lZW939K2J/jmzM9nRBJ2J4nKcQwASLtRq2usNemLr3gu36vaSi+Hb5kh+YwuTC/Bw/YyaZYZbtWGhusn73TsfEZXLCcARXTbKFTCRQYcgCJslqZtRqeG9YURh5KyDdBqsF0NpzhYjDsw7dV32iRpN5TrKpqdJFCkqbGRwpVSlDNDDjN92DLDTc7Z6hSuUOzS3FC+psKo1Gk5iXNwWhp1ayooVbm2GOOkEQZUWrpBg+iNM/3cI4poMbRmbtIVX3USlpaUV2jQCnUxLlc2OPJqa8s5K+Qww4ft1TvcLgkCJ40F37xy74w4XC24Mu+MOFwbiLGuOzPfGXGYmb5lhrwz4nBV+JaBgQEhJyAOHDhw4MCBw8zELuNu5mLpvfcEbnKxy4WAIomww4g4cOD8C9u/cODAOViO2YvEg5oHIGjdhUHYfheqxdigUytxnEmsVW0jIm8+ipFOPaJ2IjYbT2LxSwiSaPafkYnjOI7LlOpNDca4c5lQhs1lMhxXajZHS1Y+TZlc3WCYnW5e+x9QRBGNLR76Sbvx/2fv6+Pbps79j53EStJEadOoLUTlpdoAawNsBtiUoUBBZQWxUdy91Nxt9dhuPLbVd/feeGwke3O2cV1+21y24e6yuXvB5c2FXcQAm73YA2YPhg1jCm/KKHWhRSFtlbSNXDv+/eGXOJbkOGmcJun5fvh8SG3p6DnP832ec3Qkny81mTauQBTqoSnWlxuY6+fJxGW6zISYT2O5coGtlKTJIEUQBsrOl2Qmx/YQBGH3x2e3aJQh6uvpOYFLVO6sJMS32nr5U15/UfF9l0nrLmGv3eEV7P0et4mQBM7b12eziYHANvzEpoRqzZ4EH7R29Hp9DIFJksgnQv29PXZB5+tbj0zNMJ4Ncda7H3V0EUDiFHdExQi612U4pSiF4lSvS7/o7UdaO10+H42jkiTyEZ+z12k0sAwBt1Wcv+suC52Zp/rsZUY3tJIQj3ACkf8FgBgJxGp+P5wM72BBr5+sUWcRzGildmzzR732rlOZEFOsu4hCeJuXs3o8dsaMYxhBdvV7PRQmcUlRUZJ7Yno7+dsyve8KzQIlYXHFayl8qCS8Lpd9LzXmiTcPIwBBMQzDMBwnuhi7123lA9vjgiTTKC8XYe+x2CJDQzu/aHWxfKlY+aRbPT7U37dD0bDFiqKuvc9G27zh/M1K1EtRdl6U5OHIwW+nLa5g6f1x6W8Lc7HYareYTAaDifGxbI+VMRn0FLM1XlgFrEw5uQZ9vkjIyFa0nwt6mZyp9CRTizWko0AbfA2BolgrqkzLqM9uMNniogSA6LXRzFa/eCrVF/V1l/KEUvO5/EMFFslTTPZJMbI5bvTk6FSIe5x10wY9QeitW3ssJiaYFAHEvEFpgZWnmFp2I61rusxoiI0XhjMuksSoNa1VjlPVF43Jiy47AM3k9nGRtyAbVhQqRuXOAgBIerMY2BkX4VJvOSbmLgIXSiJE6f7HCGbc5ttulFhFSe7i2FP2rUzvW7nZ9QQKZMLizzz3a/m1FBXD5cLrarLvRWOuOqutrPO4mcGBkOAFMFlBXi7C/rmdO6jONa5HQ9sspFwvftJMTkkRftHDZDHxbCgpAQCkBBvCKAYTQorhAACYbppQqOdYFpFJGgmDUZRxxWKxfhrpd7jNPb5YIsagie2BeDWUAzIN+soq9iLPOpx+qtfP8fE+GvQ7PWVPSqWRwS925YXt1t/cr7f3dGGoIi3NVpcF5/o9oWjA5eNxV5/l1FmcUVzXzQdUllB/e/Fhuc/lgRgcUEhqeYpVTjphMIrQvbFYwu+mA65tzzx3n7M3ZPWwHBehwQAnwonL/EKxwNIgpDj0KGY3AMDETBSWZCQgGZg1hcIy60UDACBJ/O6IQFMTiy5lLciGQoWKMWVnUdxoQJOBaBISQ3XuIo2ICNIh17adrmD34/8cKtX7Vms2v7Q7WVg8/n8K11I0QC68rib7XmqM/PooIgmSVHaYXIR9qOpZr6Ii/KIHYbLgQiyWFCQxyUZExmJSC0d+yigmIrwApCQbSVKyHerQDtJCEQAga8ydnXqKIjEAUHINJiaHqqEcmKaKPRdjJdJqX08iAGUcbq/HXvbeHNLa2fvLh4LBYPDRRz29N8XcDl80qZwXCGZ3OUV/j703ZHH1GrFT6AW8Cusu8oSKR38v97k8EPuiCiySp1jlpEM7jNY8GSgMiPHI48Bss3YRCIJZnFtPqW1tFxbUhh7F7AYAdOoZPRiI8AIAYoQdNDGmgtj17BcNAICYHOBFVF8idFXWwh9ePVR6iemOpIVvUXINOhDhIR9U5y5IKwakobJnb6IgvDNNwe4jByfpfas1m/t3mbD4e8Mj8mspaoLLhdfVZN9LjZGtZIti4Q3v0sOqlIlXHsWVFOEXPRCMZIwIG+KSXIhH9DSJqYUDAICgJGNCWZZL8rGESDKy5auSWCAAyc97dVVTDkxTxV7kRRQtzDIQjCTk01ykM98RkrH12YxIIJBQk6rHSJomUYAap5RwO3UgT6ije0bkPpcH4rASi+QpVjnpkAKFciPZ4T3voh0dSCFuKPyBx3yFWoopZnfukPUmlA3EhWQ8InQyJVtfznrRAABIQrLs90FlLRw8POkSQ9McSYvfthKouG8I8kF17oKRNC7xbMnrLJIQtzP0E6MN0xLsXrJskt63WrOuoMJEsqlEnr54LUVNcLnwurrsu2pt4uNsEuAmHCs7rEqZeEXMuiL8Qpm9mDabkiwb8rMYbcERoB4OAABispiECBthA6jsgVHlkFVDOTBNFXsUR0UxP5mWRN7n9Vd8Symv3KcmVc8FPYEkRqJcvzcMn1GrJVTzaa1yn8sDkV2lwCJ5ik0r6dpKiowkCiJ8k2C+Qi3FVLMbQQwWRoiFIqEAMKwvLSyzXjQUi1VZC6uwSZdQ604130JUmrugmLnbSvocDi8bTgoCHw/22O08Rn+p++MVRMPlct5Xf2CS3rdas7YuBT3Ms9ddK7+WomK4XHi9gux7yf2fJAqCIAjJJB9mvU6nn7R2k7KFfSWZ+OOTRq8Svfh4OMyVTJ9nXRF+oQA3WnAh5I2IFoYEAFQOB2604GLEG+BpiwFRcmMFTEk5ME0Ve5JiEM7vD3ISEEPefh/LIeX2SENCnjfhgMcXFSlGr0hLSYhv62fpPrfH4xT8/QFOgCVGMaHOuIiW+1weiPdfrcAieYpNK+nOoD8Koj5/lJckgfVsn7M9GiCqvxHKFVhSKcUqZzdGUnop4vEm6MlPome9aAAAEAxHJKH0kUJZC+vOWVq5cDEmfMrOAgBGeAHt7IC0UJ27AADWOz0ehyHgcnSZzes3OYc6LT5f/yWGSqLhcjlv09LGsmsoNkso3Vq3vf/j8mspKobLhdcryL5PYGSo/+YbzGZzV9d6hytgsHs8ToUfSMtF2P/1XqpkYXCSXvyOPoc3NrGqNOuK8Aum3qAEQ+EITlEEBvIK9arhQFCCMWAiIOnCum6ZGyugGspNS8UeJRiP28r2WUnC6Im1urxODJlkjzSyr2/TerPZbO7qsrtClNPj6CIUacm6+3jc4mBIjGQcFszj9CThyKiUUPubr5L7XB6I8/QKLJKn2LSSru2cj7r6KJ+dIUmalTAMQRD4ysv8qiT5AusXKcWhp0J2Iwix3oSLCElNfhI960UDAIDiej0qJnhRrYUPLKmvbEMXhk7ZWQCE+KCopwhIjDJAPaNZQ076PBTxLnhOzImeUdht2y5a/P0MUptAzLoGPYQiFpyekSjwSRElCQwAIPKsxepzh/xG+NbLya4tVeoZ1Si7Z9Zs0GXdhXT7nF21M0xMBm22Xa6A9xRUkK6sZ6SF6TRLkIR9nIS2QkdU4youHtzJJhnZL4wgIGo+d+EDdqsjnBSBJIZ8Pokw4XDiAjEjmG3dIBbgavnKVJzdjVm6SUhRGeDcZXYQ9to3OViT1QJdUc0tjnWTQ6LsFiMGvQExx8DNdgeDOmgjQZq8g2vcbjtkIcTMgOJd3QziZ2u1iZckRAOxjh6rEbpaDvjMCELGiTl5ZgSxOLDgnhlBzM/aUuUzIwhYW+AzIwgICAgICIiFh5M/d5Em7VUIAbGwAfkMAQEzHaLmc5eXX365NBxR1mulTQSRUzVzcYJU4/ArK4DnxMdheOYtcgHKKSlO96yTaHDZZh7V2C/yLG2gy+T61E6srGgPMWOIyTBjYqJVjBXT5STEIitK1TMn6uvp8cdnd+SaOECIb7X18nB2U7u5yxlnnFH8R9hrt/eylMMTjkaDj3o694Vstt5krWcvSntDYQTd6+qG4ZnnQHGq17X1FLRf/cRKivYQkJMQ82c2vIMFdsuM9eamyHQEM1qpoW3+KHR1reYurS0t+VgK4W1ezurx2BkzjmEE2dXv9VCYxCVFZSFy2rY1pyxvYnws22NlTAY9xWyNCxJQVSqXwv5e2qQnCEJvoFyBeKkC+KSbJz7U37dDQeweYn7lf6S/bzsAwGejbd5w/u4n6qUoOy9KfNhnoQwEQZgYW7Akvn47bXEFS++SS39kOCW1wOzJ2Rft54JeJmcqPcnUKTou46can+ENcWmA5MTIHdCTC3ohOgCAeMBFG/SE3uBwB3IcUTu32HguNKoNsm7aoCcIvXVrj8XEBOEK2fxDD025wnwusia9KZdKfLCXtrjVRqJc9P+wb7TYiJw5skWXHYBmCARRLBdlpJJftyzT5QcAAEh6sxjYGYdLLzWauxw/frwwioSSCFG6ETKCGbf5thslVlmIfDCKMq5YLNZPI/0Ot7nHF0vEGDSxPZAvE3JJcSHu73MnHL4Iz/P+Pop1b7th2505BXArqfBDxcrS9hDzByaLiWdDSQkAICXYEEYxmBByOLwGp4/jOLeltc/eV5ygmG6akKrnWBaRSRpVptasy9mLPOtw+qleP8fH+2jQ7/RU+aRUzs+ior0in09lFANkAjFFYgiDUYTujcUSfjedi47ABRyuiNXLcjHWlBoQJOnIv36vdm5p9ItXlDfo7A1ZPSzHRWgwwIlw4jIf0WXCEiFeAiCZiAylhiKJJABSgk2suDilNhLlon9FZ0thLCtnTvmaicTvjgg0RaoNVaXNGqSQ/LqlmS6vSLkWUNxoQJOBaBLGtCZzl/FsNh/OERFBOlDZnoBq2txoB2mhCACQNebOTj1FkRgAKLkGE5N5xUu5pDhGWgIhP0NikiiICAokcajiIFFZ2h5i/oAwWXAhFksKkphkIyJjMXGRgEhYHIwxRxsTwgXi+aUI3MzgYiLCC0BKspEkJduhrjK1Zl3OnouxEmm1rycRgDIOt9djr3IjKMjP6lEMEK9CDLTDaM2HjMKAKEiAi7CI2WY1EwiKW3ocOILsefYRlXMnRb9wRYUGgdlm7SIQBLM4t8Jtl+cn9LRJTEQESUxEBOp6QzIyIIrJ8IB0zsEX1UaiXPSLUvNy5sjWTQd4EdXjKKhULgqMVRkBpxwiAUDJNehAhIcxrcncBYyPFwoxBqShsmd4oiC8oyZEPqHujYCCyryutLLLJMUlIAbcDoNeb6It2/0xaao3AypL20PMHyAYyRgRNsQluRCP6GkSG+LFfYkdRoIgCIIgux4b3CdMSNWTjAllWS7JxxIiyciWKCpTa9bl7EVeRNGCICeCkQRe5ZgG+TkNhhQCpEYMpBBoJC+9K43wAtqRjxiKdaIIcvhN1XPl0015g0O8gHZ0IAXioHCv0nkJnKQxcYDjuVgStVgsgI/Eudgg0K/IHJtqJMpDzpzydRchKZVUA5VyUWCsyggI1CtS8YBWAhX3DcGY1nbdBSNpXOLZeLIkwHE7Qz8x2qCizT1F5sslxeP+fl+i1R9JJGIRr8uKTXXfMy1pe4iTOzaZNpuSLBvysxhtwRHQgaNrqF6OzyMajvZPLEsgJotJiLARNoDKHhhNSa1Zl7NHcVQU84+JJJH3ef1VvlkF+TkthuT+V5EYskDvK8ZFECWp7TS1c6uahXSUMEcSBRG+iDBPb4QIChd3BQIiZjAYDTjgA4EAYug6cyVa5UgkZ05lTqqUC0St4LRiaOWKVHYARE3mLtnC3AXFzN1W0udweNlwUhD4eLDHbucx+kvdH1fT5p6issskxSVBBAiKogiQBNbjS0oSkDQ5BfBc4OPhMFcypZ2WtD3ESb5bMlpwIeSNiBaGBAAQtAXEfZ5gXAKAC7otjCWUFCYdLEa8AZ62GBCl0FfArMvZkxSDcH5/kJOAGPL2+1gOKbdHGhImUBzylPiJlPIZQmGxqiIxJsXFYgVxny/MS5IQcG9PStLpV91Y5bnKDTIWEPX5o7wkCaxnOw9/ETZPgZoYIurfjegNGEpQBHhsN2egDZfIEl9tJJIzRzY9whFpYk5TuVwYla87kelGdcNGeAHt7IARrcncBRTmLgCA9U6Px2EIuBxdZvP6Tc6hTovP13+JwaqizT0VAWWS4mZbjwmJdJF6E23jSYsZk/aOLc8pgHuiSQDAjj6HNzax8DMtaXuIk3y3hBIMhSM4RREYAAAjGI/bFum3kQRh6Qsx/R5LyXuUCEowBkwEJF2QNCoLfQXMupw9SjAet5Xts5KE0RNrdXmdGDLJHmlkX9+m9eYCHL6oGj+LivYe+IKeWvgqEkN2pDXgZEiSCiF6HEGWnn1dleeqMMfi6qN8doYkaVbCMARB4Csv8/NGyERjKZ2BIhGA6Cm9TkfQRlye+GojkZw55SmP6/WomODFasqF4nVLM13dMCE+KOopAga0FtDsDgS0dXWzriJxgoLgudNDES+M0EngxJzoGYXdtu2ixd/PzProUSMxeghFLCA9I1HgkyJKEhgAQORZi9XnDvmN8K2X+VFb5ljPKOiy7kK6fc6u2pULMRm02Xa5Al6oAj3rtWV4eHjiXd35BEnYx0loKwze4oQkcPHgTjbJyH5hBAFRw7kLH7BbHeGkCCQx5PNJhAmHg8qpCrOtG8QCXC3feYqzuzFLN5y41AgT77vMH4S99k0O1mS1wPAsSiTjPusmh0TZLUa4CQrE3AE32x0M6qCNBGnyDq5xu+2Qf6csULyrm0H8bK32DJOEaCDW0WM1QlfXCJqH7r+/HkGg8jjEBCfm5JkRxOLAAnpmBDGfa8scPzOCWNC1ZXh4WDs+H58ZQUBAQEBAQEAoQ3vSLYBK4hAQMPsgIE4dGsO8m4W5S3bSuosUZb1W2kQQOXk5FyfUWkV6Qklc5FnaQM+BOpqiVDrEDHyYU1JcEJ7PXbpsS49q7BeFME1MQG+ie7zsiXB01huc1LhSEql1szT75t75M+ldMsyYmGjtq/5sGQwxs2Eh0GvTE8Ql13yymvJSRmPGQJUqoSbjPpPBMuuUi/p6evzxEx/1lA8Q4lttvTyc3VREfem7umGv3eEV7P0et4mQBM7b12eziYHANryGL0pPoSReC2AE3esywNifOFCc6nXpF7/9rR29Xh9DYJIk8olQf2+PXdD5+tbPPC1mvcEZdvMkZB8ExFRDAs+GOOvdj9qNjRx3eB4OImIyvIMFvX5y5l2saDCCGa3Ujm3+qNfeBfmguu6SyWSKt4PbvJzV47EzZhzDCLKr3+uhMIlLimrK41tzEvMmxseyPVbGZNBTzNa4IBVuXMqFxQGQwv5e2qQnCEJvoFyBeJmSuGKYy04BAPjttMUVLL2n5ESJD/sslIEgCBNjC3ICkOmYT9yG8qH+vh1ASnq3Wg363AqTF+6EOqMcjvT3bQcA+Gy0zRvO3+hEvRRl55UikoNi+Cbd8lakFpApzpcFWoV7QJKS3h6bniD0BsrNxkvt54JeJmcqPcnUfCkBCIphGIbhONHF2L1uKx/YHheksusqp4mSJWoNylvooSlXmM/fPupNuTThg720xZ27ek/OUYUeVQqTjPBVZN/sDUjlzlfIa7UexQMu2qAn9AaHOyC/F52SMGrlKxe4X7F3VckWiLlBj8UWGRra+UXrd+97OJeekxJt4KWZ0njWKBf17QA0QyCIYoLLx50yBpYZLOcnAICkN4uBnXG49FJh7qJrbi6MIqEkQpRuh4xgqIaX9gAAIABJREFUxm2+7UaJVVMeRxlXLBbrp5F+h9vc44slYgya2B7Ih18uLC7E/X3uhMMX4Xne30ex7m03bLuzqCSuaJ/8FE6UTDdRQoTNzTY4lkVMDCaEHA6vwenjOM5tae2z9+WGw6KOOS3bf5NjPf7BNWyC4+L+jgG/J8RBNswYJouJZ0NJCQAgJdgQRqlGBAAgD1+ZpFFlaskV5+OH0mWBVhS1F4cGhnBrJB73Og0B17aiPSLPOpx+qtfP8fE+GvQ7PZWflOJmBgdCghdKCWaQQsppomSJYoPP/PEeeQtdJiwR4iUAkonIUGookkgCICXYBM5QuasjdG8slvC76dIeKUJOeKfXUzn7ZnOaO9n5zzz9a3leK/ZI4AIOV8TqZbkYa0oNCEo3rBUII2dLsXzlAndFZ8u02AJRa2wL+KjONa5HQ9+8+rTSEOfihXO/mYLGktB3g7n4TLZrU39ukUNxKJkB5SSJ3x0RaIpUG+bKxh05A7v6J0Y9NX6iuNGAJgNwe+4Kc5elS/NaMNKIiCAdcslNNYFvtIO0UAQAyBpzZ6eeokgMAJRcg4nJvGymXFgcIy2BkJ8hMUkURAQFkjg0VUGQnyJIADczuJiI8AKQkmwkSVlMfCQgEhYHY8wZaUK4QFwAJTrmCnJ/rYiYjPkDoaSEbw9FtjEkZMOMQZgsuBCLJQVJTLIRkbGYOJWI5IfqyeEri05laskJ+fg/h8oCrSJqb9hqpzEUNdNWDEy8LMfFWIm02teTCEAZh9vrsU+1mxSKIlKuohWvy6ukiaIlig2+/vRT8hb0tElMRARJTEQE6npDMjIgisnwgESbCAAA2mG05hunMCBWnnKdXMKXOT992nXyvFbsERdhEbPNaiYQFLf0OHClzU8rEKZC+coFTjdNtkCcFBTj1ToljRG0++6HwgXc69mSG9QUh5IZUE5MDvAiqsdRUKnUTJQjOQMfeT455fAKAEquQQciPAy96tyl+L4L0ooBaajsOZwoCO+oCHyXKI8joCA3r5tEoXJhcQmIAbfDoNebaMt2f0yq4iGl4ikISjImlGW5JB9LiCRDYkO8uC+xw5ibaZNdjw3uE4aU5dEnhtv1TreDinh715uNFGMP8gJkw4yBYCRjRNgQl+RCPKKn1SOiGL7y1ipSS644f+TgWFmgVUTtsZJjJsgn8iKKYkixJ8RU73dJoijl2yped0gtTZQsUWyw/uhReQs4SWPiAMdzsSRqsVgAH4lzsUGgNxFYvkkk76Z8ulSYX55Uwpc5fxSMKJYCeY9GeAHtyJ+KYp2o0tylAmGGpi5f02MLxMmpMIV4VUFjBC9FJ15hKJkB5SQhKZVwQ4U8E+xSYOB7R4B6NRspSMC2Eqi4bwiGXnXuotFoCiscNC7xpfeFkhC3M/QTow1VKo+XrxLLhMXj/n5fotUfSSRiEa/LilWhH6FyCmKymIQIG2EDqIkhUKQDR9dQvRyfRzQc7c/Px1UvISaTOGVnI4l4NMhg/LZ+FrLhRGqLabMpybIhP4vRFhwB6hFRCJ+8tQpXkivOL1nWWHaKiqi9yi0djoqFNQtJ5H1ef+WXn/g4mwS4CcdKTZVblUuTaizJNXj+6mXyFhCMoHBxVyAgYgaD0YADPhAIIIauGbw+P68I/6//21ZlKWjFUHFfMTqCykuOSPVskZevabEF4mRVmBOkcfWjz7Qop0IepBIDly+pgp8Q4O19ydL/Dh86mPsvP3c5enQsX8Exc7eV9DkcXjacFAQ+Huyx23mM/lL3x6tUHi+vlTJhcUkQAYKiKAIkgfX4kpIEJE1RSTwXvSFhAqIElE6RAAC40YKLEW+Apy0GBACCtoC4zxOMSwBwQbeFsYSS5fPxeDjMCRN3vVxou83uigsiimJYK4J0QMacEHCjBRdC3ohoYUgwVUTKwiePTgXIFeev/sDSKblXoUGSYhDO7w9yEhBD3n4fyyGT7ZGAJAqCIAjJJB9mvU6nn7R2kxhS2apcmihaotjg9Z/4qFILqIkhov7diN6AoQRFgMd2cwbaUHHqUp5E6oRHJmff3OH48IhiXitEx2IFcZ8vzEuSEHBvT05zBUQtLjNmC8TJxYxprDaUTJdyCIYj0sSEZkryyBl43cWriwZX4OcIL6CdHTDiqusue/YMFv+x3unxOAwBl6PLbF6/yTnUafH5+i8xVKs8Xn47KxMWN9t6TEiki9SbaBtPWsyYtHdseVFJHAAgjezr27TeXIDDF5WfMijkHhsRjAETAUkbMZAXPbdF+m0kQVj6Qky/xyJ7OXdHn8Mbm1hVMlp7bfohq9lIkKbAiMHtZCAbTui2CCUYCkdwiiKmjkhZ+OTRqQC54rxpaeOU3KtEVILxuK1sn5UkjJ5Yq8vrxJDJ9owM9d98g9ls7upa73AFDHaPx1n+e2a5Vbk0UbZEqUFcpQXcRGMpnYEiEYDoKb1OR9AVB1d5EqkRHkHx0uybS5yzaatiXiuEm2A8bmvAyZAkFUL0+DTFftXiMmO2QJxczJjGakPJdCmH4no9KiZ4sUryyBl4zZpziwar81OID4p6ioARV4MmFAodOXJk1lUkaicsXkTYbdsuWvz9DDIj20IRLwy/MifmRM9oxuGbD9xbcJbUDgtdz+hUiNGCqC0LSM8o6LLuQrp9zq7akUdMBm22Xa6A91SWoa7MFu2C7JMkcPHgTjbJyH6iUtXJ+zgJbYV1ZGGGDwICAuJkwmzrBrFATX82H2d3Y5ZuEi4BqqOe519fter0hWV0Mu6z3uwjN/dbjNPelyLstX9uW/Qmlw/GfiGGD2K+4VH2MegEiFMKKN7VzbB+lrPXZlNxSYgGYh09HiN0dQVo7rvv/sZGBCqPQ0xwYk6eGUEserYsiGdGEPOELQvomRHEfGCLdvnydugjCAgICAgIiIUC7fgkHemTCSgLDgEBAQEBAcfTqecuWm3p67pSlPVaaRNB5JSuXJwwm73PKcurOHoKWfBqGoGYM+SikFNSnBUCzI3B/OStGqq2XzkvZuYECLVwQEBUQPWJJibDjImJTnPoFnmWIiagN9GuQHR2CVq9YVFfT49/5gqglcdTSYhvtfXyC3xqo+X3vlP8R9hrt/eylMMTjkaDj3o694Vstt652riqWh1zjKB7Xd0wk+cDUJzqdW1d9PZXzouF7gQICFhtckBaO10PBaPRaDgc9DpMbK8zxItz31MxGd7BArvlRBTHKo2nCGa0UkPb/NGFPXdZhrbk/SWEt3k5q8djZ8w4hhFkV7/XQ2ESlxTVROQr6M4rioMXwYd9FspAEISJsQU5AYByHXP5AROzbz7U37cDAACkZJkYOsSc51gkJ1Lvs9E2bzh/Sx31UpSdFyW1IPrttMUVLL2XKv214ZTUAjLV+DLReTXuSVLS22PTE4S+IHZftJ8LepmcqXQ53yrkRZkTKnP+FIfcw/JwACCF/b20SU8QhN5AuQLxXGR7cmSYOAzEWTdt0BOE3rq1x2JigklRuWjAErEA0UNTrjCfSyiT3pQfEYK9H/lU70SiKbIi4KINekJvcLgDuYoiH7nUGqct7tyw3oFhGIbhOIGvIVAUa0WV2yksHJaspghStYZJ+yrTMurbAWgmt2eMYlUpq3hy88rGU/kBJL1ZDOyML+SlF217W2thFAklEaJ0S2MEM27zbTdKrJqIvJrufL5BJXHw3NKcw+E1OH0cx7ktrX32Pk6USnXMFQ9QqIasp0wMHab9yYLJYuLZUFICAEgJNoRRDCaE1IJouokSImwuYzmWRWSSRpWpJVeNjx9Kl4rOq3FPHBoYwq2ReNzrNOTE7icI6fRTvX6Oj/fRoN/pKX1SqpYX6wmF3aXVOH+qz3FlHh4+rhAOIe7vcyccvgjP8/4+inVve/1IWhiMInRvLJbwu+n8YVzA2RuyeliOi9BggBNFtaoCS8RCRJcJS4R4CYBkIjKUGookkgBICTZx+hXvKy0RclY4XBGrl+VirCk1IEjSoVfvl49cao3jDAUAkEYGv9iVF5Bdf3O/3t7ThaHyglMhr6sxbM+TP61AS0nid0cEmiIrV5VixTNIIbl5peOpov0objSgycBCvr+a0JGWRkQE6ZDLtFYQkVfTnc+dqCgODgDgIgGRsDgYY65BE8IF4pPudKc8oLC+N5UYOsRcgTBZcCEWSwqSmGQjImMxVQgibmZwMRHhBSAl2UiSku1QV5lackI+/s+hUtF5oCpMb9hqpzEUNdNWDEy8ycbFWIm02teTCEAZh9vrsZdOpdTyQhFqnD/VF11kHm5pUAgHRloCIT9DYpIoiAgKJHH4OEA7jNa8SykMiIIEuAgLzDZrF4EgmMW5NXd7qsg3WCIWIvS0SUxEBElMRATqekMyMiCKyfCARJ2PlZQIBVYgZpvVTCAobulx4Aiy58nfy0cutcZpEwEAQFo7e3/5UDAYDD76qKf3ppjb4Ysm1UZARVRjWEOrrgItxeQAL6J6HK1cVYoVj5/KPBX7UXINOhDhF/DcpagjjbRiQBoqe0gmCsI7U4vIl+vOF45VEAcHAAzx4r7Ejvzklux6bHCfMDTpmeKUB+THy6nF0CHmCAhGMkaEDXFJLsQjeprEKgQRQUnGhLIsl+RjCZFkyPId6ipTS64af+TgWKnoPFAVpsdKjpkgusiLKFpQVkQwkpgk0qyWF8rasiqcP+XXXco9rFMKhwTEgNth0OtNtGW7PyZJUt6RSJ4KuSOHeAHt6EAK8c8FXpFvsEQsROAkjYkDHM/FkqjFYgF8JM7FBoH+Iry1tESUsWKEF9COPKFQrBNFkMNDI/KRS61xU15tDenMU4hkbH02IxIIJIZURsDStZJpGXb6Vf9ZgZaSkJQmpYZaNctXvCnNUzuglUDFfUMLeO4yMbkjaVziS+8UJSFuZ+gnRhumFJFXLlgqyvIdOLqG6uX4PKLhaP/kieeUBxTmpzMUQ4eoxezFtNmUZNmQn8VoC45UDiJispiECBthA6jsgdGU1JKrxi9Z1lh2ihr3lG+VcFQUi5L3vM/rL30CrZYXriBfPedPccg9/M5xhcPi/n5fotUfSSRiEa/LiqmsdXWUEEASBVGU1IoGLBEL80aIoHBxVyAgYgaD0YADPhAIIIau03RgirKwT5hghSQ1d7TKRy61xnEFriE5AsoLTmEElCQgAQAkcaTCeyNyw468va8KWiJTVRVErR62TlYbnfKABT93QTFzt5X0ORxeNpwUBD4e7LHbeYz+UvfHpxSRV567qIiDE7QFxH2eYFwCgAu6LYwllBRKdcwVD4iHw9zk6aSSGDrEybtbMlpwIeSNiBaGVI9yycFixBvgaYshl4Ly+KpBrhp/9QeWVsk9RZAUg3B+f5CTgBjy9vtYDimxRy0vbF1E9Zw/xaHoYTkkQQQIiqIIkATW40tKEkilFVpjLCDq80d5SRJYz/bcD60V+QZLxAKd65oYIurfjegNGEpQBHhsN2egDZXvlUmLFcR9vjAvSULAvT0pSe+79jqlkaty49KQIAiCICST4YDHFxUpRi8vOIwJR7FOIHCRKC+KyYDXJ6j/qEdu2J4//bQCLREMRyShdKG3clVRNK90PFU5AIzwAtrZsRjmLgCA9U6Px2EIuBxdZvP6Tc6hTovP13+JYWoReWUCqoiDYwTjcdsi/TaSICx9IabfYyGwUh1zxQN29Dm8sUlvD8jF0GHSn8y7JZRgKBzBKYrA1KI86WADJgKSLkgayeOrBrlqvGlpY5XcUyYqwXjcVrbPShJGT6zV5XViyCR7FPOCQKbB+VN9LJJ5uL1B4TCzrceERLpIvYm28aTFjElvHUorEcDi6qN8doYkaVbCMARBEESRb7BELNQbIRONpXQGikQAoqf0Oh1BT3UbgBGMx20NOBmSpEKIHkeQped+UnHkqtC4NLKvb9N6s9ls7uqyu0KU0+PoIuQFpwtDUbyrx0H57DcYTRYOp0j1MVFu2Ps2fb0CLVFcr0fFRMlvsytXFUXzJo2npOIILsQHRT1FLFySaEKh0JEjR2ZdRaJ24uC5lkMRL8zwWnFiTvSMwm7bdtHi72dmfXivHffm53XnLVtqpGckCnxSREkCAwCIPGux+twhP5wmLnS2QD2jIoIu6y6k2+fsql1VEZNBm22XK+Cdz1LVU+gZLbSwSsI+TkJbIb8XMCSBiwd3sklG9gsjCIipyy4fsFsd4aQIJDHk80mECYcTF4hFBLOtG8QCXC03X4mzuzFLN7mQE2eBzV3CXvsmB2uyWiC/Fy6ScZ91k0Oi7BYjBr0BMV3gZruDQR20kSBN3sE1brcd0ghiMQHFu7oZxM/WajsiSYgGYh09VuOC9pLmyd8/ciwF4EodxAQn5uSZEcSiZ0uNnhlBLEq2wGdGENNii1Z46+15YuiC0L2EYtcQkEgQEBCwmJxcaBubsqVOqKmOdEXvV6sjPSWqFyuerlbnLBo5MxRlSE+6EOgppSMtcMGtFlpPEARBUIytyo20KzR+0okEAbGAUCGVcl8pZneFajOvJKPBialGT1lMFodqtMLcpe20CZGIBaEjPSWqFJqekVbnrBl5gpgnQqCngo60JPJ9dueQ3hoIhsPhoINCXHZ7sIppR8XG5wuRICAWdJ7OuATNE8loMAuq0VMUk8WhGq0wdwGa/Ou6M9CRLhPMVFPRVNQTLtOVrax7WSabWVkeNi80PZWEbLlWp8zyKcU5J0/w5QLCyqK4lXuh6Cu5PiqYH0Kgp4KOtCQmkyK2xW4hCRzHCYvD5WD0I4IkP6vMjFzjisaoEQkCAkJeTF569Y/9fdsVC2YxhSUp6bFb9ARhoCz+6KQ9r1UK0ZxIRgNQ/UhUI8losChUoxXmLmOHhwqjyLR1pMsEMxU/VNR3levK2jyVdC/LhIKrkYetfIyCVudky5957teVxTnLly5lUp9qorgVeqHoK7kMaeGGYx4JgS5iHWkUIymj1Gd3eP0sxwsAwWz92yxGTFEbucwMNW5UIBIExCkOeTE5a0n9lCVdHBoYWWOPcZzXvsbj6Cve5ygWVTBXktHTHYlqIRk93waLWZu7aLQz1pEuF8wEyiqaCvqulZV7pxQKrkYetvIxcq3OMsvjj/2+eu1QoCT1qSKKW6kXyr6SyZAWTZ4/QqCLWEcaIJjTy7ptpgTrta436w1Uj5cVVbWRJ5kB1I2BgICosphUU9LRDlOPg0YRxGxxUCjPcvksUytEcyMZPd2RqDaS0WARqEYrzF2QVqzAjGnrSJcJZgJl0VcFfdfKyr1TCgVXIw9b+RgFrc7Jlh8ePjyVdujkqZJM6lNNFLdCLxR9JZchLV50/giBLmId6VxzXRa7188meC7gdQz6env9cRVtZFS+2xMUl4aAOJFiUk1Jn6iNCIqhiFAQH1QvRHMhGT3dkahGktFg4atGK8xdQDa/7jJ9HemqoKjvWlm5d0qh4GrkYauTkFXdVbC5vXVavZZLfaqI4lbqhaKv5DKk87PgLFYd6Xhgq4nuKXyCkGaLjSYGo4Mq2shINdyA4xMERPXFpJqSLokjOVVnIImiBLCCwGHFQlQyD6mNZPR0RyIoGT2duYtGU5i3zrKOdH6yrKTvqqQrW0n3skwoWFEetkyIuLKErFyrU2b2tZXFOcvHJ5nU55SiuHILlX0lkyEttjCvhEAXq440QVlxgbU7XOE4l0zy4YDbw/KG9foqtZFVjFElEgQERFkxqaaki/ui/jAPAODD/ohIFPfsVi9EcyEZPd2RqEaS0WDhq0YrzV1KMLs60vnlHCV9V7muLI5V0r0sEwpWlIctEyKuLCEr1+osQ9s5H68szll+7y6T+pxSFFduoaKv5DKkhQbmlxDoYtWRRjGz1+9ZI8bsm27o6lrvcEcop6ePIavURlY0pgKRICAgyopJNSUd6ST27XRSFGXfPtjrdReVetQK0dxIRk93JKqNZDRYBKrRctRKR/okokqh6VKtzlm54hwLCNdOCBTqSC9WY2pSQaAmAMRssOWU1QQojkS1qxULQjV6umzRSqnM4mJCtULTc6DVWVMsYCFQqCMNAQEBMVcj0SJQjZZDu+fAonr3uHqh6VprddZ49F/AQqBQRxoCAgJibkaixaEaLYcmFApptZo1Z58NOQSRQ3Yc6khDVF1B4DMjiNlgC9SRhpgWW+oBACsxTNdQDz0FAQDIjI+nxzPQDxAQEBAQ8xbavW9DRRUIiDnFfNOsn2/2QECcgryFaTi9uUtjo67kn6kX//zAf91ipa/dQF+76b++v+ON4dSJX2P/wMOf+8x3oa8XE3L6ZBW06SucdRIN5ifvzVCl/YxeT5RAr6crqJxUUaEmNOun60AAgMAFt1ronEEUY6tSo6TChUrtgYBYOCN9nreiEKYJwuYOl7KdMlmqaSSvrag+ZdhKGXqCfJWnRH09Pf74iZcF5QOE+FZbLw9nN8W5C9beVvzHc/d/91vbw5d8+rbf7Lr3Fz+7bdWBZ79x+137T3j20r567Re/8nHo68WHGQvQLyz7EQTtvvuhaAGRSMCMncgb+xOa9dN1oCTyfXbnkN4aCIbD4aCDQlx2e7CKaUfFC0nzdbNmCIiq8ggAENnRFzipquxiMryDBXYLOSvdUahCmNFKDW3zR2Hg83OX8fHx3F+jw8//4v5B5uu3ferKC1a1t59BXOz41m2XtKf4A6NvPPuA/VOb6Gs3fOIW55MDB/JLKbf0fsvx2etu+sKf9g6/9dzDX/nMJvraDZ/4Yu8z/HDZNYb3Pnv3XQ8CAEDqwH3fd97I5BZ1Htifgv5f2CgK0Mtl63lRUpGeB347bXEFS9cDSn8fmNN835oTlzcxPpbtsTImg55itha1Yct03stk4hWl5AEAkpT09tj0BKEvaNYX7eeCXiZnKj3J1CIwDMcmgBZWcUruwwQpZ0ZPzvLCJeSNl2rWFw1Q61RZa5KYTIrYFruFJHAcJywOl4PRjwiSYhdK3RKIPtbft13RM6X2QEpDzIM5SdK71WrQEwRhsG715jaflheTIm8ffO0waO2kKMTtdMt3qi5Lq9yH8YCLNugJvcHhDhRrj1q9qnDK5EWXHYBmCARRzLKyGiW3qiwNFc0m6c1iYGccLr3k5i5abX5r3WH+r/t1+JX6lcXvdO36nu99XZ8Kf/vOx67c+j+PPfq7HmblL75zx4vDKQDAcPKlFvorv/xZ/4XgH9//wYP6z7kee/R3PeuXeL7zkzdGlWclb/z5t+ze1d7dv3ss8D/t/GO/eZaHAVgckMvWY0JIUXoeAGC6iRIibK7KcCyLyCSNhMEoyrhisVg/jfQ73OYeXywRY9DE9kA8N90p03mPH0oXZeJpAgMqUvLi0MAQbo3E416nIadZn5+B8azD6ad6/Rwf76NBv9Mz4ydCwmAUoXtjsYTfTecuIW/c5pnQrJ84UaVTZa2hGEkZpT67w+tnOV4ACGbr32YxYmpdKLqFwvM7Hsk94/Qq2AMBcbLAsR7/4Bo2wXFxf8eA3xPiRJ6VF5Mibz9+ThsCEEuPyyiG+nzhSfkoS6uoIAlcwOGKWL0sF2NNqYHcHv+KlyhpR+GUSdMtid8dEWiKVMuy0mQ0SCG5VaVpqGg2AADFjQY0GYCbcefmLu/u3Zv7K3VkVKdb1qLTlR3B/zms099401pCp9Ndcr1t7ZIDwZf2AgBalhHMlResWrVy7/Oh0dXXfOZKvU6nu+T6z13YwAcHDipeTNeiGz3wEhv86/7Uytt/8aueKwkYgPmGVCo1+K89wtCw/L/WVtUd/+Sy9WrS8wAA3MzgYiLCC0BKspEkJduhDu0gLRQBALLG3NmppygSAwAl12Bicggo6bw//s+hokx8rikVKXnDVjuNoaiZtmJg4r04LsZKpNW+nkQAyjjcXo+9bA8nSRL7N5mLr7v0qO/EgHYYrfnrUhgQBWnqxgv1WrFT5a0BBHN6WbfNlGC91vVmvYHq8bKiehfK3KLmmRlDEAQ1tqAoWtRKg4AAAAwNDb0x+KYaW4p30UgrIiZj/kAoKeHbQ5FtDFmhmEwMLijZ47Zz3klPjuRpFYjxXIRFzDarmUBQ3NLjyO3cX/kSiqdMXoEe4EVUj6OgUv3JJyOvZFXlalA4ACXXoAMR/hRnSxuK1tXV1e9PDl94MQAA6Ja0gxQ/mkqBkunL6PCwcPDIkpUrdYXZx6r2hoGDR8BKoNMtWaIDAIDhvUcOvPLgxmsfLJ515cFRAFbKrTljra3n0/f+5oG77r/ryMo1l33xG1++fHU7TOn5ho6O5RdeoLDLwp8jf1E7pShbbzAM8Ii+l8QSgZz0/I7iMdcPiQAFAAAEJRkTyrIcxQwlRNIju90var4DgICC0HyRlHKd970Hx0pOyX08SUp+cEgEGEBKtOYBmLh1EnkRRQsvsCAYKZtRIwi6ZZvHZsirmqEYLnKx0rlN6ZH5y+alXyV545Ko8GhGrVNlreUc0mWxd1nsAEhclO1z9PainYxKF8rcouyZE0Amk1FjS/gvT8NUgihny/J2o+HCymwh1jvd+zzbvb07+kY69XSvx5XilYqJ/A7KbHMyIbfT09lLqKVVQhBHeAHtyKcFiuXTYajiJRRPmXR7IySlkvKiUn/yyahoVakEvcoBAADQSqBibOgUZ0vk6Wc0Go22eUleg7eduGxlKvnngQMTt+DDA9+69d8jR+uPDB/MPwRKHdw7fLxl2RJQMpq0r1yy+uJ/f+zJx0NPPh568vH7f3WvQ2VBZXT/gZUXf9z764ce3vXzK9v3/sIbhvm8WFAuW19Reh4xWUxChI2wAVT2wCg/ZVGHXOd9ybLGslNUpORVFktwVBSLyvW8z+uXPzXHOwm8gIK9kgQkAIAkjlR4AF1N4+qdKkc8sNVE9xRaQEizxUYTg9FB9avIbhCn4xkIiLmHmEzilJ2NJOLRIIPx2/rZisVkUt1gnC6jyPbvCEkqadWKoa0YKu4rJktew7nyJRRPUTSgYpYhQN2qytWgFYN4vWG5AAAgAElEQVR5Wg7teDYvbtzSfsGnrl+z+wd33Pfn5/cPD7818Oy277j2Lrvs5k+sT730wO5n+RRIPRf87XMHV155waQ1ldVraTDwyK+fHUgB8Mazv9x661efOTAMABh47vk3hkdLj+T/eu83vr1jYHi0pWVZ+xKdblkLDMCiQZlsvbr0fOFgMeIN8LTFkEvoeDjMCVWtAch13q/+wNLy8ldRSr4MJMUgnN8f5CQghrz9PpZDprIHxTqBwEWivCgmA16foP4DAaXGJzTrp9UpAABBWXGBtTtc4TiXTPLhgNvD8ob1esUuKA8MCp5RsAcC4mSBC2232V1xQURRDGtFkA5UpZgo8BZByR6XNRmJiaJyWjEmnLRYQdznC/OSJATc25OSNGW9Ujxl0pwFwxFpYk5Tuf4oWlXaHZUDCitAnR2QJAAAbTY78Y/Lb7nt9k+fF/Te8enNN9/yHz8cXnnN97/3lfPPu/72rdf/eftXr7/2Y9sePnDL9267pH3SnKN9ddc3/vvG571911+7Yev2v1659bZrV7cDAO676477XzpQeqT++u6biIP/tfnj9A3W4JHz/vtzXTAA8xmauobcf1UtvEyWrVeTnp842ICJgKQLkkY7+hzeWFXvXsh13k1Ly5coKkvJlx9MMB63le2zkoTRE2t1eZ0YMoU9KN7V46B89huMJguHU6T6XZG8cRyb0KyfVqcAAChm9vo9a8SYfdMNXV3rHe4I5fT0MaRiF5TtkXkGQRXsqTVbIGBtUWOL0dpr0w9ZzUaCNAVGDG4no1hMirz1/n3SMxSiy9F3k14trbowFCMYj9sacDIkSYUQfe7llcr1SvGUyQVBr0fFBC9WU38UrSpNQ8UDAAAACPFBUU8RkC0AAM1Ptv38ymtNy5Ytrd2F9w88/I0f/OOXv/4mzNj5j2NjY6OjR4pvMGjqGrKZ47m//xz5y4MP3D9bekZht227aPH3M7OubVo7KfmFjln3zP79+5c0NymyJfyXp2Ox2LnnngcVaiByOHDgQCOiK77BUMaW119/A8OwhcuWoMu6C+n2ObtqV3/EZNBm2+UKeBeZIvR02RJ5+pk33uC146nhGtuQOnhgMLVkCUzdhYgiXWYTksDFgzvZJCP7hREEZAsEZMtChNnWDWIBrpabr8TZ3Zil+1SYuFTDFu25Fxtqesnn7v/u1h+EL7yehrm6UNCINCp+3trSOlt3/9ZNDomyW4xwQ5GFDY1Go8aWFni7AiFnS6MqW7Klry8sQKB4VzeD+NU3UDjhO75oINbRYzVCtrQsaclms5pQKNTYiJyxejVMLQgAQDabPXbs2PDBg1qNtvTzdDq95uyzvvf9783WMyOIxYGUNCZnSyaTPvuss357773nnqeHz4wgijiekt4bHi6vLZn02Wee+djjT6xcuRKyBWKCGMdTQ++9J68tZ55xxu+feFLz9+eff/W115qamqCnIIooKkWUQqvVJuLxkRERsgWiGra0LW3r7Fzd3NwMXQQxJVuOHTsGAIC1BaIathw5ckRz9OjRQ4cOAQDS6UwqBRWGqkJ9fZ1u8gbE2Wz22LGxU6HvBw7sB+CE9kvVaJQXh7NZuA1rlciW7VibzYITDEot0NbWprbqO9+SN5VKZTLjkFjVoKmpUTOZf3DsqB46na6+vq5seB4bgxsUVIW6Oi1SeANa8+ofA63nXTY0NNzS2oK2tiKIDjqoMtLp9MFDh0fEEQxbnvvk+PH04cPi8o52tLUV+mdKiCMj7w0Nt7WhDQ31uZFj//53sRUdrS0t9fX10D+VIUmpoffe0wDQ2prfqmBkZDQLwLKlS5ub4T3r1Mk7Mjr63nsHV2DLcwPw8ePp994bXrlqBUzeanD06LEDB94tJi8AQBDea0Vb4dhRZfKKIyOjI6MdHfkN5Y8cOZo6frxj+XKYvFWOHQf2v7tyJabRaDQvPHBXi+EjjY2NTU2N0DXVI5PJvPuu0NGxPJPJiOLIihXwtdPpIbnv7RVYh0ajefddYdWqlXV1ddAn1ePIkaOZTLqpqenYsWN1dfVLlsDnMtNL3v37D6xYgWWz2XeFIbzzdOiTaeHddwUUba2rqzt46NDy9naYvNNCKpU6evTYkiXNmUxm9MjRjuVQGGd62PPW3tNPW1Vf39Bw9OjR1taWdDoNnTIt1NXVZbPZw+LI8vZl0HvTBdaxfGxMQhCkubk5m81CB04LCKJ7+53hpqam4YOH8c7ToPemi+bm5vHxbCqVwjqWQ+9NF+3ty94VhI7ly8cz4zB5p4vc6xpLljQfPjyyfDkcO6aN5e3Lxsak+jqtVlNXNzY2Bj0yXWi0mkwmk5JS0Hszg5SS6uq0Gg2ADpxJBdRoxsfH6+u00HszuvHQptPHx6QxjQYcPw63pZl+8kqpTCZTVw/HjpmgoaEhm80ePXZ0yRh8VDQz+kn1oE6r0WoU3+aFqIzx8fFsNnts7FjbOHxSPsPRN3cXAuk3A+T2w8hms9B7Jzj/g36YAY4fP57jHnTgTJIXZAEA9XV10HszQzqd1o5LR6EjICAgICAgIBbMjUdr53mz2Nzw6+xagnAG/in7JhXq2yz7XPHDmUG1qT3ROzdu2bXQ4/TOP3dt2ODck5p9/8h9tTg8Vo0P33nhro1bdk6D2+RFd0X35B2a2uPcsJF9fXhB9D2XmAWQG7f0vfDOaCHiO0fnT4ymE5ESdg/f5dhIEGTfw8/l/2Bfn1/+3xNaR0zCBkegmhMXazLOIl4P79y87iKCIMiL1jrvZKckc2r09Tudd+5ZvL/pvnPzOmcJ/1OjexwbNvzid3fMJLPm89wFO//yWWzuH797qO2KS//x24ffgb/2h5j3OO2Dtl/8cNM0TpAO+/7z+/8cXpDkbjvzmideHOB5nh94+pYP7v3y5747D8v3tCOSr85vPvtc4/+9mOjrqsv94WLeP3/9z/M8zz/uscAEPHGMvhN1fv13N9/1GM/zf3vqV8gzP7x91wtTsGXk7b//491F7JMNN1/8j4eeKM7h3nn5wdeWXr3x6i/PILPm9dwlO3vP21Kje3b//sAntzrOOfzHJ19+J0ct9s7utRetXbfhs/e+vKfIN6UPAQDgneidGzZ2d2/ZvHHDus2OO3f2Ozdv3rBu3ebQnmEARkM7+9atXbv2orVb+nYW5kblTeVuU0aVVxpS4VwLa9ducd71zugsVO6TqsEhc0hqONDfvW7durVrL9qwpe+fw6kKrs7drcqOn2NoTq6IyTsv+275z4dytNmwsduxZcvGjRs2bul/fTSlyJaV51xz0/lv9f/o0VTlQMxz6NqZrT+4Gjz/4At7AAAH3nryyxvX5buZ32FslL3TsXbt2nXrNnZv2eDY+UKFJNoTvXPdhi0b11200bGr9G+5W4rffrR7W9+WjevWrV27bsNdodcVIzI6/E+VYxS8vf3rrr8d+Nt/f6Hn9v/6bu6PasiczWZP7oZ+O7s39OW7NnrXlo13RvdUl5IKjpWxdy4wHxSIUqkR0NjW0d4KAGhpf/9Xf3zn5gtOq8C9jY5dD93x47+9xt72lTsX6w32+9d+auVbf/zrO7nZS+r5Xc+cf/MG6bV8ZslTuG/jxsDrwwCkWOeGdd27UgAM7wlt3thfYaRQT08wV9wD9RqtduzYWMNs7AmWfOmBfyAX95x3wWnrVnh3PvOJC27c+5cf//T59z3w9E/bR7mv3rhlLJtJp9O80oe5Fo6NZw8fkL6w4xekbu9Xr9v8z6/v/M1t5N9+86Wf/+bFMy555oe/A/f8/qkzdKO/ua37695z7rn1UnlTmfEsANl0Op0G6XGQzZZ88tbfvD/+K/brpyKrdKk//OjWr9/9zD1fPSFdnkw6U1/fsGTJkjn4kVsmkwUgm0mn0wVtB/4PPy5zSP/aV4Pvdt0X/Gk7GP3NlzbvfOaVz7f8n5qrAQD7X/pd2fFfXJ4FIFv0WM07NT6u0WhGjxxpROZCGVXuw2JPM+PZwwekT+/4maE99cCXNv/8T//64vIny9ji/mgWAPSjfa69n3F6nzV+3gCyAGTH068++TM5M+egO+l0WqvVptPpaiKVHs8CAMbThc5r2y48A4kMCpmzsmOHDm2+576rV+keuM327Xs/9NNPX8r/5e6fPo898NRT7aN7b/vU5rHsePES8iT65uXZQwfG3E/80dDe8tbfflT8+9Un7yhzyzcvzh8JnvrmTwbt7D1Xj771l5/7X3z3qrPbQXlEXnlix973KRwjp/09t156q+v251//3+/c/YPVKW7vp/73O3f/gGjRVnbL8ePHm5ubj6ePa+Zk9pLOjB/e89RHLtQXPkCsP3vY9qnLf3ff04euOhu89dwzB1Z/5zws+dL9iilZ2he5B755cTl7f7CBqHWPEASpr2/IpDMn9ye+aOflWz8dvPXqS1decMXla7s+wlxz8bntFbhnaG8Z3b/qidd+/70f/QemPWm2S2MSAGC8Nj8v16LnWT4EHv3TK1d9wjA6/NKjr7V9+fazM2+pjoOfXdv28HODGzrbw/84PCb9+V+HPiY9F0TXXle0TT5SfHLkHsX0nBuMj483NiL1AIBMZjyTyZz4MsCzv/rjGR+5Hauru4BhDn/u3hfevmr4Dy+/33IbVpcBbed+csMFj2fHM5nMq0ofFmzKtp1jPLutri7VhK888zwCy2QyS5ejY7z06lN/f7/1W51NdRnQdvWnr3zg/z2d6f6QvKnx8SwA45lMJgMy2SwAJZ+89odnX/rLa59hHgEAjI0dWnn+vhPs9djYmFaraW5qOnbsWHGXydpFCxQ6loPcIVi349tbB6IP3/fKKy/+6bk9779CejWm6moAAHa+tez48WXZ3M+ncpeqaY/GxqTly9vr6+uPzdLUeQY+HM9mAchmMpnx8ezKc4xnt9VlMk2r8JXSYfG1hJwtKACgue3cnu9+7N97/+eynQ4AQDaTUWTmHPSlQdcAAGjQNRw/flyr1VYxbwOZTLHzmTEApPHs+Hj2zEtuXtvZlgHg0k9c9pt7XslYP/Tq75/9oOVbWF0daDvrEx+75IFstugyeRKNX5ZdecFlZ7c15d1Y+FvulvGLQO7bI+QVb9359Zvf+PAN19/4mS9e21ZCtWJEVqgco+jtkt6VdVMVR48eW7ZsWV1d3cGDh3S6htpP07NtZ17z6IN3Ei26koVqZoX7jpff/ijy7MONa288valOp5KSpd1Rduxk9tY6eTOZDNraqtVqxsbGal36pkLdWmv/Xzf958CLL4b/9Afnpjs/9J87rnhRlXuZTO5udlIdmHuMZ7M5neRUKlWDnf3qLrz5hl9+5/G3bzh/OHz/2IduOret7mAhs+QpTHyeeveel942dAgrN2wYe+G5N98Gkb2mTxNFB8lHihUfVE3hOcCRo8dWYFi9RqM57bSVb+1NtpzY1pyj775w71/2vPaXf7/sV40AjB0+LP069NqGLADjeamLjC6bHc+kUqmM0oeFu5NsY7YllUqlUsezAIyn06lUKp3Jgux46VnH0+MAZBWbSmeyICulUqkUSB0bk6T8J9lUKjU+Bj78hR/95PMX5crGaEp3IhocR4+NrVq5EgDQ0rJEFMV0Ol1Xp61dtI5nsgBk0yUWyx3yauTH//GD+A22jaZrPnWa8MZz2XQFVwMA/hX9WdnxOV8VPVbLNYOMRqtpaGgAACxbunT44MGmxpovvch9eDw9nutpOpMFOeIBkMlmQTYtZ0taiACQTadA54X/1n3Z579550OrwVgmnQZKzKz1Wr0kpXC8EwCAdXQkk/sQRKepuICQTmfyfU/lVtr3Jd6SziPa06mJWKcz2cZsPq2kIm3Gs6U+k7vl8Gv3NGbbcw2nM9ni33J+pjMg9+0y4iMPPmZ+Of5s8Imf33P3fXfd+4NzCiN6MSJqxyjWgVQ6ne9d8Y+KEZCkVCuKajSahoYGKZXKZDI1TV4AQDrngTLDdKs/chF45K8xlN274RvvB6nUqyopWXqaomPL2FtTBo6PZ8fHx5cvXw4AwDDswLvvzkHyquFf0QceHyZvve6DxIWXExdezlxz3pfdj6wlVLmXAiB1PANq7aPKY+WRo2esxgEA7cuWDv7rzeamJq12llf/lq3uMoL/Dr/26tvsG9dvtYNUqphZ8hTWgX0r3v3JX//aiF5hMYt7H/xTGOxd8WV8SdFD8pGiQgrXfr0509TY2NBQX39sRKyvrz/7rDOFofe0Wm2ZSln1eCX2kHSB/dnffim3dpR45KuOnz28+bYPvv7Lxw/dQLan3go++Q/NrbrGpmb9NR/8+Y7yD/O53KAFGm1jU3NjXaMWgDqksbGpWVevBdo6Pf2hn/seF64lV+tSsV2RlR9yKDa1ZNmKsXcHjmXq0dSbf3phDzDrdA1aoKlrbGo+75oPvu7yv3KzwdAOHrz9c8HVX/vfGT0zSqVS4+PjZ6zGize7p59+2pGjR0dGjtROk0LXUAeAVtfU3FiIj9wh70S8Z2ywf3nzFanRNwIv75HMugquBgC8E4mXHZ/zVdFjNepLSkotW4YWNShaW1uam5sOHjpcp62rq6/h5uJyH+oa6nJ8myAeAPVaDajTydnyPx+tL5zezDi++8cbP/nUgaUM0niOEjNr14ujR442NTWtWLFCU9gdZ/VqXBRHjh0ba1a//dAh9QBodE3NjU06kBr+0y9/9ELj5bdeeBZIaA+8/PS+zCZ9C3jtqfjqa3sam5r19Id+7vvjoRsM7ak32ODz0ie6iz2Su+Wbl+fZ0pjP3/zfcn7qGp7LffvSz279Ndj8w1s3XXwxOfSpb4qZ+pIKkI/I31SOUawD2mO6fO9SuoluqjznzYxnTj99efFmdzXeeezY2JEjR3W1lOPR6eqUDGu++JPX3vUfdyFtl9ved3qjTjUlSxml4thJ7J2SgeMVhSe16jO5o0ePoW2tzQW158ZGZDXeOfTe8ImMHSc0SK9sevJb7tUrvvuxK0iQGo7/4S+Nq9fr6SY17jUCkEYaAEiBuno1ktQOqVRK19CAYVjxTmPN2WeNjo6OjaVmmX5NZ234+Orv/+oeRPqQVX9Wo24is5TGQRP1PuGHvzj8ZW/feanLXv73u864+jsEtlSnPlK85PtveXoODw+3tLfrAJD/MTurfelMJpNZ3rEU0ekAAPW/+NVv/+3frBqNZgXWcQIPAPY9+tvXr7n922cV9OEu3fDlc3+45YXlv3Jc8tPPXnM1WLryzJVLVzQgaGuL8bqvOV7oKfsw73BECzT1La0t6FiTFoCGxma0taWpQaPR6Iw3fs3xcs/nr7t6DIBzr/niD50b0EYgb+qcCz9hveDzm9ZdvnTVhZdccCZoQHJtoq0tH7jua9/7Z+/XbtwwBsCZl1p/+B9Xoa2zJuG0pLl5SXMNR6yRxvoDrwXo8/O/q1x5wS3xJ8odgryZvc/2jWv/tPLMM858/yXn/uMV0XiLqqsBAB/+fHfZ8U3naoGmvuixWnVGtpNfXV3dHIh6yH3IutBcTyeIB4BOq9HWI3K2tLz9ONBompa0oI0AtF767btufe7Tfl1jsyIzawd5XDQaTVsb2taGViqajQ2H9zx1/Yc+CAAAALmA3uT9Rd8HlrcMItrGRvFHX711bGxs5fmbf3Dzh9FGYLzxa/a/f+WTH75i6aozVzYubWtvLV5U7hbw0t+Lrit1o9wt0vP5Iy+95Sv/93knfd83GhuXfth2+7r3r2qciFGee2rHKHp7TEI0QNO0pLmlIf/HtFK7qanmam6pJl2J/wEAYOW5N8f/tA298GOXgLsOb77xnOUtFVKyNOgVHFtkb+2SV96yVqs9obHjBO0x3eLblrmtr7tvzwEAkEtvuOXH/+/m89BUBRehDRec0/gN601fffjJHeehJ1/Fr6WlpaUG4TJ85LNS/6fP/PYDOWoVM0txHLzkuvPH/rD3cv2KM8DlZ4K7zr/x4o6KI8WlX1NIz89cSn/2sUc3rumQ/1ELv2m++dP/tW+8XqPRAAgICAgICAiI+Y1sNltvNF129CjcWhcCAgICAgJiYaD++b++gpvPhI6AgICAgICAWBhzl6tWazo7O6EjICAgICAgIBYENEePHr377ruXLVsGfQEBAQEBAQExH1BXV1e2+c34+Hg6nd67d+8XvvCF+kw6vW7dOoPBAD0FAQEBAQEBcdJxaHjoX2++VbZvZF1d3Wuvv9HW1gYAqK+rr4dugoCAgICAgJgPSKfT0b89/5H118i/WtLcHHvueQCAdvwkbowMAQEBAQEBAVGC8fHxY8eOKX6VBdmcCKhWW1cHPQUBAQEBAQExD/HQ7kfkH2pffOZp6BoICAgICAiIhTJ90YbfeAv6BQICAgICAmLezlrKpi/1I6Mj0DsQEBAQEBAQ8w2bbrpR8XPtVdZu6B0ICAgICAiIhQLt7ju+L//00Jtv3nHHU1tufOLNsUmfj40N2WUfTgtqLZ90vJl4ZcuNDyUOpeVfnWCv/+xlDeb7ovtzLY/dcePOK7dE94/V1uYTQfLl6EMPRas3cOzQm08//dQj9z0x24aU9DS688ePvFL6yf6hl8/6Tr/9jaEJah16846nn9py3xNvyswYSw/ZlT6vlrTqLZ9k0u5/Zct9DyXGlM06kV4/8fRDH3nkiZ2v7M9d5bYnHvrII8/Put/273/Fft9D0YL98phCQECcivMSrTaTyTy0+xH5f3977u+5Y+p+//BvxCPHVq1aVXpm49KlH/7wGeDN4VVmfGnJ/i/19bqLzafjHboZ26TW8knH0lUdS/cPNxrwVY3asq9OsNdLW8bfBPVDhxo//MGW/a+88sRos/nD51zzweaa2nwiQFd0pN4+1LFmVZXxqf//7d1hcBzXfSD4P6mW8cqYkM/UiGkxoNy0QLvXxq7aITZq6bhSb1aOx7Ec9V68pd7kg3vvw3kuVYnGV+VjV11yNdn1LeYud4VJbao4/rLqnC/F2RIV9JXssDdkzJbIFVoRFTRLkNAUYKFjIESHGBGP4oB4MEec+zAz4JCYGQxIkATI/6/4gXjoef3evxsz/3nT039CH3/8cWAXE319GzqQlRfh2M4e1dLfFsn1EQnbf3E0mEoN/tpgon5cCKEHH38c2EWxr4/eOAxh+2cG+/b0ffYWj2CHnu/xSZtI0vJFIvaJQoth3c6sE5+5xumX019M1vYyQK/xHZK6i2xs3BKJZIKfF3ZLfcL2lscUIfRg5i4ffPDBt1745pe++MXav75f+ZV9+6Tav7//+5/v3btX6P3co3DhYlfvosKpghOFfiVbTEmNJ7HAPWNlx5W0ljWlyA2s7BnZ1HLp/sgL8k5MiMB5RTVUQ6Xt37WXLMPhKS2f6QfOCukfe6Li5AZabuzkjmbdiqokWFyhlBCAlKWlJBIHYc6OCBEAQE4pppasD885k7ejVFoO3BgIKPqgFIU5e1aSCBBCoELl/ky6n9TXV5idPUGIALyiNMbcctYAwKJZuxBxCgA8CplmvWDIbZ/ZRVmS/CjSaeiylEbDGADgzo25pXIc+sEsSRDOy2Uu6i8otUbPG1d0vY9UwjNnxiNI6QcTAlQq5eD0iTIHgApJyqoiCfWDNRuciSqkdtyYdPCFgWTbWZeiIJgqAUClUulXtX5K2g2jQzsAxKHjUy1Db9gRERIKTcqJtV9NWWmqEEbhbCX77VRtGsHUGcsbVwa1rCJFU4HlnZEVLTfYH0VBPoyJIPBKRR1Qjb72Jy0vWUcd3q/l1X6osMKPf+wlFOf5Nift6aPZqYoqJli5QgkhAKmDWoqS2sJDLoiIIACA3K+YUhIAgvBMPohSg3IwFYMAijxo9FF/3M8FsxIlIBACFZrszwz2EwBeYbZ3gggCVCpK05hXzxoAGJu1z0ScAACPSkw7+ILR5vDRRILHnPPY/H9dXTdUzmkjcex+zO2iF0ZBIYyJIAAQWqlo6z+mCKEH1rZt2wAAFhcXx8bGqi1cHRkanV5au3Fs5NSRicvVanVpYW5oeHKpWl2Ynn750MTSykOGT43OXe3QycLExNCRuWq1Wq0uHRkanViqtjM3MTE0MletXh05dHxi4erCxMTwyPzSwvzQobGFxjYnDx8faeri2NCr3xlu7nJp6OtHRhq7nzg2evjkQmPL14+MXa5Wq9Wly4ebOmw568OHrrdMj07cOMEb1AY5ffKdoVfGhg5Pz92lMd9sZuz4e3OXa9NZmLu+4cw7p2aWaoNfeu/4O5evVqvVpVM/OjKxUN/d/MSpd6br279zfHShMdGFmYmZyyuzvjpx6vqvbj5pLs8cf2d6jWG0aa9Wq6OvfOe7RyZanAzzC0urT9pTo9NXW53MN7aPTZw6Mn+5Wq0uLc0NjU4uVasLC9MvH286aUdPjV6+2qGHhfmJofcaJ+2p0Ymr7U/a+Ymhiblq9erI8eMTS1cX5ieGJ+ar1erS0vzQ8aZz4J3jI/P1/R879ep3bv47WBr60ZGRxownJkcPTy9Uq9Vjp14/Uovb1cuHj990Atw85sPHr/84PTNx4wRv3NnS/PDo9MT0O4feGR16b25iYrQ2tnWOuVXcLk/XAl471C//6Mjo0tWOxxQh9MB59dVX+dKVlX8fl+ZX/r322mvnz5/fgI9tZK3fLcxySw7dKTk1SADiOI5ils/VP7dmMVNZBdp/BEHlftnxA5YUo6lY7pdJ54VoAQCAEmi8EWRxTNTr7/JkNVmMODR6IZSmjf7mLkWlX20soUhqHysy0GhtiVuutROBAHS+4IOJ4soyjKTK0lpREtV+lnfVvE54dE/G3KcchHDqTFSuQIXQfkXs+JGB2N/XWOegksTHGUgUAHhCXPmkj/bJtOOUS9F4MBUTQjhnZSJ3HkaH4XHGG4++MaRJeusnrdTvnpnlB+VwakruHyQAcTmOyix/unHSlpnKK5Bof9Im++XQD3hSZFNxsl/u+JdUW6UAQqCpBAcrx6Sv6RzoSxYZhySpHdb0QH1Gkh8AACAASURBVP9Nfwei2K82DorU18fGGUiUCFSuNQpdnLQJcWUNRurrdNISQSCVcjjLdEUJ/NmQlsU+4RbG3GIMrET7Gie6QPX+5EYdU4TQA/S50rZt1dvsglBRoyUvjP2IajIBAFHq05T+jHXQsg5a1sFc/gW9cz4CgmaIbnHKLZb1VLL54yQ773trXSVLRZH7s2xlRdovSVKn3cXhlN/oM/JnqXwrT5c0ilfGxVkpaPzQbsyE0Jxj6I2B3ekxcxba+bwXrewBZiMmygODqqqqaqI01RR7qFQAACoVzhpXTZbjqdkSX/l0jDReUQiLVy7IrfBSzHj7AUwFpYT2/PMHDx7U1IFE4zW73TDaDg9AlCXWNJENQYiokZJXin1GtSQBAJH2aWJ/5uBB6+BB6+DBXOoFPbnWSTsguuNT7nj5phdgzku273tsrfM2IfLZpnNgtiTRjudAacpv9BnNztL1v8xTFq9cNst5KWga4c1jFggpz3rlpJxIyrTkxZXa0NY75hZjoEk227hUvcKccO3L1iO/mMsVQsbx+RohVH+K8q9s/9yqVtf2vbAcerMiK0ti0kgrEgHX9oO47Ds3NNbfful96bSnWanasykR+wwtzFonAAilwJhgZAYVUWjXc+3NvRw5nnrQbL6mJIys751IUUkz62/DfSd0w6SuDfIodr2SIVV8Z0pPqaZRymZcQgSAiqwNmo1UqVg47RQjEnqeSGRN0dUEAFApGRa8DAjAOZHlbLp+XYvthJSIuXR/5I4XvZC7felUst2sjYyYs04AqT8d6+mBdmP23NDxBJGqhpZkUZTLBwHv01MH79yYAYCFnvU9K0U1zaxfODIb+ONTiQQhnJcTyYH+RpCTfaLnnZgiQoVzVmKJWE6ycBaEsn8iEoggVBJJebCRKg2o4ukTJ6C+iJCUBwcAYCrwo1K5FM0meJkmkgODChWAJJKU+d6JWUKgXC7FMYRSUhYT7YbRrh0AJFUnRZ+l1c6v1W7ge6VyGM2KvCwlksZg/SIdN/CDctkPb26X5b70jz3tYOOkTfQZUpg9cQKAUAKMC4Y6qCSEDj1TKsnM8foOmjcuurBSZP3XEykiaYoIAH4YuqWkLg1yFrtRyaAVP5yK+pMSSZoDpazrEkEAqMjSoJkkAFA8c9oZj0jJ8xJElhS9L7Hyqh+e8TIgQIWTpJwdpKw0ZYchFcTcYH80NV6MQj7Vl+5Ptpu1oYq5xuGjJKkPDrQbM4AAPGaSQgHkPhqMxwSE2kHvfswt40YTki4GlusSQeC8whNQPBNqBwc65OFO1rIhnbbwOhiEUN22//TDtw/+2mcURbnXI+G2FWhZVSJ3YUehnlO21Nr0VhzzRvLymUizzM4fdN2T43Ii0DRVEu7OvkL9+QfuHOAs0BXDcLzNd/QRQnfK0aNHv/XCN1d+XFxcvP5y8MabTz/9tPDo0jGAF+/tk5NdGA/CWT9KSDGX7nDy4heDojcV5Lhp1peCNr+tOOaNpaWtINpMA6ow+8x4UJr1WUIq8/V+bnIr58B4UIymgtPcVOqrQQ8IFvlUzxqYuCCEmmwbO1YE8UubYN0FIYQQQmjtdZftTxx4EsOEEEIIoa1iu5D4PEYBIYQQQlsmd6lWqxgFhBBCCG2Z3KV2d93VNm1dNF4pFc60uOXLbdbb28BZB+P5XODhuYUQQgjdjtd//JPXf/yTn568+SVVAGidvNAEFXsTyiasLVIB1qpwLhFoNnXwNr+FsxGz5hEDQ9XwnEMIIYRuR+2K3eZrdVdyl9afGd1UF61dKThoU4atZcG2dp20rIHXslvOmX3Gd8Myg5gCSH0DhkShTeU5aNNzHIf5YJYmCOPlmIt2U9k/rAaHEEIIbRKv//gntf/8+r+8YUVAuHbtF60fIdCs/gJt3ElCHVDUIJIPPq9TAgDhlG9HybREAUCRB41SVCwJhdTzjeLGJXucZ1P1O5Z6Z044iYN6krTsxKAsP0VyqRQBAKg4vu9TVU0Iq7sFAEKoOagyYJmDN1ROocl+66DknD7TPAPGopY9R/GsoqiGmACoRHG5w6xvRSWOywRzH4QQQuhOrbts397T7jE31UVrWQpuJaVoLsPWoWDb6k6Y0LYGXpfV3dphbarrqcpBCKcKUZlDhdJ+U+w06/UKppxAEE0BTzmEEELozqy7jL9/9mGhq/QgLk35bKC2ZBLNztKk3G5LmhB5MMvkehYQzpYkSW7XiUgFTUym1a5zlK7TApH2tezZj5giD6gAABX3tA+wxi07I79Y9JieNuUubp+qyOlUqRBXQML0BSGEELoNbddd/ttpX9O0brpYXQqu1r66DFu7gm0tOyFAW9bAa1eRjghUJaF1IhIJAQ7q4KBGScvKc+2q6/mBX5xKiIQwXhaTA6k15o2l4BBCCKFNZNuVK1fOnTvXRU2ADSkFt/Xqya2/FBx3T2epklXxgl+EEEJo/dauCVCpXOmmI388KEbj2dN+UL71O6hsSCd32fpLwRFt0IxnAzz5EEIIoTth25Url8+dm8JajAghhBDaDNZedwF4CMOEEEIIoa1ie7t70yGEEEIIbc7cZRtGASGEEEJbJne5hnWkEUIIIbSFcpe2haTvogoPg4LX5VePeOS9nbOO6ZlL/I4MBqtAI4QQQps6d4kWNsHXlTkss24zESJpT1nZflW6Q0OJGBgDGp4ZCCGE0OYkfHTx01+5i/tbDJx3bb9HpMssXmTKNwpmhUXjhXzkxMsQ9ADsVA1ZkyosfNMwP01l/2UmBTw6m07PiKaeM9p1e8mz33UCgZAK53uMjNyU2Sz6hT/XMvsK/jdM/B44QgghtPVzl19/oufcubu3v0uBv9vMyIoIwC8FMQAIVBpIZ5YhOmClVkoACVR+Jm+dDUQBAAjtlVP/ItM2ceGR965Ln83nBQAAPpnPn5cye8T6bW17ZO3ZXG6nJnU1PqwCjRBCCN1rK1UYb7J9+3YAEAD+8W6OZo9pgeMGXvwp8B4ptbP9UgiRU7uc/AUm90buopyS2ycUy3HwSRy9mwsbP0aPMQ6N3EWg8kBG7nJ4WAUaIYQQuucOfPXJlu1jZ98DAOEnk9f67+JoznvRbt3YAwDAp3N5AAUAoHVeQvYaytmi2xvF/dlOyUevpO5V5CczqZYpR4WFoe3u1M290tpllLAKNEIIIbTJCU/9ivjxzCd3bX9zdj50xV5Kl1ncKxv7aoMg0h7qvGl5vZQCgz3pdC3PIJK2KzJnVGugKbmZtvMzYXzR8yMW7xBlOW3uFFVZc96yLADaQ2GZETmT3t1Yd1kOvTe/Z+2j2l683gUhhBC6D3KX5Ge3fXwX93fAtls1k71pa2+Ldr4M6oHUDTnHPjOzb9V2vYr+rKK33GOvmv69arr7ERKIY84lrAKNEEIIbc7cpbo5703Ho/FC8ULoz0Xizpjt7OLjng1CtEHTjQKQVTw5EEIIoc2Yu2zbtilrAhBpIGPdmz0TWZfxxEAIIYQ2qe2fXsOaAAghhBDaOrnLQ9uxFiNCCCGEtk7ucvKjZYwCQgghhLZM7vL4zocwCgghhBDaMrnLE4/cJ7lLhUfvZjJvWtbbudxkEDe1h8dvLDrdrhL17VeorkR+bFmzOWvWsmbS5rwfd9zYi3NWpGeW+R0PThQ4pm4EbQpech6m9UzEb2gpFDyOfx8IIYQ2H+G99/7uM59J3AczWQ480DPPrqpbJBDpmbzV23S7FiJpT1nqZK5w05bt2rvFo4/zwedyuR4CAMDdfLlz6CVNtFR2y7tbD0nRTS1s91tCpGzeEpvvaMOBMUxdEEIIbcrc5eLsvPiFLZ+7fOwVz9rFee5XfEkQla+YqdoLMQ/ds4530efPFPM7b/Vuc11Wor4aepBK9TT2QlKZlR1eDZzY9rYRAgAkZSa1Tl/CbrnxFadwwfZ2pPUrbgAEPqund6lSy4f7xYxl82whp0mUs6hgpX2aLuZ0ziM7axFCgHPFyBiNh7PQLThe6PNsMS/Vsi4W2YW868QMAgogqYbRyAgjz847ASGEc642dYIQQgjdvdyF9Dx8H0zjEc14irBJnlJuXHchcuopS5u8vbWNLitRX+P8IdoiP7rGwo+L7LF6mWu4XLCYaFG59d322m38WT39udBbCMnj+dz2jsNQ9LQeRarICxlLzWY1TVNUrfYr1bQMRQQeF7IuU83aCKicsizNaQoRoZKZzjCIMlaqeT4s8vIuzeXztQzHyed9KaOKeANihBBCdzd3WeLLFMPQOUbdVaLeTsinMQMQb2r/NA62qepKbUeiyhcjBm1ylw4bb6dS0khtX2sYhEgSuEHIAmDcD6WIKDqttcu12xMTQgBu4QMhFgdRHOUb9bpZHKlN9boRQgihu/S6vFuSMAqddVmJ+mE59VCxyFWJUAIAVwNnEVSqiA+JStX2K7pcy0i4H/ZoertO1rVxDWdh0XYl3dTqwyOSxItFX0+nw0LRF9XULWQXrR4iSqqmyOlMi/4iv1j0mJ42ZYqpDEIIoTucu3z5y18+d+7cVp/GBacw7jjzPFj2pR5ZU/R6NaJpO38hjuecpqLTpFUlalLfuGV7t5WoibjL0uZz2RIAABckLZkWAWA7lR8xwrlMZhshAJxo6aRMAeCSnb8cxtzzH2Zxjyh/Lm32kLYbXyzkWNHbHmbLIiWaSdXrqzss9KzvWSmqaY3hiRINisSSZRDDQNQJAAtd23EoUXLpVOQWi57DXTWdkgHAtfNBHPuOL7JYEmUjbUoECJFU6liWJ1IKDNR0WpMoEVVDc7KWBUApBcaIkUkrIgHgTtayIZ22MHFBCCF0x20rl8uTk5OKomAs0K3hLNAVw3A8UxExGgghhG7T0aNHD3z1yZa/Gjv73tNPP719+/btGCZ0O1jkUz1rYOKCEELorhAwBOg2iUq6mMcwIIQQuktw0QUhhBBCmLsghBBCCGHughBCCCGE17vUnS/m33Xga8XMTV/z5ZF3tuh2WVWAx/7ZvLMMAADLcbQrnTuwzrvmtxxGu7HVVHh40ij82m0UPVgXzqOClY8JoZTKKVNvf4kui7xC0W2uNoAQQghh7rJh9hjmxcBZ3b6OAo08ej/r9eeyj1ACADx054FuyDDaja1+CFcVm7yjWOCBnsmtVSEBAKikWZbq3JVikwghhDB32WIuefa7TiAQUuF8j5GRVQkAKnHwpplZlOSdlALnuxvtH3v2+24IABXO92Wy+xp3y63w+P2ctcgAgPfI+gFTE9azx8XQA11/pHFjWSKn9jY2vuAU3rW9fWn9ghsAgd16WlaldQ2j3dhWF5tsO2vXPuuFAvBlxnkY78lkD+j1m/p0WWwSAEKvWLCLAfe5LxFRMc0UBQg923ZDAOCcpzLZVMe7D8eBk7d9KlLG4pgpdsGstWOVR4QQQt0ql8tjY2PVrWxp+uTfHBq52vjpw+Ghf5hbqv3w8+GXJyYWqtVqtTr33qFXlm584NW50TcOn2z8tOB//cUPp2sbV0sjQ2Mnp1f28OHQMFtaY49s9PDY6Fy7QX409NJfDa88ZL3D6DC2FsNbPeul6ZNvDB+7Wh/8yMiLQ82huLow8d7w8M8b/Xc2N3r48A17bxrH3Oih6xOpt40MDU837Wz0lUNHxubqAxmr97MwffLlQyNLKw8ZHhqdW6oihBB6IL366qsfTX3Y8t9rr712/vx54T64N91yHHwSR+82agQux9FjKzUCCdlRLxZIBAqfAgDAx17xfTfooXSZRYv0erWgXiW1p7FmsFPTpooRtPlkpOUedxLyacxrKx/jtvtJHIJsPpvW6gtcVHrSSDUv5KxnGEr3Y2s560oc7lD12t6JqEoyu2Hxrbtikx0WY2w3oJQyFsV0jepLqmmB4xa8mAOnUqq20INVHhFCCK3jM6P5mZmtPodeSd2ryE9mUt18AMYj9/1QfCaXEwAqsfdW8fqvFgP3fGjsrxUb8vweWV/fHrkGtruopXtFRbGURb8wyaWNGkb3Y2upR5Q/ccKKKgoAPA6iMG5OVbosNtkSi1w7FLO5HAHgsZctrrG970WKbqgAANzN5QEUwCqPCCGE1pW7zE1P9/zyL2/tOYiqrDlvWRYA7aGwzIicSe8WCY+8ccfrAW93OrUcuKHjgKbJirwjyr9l+T0UFuNwPoBJTd6viOeL9hyQxbw1Q6hAeK+sP6lL0KZAY5s9Sl/JKGez1jLQHgoAsMeopwJhITdZ9IQwOyPSXZq5XxWJuI5hnC/mW44NWhWb7IlbzVrVviLbb1qWAABAd92Yo3RbbBIgcAq24wQ8YL5EZS2tq1SUpSiftXxKIY7DIABHk2tfPnLtvBfGoXdDlUffzhddUaSUsViUjVRjKQirPCKEEOrStukwZEtLWIvxAcKjIOvLOWPzpwNY5REhhB5Aa9ZiFH758cfZuXMYqQcAmyzYF1m8zGCvmdkS6xhY5REhhNBqwrVr1zAKDwa6P53ZWiPGKo8IIYRW234ffM8IIYQQQg9Q7nLqjTcwCgghhBDaMrnL55NJjAJCCCGEtkzuslyaxygghBBCaMvkLr/yD+cxCgBwvph/3cjzVe088t7OWcf0zCW+Rg8VHv1U147ni4ucX3DyR1V9Mow7bN99zxuC87BQ8DgeaYQQQls9d6liDAAAYI9h7mt1V1kiaU9Z2f4uSgMKRNqfSj1p6r2E7NZNWdP3yJ2+3Nt9zxuUvABjmLoghBDa8oTl0oX7YBqboY50h+G122NLi4Hztu0JhADArpQ5oMm1xndtv0ekyyxeZMo3GuWXobsq0JxFdiHvOjGDgAJIqmE0yiEFTiFve6m0HrgBEFD0tEaCbLZo2rZKuVMoFD3I21atuBBWe0YIIXTvc5eHHnpoq8+BR967Ln02nxcAAPhkPn9eyuwRiSAq+1PKYioryxQgHrdcrpoE4BHNfFYDAKjE/ltOsK9RLnE59Hdl7AMSBYCPndy4Jylt6h222yOw8N1sdpdIl1l8KRL3NbZvt8fVKiwcL7Jn8vnaveNmCtakaO2X6aXA321mZEUE4JeCGz6K6pG1Z3O5nVqnNIJQyUxnGEQZ6+aaQYqeNkKvGJJCPtf4lWSmamURqZ5O86heo4hFXt6lufrYuJPP+1JGxYqJCCGE7nLucmmpvNXnsEnqSINIgMoH0pndlACwcctpWndpvceWPQuqupIO7FLlMGIg0z2mBY4bePGnwHuk1M6mFZbbrAJdy2zSRmrNHASrPSOEENoUucup/mcHt/gcNksd6fXvcbUeUanYPtflWkZw0Q93aDoAnPei3bqxBwCATzfKL68s1XRVBXpdOQYBzgEAOGdR4yoZrPaMEEJoU+Quv9ix5e/vsknqSO/g/rjjCFx6Jq0vunbouRVXVVJyu5LRrXum8oARvpXJCIQA8F1aekCmADBn50NX7KV0mcW9srGveammuyrQhEgqdSzLEykFBmo6rUkUAIqFnFP0SJj1RCprpq6KACCrSjZruZRwxqIwEgPdVCWs9owQQmgz2Pa//+jUbw4ksI40umVY7RkhhNAGWrOO9PZtWM8I3R6s9owQQuhuErZ9ehWjgG4HVntGCCF0N22XH44xCgghhBDaMrnLl578ZxgFhBBCCG2Z3EWSJIwCQgghhLZM7nLt2jWMAkIIIYS2TO6yHb9nBAAbUUd6ppD+c1U/H9e2Y2/r2n8x84sbUf3wUuAc040Lqyop3rk9rgtWqEYIIXRXcxcMQc3t15F+VEvt1dUZLwSAxdBdVFP9eqp3I+7WtlPRBzTlbu5xnckLVqhGCCF09wj3xzQ2SR3pXlnb6XuXdOmiG+3TpIuNr3C1LA19wSm8a3v70voFNwACu/W0rErni/m/tf0dEgVCBeA9cupAOiUAVHg0mbUEQpon0m6Pq8fWLhSLgfNWtvgV295D+WShEHrw67ZVy366KU8NWKEaIYQQ5i638rZ/c9SR3gUgAH0sRcKiA0QdoKyWSbQrDb1bT8uhF4bka/mc0LT885jt7bJy+2vDcPPjnlwbxh7TkhUReBxk6xOBVntsE43WoehV9K80SkbvT6c/ja4XW+qmPDVghWqEEEKYu9yCTVJHeletEzW1nM88lrcf4t7Kxi1LQwOAQKUnjZsLOt4wDFWtDUMgUm+tkRAB6hOBVntsG41Woeh0Ztx2eWrACtUIIYQwd2lpk9SR5iEAgECkZx1n5UdoXxq6ncXQPR8ZtXWXS36nYdQP4Y17XFc0AAAIfMoBACqcXWJ8b6O52/LUgBWqEUIIYe6y3jlsjjrSl1xnyiO9NCNrMo+8v83bF7jan7J2tikNHRZyk0VPCLMzIt2lmfvVej2gHkm+WMj+FAhwJsj6M2mJh+644/QQ5dl06pJbDD2nVqF6ps0e29S4XhUKVQKAXaryVtaapqTC2Cdh1BvoA6oEXZenBqxQjRBC6O7aduXKlXPnzmEd6U2DjVtOf87E12rACtUIIfRAWruONMZoUzlftEOv+FYufyHGbx1jhWqEEEItCBiCTWWPkfm2kcE41GCFaoQQQqvhugtCCCGEtlTuUq1WMQoIIYQQ2jK5y7Zt2zAKCCGEENoyuUt1eQmjABtRixF4/K6ZcszM2znrzUzm3aJfuSsjr/DweDfD2whYdhEhhNA9J3z06hj880cwEHsM82LgrG4nkvaUpU7mCmt3QcR+I9UrmbJMAeCCkwt9ceDO1+URiPRM3rpLJRix7CJCCKF7nrv849mHHvnnW34am6QWY7NdKX0mH4IqQZuyi+2G8bFrn/VCAfgy4zyM92SyB3SlZSMA8NA963gXff5MMb+TQKdZt+kBbrvs4uqai4YqxYHTsuwi1lxECCF0u9x/+/+NjY1Vt7Kl6ZN/c2jkauOnD4eH/mFuqfbDz4dfnphYqFar1erce4deWbrxgVfnRt84fLLx04L/9Rc/nK5tXC2NDI2dnF7Zw4dDw2xp7T2yY8ON3VWrS3NjQyMrD/lo6KW/Gl55SNthLE2ffGP42NX6/0dGXhxaatPYHICbhrd61p17uLow8d7w8M8bc+8U6oWJoaFjS6vajw299J3hkZvaRw8PjS7U2haOHDo8t1RdmD758qGVzZZGhodG55aqCCGEUJNXX331o6kPW/577bXXzp8/L/Tu37nV069NUovxptqBFWCfNlX6WV12seUwluNwh6oL9c+gVElm7Ro7fnp186wrHXu4/bKLWHMRIYTQ3fvMqP9rvfEWn8MmqcV4k4uu85BqrHcYPaL8iRNWVFEA4HEQhbHcpnFdOvdw18oudqi5iBBCCHWbu+w88JX43LmtPYfNUYtxN2VTRXcGokuyuMziXsV4srFss7rsIhFbD4NI2ldk+03LEgAA6C6JAkDLxpppO38hjuec68PriVvNWm3bA9x22cWWNRehddnFdjUXEUIIoW5tWyyXP5ycxFqMmxGPgqwv5wyyZuPtd4sQQghtDmvWYhS2bceyAJsNmyzYF1m8zGCvmSGdGm+/W4QQQmiLwVqMmxDdn85013j73SKEEEJbDC66IIQQQghzF4QQQgghzF0QQgghhDB3QQghdM8sheG7Dz88+Vu/haFAmzp3CacKlu9gQT+EEELbBEH45V8WKMVQoO7dg+8Zyf2mGhfiCkj4JSeEEHqwkf7+J2dnMQ5oXfAzI4QQQghh7rJmog1xzBlGHyGEEEJbInchNMGL4z5GHyGEEEJbInfhcVnKDKaamyK/mMsVQoaX8CKEEEJo0+UuLbIZJ2vZHhMpltlBCCGEUCf34qs+FRaXSXOSwlnohsRyTPySHEIIIYQ6uwfrLtFsoKiG2JQ1scinetZQRDweCCGEEOrsHqy7SFJKurFFVNLFPB4LhBBCCK0N7++CEEIIIcxdEEIIIYQwd0EIIYQQwtwFIYQQQpi7dFTh4XE9c6njXeimc8ZRMzPuBABwKXDezBhHzcIt7ItH3ts561ib3S0GznHdOH9LN8TjPCwUPLyVHkIIIXSX3YPvGQlEeiZv9Xa8C93ulL5PUQdSEgDsVPQDaR5G6i3si0jaU5Y6mWud9/Qqupy61dIEHBjeBRghhBC673MXHrpnHe+iz58p5nc20pfFwHnX9ntEusziRaZ8o2D2iGIlYBUWHEtl9tvOY4z1NG65uxg4b9ueQAgA7EqZA5oMABecwru2ty+tX3ADILBbT8uq1G4MH3v2WScQCAGgPZzvbfrVol/4cy2zr+B/w1Q6zYJFdiHvOjGDgAJIqmFoEgAETiFve6m0HrgBEFD0tKFKceBks0XTtlXKnUKh6EHetkQCkWfnnYAQwjlXjYzRfsAIIYQQume5C5FTT1naTQshlwJ/t5mRFRGAXwpiAAAiCiy+FIQ7Tf1SED1KeI9MAKDCwvEieyafryUyMwVrUrT2y3S3npZDLwzJ1/K5zlPisTcViM/m8wIA8Oineqb5tz2y9mwut1NbI40gVDLTGQZRxko1rx8petoIvWJICvncSruo6GYqBAAAqqfTPCoCAIu8vEtz9YlwJ5/3pYwqYkkEhBBCaJPlLi3tMS1w3MCLPwXeI6V2KiAQ8hCPL/pRv2leyPsXpbhXJQCwHAeCqq68wu9S5TBiIFMAEKj0pJFacz7LUdij6vXNiLQ/Jd8QDioPZOTbSs6olDZSa+YgLA6iOMrnwsaPkco4YO6CEEIIbYnc5bwX7daNPQAAfDqXB1CAUCH2Z0B5RpQ/lezJgD9pAgD0iErF9rku117kL/rhDk1f1756JHm5GFTUVG3dZdIJ9pvXf1thYWi7O3Vzr7RWbaV1pRkEOAcA4JxFjAOAKKmaIqczKcxWEEIIoU2du0zb+QtxPOf4EYt3iLKcNncSmLPzoSv2UrrM4l7Z2Fd7tWfBsmYSgF2qNF8MBCBQWxcxwrcyGYEQAL5LSw/IFADCQm6y6AlhdkakuzRzvyqu7G4mjC96TbsTtX7FfjOTEQipMP6pCGHB2WsZte2XQ+/N71n7qLa34/UuAECIpFLHG3VK9gAAGwBJREFUsjyRUmCgptOaRIuFnFP0SJj1RCprpt4Yhqwq2azlUsIZi8JIDHRTVQ3NyVoWAKUUGCNGJq3gugtCCCG0lm1Xrlw5d+6coigYC4QQQgjdc0ePHj3w1Sdb/mrs7HtPP/003psOIYQQQlsJ5i4IIYQQwtwFIYQQQghzF4QQQgghzF0QQgghdF/kLuFUwfIdLNiDEEIIoa2Ru8j9plqJ4gqGCCGEEEJbIXdBCCGEENpiuQuBOOYMY4QQQgihLZG7EJrgxXEfY4QQQgihLZG78LgsZQZTzU2RX8zlCiHDS3gRQgghtOlylxbZjJO1bI+JFEsGIoQQQujeaF9HusLiMmlOUjgL3ZBYjkkxbAghhBC6R9quu0SzgaIaYlNuwyKf6llDETFqCCGEELpX2q67SFJKurFFVNLFPEYMIYQQQvcS3t8FIYQQQpi7IIQQQghh7oIQQgghhLkLQgghhO6L3CUujUt//IP0VGkTDppXSumiGz0wdSKjODSLRwNeuefRYCzKnT5hdrc7XikVzkT8rgx4o0K0Uad9MJ7PBR4+vyCE0F3NXWiCir0JJbEZb0NHBJpNHZSEB+UgSaJsSuJmiAalknVQ0/u6u8VPBVirZOJODHijQrRBpz2PGBgDGj6/IITQnSC0f7pPKDQpNz2Jh1FgT5UAgFcqKVVLNe6uy9isfSbiBAB4VGLawReMJGnZCABRFOTDmAgCr1TUAdXoowAQx2E+mKUJwng55qL9gtKuEQBYaaoQRuFsJfvtVO3ViJdjy3FjmpQIgUpFaXQLAOFUUIhKBCqMV1iprKpaRr5T96dxTh/NTlVUMcHKFUoIAUgdrEcpjsNcEBFBAAC5XzGlJAAE4Zl8EKUG5WAqBgEUedDoo/64nwtmJUpAIAQqNNmfGewnALzCbO8EEYSbJrg6Gu2OSNsVglbDaHmY2ml5YnDO7DO+G5YZxBRA6hswJNpuwC1D1OGwtjw3ug9RuyC3PO0RQghtOleuXBkbG6u2Mje/sNSqfenyzKF3pld+PHx8dPpq/f/TMxOjl6+2a1xYmH75+ESjz6sjo6dq7aNjx4/MXa41Ts8t1H7dsrG68thT1/uvVqsnR48dma91fPmV42O1rRcWpg+NTi7V/z/x4pFTC9VOhkaOfP1HP6r9e/HI67WxtWxsE66JoYm5avXqyPHjE0tXF+Ynhifmq9Xq0tL8UGNI1Wr15DvHR+pDrR479ep3RiduDPLS0I+OjDQCPzE5enh6oVqtHjv1ej0aVy8fbuqtZTRaBr+Dm4bR7jC12127E2NpaX7o1GSrU+jmHtqFqOVhbXdurCdErYPc+bRfh6vTh48dnrtaRQghdAteffXVj6Y+bPnvtddeO3/+fKdldDFJb3x7PW5PxZQQxllM5JV2lhBX3kBLfbLUobEcR2WWP12/mICVmcorkBBU5SCEU4WozKFCab8pAgC0bGy/fiRIidr+BEKA1/svSX0yqX8W0JdKrlFC0tINq7vG9otVAgAAISBcDywrx6Tv+sKF3JcsMg5JAgCE0PRA/03v8UWxX22saUl9fWycgUSJQOVaoyAQgM4zaRn8TsO+cRjtDlP7dZfWJ0b32oao1WFtd26sK0Qtg9zytL8FwZQTCKIp4DsjhBC6u58Z3fzqwqbsUiL7/PMEgJej7Pj1X1EWRxWp/vENL4U8oVDSslGkfZqYTKs3v1r7EVPkARUAoOKe9gHEdo3rQhPJKCzxvgQBYOXYLZWNexFimhB5MMvk+ktiOFuSpE4v8HFpymcDOiUAEM3O0uS6s4GWwe/+4e0O03pPjK5PrnWH6PbPjfUGOfKLRY/paVPuIpKKnE6VCnEFJExfEELoHuYuNJGUmJ89MUsJxOVSEIMjJXUxAQCGKuZOnKj1RElSHxxo10gSfYYUZk+cACCUAOOCoQ4qCcEP/OJUQiSE8bKYHEjVXp9aNQKAG/hBueyHsyIvS4mkMajQcmSHEYVIGexn8VQxDEGSjD5KqWQmA+vECQIAQOQ7XP7aD0O3lNSlQc5iNyoZtOKHU1F/UiJJc6CUdV0iCAAVWRo0kwQAimdOO+MRKXlegsiSovcl6qGmyfCMlwEBKpwk5ewgZaUpOwypIOYG+6Op8WIU8qm+dH+yZTQkoXXw21k9jHaHqbY7r1QOo6bdtT8xiEBVElonIpEQ4KAODmqUtBwwaRUixlof1pbnxnpDtDrIHY8td7KWDem0hdfBIITQvbftypUr586dUxTlPp9ohRW8WeP5gU1fBJvbJ0L9eQWLdW+eIHMW6IphOJ7ZbSFS7p7OUiWr4jW/CCG0fkePHj3w1Sdb/mrs7HtPP/30fb+ozZ0zQcjLjIOmqJs/IfDHg2I0FZzmplJf6kD3PMjrr6BOtEHTjQKQVYw2QghtuAdm3QUhhBBCW8Ga6y5YEwAhhBBCWwnmLgghhBDC3AUhhBBCCHMXdHcxO2MFjGMgEEIIYe7S1mLgHNeN8ze+XjY3zhTSf67q5+P6jXPf1rX/YuYXN+Ll9VLgHNONC7f9Us35pXzmp5b1Zi73thMsblRkOP+4UJjhbX6V1n8a3XYQIt/OO2E9bYk8yyoQTfVyaSPjPMh/IVHgmLpxN3M4zsNCwbtpf14hrai63zjzc7qmmfmY36kJxoFjaqqZsXK5nJXJFJygi2FH+UzGsqxcLucE8YZl0JGbK3jreggW8Ubovre5voXbq+hyyu/Q+KiW2svCGS/cYyiLobuopvrlVO9G3ERjp6IPaOEGPNUGM6AfyGk7N/oFDRirtPwNITuz+afE2618HDuFQMsbjZcuXzHThkxBT8XxA730Iim6uREnxjqP9c0xV7SUxkLPC1VDiUM3VlO6nBLJnZqgqOim7lMzq1ACwN1cPuSyTEjHM98DPZPTpI0NBpU0Kcy4kZKSur0dT8TAUDV8ckcIc5cN87Fnv++GAFDhfF8mu0+itcazTiAQAkB7ON/b2HJ1IwD0ytpO37ukSxfdaJ8mXYzrazNv255ACADsSpkDWv0W7xecwru2ty+tX3ADILBbT++InL+1/R0SBUIF4D1y6kA6VYtChUeTWUsgBDjfbWRktf4svOgX/lzL7Cv43zDX+CZ56IUFOwz4HPd3EHG3ae6jAHEwmc2Gpv0NlVacwtmiB3n7KcouWObJWNol0R7gFcU4YKg7G280z9uFGU4BYDkKL2nW13Rx2S78nessMrhAASRVNhq5EQunC85M6FeyxV+XyMqb5smcPUOIAABy6ium9giP2+6u/pDQ8amWWSnxo+leoZADIkpKStea347nbZ+KlLE4ZopdMOPAyWaLpm2rlDuFQtGDvG2JBPxiPmf7kkSBUAKcyqlMOkUAIs/OOwEhhHOuGhmjEeTAKeRtL5XWAzcAAoqeXvlVN5yckXW5qogs5pRSApCysrVXuzhwcrZHCAEAOWWamtxyd1LktBxwbUXBzlqEEOBcaRpz91qOoWWIgEV2Ie86MYOAAkiqYTSyAVHWJN+LdCl0o5QmhXHbnjd4gpxFMchQPzdaHsHQKxbsYsB97ktEVEwzRdczNkOV2p0YAERNSVknSGUwHUEINXSoI31HXZ0bfePwyWq1ujR30h8+Vq+5uzT9N19/8R8Wllo2VqvVpYmRMyMT7ORh/5VX/MMnyxMjZ0Ymri5M+IdeWan9+/PDhz6cuF4W+KOhl/5qeKSppu+C//UXP2zUDS4dGx47Od3Y8rsTY3PVarW6NDfW1OHVhYn3hod/Pr3QzbzmRscOn2Q3NY4e9kcXakNYOnJobG6pWq1WTw7/zZF6tebyK4feW+n98KEz0419T49+ODp3tVqtLi2UhoY+alPf+OrI0PWHLC2Uhpp6O3n4jZGJpQ67q4/wle9898hEi+lMnDx06JWmzQ4dqYWoujQ9Nt2Y3dBovfTywpFDh+fqI1kY+vqLI42gTRwbPnxyemH65MuHRlZGOjI8NDp3fU7Hhl76zvDIrdVwnpsYGRoZq1aXRg4dmlhYWpgYGR6ZqFarSwsTQ4deaYrGoZHGubFqdy0G3Njyu0caJ8bhpt661H4Mrfe4tDAxNHTspjjUZjR98vDQK68MHT45NzEyPDLRYXa3P8FjQ9/5zsuHDh069NLXn3qpMZ4OR3Bu9PBKh50jv3psnU+MheljL750GIt4I4R1pLuqI31n1l2K77tBD6XLLFqkem1toUfV6+Mg0v6U3K7x+qdIamo5n3ksbz/EPQBYjgNBVVeWs3epchgxkOsrzAKVnjRSwg0fQqX2NNafd6rqVDECTQIAgUi9tXZCBIBPV9amqDyQkTc+FkSQxNq4HiL0et1jJu5eWUGR1P3rfY/P4nmiPna9JrO6qxgtg0za7a7x1po3V4AOPY+qmkhAlCQJrn+goJoWOG7BizlwKqU6r0OJSkptxFlSVVaMGAmiOMrnGlfVxJHKODQ++SBUShupW/4YpPb+HiiFpo82WBwQVW2KhlxsnBurd7d6wLUTgxBJbpwYa1aobnVE2o6h3R7bhlRNsXxGzduEe517vv0JEiJmsrXPjCB08wVXyqRkFnc6gl3OevXYOndbWxDqMtpYxBuhB+Izo2vXrt21nfHIfT8Un8nlBIBK7L1VBADokeTlYlBRUwIA8GjSCfabrRuvD5pIzzoOAPAQAKBHVCq2z3W59lR30Q93aHqHYSyG7vnI2C9RALjk+z2y3nnYFRaGtrtTN/dKt1pUoPHcy/lyxD7tvC2NLkR8by194ezjkPUqEoGuX9Kp+Ci355j+SL0ms39R0vrXfJQoSyxi1z/jiEI3CKIgAFEx0tdD73uRohsqQO0aCADlxtmxqOlCjTh0/cjQJQoAke9TWRcloilyOrOOBGVdBZxbRUPhts90uRGNUGp/bqwe8IaMrcMYWu+RdMjPpJzjAAAL1z27W5hg0+khc48BgCipXR7BdY2tc7csjojUbQ6PRbwReiByl+3b795XjYgo74jyb1l+D4XFOJwPYFKT9ytav2K/mckIhFQY/1SEsODstYyWjTOuM+WRXpqRNZlH3t/m7Qtc7U9ZA0b4ViYjEALAd2npgcbbu7CQmyx6QpidEekuzdyvirVs6WIh+1MgwJkg68+kJQDgoTvuOD1EeTaduuQWQ8+puKpSWwQKvTe/Z+2j2t61rncJnMB2pgI+z/wdVN6b1vc03nTuzmbfdKnA2XIUXhKDfl38xHZmKMwo6X0siIrOFGh7a9egGJndOetNqC8i7NLTMgAQslOlU5Y1I9IeYKCmn9QkAgCu/W4QL/rOnMgWJXGXkR6Q6COmcTGb+SkhAkBF1p40ZcKimXa7a7wL10nRZ+n6G2XNTGvAHaugZDNS0+uJb+eLrihSylgsykaqPjslm7VcSjhjURiJgW6qEgBQSQ4L2QwQ4IzIejYtEZAMzclaFgClFBgjRiatiAQAioWcU/RImPVEKmumrtaKB3VbwNl3HDeUdS3No8D1QkPivuNGKVmismmE2UymtqAga2lTpu12t3rAAMBC13YcSpRcOhW5xaLncFdNp+Tux0bajKHdHgmRVOpYlidSCgzUdFqTqOc6jkdEmjE0mUVeLm8HXNVTVrueb3OCuhjajgdRVhYpMMZANKw0ABBRbXkEA6dgO07AA+ZLVNbSutph1qvH1q7bRo7oq7qFT9YIoetG33rrnlzvcu8svNd0LQtacXL45Vfq17LULzsYfWVk7jbi/Mr6Lw1ZdaXI2Nc//6UbR3UHT4x1DXgjxrYBIdrEu9sYSwsTh747vJ4oLx07dWj0Mv6JI3Q/X+/y0L/5zd9MfO5zoig+ILna+WJhrOiUSqXefqUXCzU3kRQFyiAmEytrcn2KnLjV3vxi4c+KznipJPYr4q3GuRQ6Hk/9oaneheO03gHf/tg2JESbdncbpcJL0sHnpXUMWOjb3Rf8PJKTffhHjdAW9cEHH+x5rHVaEv/jhb1792IdaYQQQghtIlhHGiGEEEL3FcxdEEIIIYS5C0IIIYQQ5i5dCmeDdbUjhBBCCHOXe4Yx14lZ9+0bjleivJuxTli50zknjpvaw3QxE1VuuduwcMbr5t6iUeyYRSPgG1NAMY6ddNHw1+rtNmfX/mh6udOWeQd67j6eLTfeqCCvaxh38qS9x8PY2JMWIXTfu8++JMz90FMHsl2334HkKfZAzuRW3QaUCFI2ZYm3HO8KsO6e2SVRN6UNq3ssirrR76+52e3Org1KNeug6pwubPxx6jqeLTfesCCvaxh3zr0exsaetAghzF22Esa8QEhZCdJlezPntJGd4qoosjKnhBKA1MGsRmLrqMn7s3k1BZWo8OO0lzCd5412nYRRsRAUg4rPZyWSUEwlVbuTKCu5hdALZ3n22/mVW5UHYSEfeKlBPZgKQABFTht9Um2pIx/4NEEZj2Ou2C+YnEf2mbwbNmoL9xlGx1uk80pkexYRCFS4MpCpdRtGtj0VAgCv8JSaTVEKALwcWE4mprJE6E0bF8KACASA0grXOoe91exaTqRDJy2H1/2RSlEax04u8IhAAEDuN01JbjeMdcWz3cYtgwwAUWTnw4AIhFe42tTefc8tJ+KP53OBL1EKAiXAaTKVGUy5bULRrpOWR2Rd0VhX8Fue4S0nQtrHEyGEWrhXdaTvxB04j40eOtnifprt2m8sRDw/MjQxVq0ujRw/NLG0tDA/MjwxUa1WF+ZHht4bqxdJPjU8sVZ92rmZw4enp1sOb+TU8PSNDz926qXvjN5cOXl07NCRuUat5rl6V0tLE0OnjnV5r9Bjp75b7+Hq3OHjN99Kdeny6KF3Tl6/ne7oy0fma5vMvXL8lYVqdeHyyaHRxr6uTr/8oxdHl9bcc4vZtZzI2kfxxuGt7rnlkVpamhhqmunJdw6N1Ce1AfFsuXHLIC8snHz5eFM95NGhzjd4Xd1z+4ksDP3oxZGFRhXoyeHD09PtTtp2nbQ7It1HY73Bb3WGt5jImictQgjvq3sv60hvzkWXxgcfBACAUBCub0yTKTnMB1wWmRsnU/KGBowQKT1wc/05VbEgdAtRzIFTmjLXf8djIkhybd1CuF4WOIyK9lRACWU8iklTVTyBSPXgEEKAA3AW0j69PipB0vtvsYb2uibSdnjdHSlWDkhfU9XiPrnIGCTphsSz+yCzchCVo/zpRj3kcqRyDol1VJHsMBFRTKmN5SipT2XjESRan7TtOtmQUKwr+C3P8BYTkaSW8UQIoZtcu3btypUr903ucueudCHagFIYd0UW65p8F2biR5EiN2o1n27Uar69A8WYa5fE7PM5AsDLXna808aUymw84H0pAgCVyAkDXdm4idz28FqPOaHwwGdyo2rxbChJ+obFs+uNRapqopxWuy6ULaxjInHJ9ZmhUwoA0axPkzpAsK5otD0it3d2dRhzS60mghBCdb/4xS+2bdu2xJdX/+rSpUuf/exnGWP3Se5y+4sufui4JVmX0pwFbhQalPuhG/XLkgCUajIzvT7LXCtaQViwQyeoBGxWokktLau1djfIB+XYD32Rx1JCNgZNSYDimZwz7pFS1ktQWTL1vvq7YD/IF6dEkVDGYzFZr9VMBEkljnXCEwkFDupgWmtzRQgruXboUEHJDaaiqWIxcviUmpZkieWzJ3xKIC6HQQyOJOuiyJhnhx4FTxlMsdgthg5ImtGn6aJtuRkiEM45T0DxjKMdbHuVT8vZtZtImxe/1sNzg7xXisPohp5bHim9P2MOhFk3QwQCwGUpbSbphsSz5cZKxW8R5H6ZJFRDcrInLABKCTBODDWttD/9Wg1DbjcRSuXwTDYDBCqMJPXsoOSezrY+aUnrTtodke6jsa7gtzvDV0+k9UnbL+OTOEIPpu3bt3/5n7R4Bvhwcurhz/QAwH1Sz8g/kwc5ra56kWjXvt7UyD5ha1pGwtKN6N7l5/YJR3/epDgRhND9vu7yk5/85F+/+K2b2j++eDH6+5l6cnN/TFUdzLRMUNq1d6sS2X4u82OzEIdRmeEphe5Zdj5uF6Ni9nQ+KHOcCELoAbHtoYdr/174LX0lcYH7Zt0FIYQQQveB5nWXbQ89DADf/OY3//iP/7h5G6xnhBBCCKHNqPrp1dWJC+YuCCGEENqkPr54cXXigrnLPcfsjBUw/OAfIYQQAgB46KGHPvc5CjdenIu5y6ZJWyLPsgpEU71c2sg493w8kW/nnTtbUyYKHFM37nKuxnlYKNxQaNArpBVV9+P6/eRyuqaZ+ZjfqQnGgWNqqpmxcrmclckUnKCLMUf5TMayrFwu5wTxxp1ybq7g4Z8eQmiT5y7as//i1H97q13iArVrdX/4wx8mEgmMF0IIIYTuuV27dj3++OPbtm3rlLswht/+RQghhNC9101asu0Xv/gF53i9xa2Ym5t7//332+WMv/qrv9r54X/37t/96oFfvXLlykrLtWvXulwAq1arLRPS5U9+VvzPr/d89VvGc0+0e+zP3jj6TuWffvtffUkAmB173Z//4rd/40ubNMIf/NVPz/W99K//WdzdOD+ZGzvqvPPol5/71nMbPKNK5eJf/8Xrj/3mt7/6aG+7Qa5558LmyAPA7Duv+5988dv/6kud5q7/U6H9O4/73sLFj9v96nO7Hln5I8LnIoQeNMLDDz/88MMPYyBuweTk5DvvvNPyV1/4wheee+65NR/+nPbc8vJyc0byS7/0S93semb0qH1iYnl5uWfHF34n/btP7OiptY/m/4//x1/uef2DwZ/YX32056//8L//wzHog/l56Hvi0eWf/aznB0d+uDz213/2+l84f/bJ8qO/8XtP/fz1f/jMC/8k+u53/89PHu2D2fnfsf/yiTe+/6cf/bb9R098/5t/8DX7yG/AB3/w3T8cm1/+8nP/7ttffPsv/v76r54Y+9PvF3xYXlbTf/KD31UBYP6D1//gu//hZ8vw1W/90Q9+Z8f3Gw/8kz/5n2b/s/kHr33yxI5P5uGrv/fsP+Z+XK79/4f2D3p+9vr3v1+YXQb13/3R/6J+stJD7xv/0fkI5j//l1/74K9f/+gzv60s/kGbDn9o/+CJHT3/3vj91ybgt//wv0vm/8fvvz776KNf/b//r98a/v0/XnnIB/+hRUCe69vRYeT/8+/uyP7+ny4/+ugns/PpX3/pC1P/dWWof/I/PAcA//5//Y+vfQTzn//Ll/tmm4fX1wOf/OyN5pYLTZH/4Q//6MK5v379o1/62uejDnO/8Phr/5vW/8D+iZUutL3Wp/aXUvsjwucihB40/z9BZe4FJUuR8wAAAABJRU5ErkJggg==","_NodeClass":["morph","image"],"_NodeId":"morph-d8ea8459-4610-4812-b913-f5c1a2518bdc","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(621.6,303.9)","_Padding":"lively.rect(0,0,0,0)"},"16577":{"morph":{"__isSmartRef__":true,"id":16575},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16578":{"submorphs":[{"__isSmartRef__":true,"id":16579},{"__isSmartRef__":true,"id":16592},{"__isSmartRef__":true,"id":16658}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16686},"derivationIds":[null],"id":"B957A7F7-F71E-4170-8C72-7020680F5959","eventHandler":{"__isSmartRef__":true,"id":16687},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":16688},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":16579},"reframeHandle":{"__isSmartRef__":true,"id":16658},"titleBar":{"__isSmartRef__":true,"id":16592},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":16558},"highlighted":true,"isBeingDragged":false,"showsHalos":false,"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"_Rotation":0,"_Scale":1.11,"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(23.3,602.2)","contentOffset":"lively.pt(0.0,21.0)","prevDragPos":"lively.pt(286.1,569.0)"},"16579":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16580},"derivationIds":[null],"id":"4A0968EC-A0FB-461E-B2F4-49244AE2E6EC","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16581},{"__isSmartRef__":true,"id":16583},{"__isSmartRef__":true,"id":16585},{"__isSmartRef__":true,"id":16587}],"eventHandler":{"__isSmartRef__":true,"id":16589},"_ClipMode":"auto","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":12,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16578},"_MaxTextWidth":326.03885755584884,"_MinTextWidth":326.03885755584884,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":16590},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":16591}],"doNotSerialize":["$$textString","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$textString"],"_syntaxHighlightTimeout":null,"lastSyntaxHighlightTime":1354,"accessibleInInactiveWindow":true,"charsReplaced":"","lastFindLoc":24,"showsHalos":false,"__serializedExpressions__":["_Position"],"textString":"this.owner.owner.owner\n\n// Parts Bin","_WordBreak":"break-all","_lastSyntaxHighlightTime":25,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,21.0)"},"16580":{"_BorderWidth":1,"_NodeClass":["morph","text"],"_NodeId":"morph-4a0968ec-a0fb-461e-b2f4-49244ae2e6ec","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(336.0,90.7)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(243,243,243)"},"16581":{"style":{"__isSmartRef__":true,"id":16582},"chunkOwner":{"__isSmartRef__":true,"id":16579},"_id":"_915","storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16582":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"16583":{"_id":"_916","style":{"__isSmartRef__":true,"id":16584},"chunkOwner":{"__isSmartRef__":true,"id":16579},"storedString":".owner.owner.owner\n\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16584":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"16585":{"_id":"_917","style":{"__isSmartRef__":true,"id":16586},"chunkOwner":{"__isSmartRef__":true,"id":16579},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16586":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"16587":{"_id":"_918","style":{"__isSmartRef__":true,"id":16588},"chunkOwner":{"__isSmartRef__":true,"id":16579},"storedString":" Parts Bin","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16588":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"16589":{"morph":{"__isSmartRef__":true,"id":16579},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16590":{"resizeWidth":true,"resizeHeight":true},"16591":{"sourceObj":{"__isSmartRef__":true,"id":16579},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":16579},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16592":{"submorphs":[{"__isSmartRef__":true,"id":16593},{"__isSmartRef__":true,"id":16599},{"__isSmartRef__":true,"id":16617},{"__isSmartRef__":true,"id":16634}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16652},"derivationIds":[null],"id":"5A8CB99C-7E98-472C-8F1E-8B935107C3E3","eventHandler":{"__isSmartRef__":true,"id":16656},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16657},"windowMorph":{"__isSmartRef__":true,"id":16578},"label":{"__isSmartRef__":true,"id":16593},"closeButton":{"__isSmartRef__":true,"id":16599},"menuButton":{"__isSmartRef__":true,"id":16617},"collapseButton":{"__isSmartRef__":true,"id":16634},"owner":{"__isSmartRef__":true,"id":16578},"showsHalos":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"16593":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16594},"derivationIds":[null],"id":"111B5C6E-A7DC-4728-9424-CA17E14A12A9","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16595}],"eventHandler":{"__isSmartRef__":true,"id":16597},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_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":16598},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":16592},"_MaxTextWidth":277.03885755584884,"_MinTextWidth":277.03885755584884,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"__serializedExpressions__":["_TextColor","_Position"],"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(102,102,102)","_Position":"lively.pt(20.0,3.0)"},"16594":{"_BorderWidth":0,"_Fill":null,"_NodeClass":["morph","text"],"_NodeId":"morph-111b5c6e-a7dc-4728-9424-ca17e14a12a9","_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(277.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"16595":{"style":{"__isSmartRef__":true,"id":16596},"chunkOwner":{"__isSmartRef__":true,"id":16593},"storedString":"Workspace","_id":"_301","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16596":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16597":{"morph":{"__isSmartRef__":true,"id":16593},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16598":{"resizeWidth":true},"16599":{"submorphs":[{"__isSmartRef__":true,"id":16600}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16605},"derivationIds":[null],"id":"B058F834-5181-41DE-A0E6-B27C82C52B55","eventHandler":{"__isSmartRef__":true,"id":16611},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":16600},"owner":{"__isSmartRef__":true,"id":16592},"layout":{"__isSmartRef__":true,"id":16612},"attributeConnections":[{"__isSmartRef__":true,"id":16613},{"__isSmartRef__":true,"id":16615}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(316.0,3.0)"},"16600":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16601},"derivationIds":[null],"id":"07C65822-8E56-4F30-841A-04D4655C36BB","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16602}],"eventHandler":{"__isSmartRef__":true,"id":16604},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16599},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16601":{"_BorderWidth":0,"_Fill":null,"_NodeClass":["morph","text"],"_NodeId":"morph-07c65822-8e56-4f30-841a-04d4655c36bb","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(15.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"16602":{"style":{"__isSmartRef__":true,"id":16603},"chunkOwner":{"__isSmartRef__":true,"id":16600},"storedString":"X","_id":"_302","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16603":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16604":{"morph":{"__isSmartRef__":true,"id":16600},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16605":{"_BorderWidth":0,"_StrokeOpacity":0,"_BorderRadius":5,"_NodeClass":["morph","button","windowcontrol"],"_NodeId":"morph-b058f834-5181-41de-a0e6-b27c82c52b55","_Fill":{"__isSmartRef__":true,"id":16606},"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"16606":{"stops":[{"__isSmartRef__":true,"id":16607},{"__isSmartRef__":true,"id":16608},{"__isSmartRef__":true,"id":16609},{"__isSmartRef__":true,"id":16610}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16607":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"16608":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16609":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16610":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"16611":{"morph":{"__isSmartRef__":true,"id":16599},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16612":{"moveHorizontal":true},"16613":{"sourceObj":{"__isSmartRef__":true,"id":16599},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16578},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16614},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16614":{"source":{"__isSmartRef__":true,"id":16599},"target":{"__isSmartRef__":true,"id":16578}},"16615":{"sourceObj":{"__isSmartRef__":true,"id":16599},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16578},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16616},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16616":{"source":{"__isSmartRef__":true,"id":16599},"target":{"__isSmartRef__":true,"id":16578}},"16617":{"submorphs":[{"__isSmartRef__":true,"id":16618}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16623},"derivationIds":[null],"id":"6EBE4F41-44B8-49D5-8E76-6E5FDDFF96EB","eventHandler":{"__isSmartRef__":true,"id":16629},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":16618},"owner":{"__isSmartRef__":true,"id":16592},"attributeConnections":[{"__isSmartRef__":true,"id":16630},{"__isSmartRef__":true,"id":16632}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"16618":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16619},"derivationIds":[null],"id":"FC25B34A-F616-4C8E-B326-2AF973570FD3","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16620}],"eventHandler":{"__isSmartRef__":true,"id":16622},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16617},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16619":{"_BorderWidth":0,"_Fill":null,"_NodeClass":["morph","text"],"_NodeId":"morph-fc25b34a-f616-4c8e-b326-2af973570fd3","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"16620":{"style":{"__isSmartRef__":true,"id":16621},"chunkOwner":{"__isSmartRef__":true,"id":16618},"storedString":"M","_id":"_303","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16621":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16622":{"morph":{"__isSmartRef__":true,"id":16618},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16623":{"_BorderWidth":0,"_StrokeOpacity":0,"_BorderRadius":5,"_NodeClass":["morph","button","windowcontrol"],"_NodeId":"morph-6ebe4f41-44b8-49d5-8e76-6e5fddff96eb","_Fill":{"__isSmartRef__":true,"id":16624},"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"16624":{"stops":[{"__isSmartRef__":true,"id":16625},{"__isSmartRef__":true,"id":16626},{"__isSmartRef__":true,"id":16627},{"__isSmartRef__":true,"id":16628}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16625":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"16626":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16627":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16628":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"16629":{"morph":{"__isSmartRef__":true,"id":16617},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16630":{"sourceObj":{"__isSmartRef__":true,"id":16617},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16578},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16631},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16631":{"source":{"__isSmartRef__":true,"id":16617},"target":{"__isSmartRef__":true,"id":16578}},"16632":{"sourceObj":{"__isSmartRef__":true,"id":16617},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16578},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16633},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16633":{"source":{"__isSmartRef__":true,"id":16617},"target":{"__isSmartRef__":true,"id":16578}},"16634":{"submorphs":[{"__isSmartRef__":true,"id":16635}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16640},"derivationIds":[null],"id":"A6D06038-6C6F-4093-845C-4787D16351E2","eventHandler":{"__isSmartRef__":true,"id":16646},"_ClipMode":"visible","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":16635},"owner":{"__isSmartRef__":true,"id":16592},"layout":{"__isSmartRef__":true,"id":16647},"attributeConnections":[{"__isSmartRef__":true,"id":16648},{"__isSmartRef__":true,"id":16650}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(297.0,3.0)"},"16635":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16636},"derivationIds":[null],"id":"45676BBD-7F6A-4056-9CFE-548657A44E70","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16637}],"eventHandler":{"__isSmartRef__":true,"id":16639},"_ClipMode":"hidden","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16634},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"_WordBreak":"break-all","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16636":{"_BorderWidth":0,"_Fill":null,"_NodeClass":["morph","text"],"_NodeId":"morph-45676bbd-7f6a-4056-9cfe-548657a44e70","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(14.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"16637":{"style":{"__isSmartRef__":true,"id":16638},"chunkOwner":{"__isSmartRef__":true,"id":16635},"storedString":"–","_id":"_304","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16638":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16639":{"morph":{"__isSmartRef__":true,"id":16635},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16640":{"_BorderWidth":0,"_StrokeOpacity":0,"_BorderRadius":5,"_NodeClass":["morph","button","windowcontrol"],"_NodeId":"morph-a6d06038-6c6f-4093-845c-4787d16351e2","_Fill":{"__isSmartRef__":true,"id":16641},"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"16641":{"stops":[{"__isSmartRef__":true,"id":16642},{"__isSmartRef__":true,"id":16643},{"__isSmartRef__":true,"id":16644},{"__isSmartRef__":true,"id":16645}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16642":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"16643":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16644":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"16645":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"16646":{"morph":{"__isSmartRef__":true,"id":16634},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16647":{"moveHorizontal":true},"16648":{"sourceObj":{"__isSmartRef__":true,"id":16634},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16578},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16649},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16649":{"source":{"__isSmartRef__":true,"id":16634},"target":{"__isSmartRef__":true,"id":16578}},"16650":{"sourceObj":{"__isSmartRef__":true,"id":16634},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16578},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16651},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16651":{"source":{"__isSmartRef__":true,"id":16634},"target":{"__isSmartRef__":true,"id":16578}},"16652":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":16653},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","_NodeClass":["morph","box","titlebar"],"_NodeId":"morph-5a8cb99c-7e98-472c-8f1e-8b935107c3e3","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(336.0,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(102,102,102)"},"16653":{"stops":[{"__isSmartRef__":true,"id":16654},{"__isSmartRef__":true,"id":16655}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16654":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"16655":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"16656":{"morph":{"__isSmartRef__":true,"id":16592},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16657":{"resizeWidth":true,"adjustForNewBounds":true},"16658":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16659},"derivationIds":[null],"id":"C3FD7B87-ECE5-41C0-B058-3FDCC171F228","eventHandler":{"__isSmartRef__":true,"id":16663},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":16578},"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1.0000000000000002,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16664},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(322.0,97.7)"},"16659":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":16660},{"__isSmartRef__":true,"id":16661},{"__isSmartRef__":true,"id":16662}],"_BorderWidth":0,"_BorderColor":null,"_NodeClass":["morph","path"],"_NodeId":"morph-c3fd7b87-ece5-41c0-b058-3fdcc171f228","__serializedExpressions__":["_Position","_Extent","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(15.0,15.0)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(204,204,204)"},"16660":{"isAbsolute":true,"x":14,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"16661":{"isAbsolute":true,"x":14,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"16662":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"16663":{"morph":{"__isSmartRef__":true,"id":16658},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16664":{"onDragStart":{"__isSmartRef__":true,"id":16665},"onDrag":{"__isSmartRef__":true,"id":16672},"onDragEnd":{"__isSmartRef__":true,"id":16679}},"16665":{"varMapping":{"__isSmartRef__":true,"id":16666},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n }","funcProperties":{"__isSmartRef__":true,"id":16671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16666":{"this":{"__isSmartRef__":true,"id":16658},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16667}},"16667":{"$super":{"__isSmartRef__":true,"id":16668}},"16668":{"varMapping":{"__isSmartRef__":true,"id":16669},"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":16670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16669":{"obj":{"__isSmartRef__":true,"id":16658},"name":"onDragStart"},"16670":{},"16671":{},"16672":{"varMapping":{"__isSmartRef__":true,"id":16673},"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":16678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16673":{"this":{"__isSmartRef__":true,"id":16658},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16674}},"16674":{"$super":{"__isSmartRef__":true,"id":16675}},"16675":{"varMapping":{"__isSmartRef__":true,"id":16676},"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":16677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16676":{"obj":{"__isSmartRef__":true,"id":16658},"name":"onDrag"},"16677":{},"16678":{},"16679":{"varMapping":{"__isSmartRef__":true,"id":16680},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n }","funcProperties":{"__isSmartRef__":true,"id":16685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16680":{"this":{"__isSmartRef__":true,"id":16658},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16681}},"16681":{"$super":{"__isSmartRef__":true,"id":16682}},"16682":{"varMapping":{"__isSmartRef__":true,"id":16683},"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":16684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16683":{"obj":{"__isSmartRef__":true,"id":16658},"name":"onDragEnd"},"16684":{},"16685":{},"16686":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_NodeClass":["morph","window"],"_NodeId":"morph-b957a7f7-f71e-4170-8c72-7020680f5959","__serializedExpressions__":["_Padding","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_Extent":"lively.pt(336.0,111.7)"},"16687":{"morph":{"__isSmartRef__":true,"id":16578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16688":{"adjustForNewBounds":true},"16689":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1024.0,768.0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"16690":{"options":{"__isSmartRef__":true,"id":16691}},"16691":{"override":["onDrag","onDragStart","onDragEnd"]},"16692":{"requiredModules":[],"partsSpaceName":"PartsBin/Presenting/","migrationLevel":2,"comment":"A copy of this object is used by the PresentationController when you press the button \"new slide\".","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16693":{"morph":{"__isSmartRef__":true,"id":16558},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16694":{"copy":{"__isSmartRef__":true,"id":16695},"onDropOn":{"__isSmartRef__":true,"id":16703},"onMouseUp":{"__isSmartRef__":true,"id":16711},"onDragStart":{"__isSmartRef__":true,"id":16719},"onDragEnd":{"__isSmartRef__":true,"id":16727},"showItem":{"__isSmartRef__":true,"id":16735},"getPane":{"__isSmartRef__":true,"id":16739}},"16695":{"varMapping":{"__isSmartRef__":true,"id":16696},"source":"function copy() {\n var result = $super();\n result.pane = null\n // keep that invariant....\n result.slide = result.submorphs.first();\n var title = result.get('title');\n if (title && title.textString) title.textString += ' Copy';\n result.setBorderColor(Color.gray)\n return result\n }","funcProperties":{"__isSmartRef__":true,"id":16701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16696":{"this":{"__isSmartRef__":true,"id":16419},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16697}},"16697":{"$super":{"__isSmartRef__":true,"id":16698}},"16698":{"varMapping":{"__isSmartRef__":true,"id":16699},"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":16700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16699":{"obj":{"__isSmartRef__":true,"id":16419},"name":"copy"},"16700":{},"16701":{"timestamp":{"__isSmartRef__":true,"id":16702},"user":"jenslincke","tags":[]},"16702":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16703":{"varMapping":{"__isSmartRef__":true,"id":16704},"source":"function onDropOn(morph) {\n if (morph.name == 'Container') {\n morph.get('PresentationContainerPane').onAddSlideItem(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16704":{"this":{"__isSmartRef__":true,"id":16419},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16705}},"16705":{"$super":{"__isSmartRef__":true,"id":16706}},"16706":{"varMapping":{"__isSmartRef__":true,"id":16707},"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":16708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16707":{"obj":{"__isSmartRef__":true,"id":16419},"name":"onDropOn"},"16708":{},"16709":{"timestamp":{"__isSmartRef__":true,"id":16710},"user":"jenslincke","tags":[]},"16710":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16711":{"varMapping":{"__isSmartRef__":true,"id":16712},"source":"function onMouseUp(evt) { \n var pane = this.getPane()\n if (!pane) return;\n pane.onItemMouseUp(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":16717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16712":{"this":{"__isSmartRef__":true,"id":16419},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16713}},"16713":{"$super":{"__isSmartRef__":true,"id":16714}},"16714":{"varMapping":{"__isSmartRef__":true,"id":16715},"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":16716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16715":{"obj":{"__isSmartRef__":true,"id":16419},"name":"onMouseUp"},"16716":{},"16717":{"timestamp":{"__isSmartRef__":true,"id":16718},"user":"jenslincke","tags":[]},"16718":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16719":{"varMapping":{"__isSmartRef__":true,"id":16720},"source":"function onDragStart(evt) { \n\n var pane = this.getPane()\n if (!pane) {\n evt.hand.grabMorph(this)\n return;\n };\n return pane.onItemDragStart(this, evt)}","funcProperties":{"__isSmartRef__":true,"id":16725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16720":{"this":{"__isSmartRef__":true,"id":16419},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16721}},"16721":{"$super":{"__isSmartRef__":true,"id":16722}},"16722":{"varMapping":{"__isSmartRef__":true,"id":16723},"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":16724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16723":{"obj":{"__isSmartRef__":true,"id":16419},"name":"onDragStart"},"16724":{},"16725":{"timestamp":{"__isSmartRef__":true,"id":16726},"user":"jenslincke","tags":[]},"16726":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16727":{"varMapping":{"__isSmartRef__":true,"id":16728},"source":"function onDragEnd(evt) { \n var pane = this.getPane()\n\n if (!pane) return;\n return pane.onItemDragEnd(this, evt)\n}","funcProperties":{"__isSmartRef__":true,"id":16733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16728":{"this":{"__isSmartRef__":true,"id":16419},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16729}},"16729":{"$super":{"__isSmartRef__":true,"id":16730}},"16730":{"varMapping":{"__isSmartRef__":true,"id":16731},"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":16732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16731":{"obj":{"__isSmartRef__":true,"id":16419},"name":"onDragEnd"},"16732":{},"16733":{"timestamp":{"__isSmartRef__":true,"id":16734},"user":"jenslincke","tags":[]},"16734":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16735":{"varMapping":{"__isSmartRef__":true,"id":16736},"source":"function showItem() { \n this.addMorph(this.slide);\n this.slide.disableEvents();\n this.slide.setPosition(pt(10,10))\n this.slide.setScale(1)\n }","funcProperties":{"__isSmartRef__":true,"id":16737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16736":{"this":{"__isSmartRef__":true,"id":16419}},"16737":{"timestamp":{"__isSmartRef__":true,"id":16738},"user":"jenslincke","tags":[]},"16738":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16739":{"varMapping":{"__isSmartRef__":true,"id":16740},"source":"function getPane() {\n return this.get('PresentationContainerPane')\n}","funcProperties":{"__isSmartRef__":true,"id":16741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16740":{"this":{"__isSmartRef__":true,"id":16419}},"16741":{"timestamp":{"__isSmartRef__":true,"id":16742},"user":"jenslincke","tags":[]},"16742":{"isSerializedDate":true,"string":"Mon Oct 19 2015 16:43:28 GMT+0200 (Central Europe Daylight Time)"},"16743":{"submorphs":[{"__isSmartRef__":true,"id":16744}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19317},"derivationIds":[null,"D7330AB1-7B3F-4AE1-9FD8-8F78661210D7"],"id":"ADCBA61F-5EB8-482B-945C-28808546FDDD","eventHandler":{"__isSmartRef__":true,"id":19318},"_ClipMode":"visible","__layered_droppingEnabled__":false,"halosEnabled":true,"isSlideContainer":true,"slide":{"__isSmartRef__":true,"id":19319},"pane":{"__isSmartRef__":true,"id":11730},"name":"PresentationItem for SWASlide47","owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position"],"showsHalos":false,"behaviorGroups":["Slides"],"_Rotation":0,"_Scale":0.3,"prevScroll":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21892},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(370.0,1520.0)"},"16744":{"submorphs":[{"__isSmartRef__":true,"id":16745},{"__isSmartRef__":true,"id":16751},{"__isSmartRef__":true,"id":16772},{"__isSmartRef__":true,"id":16793},{"__isSmartRef__":true,"id":16803}],"scripts":[],"id":"E099CCCF-B494-4989-A495-C36F515606C5","shape":{"__isSmartRef__":true,"id":19312},"__layered_droppingEnabled__":false,"halosEnabled":true,"showsHalos":false,"_isInFullScreen":false,"_traitConfig_":{"__isSmartRef__":true,"id":19313},"draggingEnabled":true,"name":"SWASlide48","partsBinMetaInfo":{"__isSmartRef__":true,"id":19315},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":19316},"derivationIds":[10607,"68DA8647-921C-466D-AB99-7AA99849A255","518D4060-AF88-45F0-83A9-C257D29AFF4B","4211B758-DB98-4B5A-A067-6539A7D2F09B","820406EE-ACA5-4BB1-BED8-04AEEC36E0F5","9BE94FC1-229A-44B9-867A-C13FF5E6441E","9F9FB61C-F2A0-4643-841C-D18904F29D5A","9031B17D-3A78-42DC-9D45-5F2A2DAC52F2","B557F7CA-001C-4D03-9655-D6691615BD01","1C0232E3-B6F1-444D-93B7-657E593C32EE","73915C5D-944F-4DA7-90C6-1A3DB71145A4","CDC1DBDD-49FD-404C-8CA5-A86735AFD5D5","B6D19BFF-8A56-4C0F-B8EA-DC4E19B87630","7578A4C6-8E2E-4152-9B6B-3602E47A1D81","4A9706B8-3391-4D5F-843D-A164BE572FFD","1253F588-85EE-4964-9FE4-985CD1D28BF6","4DB4EA46-3CFA-46BB-A87B-BECEDFDB3296","8B27AE5D-256A-4350-81D2-DBB3FD709A52","93218F9F-B04D-43C6-83A8-99C0A3F60BF0","B9AB95BA-B43B-4448-A5C6-4CFF1FD96114","1B6BD51F-01FD-470A-AA72-8DDC23A29866","CC3E5D38-20DA-47C4-85D6-8A48DA32325B","CE6AC753-3C59-45BC-B0B8-3D0D2E43F985","0569AE6F-A03E-49A8-AD5D-73FFB26B44CD","AF4CCE8A-7558-4A51-9AF5-5AC9B32714EE","A8A72A17-BCF1-4990-B895-58C0C7762E50","A2DE7CD6-6C7E-43A9-B941-0DD81C5005EB","EBBE3E68-ED20-414C-AC66-48D366DF0182","F6826CDC-DDEB-4486-8D07-BD1CD01037C8","70107993-916C-418F-96DD-2EDA00F22575","A691AE87-DA0D-42D2-906D-28F49049F61C","FB6D7355-F47B-448C-AC25-E1C2A7513387","ACDCA81A-A376-42F5-94A8-20BC7FCEBF1F","5F071D0A-0824-4B1C-B099-D363CA59D109","CC185752-ED01-4F70-B329-5B5E975F72A4","2AAF4086-390B-4B81-BC60-F3BBDB16DB8B","F0686C52-0D95-4307-A06A-F747A43A36CE"],"prevScroll":[0,0],"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","eventsAreIgnored":true,"_ClipMode":"visible","grabbingEnabled":false,"_Visible":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent","lastWorldPosition"],"owner":{"__isSmartRef__":true,"id":16743},"__LivelyClassName__":"lively.Presentation.PageMorph","__SourceModuleName__":"Global.lively.Presentation","_Position":"lively.pt(10.0,10.0)","distanceToDragEvent":"lively.pt(677.6,-7.9)","lastWorldPosition":"lively.pt(720.0,1520.0)"},"16745":{"submorphs":[],"scripts":[],"id":"E97AF087-695B-4F8D-8642-5136C97A415D","shape":{"__isSmartRef__":true,"id":16746},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":1019.1211211211212,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"title","partsBinMetaInfo":{"__isSmartRef__":true,"id":16747},"textChunks":[{"__isSmartRef__":true,"id":16748}],"owner":{"__isSmartRef__":true,"id":16744},"charsReplaced":"Connection","lastFindLoc":20,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16750},"_WhiteSpaceHandling":"pre-wrap","_Align":"center","_ClipMode":"visible","derivationIds":[10608,"ECB0DE05-A987-4692-AB4B-5CF57D02C158","716211DA-7F92-48F0-8AFC-693225A63F28","BDEAAD9A-66DA-4778-9258-3344E036B471","89269DEA-F64B-449D-8A01-81DEE50268A0","EBF31170-0B2F-42E0-9DAA-173D082C0F48","773C042A-5C2B-4725-BA69-B561007A06D7","07ADB4DE-0BAA-4DA0-83C8-51E81D83B7BA","A117C1EC-7137-4E7F-8FEA-4AF44B61489D","77C27CB4-14FF-40D1-90FE-64DC6A53C17F","9E37A4BC-38C1-441D-B8E2-6A4E8530FB23","16A049D8-3563-4A0D-8DAF-CE0D27AF8313","8CFFAB59-EAD4-4F10-9623-037271D8BCC8","F9141B1B-5BD3-49B8-BCF0-40783B2FF046","8659EB39-8A7E-4CDF-81DD-0749AA04C95C","C525482E-A82C-4D10-997E-FC054FCF5C21","721E68A9-9EFE-4DAA-A416-C22A90AE6CBE","8924E4D2-BA49-43E9-92F2-8722BF497796","7ABDA087-862A-4A84-827B-AAA957F47C70","A69E256D-E097-4E67-B7F1-604A2309D4FD","D8CD3E06-3AD1-4D1C-8B95-A1D4AF4BE4D8","857BA7DA-70ED-40F1-87D7-EA995187F3D1","CBCCC08E-1884-43F9-8FB3-0D1BBD3B56F3","FA99E645-9013-4F45-B3E6-F02B9DEBBD7E","8B895897-27F3-433A-B9EF-99EB8CB37F96","A08E9D91-3AD8-4676-8BB5-0C007998F990","731B1EB2-15AF-4A8D-8FC4-5F4097E23EEA","9C8141F9-F0CD-4BAD-8EFE-A1947EFBBF87","B25110B3-2818-4CA1-B8EC-063CC4F7AB94","6771D830-56BA-415F-92F1-5CE3E5D687C3","C9B1DB13-AD06-4936-8DF3-61B56BC68B5D","19DCC3E8-1913-40E8-B3B0-EF84063A0B38","44CE2EBB-C48A-402E-B48B-586F11E82405","EA29E825-8C6B-4E8F-B5CE-5631D432A266","A8E56EFE-A541-4D9E-A49D-5E05E945E9EE","6DA0D25E-4578-47CE-B381-ECE7B5CC32EB","D59A8F51-8EA5-47B0-B47F-6F08F2D3F314"],"_MinTextWidth":1019.1211211211212,"_MinTextHeight":null,"previousSelection":[10,0],"isBeingDragged":false,"_Rotation":0,"_Scale":1.001001001001001,"__serializedExpressions__":["_Position","textColor","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,90.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)"},"16746":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1019.1,49.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"16747":{"partsSpaceName":"PartsBin/NewWorld","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16748":{"style":{"__isSmartRef__":true,"id":16749},"chunkOwner":{"__isSmartRef__":true,"id":16745},"storedString":"Association between Tools and Morphs","_id":"_356","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16749":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16750":{"morph":{"__isSmartRef__":true,"id":16745},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16751":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16752},"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","7B2B9CEB-E170-48AB-BF7B-E56453E3BF5A"],"id":"26B6833B-E661-4799-8752-776D9A062635","eventHandler":{"__isSmartRef__":true,"id":16753},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"OgreCharacter3","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":16754},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":16744},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16767},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(74.3,505.7)","distanceToDragEvent":"lively.pt(52.8,-13.1)"},"16752":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/ogre.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(80.0,80.0)","_Padding":"lively.rect(0,0,0,0)"},"16753":{"morph":{"__isSmartRef__":true,"id":16751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16754":{"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":16755},{"__isSmartRef__":true,"id":16757},{"__isSmartRef__":true,"id":16759},{"__isSmartRef__":true,"id":16761},{"__isSmartRef__":true,"id":16763},{"__isSmartRef__":true,"id":16765}],"migrationLevel":4,"revisionOnLoad":156416,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16755":{"date":{"__isSmartRef__":true,"id":16756},"author":"lauritz","message":"i've got to tell a thing or two","id":"70436981-18DC-4F38-8140-749232838288"},"16756":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:29 GMT+0200 (Central Europe Daylight Time)"},"16757":{"date":{"__isSmartRef__":true,"id":16758},"author":"tessi","message":"some more sentences for our lovely ogre","id":"CAA81E8E-2A04-4B19-A2A3-BDC1DE903D07"},"16758":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:41:46 GMT+0200 (Central Europe Daylight Time)"},"16759":{"date":{"__isSmartRef__":true,"id":16760},"author":"tessi","message":"","id":"037D4B98-0FC3-4F01-AAC5-1A7043695CDF"},"16760":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:42:21 GMT+0200 (Central Europe Daylight Time)"},"16761":{"date":{"__isSmartRef__":true,"id":16762},"author":"tessi","message":"","id":"27266C01-3C1A-49AC-ADAF-D4699D234741"},"16762":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:00 GMT+0200 (Central Europe Daylight Time)"},"16763":{"date":{"__isSmartRef__":true,"id":16764},"author":"tessi","message":"an ogre now talks some sentences when soliloquizing","id":"9B52F781-C25B-44D7-B07A-BF47EA424C08"},"16764":{"isSerializedDate":true,"string":"Sat Apr 21 2012 17:34:12 GMT+0200 (Central Europe Daylight Time)"},"16765":{"date":{"__isSmartRef__":true,"id":16766},"author":"lauritz","message":"no comment","id":"A49B0290-BC2D-4D41-9981-C0207ECC4EE5"},"16766":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:29:57 GMT+0200 (Central Europe Daylight Time)"},"16767":{"soliloquize":{"__isSmartRef__":true,"id":16768}},"16768":{"varMapping":{"__isSmartRef__":true,"id":16769},"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":16770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16769":{"this":{"__isSmartRef__":true,"id":16751}},"16770":{"timestamp":{"__isSmartRef__":true,"id":16771},"user":"lauritz","tags":[]},"16771":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:26:22 GMT+0200 (Central Europe Daylight Time)"},"16772":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16773},"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","9FF079FC-F49F-4062-9FD7-42628F26736E"],"id":"CEC62A7C-EFB8-456C-850F-0BB0A943AB1F","eventHandler":{"__isSmartRef__":true,"id":16774},"__layered_droppingEnabled__":false,"halosEnabled":true,"name":"OgreCharacter4","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":16775},"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":16744},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16788},"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(197.9,584.7)","distanceToDragEvent":"lively.pt(45.7,-16.9)"},"16773":{"_ClipMode":"visible","_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/ogre.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(80.0,80.0)","_Padding":"lively.rect(0,0,0,0)"},"16774":{"morph":{"__isSmartRef__":true,"id":16772},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16775":{"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":16776},{"__isSmartRef__":true,"id":16778},{"__isSmartRef__":true,"id":16780},{"__isSmartRef__":true,"id":16782},{"__isSmartRef__":true,"id":16784},{"__isSmartRef__":true,"id":16786}],"migrationLevel":4,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16776":{"date":{"__isSmartRef__":true,"id":16777},"author":"lauritz","message":"i've got to tell a thing or two","id":"70436981-18DC-4F38-8140-749232838288"},"16777":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:29 GMT+0200 (Central Europe Daylight Time)"},"16778":{"date":{"__isSmartRef__":true,"id":16779},"author":"tessi","message":"some more sentences for our lovely ogre","id":"CAA81E8E-2A04-4B19-A2A3-BDC1DE903D07"},"16779":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:41:46 GMT+0200 (Central Europe Daylight Time)"},"16780":{"date":{"__isSmartRef__":true,"id":16781},"author":"tessi","message":"","id":"037D4B98-0FC3-4F01-AAC5-1A7043695CDF"},"16781":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:42:21 GMT+0200 (Central Europe Daylight Time)"},"16782":{"date":{"__isSmartRef__":true,"id":16783},"author":"tessi","message":"","id":"27266C01-3C1A-49AC-ADAF-D4699D234741"},"16783":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:00 GMT+0200 (Central Europe Daylight Time)"},"16784":{"date":{"__isSmartRef__":true,"id":16785},"author":"tessi","message":"an ogre now talks some sentences when soliloquizing","id":"9B52F781-C25B-44D7-B07A-BF47EA424C08"},"16785":{"isSerializedDate":true,"string":"Sat Apr 21 2012 17:34:12 GMT+0200 (Central Europe Daylight Time)"},"16786":{"date":{"__isSmartRef__":true,"id":16787},"author":"lauritz","message":"no comment","id":"A49B0290-BC2D-4D41-9981-C0207ECC4EE5"},"16787":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:29:57 GMT+0200 (Central Europe Daylight Time)"},"16788":{"soliloquize":{"__isSmartRef__":true,"id":16789}},"16789":{"varMapping":{"__isSmartRef__":true,"id":16790},"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":16791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16790":{"this":{"__isSmartRef__":true,"id":16772}},"16791":{"timestamp":{"__isSmartRef__":true,"id":16792},"user":"lauritz","tags":[]},"16792":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:26:22 GMT+0200 (Central Europe Daylight Time)"},"16793":{"submorphs":[],"scripts":[],"id":"97F729A2-1E3B-429A-8182-15E75E16DCE3","shape":{"__isSmartRef__":true,"id":16794},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":830.6646176225495,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":20,"name":"content1","partsBinMetaInfo":{"__isSmartRef__":true,"id":16795},"textChunks":[{"__isSmartRef__":true,"id":16796},{"__isSmartRef__":true,"id":16798},{"__isSmartRef__":true,"id":16800}],"charsReplaced":"No mechanisms for browsing part compositions","lastFindLoc":90,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16802},"_WhiteSpaceHandling":"pre-wrap","_Align":"left","isBeingDragged":false,"_ClipMode":"visible","_MinTextWidth":830.6646176225495,"_MinTextHeight":null,"derivationIds":[211,"DE196D4A-8061-40F7-8245-35D2AD7EC280","BC0193ED-943F-4385-AB31-E798E0F9403F","59CD0201-E748-46EA-A9DA-5ACCB54D6B22","06C0B487-0489-4D9C-A6C9-E7DF00B456B6","DD6094B7-AD25-4752-9BE0-FFEF7A8690BB","D46B6C1D-E2D2-4B07-9C02-A88757E9B91E","D1746211-F23A-438B-9C54-B1158563DBE0","9C324131-2256-44EC-86DC-64C5F7A63D03","BF970D77-8FED-4729-95F1-A3FC793B87C1","65A5B818-EDBB-45D1-9EF1-845B467B8071","543A5115-EE36-47C0-9984-A053C42CFC01","4CE32403-9547-4869-B064-4D4BFDB90972","0B5A16FB-6EE3-4BC4-8185-9C011C811808","99A0F8D3-3DD8-474B-A8A7-3993C874FC0A","4818C7CF-4CCC-42A1-A637-21840B25E259","D3D7BC83-496D-468F-BC33-6B1B26B4B7DA","7FC9DB8E-A058-4346-894E-4762953498F4","DAB71FF3-214B-45EE-AFBC-A449344AC4E7","DE9CF7AA-836E-44E1-A8AB-3D720B5CE0BB","9DF62392-754C-415D-A832-86DAE81044D1","06AEA08B-03A2-49E0-BD62-EAE79B91800A","0CA70940-FF31-492C-888C-C037509C8BAB","E5D8A9F0-FEBE-4244-8D88-833FBE86A1FB","F72F0D24-97ED-4171-A245-E15305D9596F","FD95F5A3-4BC8-4624-8BCE-7418CBA581E0","8A7EED17-465D-4C4B-8118-CED23E202FE9","67E89EEB-4306-4970-83F5-5E24A672BD6A","56C6D476-47A1-4AD3-9340-9EE470F9BEAE","6734B205-3A4F-4F2F-A339-2CD871E82936","BA59A4A0-07FE-46B3-A0A4-70A9F29AA40D","87DAA03C-DD82-4EB7-A632-4799DC6A5341","94809990-060C-462F-8C42-8BFF1B365D2F","B036E432-A10C-4432-AE6A-6B8FD021CF92","9D8BAA36-83E9-4E00-A405-82EE4F19EB61"],"owner":{"__isSmartRef__":true,"id":16744},"priorSelectionRange":[12,12],"_Rotation":0,"_Scale":1.1073654710215566,"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(53.2,178.9)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(33,33,33)","distanceToDragEvent":"lively.pt(499.7,-16.4)"},"16794":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(830.7,31.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"16795":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16796":{"style":{"__isSmartRef__":true,"id":16797},"chunkOwner":{"__isSmartRef__":true,"id":16793},"storedString":"","_id":"_779","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16797":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16798":{"style":{"__isSmartRef__":true,"id":16799},"chunkOwner":{"__isSmartRef__":true,"id":16793},"storedString":"■ Ambiguous connection from code to object","_id":"_357","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16799":{"color":"rgb(33,33,33)","fontFamily":"Arial,sans-serif","fontSize":"27px","fontStyle":"normal","fontVariant":"normal","fontWeight":"bold","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"left","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(255,255,255)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16800":{"style":{"__isSmartRef__":true,"id":16801},"chunkOwner":{"__isSmartRef__":true,"id":16793},"storedString":"\n","_id":"_358","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16801":{"textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16802":{"morph":{"__isSmartRef__":true,"id":16793},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16803":{"submorphs":[{"__isSmartRef__":true,"id":16804},{"__isSmartRef__":true,"id":19071},{"__isSmartRef__":true,"id":19100}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19171},"id":"AB5D6160-0D14-4204-9B1F-9A35051F2418","eventHandler":{"__isSmartRef__":true,"id":19172},"__layered_droppingEnabled__":false,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":19173},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":16804},"titleBar":{"__isSmartRef__":true,"id":19100},"collapsedTransform":{"__isSmartRef__":true,"id":19174},"expandedTransform":{"__isSmartRef__":true,"id":19175},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":19176},"name":"ObjectEditor","highlighted":true,"cameForward":false,"showsHalos":false,"isBeingDragged":false,"prevScroll":[0,0],"isCopyMorphRef":true,"morphRefId":16,"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","A4BBF25D-51AB-4BDB-B67F-100007C0D2E4"],"moved":true,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":16744},"_Rotation":0,"_Scale":1.118439125731772,"__serializedExpressions__":["contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition","minSize","minExtent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19299},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(723.0,268.0)","expandedExtent":"lively.pt(729.0,365.0)","prevDragPos":"lively.pt(316.0,288.0)","expandedPosition":"lively.pt(26.0,125.0)","collapsedPosition":"lively.pt(21.0,92.9)","minSize":"lively.pt(500.0,300.0)","minExtent":"lively.pt(455.0,268.0)","_Position":"lively.pt(314.3,263.4)"},"16804":{"submorphs":[{"__isSmartRef__":true,"id":16805},{"__isSmartRef__":true,"id":17289},{"__isSmartRef__":true,"id":17295},{"__isSmartRef__":true,"id":17316},{"__isSmartRef__":true,"id":17039},{"__isSmartRef__":true,"id":17047},{"__isSmartRef__":true,"id":17342},{"__isSmartRef__":true,"id":17421},{"__isSmartRef__":true,"id":17427},{"__isSmartRef__":true,"id":17433}],"scripts":[{"__isSmartRef__":true,"id":17490}],"id":"59274A04-2C50-4E8D-B3F0-4DB445187598","shape":{"__isSmartRef__":true,"id":17491},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":17492},"eventHandler":{"__isSmartRef__":true,"id":17495},"layout":{"__isSmartRef__":true,"id":17496},"target":{"__isSmartRef__":true,"id":16751},"scriptPane":{"__isSmartRef__":true,"id":17039},"scriptList":{"__isSmartRef__":true,"id":16805},"connectionList":{"__isSmartRef__":true,"id":17497},"morphSelector":{"__isSmartRef__":true,"id":17342},"changeIndicator":{"__isSmartRef__":true,"id":17047},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"tagChooser":{"__isSmartRef__":true,"id":17433},"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","E0E0E617-B2FF-4E79-B350-CDAE4DD23AAD"],"owner":{"__isSmartRef__":true,"id":16803},"partTests":{"__isSmartRef__":true,"id":18965},"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18966},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(350.2,-3.2)","_Position":"lively.pt(1.0,21.5)"},"16805":{"submorphs":[],"scripts":[],"id":"604C58C1-A370-4351-B2B9-9A9B6CFB059E","shape":{"__isSmartRef__":true,"id":16806},"__layered_droppingEnabled__":false,"halosEnabled":true,"itemList":["-- ALL --","soliloquize"],"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":16807},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":16804},"prevScroll":[0,51],"attributeConnections":[{"__isSmartRef__":true,"id":16808}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":16810},"doitContext":{"__isSmartRef__":true,"id":16811},"eventHandler":{"__isSmartRef__":true,"id":17280},"_FontSize":10,"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":17,"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","D794F36F-B9E9-443B-A595-902E651F3678"],"selection":null,"changeTriggered":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17281},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,63.0)","distanceToDragEvent":"lively.pt(126.0,-14.4)"},"16806":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(183.2,277.5)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"16807":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16808":{"sourceObj":{"__isSmartRef__":true,"id":16805},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":16804},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16809},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16809":{"source":{"__isSmartRef__":true,"id":16805},"target":{"__isSmartRef__":true,"id":16804}},"16810":{"resizeHeight":true},"16811":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":16812},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":16813},"titleBar":{"__isSmartRef__":true,"id":16814},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":16879},"highlighted":true,"_Rotation":0,"_Scale":1,"showsHalos":false,"name":"ObjectEditor","target":{"__isSmartRef__":true,"id":16880},"partsBinMetaInfo":{"__isSmartRef__":true,"id":17038},"scriptList":{"__isSmartRef__":true,"id":16805},"scriptPane":{"__isSmartRef__":true,"id":17039},"classButton":{"__isSmartRef__":true,"id":17104},"connectionList":{"__isSmartRef__":true,"id":17124},"targetButton":{"__isSmartRef__":true,"id":17136},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"morphSelector":{"__isSmartRef__":true,"id":17154},"eventHandler":{"__isSmartRef__":true,"id":17227},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["contentOffset","expandedExtent","prevDragPos","expandedPosition","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17228},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","expandedExtent":"lively.pt(861.5,575.2)","prevDragPos":"lively.pt(613.0,129.0)","expandedPosition":"lively.pt(377.7,419.5)","_Position":"lively.pt(715.5,73.9)"},"16812":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":9.25,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Fill","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Extent":"lively.pt(981.0,585.2)","_BorderColor":"Color.rgb(0,0,0)"},"16813":{"adjustForNewBounds":true},"16814":{"submorphs":[{"__isSmartRef__":true,"id":16815},{"__isSmartRef__":true,"id":16820},{"__isSmartRef__":true,"id":16841},{"__isSmartRef__":true,"id":16856}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":16872},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16877},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":16811},"label":{"__isSmartRef__":true,"id":16815},"closeButton":{"__isSmartRef__":true,"id":16820},"menuButton":{"__isSmartRef__":true,"id":16841},"collapseButton":{"__isSmartRef__":true,"id":16856},"owner":null,"name":"ObjectEditorTitleBar","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":16878},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"16815":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":16816},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":16817}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":16814},"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":16819},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"16816":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(922.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16817":{"style":{"__isSmartRef__":true,"id":16818},"chunkOwner":{"__isSmartRef__":true,"id":16815},"storedString":"","_id":"_429","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16818":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16819":{"morph":{"__isSmartRef__":true,"id":16815},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16820":{"submorphs":[{"__isSmartRef__":true,"id":16821}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":16826},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16827},"lighterFill":{"__isSmartRef__":true,"id":16832},"label":{"__isSmartRef__":true,"id":16821},"owner":{"__isSmartRef__":true,"id":16814},"layout":{"__isSmartRef__":true,"id":16837},"attributeConnections":[{"__isSmartRef__":true,"id":16838},{"__isSmartRef__":true,"id":16839}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":16840},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(961.0,3.0)"},"16821":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":16822},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":16823}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16820},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":16825},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"16822":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16823":{"style":{"__isSmartRef__":true,"id":16824},"chunkOwner":{"__isSmartRef__":true,"id":16821},"storedString":"","_id":"_780","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16824":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16825":{"morph":{"__isSmartRef__":true,"id":16821},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16826":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":16827},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"16827":{"stops":[{"__isSmartRef__":true,"id":16828},{"__isSmartRef__":true,"id":16829},{"__isSmartRef__":true,"id":16830},{"__isSmartRef__":true,"id":16831}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16828":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"16829":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"16830":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"16831":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"16832":{"stops":[{"__isSmartRef__":true,"id":16833},{"__isSmartRef__":true,"id":16834},{"__isSmartRef__":true,"id":16835},{"__isSmartRef__":true,"id":16836}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16833":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"16834":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16835":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16836":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"16837":{"moveHorizontal":true},"16838":{"sourceObj":{"__isSmartRef__":true,"id":16820},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16811},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16839":{"sourceObj":{"__isSmartRef__":true,"id":16820},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16811},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16840":{"morph":{"__isSmartRef__":true,"id":16820},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16841":{"submorphs":[{"__isSmartRef__":true,"id":16842}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":16847},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16827},"lighterFill":{"__isSmartRef__":true,"id":16848},"label":{"__isSmartRef__":true,"id":16842},"owner":{"__isSmartRef__":true,"id":16814},"attributeConnections":[{"__isSmartRef__":true,"id":16853},{"__isSmartRef__":true,"id":16854}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":16855},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"16842":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":16843},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":16844}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16841},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":16846},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"16843":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16844":{"style":{"__isSmartRef__":true,"id":16845},"chunkOwner":{"__isSmartRef__":true,"id":16842},"storedString":"","_id":"_781","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16845":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16846":{"morph":{"__isSmartRef__":true,"id":16842},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16847":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":16827},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"16848":{"stops":[{"__isSmartRef__":true,"id":16849},{"__isSmartRef__":true,"id":16850},{"__isSmartRef__":true,"id":16851},{"__isSmartRef__":true,"id":16852}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16849":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"16850":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16851":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16852":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"16853":{"sourceObj":{"__isSmartRef__":true,"id":16841},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16811},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16854":{"sourceObj":{"__isSmartRef__":true,"id":16841},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16811},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16855":{"morph":{"__isSmartRef__":true,"id":16841},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16856":{"submorphs":[{"__isSmartRef__":true,"id":16857}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":16862},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16827},"lighterFill":{"__isSmartRef__":true,"id":16863},"label":{"__isSmartRef__":true,"id":16857},"owner":{"__isSmartRef__":true,"id":16814},"layout":{"__isSmartRef__":true,"id":16868},"attributeConnections":[{"__isSmartRef__":true,"id":16869},{"__isSmartRef__":true,"id":16870}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":16871},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(942.0,3.0)"},"16857":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":16858},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":16859}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16856},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":16861},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"16858":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16859":{"style":{"__isSmartRef__":true,"id":16860},"chunkOwner":{"__isSmartRef__":true,"id":16857},"storedString":"","_id":"_782","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16860":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16861":{"morph":{"__isSmartRef__":true,"id":16857},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16862":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":16827},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"16863":{"stops":[{"__isSmartRef__":true,"id":16864},{"__isSmartRef__":true,"id":16865},{"__isSmartRef__":true,"id":16866},{"__isSmartRef__":true,"id":16867}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16864":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"16865":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16866":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16867":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"16868":{"moveHorizontal":true},"16869":{"sourceObj":{"__isSmartRef__":true,"id":16856},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16811},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16870":{"sourceObj":{"__isSmartRef__":true,"id":16856},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16811},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16871":{"morph":{"__isSmartRef__":true,"id":16856},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16872":{"_BorderWidth":2,"_Fill":{"__isSmartRef__":true,"id":16873},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(981.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"16873":{"stops":[{"__isSmartRef__":true,"id":16874},{"__isSmartRef__":true,"id":16875},{"__isSmartRef__":true,"id":16876}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,1,0,-1)"},"16874":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"16875":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(230,230,230)"},"16876":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"16877":{"resizeWidth":true,"adjustForNewBounds":true},"16878":{"morph":{"__isSmartRef__":true,"id":16814},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16879":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16880":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16881},"id":394,"textChunks":[{"__isSmartRef__":true,"id":16882}],"eventHandler":{"__isSmartRef__":true,"id":16884},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16885},"layout":{"__isSmartRef__":true,"id":16957},"doitContext":{"__isSmartRef__":true,"id":16958},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"16881":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,200.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"16882":{"style":{"__isSmartRef__":true,"id":16883},"chunkOwner":{"__isSmartRef__":true,"id":16880},"storedString":"","_id":"_783","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16883":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16884":{"morph":{"__isSmartRef__":true,"id":16880},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16885":{"submorphs":[{"__isSmartRef__":true,"id":16880},{"__isSmartRef__":true,"id":16886}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16954},"id":395,"eventHandler":{"__isSmartRef__":true,"id":16955},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":16956},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":16880},"titleBar":{"__isSmartRef__":true,"id":16886},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"cameForward":false,"showsHalos":false,"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1234.0,448.0)","contentOffset":"lively.pt(0.0,22.0)","prevDragPos":"lively.pt(1478.0,453.0)"},"16886":{"submorphs":[{"__isSmartRef__":true,"id":16887},{"__isSmartRef__":true,"id":16893},{"__isSmartRef__":true,"id":16916},{"__isSmartRef__":true,"id":16933}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16951},"id":396,"eventHandler":{"__isSmartRef__":true,"id":16952},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16953},"windowMorph":{"__isSmartRef__":true,"id":16885},"label":{"__isSmartRef__":true,"id":16887},"closeButton":{"__isSmartRef__":true,"id":16893},"menuButton":{"__isSmartRef__":true,"id":16916},"collapseButton":{"__isSmartRef__":true,"id":16933},"owner":{"__isSmartRef__":true,"id":16885},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"16887":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16888},"id":397,"textChunks":[{"__isSmartRef__":true,"id":16889}],"eventHandler":{"__isSmartRef__":true,"id":16891},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":16892},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":16886},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"16888":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16889":{"style":{"__isSmartRef__":true,"id":16890},"chunkOwner":{"__isSmartRef__":true,"id":16887},"storedString":"","_id":"_784","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16890":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16891":{"morph":{"__isSmartRef__":true,"id":16887},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16892":{"resizeWidth":true},"16893":{"submorphs":[{"__isSmartRef__":true,"id":16894}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16899},"id":398,"eventHandler":{"__isSmartRef__":true,"id":16905},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16900},"lighterFill":{"__isSmartRef__":true,"id":16906},"label":{"__isSmartRef__":true,"id":16894},"owner":{"__isSmartRef__":true,"id":16886},"layout":{"__isSmartRef__":true,"id":16911},"attributeConnections":[{"__isSmartRef__":true,"id":16912},{"__isSmartRef__":true,"id":16914}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"16894":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16895},"id":399,"textChunks":[{"__isSmartRef__":true,"id":16896}],"eventHandler":{"__isSmartRef__":true,"id":16898},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16893},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"16895":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16896":{"style":{"__isSmartRef__":true,"id":16897},"chunkOwner":{"__isSmartRef__":true,"id":16894},"storedString":"","_id":"_785","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16897":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16898":{"morph":{"__isSmartRef__":true,"id":16894},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16899":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":16900},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"16900":{"stops":[{"__isSmartRef__":true,"id":16901},{"__isSmartRef__":true,"id":16902},{"__isSmartRef__":true,"id":16903},{"__isSmartRef__":true,"id":16904}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16901":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"16902":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"16903":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"16904":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"16905":{"morph":{"__isSmartRef__":true,"id":16893},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16906":{"stops":[{"__isSmartRef__":true,"id":16907},{"__isSmartRef__":true,"id":16908},{"__isSmartRef__":true,"id":16909},{"__isSmartRef__":true,"id":16910}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16907":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"16908":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16909":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16910":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"16911":{"moveHorizontal":true},"16912":{"sourceObj":{"__isSmartRef__":true,"id":16893},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16885},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16913},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16913":{"source":{"__isSmartRef__":true,"id":16893},"target":{"__isSmartRef__":true,"id":16885}},"16914":{"sourceObj":{"__isSmartRef__":true,"id":16893},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16885},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16915},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16915":{"source":{"__isSmartRef__":true,"id":16893},"target":{"__isSmartRef__":true,"id":16885}},"16916":{"submorphs":[{"__isSmartRef__":true,"id":16917}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16922},"id":400,"eventHandler":{"__isSmartRef__":true,"id":16923},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16900},"lighterFill":{"__isSmartRef__":true,"id":16924},"label":{"__isSmartRef__":true,"id":16917},"owner":{"__isSmartRef__":true,"id":16886},"attributeConnections":[{"__isSmartRef__":true,"id":16929},{"__isSmartRef__":true,"id":16931}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"16917":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16918},"id":401,"textChunks":[{"__isSmartRef__":true,"id":16919}],"eventHandler":{"__isSmartRef__":true,"id":16921},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16916},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"16918":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16919":{"style":{"__isSmartRef__":true,"id":16920},"chunkOwner":{"__isSmartRef__":true,"id":16917},"storedString":"","_id":"_786","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16920":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16921":{"morph":{"__isSmartRef__":true,"id":16917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16922":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":16900},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"16923":{"morph":{"__isSmartRef__":true,"id":16916},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16924":{"stops":[{"__isSmartRef__":true,"id":16925},{"__isSmartRef__":true,"id":16926},{"__isSmartRef__":true,"id":16927},{"__isSmartRef__":true,"id":16928}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16925":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"16926":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16927":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16928":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"16929":{"sourceObj":{"__isSmartRef__":true,"id":16916},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16885},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16930},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16930":{"source":{"__isSmartRef__":true,"id":16916},"target":{"__isSmartRef__":true,"id":16885}},"16931":{"sourceObj":{"__isSmartRef__":true,"id":16916},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16885},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16932},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16932":{"source":{"__isSmartRef__":true,"id":16916},"target":{"__isSmartRef__":true,"id":16885}},"16933":{"submorphs":[{"__isSmartRef__":true,"id":16934}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16939},"id":402,"eventHandler":{"__isSmartRef__":true,"id":16940},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16900},"lighterFill":{"__isSmartRef__":true,"id":16941},"label":{"__isSmartRef__":true,"id":16934},"owner":{"__isSmartRef__":true,"id":16886},"layout":{"__isSmartRef__":true,"id":16946},"attributeConnections":[{"__isSmartRef__":true,"id":16947},{"__isSmartRef__":true,"id":16949}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"16934":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16935},"id":403,"textChunks":[{"__isSmartRef__":true,"id":16936}],"eventHandler":{"__isSmartRef__":true,"id":16938},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16933},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"16935":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16936":{"style":{"__isSmartRef__":true,"id":16937},"chunkOwner":{"__isSmartRef__":true,"id":16934},"storedString":"","_id":"_787","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16937":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16938":{"morph":{"__isSmartRef__":true,"id":16934},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16939":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":16900},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"16940":{"morph":{"__isSmartRef__":true,"id":16933},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16941":{"stops":[{"__isSmartRef__":true,"id":16942},{"__isSmartRef__":true,"id":16943},{"__isSmartRef__":true,"id":16944},{"__isSmartRef__":true,"id":16945}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16942":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"16943":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16944":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16945":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"16946":{"moveHorizontal":true},"16947":{"sourceObj":{"__isSmartRef__":true,"id":16933},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16885},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16948},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16948":{"source":{"__isSmartRef__":true,"id":16933},"target":{"__isSmartRef__":true,"id":16885}},"16949":{"sourceObj":{"__isSmartRef__":true,"id":16933},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16885},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16950},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16950":{"source":{"__isSmartRef__":true,"id":16933},"target":{"__isSmartRef__":true,"id":16885}},"16951":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":16873},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"16952":{"morph":{"__isSmartRef__":true,"id":16886},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16953":{"resizeWidth":true,"adjustForNewBounds":true},"16954":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)"},"16955":{"morph":{"__isSmartRef__":true,"id":16885},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16956":{"adjustForNewBounds":true},"16957":{"resizeWidth":true,"resizeHeight":true},"16958":{"submorphs":[{"__isSmartRef__":true,"id":16959},{"__isSmartRef__":true,"id":16966}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17033},"id":361,"eventHandler":{"__isSmartRef__":true,"id":17034},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":17035},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":16959},"titleBar":{"__isSmartRef__":true,"id":16966},"collapsedTransform":{"__isSmartRef__":true,"id":17036},"expandedTransform":{"__isSmartRef__":true,"id":17037},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"state":"shutdown","__serializedExpressions__":["_Position","contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1131.0,79.0)","contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(500.0,22.0)","expandedExtent":"lively.pt(500.0,222.0)","prevDragPos":"lively.pt(1507.0,76.0)","expandedPosition":"lively.pt(1131.0,79.0)","collapsedPosition":"lively.pt(1131.0,79.0)"},"16959":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16960},"id":360,"textChunks":[{"__isSmartRef__":true,"id":16961}],"eventHandler":{"__isSmartRef__":true,"id":16963},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16958},"layout":{"__isSmartRef__":true,"id":16964},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":16965}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"charsReplaced":"","lastFindLoc":15,"__serializedExpressions__":["_Padding","_Position"],"textString":"undefined","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"16960":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"16961":{"style":{"__isSmartRef__":true,"id":16962},"chunkOwner":{"__isSmartRef__":true,"id":16959},"_id":"_7052","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16962":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16963":{"morph":{"__isSmartRef__":true,"id":16959},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16964":{"resizeWidth":true,"resizeHeight":true},"16965":{"sourceObj":{"__isSmartRef__":true,"id":16959},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":16959},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16966":{"submorphs":[{"__isSmartRef__":true,"id":16967},{"__isSmartRef__":true,"id":16973},{"__isSmartRef__":true,"id":16991},{"__isSmartRef__":true,"id":17008}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17026},"id":362,"eventHandler":{"__isSmartRef__":true,"id":17031},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17032},"windowMorph":{"__isSmartRef__":true,"id":16958},"label":{"__isSmartRef__":true,"id":16967},"closeButton":{"__isSmartRef__":true,"id":16973},"menuButton":{"__isSmartRef__":true,"id":16991},"collapseButton":{"__isSmartRef__":true,"id":17008},"owner":{"__isSmartRef__":true,"id":16958},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"16967":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16968},"id":363,"textChunks":[{"__isSmartRef__":true,"id":16969}],"eventHandler":{"__isSmartRef__":true,"id":16971},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":16972},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":16966},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"16968":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16969":{"style":{"__isSmartRef__":true,"id":16970},"chunkOwner":{"__isSmartRef__":true,"id":16967},"storedString":"","_id":"_788","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16970":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16971":{"morph":{"__isSmartRef__":true,"id":16967},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16972":{"resizeWidth":true},"16973":{"submorphs":[{"__isSmartRef__":true,"id":16974}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16979},"id":364,"eventHandler":{"__isSmartRef__":true,"id":16980},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16900},"lighterFill":{"__isSmartRef__":true,"id":16981},"label":{"__isSmartRef__":true,"id":16974},"owner":{"__isSmartRef__":true,"id":16966},"layout":{"__isSmartRef__":true,"id":16986},"attributeConnections":[{"__isSmartRef__":true,"id":16987},{"__isSmartRef__":true,"id":16989}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"16974":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16975},"id":365,"textChunks":[{"__isSmartRef__":true,"id":16976}],"eventHandler":{"__isSmartRef__":true,"id":16978},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16973},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"16975":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16976":{"style":{"__isSmartRef__":true,"id":16977},"chunkOwner":{"__isSmartRef__":true,"id":16974},"storedString":"","_id":"_789","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16977":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16978":{"morph":{"__isSmartRef__":true,"id":16974},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16979":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":16900},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"16980":{"morph":{"__isSmartRef__":true,"id":16973},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16981":{"stops":[{"__isSmartRef__":true,"id":16982},{"__isSmartRef__":true,"id":16983},{"__isSmartRef__":true,"id":16984},{"__isSmartRef__":true,"id":16985}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"16982":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"16983":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16984":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"16985":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"16986":{"moveHorizontal":true},"16987":{"sourceObj":{"__isSmartRef__":true,"id":16973},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16958},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16988},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16988":{"source":{"__isSmartRef__":true,"id":16973},"target":{"__isSmartRef__":true,"id":16958}},"16989":{"sourceObj":{"__isSmartRef__":true,"id":16973},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16958},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16990},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16990":{"source":{"__isSmartRef__":true,"id":16973},"target":{"__isSmartRef__":true,"id":16958}},"16991":{"submorphs":[{"__isSmartRef__":true,"id":16992}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16997},"id":366,"eventHandler":{"__isSmartRef__":true,"id":16998},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16900},"lighterFill":{"__isSmartRef__":true,"id":16999},"label":{"__isSmartRef__":true,"id":16992},"owner":{"__isSmartRef__":true,"id":16966},"attributeConnections":[{"__isSmartRef__":true,"id":17004},{"__isSmartRef__":true,"id":17006}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"16992":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16993},"id":367,"textChunks":[{"__isSmartRef__":true,"id":16994}],"eventHandler":{"__isSmartRef__":true,"id":16996},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16991},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"16993":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"16994":{"style":{"__isSmartRef__":true,"id":16995},"chunkOwner":{"__isSmartRef__":true,"id":16992},"storedString":"","_id":"_790","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16995":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16996":{"morph":{"__isSmartRef__":true,"id":16992},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16997":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":16900},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"16998":{"morph":{"__isSmartRef__":true,"id":16991},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16999":{"stops":[{"__isSmartRef__":true,"id":17000},{"__isSmartRef__":true,"id":17001},{"__isSmartRef__":true,"id":17002},{"__isSmartRef__":true,"id":17003}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17000":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17001":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17002":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17003":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17004":{"sourceObj":{"__isSmartRef__":true,"id":16991},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16958},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17005},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17005":{"source":{"__isSmartRef__":true,"id":16991},"target":{"__isSmartRef__":true,"id":16958}},"17006":{"sourceObj":{"__isSmartRef__":true,"id":16991},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16958},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17007},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17007":{"source":{"__isSmartRef__":true,"id":16991},"target":{"__isSmartRef__":true,"id":16958}},"17008":{"submorphs":[{"__isSmartRef__":true,"id":17009}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17014},"id":368,"eventHandler":{"__isSmartRef__":true,"id":17015},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16900},"lighterFill":{"__isSmartRef__":true,"id":17016},"label":{"__isSmartRef__":true,"id":17009},"owner":{"__isSmartRef__":true,"id":16966},"layout":{"__isSmartRef__":true,"id":17021},"attributeConnections":[{"__isSmartRef__":true,"id":17022},{"__isSmartRef__":true,"id":17024}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"17009":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17010},"id":369,"textChunks":[{"__isSmartRef__":true,"id":17011}],"eventHandler":{"__isSmartRef__":true,"id":17013},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17008},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"17010":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17011":{"style":{"__isSmartRef__":true,"id":17012},"chunkOwner":{"__isSmartRef__":true,"id":17009},"storedString":"","_id":"_791","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17012":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17013":{"morph":{"__isSmartRef__":true,"id":17009},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17014":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":16900},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17015":{"morph":{"__isSmartRef__":true,"id":17008},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17016":{"stops":[{"__isSmartRef__":true,"id":17017},{"__isSmartRef__":true,"id":17018},{"__isSmartRef__":true,"id":17019},{"__isSmartRef__":true,"id":17020}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17017":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17018":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17019":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17020":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17021":{"moveHorizontal":true},"17022":{"sourceObj":{"__isSmartRef__":true,"id":17008},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16958},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17023},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17023":{"source":{"__isSmartRef__":true,"id":17008},"target":{"__isSmartRef__":true,"id":16958}},"17024":{"sourceObj":{"__isSmartRef__":true,"id":17008},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16958},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17025},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17025":{"source":{"__isSmartRef__":true,"id":17008},"target":{"__isSmartRef__":true,"id":16958}},"17026":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":17027},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"17027":{"stops":[{"__isSmartRef__":true,"id":17028},{"__isSmartRef__":true,"id":17029},{"__isSmartRef__":true,"id":17030}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17028":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"17029":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(243,243,243)"},"17030":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"17031":{"morph":{"__isSmartRef__":true,"id":16966},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17032":{"resizeWidth":true,"adjustForNewBounds":true},"17033":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)","_Position":"lively.pt(0.0,0.0)"},"17034":{"morph":{"__isSmartRef__":true,"id":16958},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17035":{"adjustForNewBounds":true},"17036":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17037":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17038":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17039":{"submorphs":[],"scripts":[],"id":"3C9378F9-F311-4F25-94E1-AA96655B2EC0","shape":{"__isSmartRef__":true,"id":17040},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":389.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":17041}],"layout":{"__isSmartRef__":true,"id":17043},"showsHalos":false,"prevScroll":[0,0],"name":"ObjectEditorScriptPane","charsReplaced":"","lastFindLoc":7,"partsBinMetaInfo":{"__isSmartRef__":true,"id":17044},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":2,"doitContext":{"__isSmartRef__":true,"id":16751},"savedTextString":"this.addScript(function currentTarget() {\n return this.owner.target;\n}).tag([]);","_Align":"left","lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":17045},"attributeConnections":[{"__isSmartRef__":true,"id":17046},{"__isSmartRef__":true,"id":17061}],"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"],"doNotCopyProperties":["$$textString"],"_MinTextWidth":389.0285365288845,"_MinTextHeight":null,"lastSaveSource":"","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":16804},"isCopyMorphRef":true,"morphRefId":1,"statusMorph":{"__isSmartRef__":true,"id":17062},"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","CD602927-D1E4-4E4C-8A8A-9999443EB3F1"],"owner":{"__isSmartRef__":true,"id":16804},"syntaxHighlightingWhileTyping":true,"#startLetters":"enable","_syntaxHighlightTimeout":null,"previousSelection":[33,33],"_WordBreak":"break-all","_lastSyntaxHighlightTime":8,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"textString":"undefined","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17067},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(341.2,-18.3)","_Position":"lively.pt(200.0,40.0)"},"17040":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(391.0,304.6)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"17041":{"style":{"__isSmartRef__":true,"id":17042},"chunkOwner":{"__isSmartRef__":true,"id":17039},"_id":"_7056","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17042":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,128)"},"17043":{"resizeWidth":true,"resizeHeight":true},"17044":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17045":{"morph":{"__isSmartRef__":true,"id":17039},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17046":{"sourceObj":{"__isSmartRef__":true,"id":17039},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":17047},"targetMethodName":"indicateUnsavedChanges","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17047":{"submorphs":[],"scripts":[],"id":"2D438561-3416-4581-A83A-19D4B0C28144","shape":{"__isSmartRef__":true,"id":17048},"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":17049},"eventHandler":{"__isSmartRef__":true,"id":17050},"owner":{"__isSmartRef__":true,"id":16804},"layout":{"__isSmartRef__":true,"id":17051},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":26,"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","9AF8CE94-CD09-451E-9B1C-DE6C40566D84"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","savedColor","alarmColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17052},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(583.0,40.0)","savedColor":"Color.rgb(0,0,0)","alarmColor":"Color.rgb(240,0,0)","distanceToDragEvent":"lively.pt(37.3,-17.5)"},"17048":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(8.6,9.7)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"17049":{"partsSpaceName":"PartsBin/Basic","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","__SourceModuleName__":"Global.lively.PartsBin"},"17050":{"morph":{"__isSmartRef__":true,"id":17047},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17051":{"moveHorizontal":true,"adjustForNewBounds":true},"17052":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":17053},"setColors":{"__isSmartRef__":true,"id":17057}},"17053":{"varMapping":{"__isSmartRef__":true,"id":17054},"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":17055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17054":{"this":{"__isSmartRef__":true,"id":17047}},"17055":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":17056}},"17056":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (Central Europe Daylight Time)"},"17057":{"varMapping":{"__isSmartRef__":true,"id":17058},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":17059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17058":{"this":{"__isSmartRef__":true,"id":17047}},"17059":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":17060}},"17060":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (Central Europe Daylight Time)"},"17061":{"sourceObj":{"__isSmartRef__":true,"id":17039},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":17039},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17062":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17063},"id":553,"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":17064}],"eventHandler":{"__isSmartRef__":true,"id":17066},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","owner":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(295.5,225.3)","_TextColor":"Color.rgb(0,204,0)"},"17063":{"_ClipMode":"visible","_BorderWidth":1,"_StrokeOpacity":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,25.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)"},"17064":{"style":{"__isSmartRef__":true,"id":17065},"chunkOwner":{"__isSmartRef__":true,"id":17062},"storedString":"saved source","_id":"_359","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17065":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17066":{"morph":{"__isSmartRef__":true,"id":17062},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17067":{"doSave":{"__isSmartRef__":true,"id":17068},"boundEval":{"__isSmartRef__":true,"id":17076},"reset":{"__isSmartRef__":true,"id":17084},"display":{"__isSmartRef__":true,"id":17088},"hasChanged":{"__isSmartRef__":true,"id":17092},"setTarget":{"__isSmartRef__":true,"id":17096},"displayStatus":{"__isSmartRef__":true,"id":17100}},"17068":{"varMapping":{"__isSmartRef__":true,"id":17069},"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":17074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17069":{"this":{"__isSmartRef__":true,"id":17039},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17070}},"17070":{"$super":{"__isSmartRef__":true,"id":17071}},"17071":{"varMapping":{"__isSmartRef__":true,"id":17072},"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":17073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17072":{"obj":{"__isSmartRef__":true,"id":17039},"name":"doSave"},"17073":{},"17074":{"timestamp":{"__isSmartRef__":true,"id":17075},"user":"lauritz"},"17075":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (Central Europe Standard Time)"},"17076":{"varMapping":{"__isSmartRef__":true,"id":17077},"source":"function boundEval(str) {\n var result;\n\n this.objectEditorPane.ensureAnnotationLayer();\n withLayers([ScriptAnnotationLayer], function() {\n result = $super(str);\n })\n \n return result\n}","funcProperties":{"__isSmartRef__":true,"id":17082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17077":{"this":{"__isSmartRef__":true,"id":17039},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17078}},"17078":{"$super":{"__isSmartRef__":true,"id":17079}},"17079":{"varMapping":{"__isSmartRef__":true,"id":17080},"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":17081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17080":{"obj":{"__isSmartRef__":true,"id":17039},"name":"boundEval"},"17081":{},"17082":{"timestamp":{"__isSmartRef__":true,"id":17083},"user":"lauritz","categories":[]},"17083":{"isSerializedDate":true,"string":"Wed Nov 16 2011 05:41:53 GMT+0100 (Central Europe Standard Time)"},"17084":{"varMapping":{"__isSmartRef__":true,"id":17085},"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":17086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17085":{"this":{"__isSmartRef__":true,"id":17039}},"17086":{"timestamp":{"__isSmartRef__":true,"id":17087},"user":"cschuster","tags":[]},"17087":{"isSerializedDate":true,"string":"Wed May 16 2012 20:52:57 GMT+0200 (Central Europe Daylight Time)"},"17088":{"varMapping":{"__isSmartRef__":true,"id":17089},"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":17090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17089":{"this":{"__isSmartRef__":true,"id":17039}},"17090":{"timestamp":{"__isSmartRef__":true,"id":17091},"user":"lauritz","categories":[]},"17091":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (Central Europe Daylight Time)"},"17092":{"varMapping":{"__isSmartRef__":true,"id":17093},"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":17094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17093":{"this":{"__isSmartRef__":true,"id":17039}},"17094":{"timestamp":{"__isSmartRef__":true,"id":17095},"user":"lauritz","categories":[]},"17095":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (Central Europe Daylight Time)"},"17096":{"varMapping":{"__isSmartRef__":true,"id":17097},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":17098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17097":{"this":{"__isSmartRef__":true,"id":17039}},"17098":{"timestamp":{"__isSmartRef__":true,"id":17099},"user":"lauritz","categories":[]},"17099":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:30:39 GMT+0100 (Central Europe Standard Time)"},"17100":{"varMapping":{"__isSmartRef__":true,"id":17101},"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":17102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17101":{"this":{"__isSmartRef__":true,"id":17039}},"17102":{"timestamp":{"__isSmartRef__":true,"id":17103},"user":"lauritz","categories":[]},"17103":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (Central Europe Standard Time)"},"17104":{"submorphs":[{"__isSmartRef__":true,"id":17105}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":17110},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17111},"lighterFill":{"__isSmartRef__":true,"id":17116},"label":{"__isSmartRef__":true,"id":17105},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":17121},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":17122},"eventHandler":{"__isSmartRef__":true,"id":17123},"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(820.0,9.0)","padding":"lively.rect(5,0,0,0)"},"17105":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":17106},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":17104},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":17107}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17109},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"17106":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,18.0)","_BorderColor":"Color.rgb(0,0,0)"},"17107":{"style":{"__isSmartRef__":true,"id":17108},"chunkOwner":{"__isSmartRef__":true,"id":17105},"storedString":"","_id":"_792","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17108":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17109":{"morph":{"__isSmartRef__":true,"id":17105},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17110":{"_Fill":{"__isSmartRef__":true,"id":17111},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"17111":{"stops":[{"__isSmartRef__":true,"id":17112},{"__isSmartRef__":true,"id":17113},{"__isSmartRef__":true,"id":17114},{"__isSmartRef__":true,"id":17115}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17112":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17113":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17114":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17115":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"17116":{"stops":[{"__isSmartRef__":true,"id":17117},{"__isSmartRef__":true,"id":17118},{"__isSmartRef__":true,"id":17119},{"__isSmartRef__":true,"id":17120}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17117":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17118":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17119":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17120":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17121":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17122":{"moveHorizontal":true},"17123":{"morph":{"__isSmartRef__":true,"id":17104},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17124":{"submorphs":[],"scripts":[],"id":"5B895D87-7CD4-4602-A383-8D6F869CCD94","shape":{"__isSmartRef__":true,"id":17125},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":[],"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":17126},"_ClipMode":"auto","owner":null,"attributeConnections":[{"__isSmartRef__":true,"id":17127}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":17129},"eventHandler":{"__isSmartRef__":true,"id":17130},"_FontSize":10,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":19,"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"],"_Rotation":0,"_Scale":1,"changeTriggered":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17131},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,441.6)","distanceToDragEvent":"lively.pt(125.0,-17.1)"},"17125":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,74.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"17126":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17127":{"sourceObj":{"__isSmartRef__":true,"id":17124},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":16804},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17128},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17128":{"source":{"__isSmartRef__":true,"id":17124},"target":{"__isSmartRef__":true,"id":16804}},"17129":{"resizeHeight":false,"moveVertical":true},"17130":{"morph":{"__isSmartRef__":true,"id":17124},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17131":{"preselectItem":{"__isSmartRef__":true,"id":17132}},"17132":{"varMapping":{"__isSmartRef__":true,"id":17133},"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":17134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17133":{"this":{"__isSmartRef__":true,"id":17124}},"17134":{"timestamp":{"__isSmartRef__":true,"id":17135},"user":"lauritz"},"17135":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (Central Europe Standard Time)"},"17136":{"submorphs":[{"__isSmartRef__":true,"id":17137}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":17141},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17142},"lighterFill":{"__isSmartRef__":true,"id":17147},"label":{"__isSmartRef__":true,"id":17137},"attributeConnections":[{"__isSmartRef__":true,"id":17152}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":17153},"_Scale":1,"owner":null,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(215.0,35.0)","padding":"lively.rect(5,0,0,0)"},"17137":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":17138},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":17136},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":17139}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"17138":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(0,0,0)"},"17139":{"style":{"__isSmartRef__":true,"id":17140},"chunkOwner":{"__isSmartRef__":true,"id":17137},"storedString":"","_id":"_793","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17140":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17141":{"_Fill":{"__isSmartRef__":true,"id":17142},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"17142":{"stops":[{"__isSmartRef__":true,"id":17143},{"__isSmartRef__":true,"id":17144},{"__isSmartRef__":true,"id":17145},{"__isSmartRef__":true,"id":17146}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17143":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17144":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17145":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17146":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"17147":{"stops":[{"__isSmartRef__":true,"id":17148},{"__isSmartRef__":true,"id":17149},{"__isSmartRef__":true,"id":17150},{"__isSmartRef__":true,"id":17151}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17148":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17149":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17150":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17151":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17152":{"sourceObj":{"__isSmartRef__":true,"id":17136},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16811},"targetMethodName":"chooseTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17153":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17154":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":17155},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":218,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":17156},"textChunks":[{"__isSmartRef__":true,"id":17157}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":17159}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"_Align":"left","eventHandler":{"__isSmartRef__":true,"id":17161},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":17162},"selection":{"__isSmartRef__":true,"id":16803},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":17181},"_Rotation":0,"_Scale":1,"savedTextString":"100","__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17182},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(200.0,10.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(153.9,-23.7)"},"17155":{"fill":null,"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(244,244,244)"},"17156":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17157":{"style":{"__isSmartRef__":true,"id":17158},"chunkOwner":{"__isSmartRef__":true,"id":17154},"storedString":"","_id":"_794","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17158":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17159":{"sourceObj":{"__isSmartRef__":true,"id":17154},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":16804},"targetMethodName":"setTarget","converterString":"function (name) { return $world.get(name)}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17160},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17160":{"source":{"__isSmartRef__":true,"id":17154},"target":{"__isSmartRef__":true,"id":16804}},"17161":{"morph":{"__isSmartRef__":true,"id":17154},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17162":{"createListMorph":{"__isSmartRef__":true,"id":17163},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":17165},"onMouseUp":{"__isSmartRef__":true,"id":17167},"resetConnections":{"__isSmartRef__":true,"id":17169},"setTargetToListSelection":{"__isSmartRef__":true,"id":17171},"setTargetOfPane":{"__isSmartRef__":true,"id":17173},"onBlur":{"__isSmartRef__":true,"id":17175},"reset":{"__isSmartRef__":true,"id":17177},"onMouseDown":{"__isSmartRef__":true,"id":17179}},"17163":{"time":{"__isSmartRef__":true,"id":17164},"user":"lauritz"},"17164":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (Central Europe Daylight Time)"},"17165":{"time":{"__isSmartRef__":true,"id":17166},"user":"lauritz"},"17166":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (Central Europe Daylight Time)"},"17167":{"time":{"__isSmartRef__":true,"id":17168},"user":"lauritz"},"17168":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (Central Europe Daylight Time)"},"17169":{"time":{"__isSmartRef__":true,"id":17170},"user":"lauritz"},"17170":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (Central Europe Daylight Time)"},"17171":{"time":{"__isSmartRef__":true,"id":17172},"user":"lauritz"},"17172":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (Central Europe Daylight Time)"},"17173":{"time":{"__isSmartRef__":true,"id":17174},"user":"lauritz"},"17174":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (Central Europe Daylight Time)"},"17175":{"time":{"__isSmartRef__":true,"id":17176},"user":"lauritz"},"17176":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (Central Europe Daylight Time)"},"17177":{"time":{"__isSmartRef__":true,"id":17178},"user":"lauritz"},"17178":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (Central Europe Daylight Time)"},"17179":{"time":{"__isSmartRef__":true,"id":17180},"user":"lauritz"},"17180":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (Central Europe Daylight Time)"},"17181":{},"17182":{"getList":{"__isSmartRef__":true,"id":17183},"setList":{"__isSmartRef__":true,"id":17186},"reset":{"__isSmartRef__":true,"id":17189},"example":{"__isSmartRef__":true,"id":17192},"removeList":{"__isSmartRef__":true,"id":17195},"onBlur":{"__isSmartRef__":true,"id":17198},"createListMorph":{"__isSmartRef__":true,"id":17205},"resetConnections":{"__isSmartRef__":true,"id":17208},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":17211},"setTargetToListSelection":{"__isSmartRef__":true,"id":17214},"setTargetOfPane":{"__isSmartRef__":true,"id":17217},"onMouseDown":{"__isSmartRef__":true,"id":17220}},"17183":{"varMapping":{"__isSmartRef__":true,"id":17184},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":17185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17184":{"this":{"__isSmartRef__":true,"id":17154}},"17185":{},"17186":{"varMapping":{"__isSmartRef__":true,"id":17187},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":17188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17187":{"this":{"__isSmartRef__":true,"id":17154}},"17188":{},"17189":{"varMapping":{"__isSmartRef__":true,"id":17190},"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":17191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17190":{"this":{"__isSmartRef__":true,"id":17154}},"17191":{},"17192":{"varMapping":{"__isSmartRef__":true,"id":17193},"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":17194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17193":{"this":{"__isSmartRef__":true,"id":17154}},"17194":{},"17195":{"varMapping":{"__isSmartRef__":true,"id":17196},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":17197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17196":{"this":{"__isSmartRef__":true,"id":17154}},"17197":{},"17198":{"varMapping":{"__isSmartRef__":true,"id":17199},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":17204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17199":{"this":{"__isSmartRef__":true,"id":17154},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17200}},"17200":{"$super":{"__isSmartRef__":true,"id":17201}},"17201":{"varMapping":{"__isSmartRef__":true,"id":17202},"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":17203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17202":{"obj":{"__isSmartRef__":true,"id":17154},"name":"onBlur"},"17203":{},"17204":{},"17205":{"varMapping":{"__isSmartRef__":true,"id":17206},"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":17207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17206":{"this":{"__isSmartRef__":true,"id":17154}},"17207":{},"17208":{"varMapping":{"__isSmartRef__":true,"id":17209},"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":17210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17209":{"this":{"__isSmartRef__":true,"id":17154}},"17210":{},"17211":{"varMapping":{"__isSmartRef__":true,"id":17212},"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":17213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17212":{"this":{"__isSmartRef__":true,"id":17154}},"17213":{},"17214":{"varMapping":{"__isSmartRef__":true,"id":17215},"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":17216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17215":{"this":{"__isSmartRef__":true,"id":17154}},"17216":{},"17217":{"varMapping":{"__isSmartRef__":true,"id":17218},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":17219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17218":{"this":{"__isSmartRef__":true,"id":17154}},"17219":{},"17220":{"varMapping":{"__isSmartRef__":true,"id":17221},"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":17226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17221":{"this":{"__isSmartRef__":true,"id":17154},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17222}},"17222":{"$super":{"__isSmartRef__":true,"id":17223}},"17223":{"varMapping":{"__isSmartRef__":true,"id":17224},"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":17225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17224":{"obj":{"__isSmartRef__":true,"id":17154},"name":"onMouseDown"},"17225":{},"17226":{},"17227":{"morph":{"__isSmartRef__":true,"id":16811},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17228":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":17229},"setTarget":{"__isSmartRef__":true,"id":17232},"generateSourceForScript":{"__isSmartRef__":true,"id":17235},"generateSourceForConnection":{"__isSmartRef__":true,"id":17238},"generateTargetCode":{"__isSmartRef__":true,"id":17241},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":17244},"displayJavaScriptSource":{"__isSmartRef__":true,"id":17247},"displaySourceForScript":{"__isSmartRef__":true,"id":17250},"displaySourceForConnection":{"__isSmartRef__":true,"id":17253},"newScript":{"__isSmartRef__":true,"id":17256},"newConnection":{"__isSmartRef__":true,"id":17259},"deleteSelectedScript":{"__isSmartRef__":true,"id":17262},"disconnectConnection":{"__isSmartRef__":true,"id":17265},"updateLists":{"__isSmartRef__":true,"id":17268},"displayInitialScript":{"__isSmartRef__":true,"id":17271},"reset":{"__isSmartRef__":true,"id":17274},"selectChangedContent":{"__isSmartRef__":true,"id":17277}},"17229":{"varMapping":{"__isSmartRef__":true,"id":17230},"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":17231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17230":{"this":{"__isSmartRef__":true,"id":16811}},"17231":{},"17232":{"varMapping":{"__isSmartRef__":true,"id":17233},"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":17234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17233":{"this":{"__isSmartRef__":true,"id":16811}},"17234":{},"17235":{"varMapping":{"__isSmartRef__":true,"id":17236},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":17237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17236":{"this":{"__isSmartRef__":true,"id":16811}},"17237":{},"17238":{"varMapping":{"__isSmartRef__":true,"id":17239},"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":17240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17239":{"this":{"__isSmartRef__":true,"id":16811}},"17240":{},"17241":{"varMapping":{"__isSmartRef__":true,"id":17242},"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":17243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17242":{"this":{"__isSmartRef__":true,"id":16811}},"17243":{},"17244":{"varMapping":{"__isSmartRef__":true,"id":17245},"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":17246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17245":{"this":{"__isSmartRef__":true,"id":16811}},"17246":{},"17247":{"varMapping":{"__isSmartRef__":true,"id":17248},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":17249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17248":{"this":{"__isSmartRef__":true,"id":16811}},"17249":{},"17250":{"varMapping":{"__isSmartRef__":true,"id":17251},"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":17252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17251":{"this":{"__isSmartRef__":true,"id":16811}},"17252":{},"17253":{"varMapping":{"__isSmartRef__":true,"id":17254},"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":17255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17254":{"this":{"__isSmartRef__":true,"id":16811}},"17255":{},"17256":{"varMapping":{"__isSmartRef__":true,"id":17257},"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":17258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17257":{"this":{"__isSmartRef__":true,"id":16811}},"17258":{},"17259":{"varMapping":{"__isSmartRef__":true,"id":17260},"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":17261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17260":{"this":{"__isSmartRef__":true,"id":16811}},"17261":{},"17262":{"varMapping":{"__isSmartRef__":true,"id":17263},"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":17264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17263":{"this":{"__isSmartRef__":true,"id":16811}},"17264":{},"17265":{"varMapping":{"__isSmartRef__":true,"id":17266},"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":17267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17266":{"this":{"__isSmartRef__":true,"id":16811}},"17267":{},"17268":{"varMapping":{"__isSmartRef__":true,"id":17269},"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":17270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17269":{"this":{"__isSmartRef__":true,"id":16811}},"17270":{},"17271":{"varMapping":{"__isSmartRef__":true,"id":17272},"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":17273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17272":{"this":{"__isSmartRef__":true,"id":16811}},"17273":{},"17274":{"varMapping":{"__isSmartRef__":true,"id":17275},"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":17276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17275":{"this":{"__isSmartRef__":true,"id":16811}},"17276":{},"17277":{"varMapping":{"__isSmartRef__":true,"id":17278},"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","selection":{"__isSmartRef__":true,"id":17362},"_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","C15A4C92-3503-4B9A-9C28-23AD92C3E353"],"isPressed":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17368},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(240.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"17343":{"submorphs":[],"scripts":[],"id":"0F2FB7ED-A53E-44F4-A2C5-1F015B43C3D7","shape":{"__isSmartRef__":true,"id":17344},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":17342},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":17345}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":17347}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":17348},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":14,"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","492A4A8A-5246-4C42-90DD-46BF68ADD47E"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"17344":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"17345":{"style":{"__isSmartRef__":true,"id":17346},"chunkOwner":{"__isSmartRef__":true,"id":17343},"storedString":"OgreCharacter3","_id":"_363","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17346":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17347":{"sourceObj":{"__isSmartRef__":true,"id":17343},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":17342},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17348":{"morph":{"__isSmartRef__":true,"id":17343},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17349":{"_Fill":{"__isSmartRef__":true,"id":17350},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"17350":{"stops":[{"__isSmartRef__":true,"id":17351},{"__isSmartRef__":true,"id":17352},{"__isSmartRef__":true,"id":17353},{"__isSmartRef__":true,"id":17354}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17351":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17352":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17353":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17354":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"17355":{"stops":[{"__isSmartRef__":true,"id":17356},{"__isSmartRef__":true,"id":17357},{"__isSmartRef__":true,"id":17358},{"__isSmartRef__":true,"id":17359}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17356":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17357":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17358":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17359":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17360":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17361":{"morph":{"__isSmartRef__":true,"id":17342},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17362":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":17363},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":17364},"textChunks":[{"__isSmartRef__":true,"id":17365}],"eventHandler":{"__isSmartRef__":true,"id":17367},"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,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"17363":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"17364":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17365":{"style":{"__isSmartRef__":true,"id":17366},"chunkOwner":{"__isSmartRef__":true,"id":17362},"storedString":"","_id":"_795","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17366":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17367":{"morph":{"__isSmartRef__":true,"id":17362},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17368":{"createListMorph":{"__isSmartRef__":true,"id":17369},"getList":{"__isSmartRef__":true,"id":17373},"removeList":{"__isSmartRef__":true,"id":17377},"reset":{"__isSmartRef__":true,"id":17381},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":17385},"onMouseDown":{"__isSmartRef__":true,"id":17389},"setTargetOfPane":{"__isSmartRef__":true,"id":17397},"setTargetToListSelection":{"__isSmartRef__":true,"id":17401},"onBlur":{"__isSmartRef__":true,"id":17405},"setTarget":{"__isSmartRef__":true,"id":17413},"setTargetOnSelection":{"__isSmartRef__":true,"id":17417}},"17369":{"varMapping":{"__isSmartRef__":true,"id":17370},"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, 'setTargetToListSelection');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":17371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17370":{"this":{"__isSmartRef__":true,"id":17342}},"17371":{"timestamp":{"__isSmartRef__":true,"id":17372},"user":"lauritz","tags":[]},"17372":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (Central Europe Standard Time)"},"17373":{"varMapping":{"__isSmartRef__":true,"id":17374},"source":"function getList() {\n var worldEntry = {\n isListItem: true,\n selectionString: 'World',\n string: 'World',\n value: this.world()\n };\n var list = this.world().indentedListItemsOfMorphNames();\n list.unshift(worldEntry);\n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":17375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17374":{"this":{"__isSmartRef__":true,"id":17342}},"17375":{"timestamp":{"__isSmartRef__":true,"id":17376},"user":"lauritz","tags":[]},"17376":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (Central Europe Standard Time)"},"17377":{"varMapping":{"__isSmartRef__":true,"id":17378},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":17379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17378":{"this":{"__isSmartRef__":true,"id":17342}},"17379":{"timestamp":{"__isSmartRef__":true,"id":17380},"user":"lauritz","tags":[]},"17380":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (Central Europe Standard Time)"},"17381":{"varMapping":{"__isSmartRef__":true,"id":17382},"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":17383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17382":{"this":{"__isSmartRef__":true,"id":17342}},"17383":{"timestamp":{"__isSmartRef__":true,"id":17384},"user":"lauritz","tags":[]},"17384":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (Central Europe Standard Time)"},"17385":{"varMapping":{"__isSmartRef__":true,"id":17386},"source":"function displayTopLevelMorphs() {\n var list = this.createListMorph(); \n if (this.getList().length === 0) return;\n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":17387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17386":{"this":{"__isSmartRef__":true,"id":17342}},"17387":{"timestamp":{"__isSmartRef__":true,"id":17388},"user":"lauritz","tags":[]},"17388":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (Central Europe Standard Time)"},"17389":{"varMapping":{"__isSmartRef__":true,"id":17390},"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":17395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17390":{"this":{"__isSmartRef__":true,"id":17342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17391}},"17391":{"$super":{"__isSmartRef__":true,"id":17392}},"17392":{"varMapping":{"__isSmartRef__":true,"id":17393},"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":17394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17393":{"obj":{"__isSmartRef__":true,"id":17342},"name":"onMouseDown"},"17394":{},"17395":{"timestamp":{"__isSmartRef__":true,"id":17396},"user":"lauritz","tags":[]},"17396":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (Central Europe Standard Time)"},"17397":{"varMapping":{"__isSmartRef__":true,"id":17398},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":17399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17398":{"this":{"__isSmartRef__":true,"id":17342}},"17399":{"timestamp":{"__isSmartRef__":true,"id":17400},"user":"lauritz","tags":[]},"17400":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (Central Europe Standard Time)"},"17401":{"varMapping":{"__isSmartRef__":true,"id":17402},"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":17403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17402":{"this":{"__isSmartRef__":true,"id":17342}},"17403":{"timestamp":{"__isSmartRef__":true,"id":17404},"user":"lauritz","tags":[]},"17404":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (Central Europe Standard Time)"},"17405":{"varMapping":{"__isSmartRef__":true,"id":17406},"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":17411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17406":{"this":{"__isSmartRef__":true,"id":17342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17407}},"17407":{"$super":{"__isSmartRef__":true,"id":17408}},"17408":{"varMapping":{"__isSmartRef__":true,"id":17409},"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":17410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17409":{"obj":{"__isSmartRef__":true,"id":17342},"name":"onBlur"},"17410":{},"17411":{"timestamp":{"__isSmartRef__":true,"id":17412},"user":"lauritz","tags":[]},"17412":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (Central Europe Standard Time)"},"17413":{"varMapping":{"__isSmartRef__":true,"id":17414},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":17415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17414":{"this":{"__isSmartRef__":true,"id":17342}},"17415":{"timestamp":{"__isSmartRef__":true,"id":17416},"user":"lauritz","tags":[]},"17416":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (Central Europe Standard Time)"},"17417":{"varMapping":{"__isSmartRef__":true,"id":17418},"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":17419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17418":{"this":{"__isSmartRef__":true,"id":17342}},"17419":{"timestamp":{"__isSmartRef__":true,"id":17420},"user":"lauritz","tags":[]},"17420":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (Central Europe Standard Time)"},"17421":{"submorphs":[],"scripts":[],"id":"5B510779-2B32-46D4-94B5-EDA343C6EEA8","shape":{"__isSmartRef__":true,"id":17422},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":17423},"textChunks":[{"__isSmartRef__":true,"id":17424}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17426},"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":16804},"isCopyMorphRef":true,"morphRefId":27,"derivationIds":[223,"5E3A69EF-26C1-4D0D-B04C-8C3894017F56","14AB1B91-3ED6-49AE-AA58-47D18B6C569F","991D4A54-1FC4-4BC7-AA82-F814AC52CDE3","DB9B19F7-4390-4CE5-9B1D-62177CB8D605","8F7B2EE9-9538-4044-B75B-6A12F3108B70","4B9F9B4B-C7D3-418D-9AC9-10503A4EBF8E","324EE422-8C94-43CE-B964-A3150830C25F","36D1ECF9-591F-426B-A4F6-B337D7DB053B","CB52849C-BE64-4053-8D07-758F969F84EB","F1C241D4-A689-4DB7-942F-ADB5F39D9CAA","F9D413A0-184F-47F5-9B55-D05D511915CB","F4C5DA2D-8203-47EB-834D-2D03338B0419","1E089341-3FFF-45CD-9C21-BA7A8B4CF6F2","87F8B14A-C122-40D7-8405-CA07248E60D3","A8E7E359-A02C-427B-8D23-C707CE9664B2","695927E1-0410-434B-A716-F030B4ECD84D","B2857406-8534-4160-AC2C-6D8008C5EE1C","9C4879F3-2A68-4EDC-ACC3-22438F66B654","F53397C6-6F57-4E8E-B094-E168D20383E5","2BCC47EC-7C72-4E05-9136-D6950CF1B4C8","F8036A3A-8774-4997-871B-9D9BB5687F01"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(198.2,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(41.1,-10.5)"},"17422":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"17423":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17424":{"style":{"__isSmartRef__":true,"id":17425},"chunkOwner":{"__isSmartRef__":true,"id":17421},"storedString":"Target:","_id":"_364","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17425":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17426":{"morph":{"__isSmartRef__":true,"id":17421},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17427":{"submorphs":[],"scripts":[],"id":"76A3A69F-A44E-49CE-A594-02E9295D3A86","shape":{"__isSmartRef__":true,"id":17428},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":17429},"textChunks":[{"__isSmartRef__":true,"id":17430}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17432},"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":16804},"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","A10F43F6-C3D5-4102-8764-0795CE0D0CC9"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(45.8,-27.8)"},"17428":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"17429":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17430":{"style":{"__isSmartRef__":true,"id":17431},"chunkOwner":{"__isSmartRef__":true,"id":17427},"storedString":"Tag:","_id":"_365","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17431":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17432":{"morph":{"__isSmartRef__":true,"id":17427},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17433":{"submorphs":[{"__isSmartRef__":true,"id":17434}],"scripts":[],"id":"D674469F-624B-4DCE-8C16-54F990C03FA3","shape":{"__isSmartRef__":true,"id":17440},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17446},"lighterFill":{"__isSmartRef__":true,"id":17441},"label":{"__isSmartRef__":true,"id":17434},"showsHalos":false,"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":17451},"listMorph":null,"list":[],"eventHandler":{"__isSmartRef__":true,"id":17452},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":16804},"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","C7C2E9BB-6ACB-4A2A-B56D-0018A1DB7884"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17453},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(39.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(85.7,-11.6)"},"17434":{"submorphs":[],"scripts":[],"id":"5E4A629D-150B-4E8A-A01D-924676190785","shape":{"__isSmartRef__":true,"id":17435},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":17433},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":17436}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":17438}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":17439},"_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","7EC6B94E-DCFB-4A0D-9849-F221C67855F3"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"17435":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"17436":{"style":{"__isSmartRef__":true,"id":17437},"chunkOwner":{"__isSmartRef__":true,"id":17434},"storedString":"all","_id":"_366","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17437":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17438":{"sourceObj":{"__isSmartRef__":true,"id":17434},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":17433},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17439":{"morph":{"__isSmartRef__":true,"id":17434},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17440":{"_Fill":{"__isSmartRef__":true,"id":17441},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"17441":{"stops":[{"__isSmartRef__":true,"id":17442},{"__isSmartRef__":true,"id":17443},{"__isSmartRef__":true,"id":17444},{"__isSmartRef__":true,"id":17445}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17442":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17443":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17444":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17445":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17446":{"stops":[{"__isSmartRef__":true,"id":17447},{"__isSmartRef__":true,"id":17448},{"__isSmartRef__":true,"id":17449},{"__isSmartRef__":true,"id":17450}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17447":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17448":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17449":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17450":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"17451":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17452":{"morph":{"__isSmartRef__":true,"id":17433},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17453":{"createListMorph":{"__isSmartRef__":true,"id":17454},"getList":{"__isSmartRef__":true,"id":17458},"removeList":{"__isSmartRef__":true,"id":17462},"reset":{"__isSmartRef__":true,"id":17466},"onMouseUp":{"__isSmartRef__":true,"id":17470},"onBlur":{"__isSmartRef__":true,"id":17478},"setTag":{"__isSmartRef__":true,"id":17486}},"17454":{"varMapping":{"__isSmartRef__":true,"id":17455},"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":17456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17455":{"this":{"__isSmartRef__":true,"id":17433}},"17456":{"timestamp":{"__isSmartRef__":true,"id":17457},"user":"lauritz","categories":[]},"17457":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (Central Europe Standard Time)"},"17458":{"varMapping":{"__isSmartRef__":true,"id":17459},"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":17460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17459":{"this":{"__isSmartRef__":true,"id":17433}},"17460":{"timestamp":{"__isSmartRef__":true,"id":17461},"user":"lauritz","tags":[]},"17461":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (Central Europe Standard Time)"},"17462":{"varMapping":{"__isSmartRef__":true,"id":17463},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":17464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17463":{"this":{"__isSmartRef__":true,"id":17433}},"17464":{"timestamp":{"__isSmartRef__":true,"id":17465},"user":"lauritz","categories":[]},"17465":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (Central Europe Standard Time)"},"17466":{"varMapping":{"__isSmartRef__":true,"id":17467},"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":17468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17467":{"this":{"__isSmartRef__":true,"id":17433}},"17468":{"timestamp":{"__isSmartRef__":true,"id":17469},"user":"lauritz","tags":[]},"17469":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (Central Europe Standard Time)"},"17470":{"varMapping":{"__isSmartRef__":true,"id":17471},"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":17476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17471":{"this":{"__isSmartRef__":true,"id":17433},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17472}},"17472":{"$super":{"__isSmartRef__":true,"id":17473}},"17473":{"varMapping":{"__isSmartRef__":true,"id":17474},"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":17475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17474":{"obj":{"__isSmartRef__":true,"id":17433},"name":"onMouseUp"},"17475":{},"17476":{"timestamp":{"__isSmartRef__":true,"id":17477},"user":"lauritz","categories":[]},"17477":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (Central Europe Standard Time)"},"17478":{"varMapping":{"__isSmartRef__":true,"id":17479},"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":17484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17479":{"this":{"__isSmartRef__":true,"id":17433},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17480}},"17480":{"$super":{"__isSmartRef__":true,"id":17481}},"17481":{"varMapping":{"__isSmartRef__":true,"id":17482},"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":17483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17482":{"obj":{"__isSmartRef__":true,"id":17433},"name":"onBlur"},"17483":{},"17484":{"timestamp":{"__isSmartRef__":true,"id":17485},"user":"lauritz","categories":[]},"17485":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (Central Europe Standard Time)"},"17486":{"varMapping":{"__isSmartRef__":true,"id":17487},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":17488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17487":{"this":{"__isSmartRef__":true,"id":17433}},"17488":{"timestamp":{"__isSmartRef__":true,"id":17489},"user":"lauritz","categories":[]},"17489":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (Central Europe Standard Time)"},"17490":{"target":{"__isSmartRef__":true,"id":16804},"selector":"update","args":[],"stopped":false,"tickTime":500,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"17491":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(609.0,355.6)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"17492":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":17493}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17493":{"date":{"__isSmartRef__":true,"id":17494},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"17494":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (Central Europe Daylight Time)"},"17495":{"morph":{"__isSmartRef__":true,"id":16804},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17496":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"17497":{"submorphs":[],"scripts":[],"id":"BF53E28D-FD5A-49FC-A917-EAE83229E86F","shape":{"__isSmartRef__":true,"id":17498},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":["-- ALL --"],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":17499},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":17500},"attributeConnections":[{"__isSmartRef__":true,"id":18956}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":18958},"eventHandler":{"__isSmartRef__":true,"id":18959},"_FontSize":10,"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"],"selection":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18960},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,441.6)","distanceToDragEvent":"lively.pt(125.0,-17.1)"},"17498":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,74.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"17499":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17500":{"submorphs":[{"__isSmartRef__":true,"id":17501},{"__isSmartRef__":true,"id":18253},{"__isSmartRef__":true,"id":17497},{"__isSmartRef__":true,"id":18259},{"__isSmartRef__":true,"id":18266},{"__isSmartRef__":true,"id":18288},{"__isSmartRef__":true,"id":18309},{"__isSmartRef__":true,"id":18336},{"__isSmartRef__":true,"id":17735},{"__isSmartRef__":true,"id":17743},{"__isSmartRef__":true,"id":18362},{"__isSmartRef__":true,"id":18368},{"__isSmartRef__":true,"id":18425},{"__isSmartRef__":true,"id":18468},{"__isSmartRef__":true,"id":18511},{"__isSmartRef__":true,"id":18531},{"__isSmartRef__":true,"id":18712},{"__isSmartRef__":true,"id":18744}],"scripts":[{"__isSmartRef__":true,"id":18843}],"id":"4BDD41D6-6AD7-48D9-AB53-00D487F0CFC9","shape":{"__isSmartRef__":true,"id":18844},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":18845},"eventHandler":{"__isSmartRef__":true,"id":18848},"layout":{"__isSmartRef__":true,"id":18849},"target":{"__isSmartRef__":true,"id":16804},"scriptPane":{"__isSmartRef__":true,"id":17735},"scriptList":{"__isSmartRef__":true,"id":17501},"connectionList":{"__isSmartRef__":true,"id":17497},"morphSelector":{"__isSmartRef__":true,"id":18744},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":17743},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"tagChooser":{"__isSmartRef__":true,"id":18368},"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"],"owner":{"__isSmartRef__":true,"id":17865},"partTests":{"__isSmartRef__":true,"id":18850},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":142,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18851},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(350.2,-3.2)","_Position":"lively.pt(1.0,21.5)"},"17501":{"submorphs":[],"scripts":[],"id":"CBD4DD07-7323-43CB-8302-A5B617532C9B","shape":{"__isSmartRef__":true,"id":17502},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":["-- ALL --","confirmUnsavedChanges","copyToPartsBinWithUserRequest","displayInitialScript","displayJavaScriptSource","displaySourceForConnection","displaySourceForScript","ensureAnnotationLayer","generateSourceForConnection","generateSourceForScript","generateTargetCode","migrateOldScriptAnnotations","newConnection","newScript","onShutdown","openPartTestRunner","printTags","reset","runScript","selectChangedContent","setTag","setTarget","sortedConnectionNamesOfObj","sortedScriptNamesOfObj","update","updateLists"],"selectedLineNo":21,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":17503},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":17500},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":17504}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":17506},"doitContext":{"__isSmartRef__":true,"id":17507},"eventHandler":{"__isSmartRef__":true,"id":18244},"_FontSize":10,"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"],"selection":"setTarget","changeTriggered":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18245},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,63.0)","distanceToDragEvent":"lively.pt(126.0,-14.4)"},"17502":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,337.6)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"17503":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17504":{"sourceObj":{"__isSmartRef__":true,"id":17501},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":17500},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17505},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17505":{"source":{"__isSmartRef__":true,"id":17501},"target":{"__isSmartRef__":true,"id":17500}},"17506":{"resizeHeight":true},"17507":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":17508},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":17509},"titleBar":{"__isSmartRef__":true,"id":17510},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":17575},"highlighted":true,"_Rotation":0,"_Scale":1,"showsHalos":false,"name":"ObjectEditor","target":{"__isSmartRef__":true,"id":17576},"partsBinMetaInfo":{"__isSmartRef__":true,"id":17734},"scriptList":{"__isSmartRef__":true,"id":17501},"scriptPane":{"__isSmartRef__":true,"id":17735},"classButton":{"__isSmartRef__":true,"id":17800},"connectionList":{"__isSmartRef__":true,"id":17497},"targetButton":{"__isSmartRef__":true,"id":17820},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"morphSelector":{"__isSmartRef__":true,"id":17838},"eventHandler":{"__isSmartRef__":true,"id":18191},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["contentOffset","expandedExtent","prevDragPos","expandedPosition","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18192},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","expandedExtent":"lively.pt(861.5,575.2)","prevDragPos":"lively.pt(613.0,129.0)","expandedPosition":"lively.pt(377.7,419.5)","_Position":"lively.pt(715.5,73.9)"},"17508":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":9.25,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Fill","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Extent":"lively.pt(981.0,585.2)","_BorderColor":"Color.rgb(0,0,0)"},"17509":{"adjustForNewBounds":true},"17510":{"submorphs":[{"__isSmartRef__":true,"id":17511},{"__isSmartRef__":true,"id":17516},{"__isSmartRef__":true,"id":17537},{"__isSmartRef__":true,"id":17552}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":17568},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17573},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":17507},"label":{"__isSmartRef__":true,"id":17511},"closeButton":{"__isSmartRef__":true,"id":17516},"menuButton":{"__isSmartRef__":true,"id":17537},"collapseButton":{"__isSmartRef__":true,"id":17552},"owner":null,"name":"ObjectEditorTitleBar","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17574},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"17511":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":17512},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":17513}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":17510},"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17515},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"17512":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(922.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17513":{"style":{"__isSmartRef__":true,"id":17514},"chunkOwner":{"__isSmartRef__":true,"id":17511},"storedString":"","_id":"_430","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17514":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17515":{"morph":{"__isSmartRef__":true,"id":17511},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17516":{"submorphs":[{"__isSmartRef__":true,"id":17517}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":17522},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17523},"lighterFill":{"__isSmartRef__":true,"id":17528},"label":{"__isSmartRef__":true,"id":17517},"owner":{"__isSmartRef__":true,"id":17510},"layout":{"__isSmartRef__":true,"id":17533},"attributeConnections":[{"__isSmartRef__":true,"id":17534},{"__isSmartRef__":true,"id":17535}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17536},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(961.0,3.0)"},"17517":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":17518},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":17519}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17516},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17521},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"17518":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17519":{"style":{"__isSmartRef__":true,"id":17520},"chunkOwner":{"__isSmartRef__":true,"id":17517},"storedString":"","_id":"_796","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17520":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17521":{"morph":{"__isSmartRef__":true,"id":17517},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17522":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17523},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17523":{"stops":[{"__isSmartRef__":true,"id":17524},{"__isSmartRef__":true,"id":17525},{"__isSmartRef__":true,"id":17526},{"__isSmartRef__":true,"id":17527}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17524":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17525":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17526":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17527":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"17528":{"stops":[{"__isSmartRef__":true,"id":17529},{"__isSmartRef__":true,"id":17530},{"__isSmartRef__":true,"id":17531},{"__isSmartRef__":true,"id":17532}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17529":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17530":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17531":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17532":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17533":{"moveHorizontal":true},"17534":{"sourceObj":{"__isSmartRef__":true,"id":17516},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17507},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17535":{"sourceObj":{"__isSmartRef__":true,"id":17516},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17507},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17536":{"morph":{"__isSmartRef__":true,"id":17516},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17537":{"submorphs":[{"__isSmartRef__":true,"id":17538}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":17543},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17523},"lighterFill":{"__isSmartRef__":true,"id":17544},"label":{"__isSmartRef__":true,"id":17538},"owner":{"__isSmartRef__":true,"id":17510},"attributeConnections":[{"__isSmartRef__":true,"id":17549},{"__isSmartRef__":true,"id":17550}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17551},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"17538":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":17539},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":17540}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17537},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17542},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"17539":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17540":{"style":{"__isSmartRef__":true,"id":17541},"chunkOwner":{"__isSmartRef__":true,"id":17538},"storedString":"","_id":"_797","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17541":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17542":{"morph":{"__isSmartRef__":true,"id":17538},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17543":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17523},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17544":{"stops":[{"__isSmartRef__":true,"id":17545},{"__isSmartRef__":true,"id":17546},{"__isSmartRef__":true,"id":17547},{"__isSmartRef__":true,"id":17548}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17545":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17546":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17547":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17548":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17549":{"sourceObj":{"__isSmartRef__":true,"id":17537},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17507},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17550":{"sourceObj":{"__isSmartRef__":true,"id":17537},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17507},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17551":{"morph":{"__isSmartRef__":true,"id":17537},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17552":{"submorphs":[{"__isSmartRef__":true,"id":17553}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":17558},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17523},"lighterFill":{"__isSmartRef__":true,"id":17559},"label":{"__isSmartRef__":true,"id":17553},"owner":{"__isSmartRef__":true,"id":17510},"layout":{"__isSmartRef__":true,"id":17564},"attributeConnections":[{"__isSmartRef__":true,"id":17565},{"__isSmartRef__":true,"id":17566}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17567},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(942.0,3.0)"},"17553":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":17554},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":17555}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17552},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17557},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"17554":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17555":{"style":{"__isSmartRef__":true,"id":17556},"chunkOwner":{"__isSmartRef__":true,"id":17553},"storedString":"","_id":"_798","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17556":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17557":{"morph":{"__isSmartRef__":true,"id":17553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17558":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17523},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17559":{"stops":[{"__isSmartRef__":true,"id":17560},{"__isSmartRef__":true,"id":17561},{"__isSmartRef__":true,"id":17562},{"__isSmartRef__":true,"id":17563}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17560":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17561":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17562":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17563":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17564":{"moveHorizontal":true},"17565":{"sourceObj":{"__isSmartRef__":true,"id":17552},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17507},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17566":{"sourceObj":{"__isSmartRef__":true,"id":17552},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17507},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17567":{"morph":{"__isSmartRef__":true,"id":17552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17568":{"_BorderWidth":2,"_Fill":{"__isSmartRef__":true,"id":17569},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(981.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"17569":{"stops":[{"__isSmartRef__":true,"id":17570},{"__isSmartRef__":true,"id":17571},{"__isSmartRef__":true,"id":17572}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,1,0,-1)"},"17570":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"17571":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(230,230,230)"},"17572":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"17573":{"resizeWidth":true,"adjustForNewBounds":true},"17574":{"morph":{"__isSmartRef__":true,"id":17510},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17575":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17576":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17577},"id":394,"textChunks":[{"__isSmartRef__":true,"id":17578}],"eventHandler":{"__isSmartRef__":true,"id":17580},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17581},"layout":{"__isSmartRef__":true,"id":17653},"doitContext":{"__isSmartRef__":true,"id":17654},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"17577":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,200.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"17578":{"style":{"__isSmartRef__":true,"id":17579},"chunkOwner":{"__isSmartRef__":true,"id":17576},"storedString":"","_id":"_799","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17579":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17580":{"morph":{"__isSmartRef__":true,"id":17576},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17581":{"submorphs":[{"__isSmartRef__":true,"id":17576},{"__isSmartRef__":true,"id":17582}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17650},"id":395,"eventHandler":{"__isSmartRef__":true,"id":17651},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":17652},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":17576},"titleBar":{"__isSmartRef__":true,"id":17582},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"cameForward":false,"showsHalos":false,"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1234.0,448.0)","contentOffset":"lively.pt(0.0,22.0)","prevDragPos":"lively.pt(1478.0,453.0)"},"17582":{"submorphs":[{"__isSmartRef__":true,"id":17583},{"__isSmartRef__":true,"id":17589},{"__isSmartRef__":true,"id":17612},{"__isSmartRef__":true,"id":17629}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17647},"id":396,"eventHandler":{"__isSmartRef__":true,"id":17648},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17649},"windowMorph":{"__isSmartRef__":true,"id":17581},"label":{"__isSmartRef__":true,"id":17583},"closeButton":{"__isSmartRef__":true,"id":17589},"menuButton":{"__isSmartRef__":true,"id":17612},"collapseButton":{"__isSmartRef__":true,"id":17629},"owner":{"__isSmartRef__":true,"id":17581},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"17583":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17584},"id":397,"textChunks":[{"__isSmartRef__":true,"id":17585}],"eventHandler":{"__isSmartRef__":true,"id":17587},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":17588},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":17582},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"17584":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17585":{"style":{"__isSmartRef__":true,"id":17586},"chunkOwner":{"__isSmartRef__":true,"id":17583},"storedString":"","_id":"_800","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17586":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17587":{"morph":{"__isSmartRef__":true,"id":17583},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17588":{"resizeWidth":true},"17589":{"submorphs":[{"__isSmartRef__":true,"id":17590}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17595},"id":398,"eventHandler":{"__isSmartRef__":true,"id":17601},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17596},"lighterFill":{"__isSmartRef__":true,"id":17602},"label":{"__isSmartRef__":true,"id":17590},"owner":{"__isSmartRef__":true,"id":17582},"layout":{"__isSmartRef__":true,"id":17607},"attributeConnections":[{"__isSmartRef__":true,"id":17608},{"__isSmartRef__":true,"id":17610}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"17590":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17591},"id":399,"textChunks":[{"__isSmartRef__":true,"id":17592}],"eventHandler":{"__isSmartRef__":true,"id":17594},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17589},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"17591":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17592":{"style":{"__isSmartRef__":true,"id":17593},"chunkOwner":{"__isSmartRef__":true,"id":17590},"storedString":"","_id":"_801","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17593":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17594":{"morph":{"__isSmartRef__":true,"id":17590},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17595":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17596},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17596":{"stops":[{"__isSmartRef__":true,"id":17597},{"__isSmartRef__":true,"id":17598},{"__isSmartRef__":true,"id":17599},{"__isSmartRef__":true,"id":17600}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17597":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17598":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17599":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17600":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"17601":{"morph":{"__isSmartRef__":true,"id":17589},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17602":{"stops":[{"__isSmartRef__":true,"id":17603},{"__isSmartRef__":true,"id":17604},{"__isSmartRef__":true,"id":17605},{"__isSmartRef__":true,"id":17606}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17603":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17604":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17605":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17606":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17607":{"moveHorizontal":true},"17608":{"sourceObj":{"__isSmartRef__":true,"id":17589},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17581},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17609},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17609":{"source":{"__isSmartRef__":true,"id":17589},"target":{"__isSmartRef__":true,"id":17581}},"17610":{"sourceObj":{"__isSmartRef__":true,"id":17589},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17581},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17611},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17611":{"source":{"__isSmartRef__":true,"id":17589},"target":{"__isSmartRef__":true,"id":17581}},"17612":{"submorphs":[{"__isSmartRef__":true,"id":17613}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17618},"id":400,"eventHandler":{"__isSmartRef__":true,"id":17619},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17596},"lighterFill":{"__isSmartRef__":true,"id":17620},"label":{"__isSmartRef__":true,"id":17613},"owner":{"__isSmartRef__":true,"id":17582},"attributeConnections":[{"__isSmartRef__":true,"id":17625},{"__isSmartRef__":true,"id":17627}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"17613":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17614},"id":401,"textChunks":[{"__isSmartRef__":true,"id":17615}],"eventHandler":{"__isSmartRef__":true,"id":17617},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17612},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"17614":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17615":{"style":{"__isSmartRef__":true,"id":17616},"chunkOwner":{"__isSmartRef__":true,"id":17613},"storedString":"","_id":"_802","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17616":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17617":{"morph":{"__isSmartRef__":true,"id":17613},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17618":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17596},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17619":{"morph":{"__isSmartRef__":true,"id":17612},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17620":{"stops":[{"__isSmartRef__":true,"id":17621},{"__isSmartRef__":true,"id":17622},{"__isSmartRef__":true,"id":17623},{"__isSmartRef__":true,"id":17624}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17621":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17622":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17623":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17624":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17625":{"sourceObj":{"__isSmartRef__":true,"id":17612},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17581},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17626},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17626":{"source":{"__isSmartRef__":true,"id":17612},"target":{"__isSmartRef__":true,"id":17581}},"17627":{"sourceObj":{"__isSmartRef__":true,"id":17612},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17581},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17628},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17628":{"source":{"__isSmartRef__":true,"id":17612},"target":{"__isSmartRef__":true,"id":17581}},"17629":{"submorphs":[{"__isSmartRef__":true,"id":17630}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17635},"id":402,"eventHandler":{"__isSmartRef__":true,"id":17636},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17596},"lighterFill":{"__isSmartRef__":true,"id":17637},"label":{"__isSmartRef__":true,"id":17630},"owner":{"__isSmartRef__":true,"id":17582},"layout":{"__isSmartRef__":true,"id":17642},"attributeConnections":[{"__isSmartRef__":true,"id":17643},{"__isSmartRef__":true,"id":17645}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"17630":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17631},"id":403,"textChunks":[{"__isSmartRef__":true,"id":17632}],"eventHandler":{"__isSmartRef__":true,"id":17634},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17629},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"17631":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17632":{"style":{"__isSmartRef__":true,"id":17633},"chunkOwner":{"__isSmartRef__":true,"id":17630},"storedString":"","_id":"_803","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17633":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17634":{"morph":{"__isSmartRef__":true,"id":17630},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17635":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17596},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17636":{"morph":{"__isSmartRef__":true,"id":17629},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17637":{"stops":[{"__isSmartRef__":true,"id":17638},{"__isSmartRef__":true,"id":17639},{"__isSmartRef__":true,"id":17640},{"__isSmartRef__":true,"id":17641}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17638":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17639":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17640":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17641":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17642":{"moveHorizontal":true},"17643":{"sourceObj":{"__isSmartRef__":true,"id":17629},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17581},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17644},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17644":{"source":{"__isSmartRef__":true,"id":17629},"target":{"__isSmartRef__":true,"id":17581}},"17645":{"sourceObj":{"__isSmartRef__":true,"id":17629},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17581},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17646},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17646":{"source":{"__isSmartRef__":true,"id":17629},"target":{"__isSmartRef__":true,"id":17581}},"17647":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":17569},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"17648":{"morph":{"__isSmartRef__":true,"id":17582},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17649":{"resizeWidth":true,"adjustForNewBounds":true},"17650":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)"},"17651":{"morph":{"__isSmartRef__":true,"id":17581},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17652":{"adjustForNewBounds":true},"17653":{"resizeWidth":true,"resizeHeight":true},"17654":{"submorphs":[{"__isSmartRef__":true,"id":17655},{"__isSmartRef__":true,"id":17662}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17729},"id":361,"eventHandler":{"__isSmartRef__":true,"id":17730},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":17731},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":17655},"titleBar":{"__isSmartRef__":true,"id":17662},"collapsedTransform":{"__isSmartRef__":true,"id":17732},"expandedTransform":{"__isSmartRef__":true,"id":17733},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"state":"shutdown","__serializedExpressions__":["_Position","contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1131.0,79.0)","contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(500.0,22.0)","expandedExtent":"lively.pt(500.0,222.0)","prevDragPos":"lively.pt(1507.0,76.0)","expandedPosition":"lively.pt(1131.0,79.0)","collapsedPosition":"lively.pt(1131.0,79.0)"},"17655":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17656},"id":360,"textChunks":[{"__isSmartRef__":true,"id":17657}],"eventHandler":{"__isSmartRef__":true,"id":17659},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17654},"layout":{"__isSmartRef__":true,"id":17660},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":17661}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"charsReplaced":"","lastFindLoc":15,"__serializedExpressions__":["_Padding","_Position"],"textString":"undefined","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"17656":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"17657":{"style":{"__isSmartRef__":true,"id":17658},"chunkOwner":{"__isSmartRef__":true,"id":17655},"_id":"_7054","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17658":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17659":{"morph":{"__isSmartRef__":true,"id":17655},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17660":{"resizeWidth":true,"resizeHeight":true},"17661":{"sourceObj":{"__isSmartRef__":true,"id":17655},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":17655},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17662":{"submorphs":[{"__isSmartRef__":true,"id":17663},{"__isSmartRef__":true,"id":17669},{"__isSmartRef__":true,"id":17687},{"__isSmartRef__":true,"id":17704}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17722},"id":362,"eventHandler":{"__isSmartRef__":true,"id":17727},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17728},"windowMorph":{"__isSmartRef__":true,"id":17654},"label":{"__isSmartRef__":true,"id":17663},"closeButton":{"__isSmartRef__":true,"id":17669},"menuButton":{"__isSmartRef__":true,"id":17687},"collapseButton":{"__isSmartRef__":true,"id":17704},"owner":{"__isSmartRef__":true,"id":17654},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"17663":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17664},"id":363,"textChunks":[{"__isSmartRef__":true,"id":17665}],"eventHandler":{"__isSmartRef__":true,"id":17667},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":17668},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":17662},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"17664":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17665":{"style":{"__isSmartRef__":true,"id":17666},"chunkOwner":{"__isSmartRef__":true,"id":17663},"storedString":"","_id":"_804","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17666":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17667":{"morph":{"__isSmartRef__":true,"id":17663},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17668":{"resizeWidth":true},"17669":{"submorphs":[{"__isSmartRef__":true,"id":17670}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17675},"id":364,"eventHandler":{"__isSmartRef__":true,"id":17676},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17596},"lighterFill":{"__isSmartRef__":true,"id":17677},"label":{"__isSmartRef__":true,"id":17670},"owner":{"__isSmartRef__":true,"id":17662},"layout":{"__isSmartRef__":true,"id":17682},"attributeConnections":[{"__isSmartRef__":true,"id":17683},{"__isSmartRef__":true,"id":17685}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"17670":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17671},"id":365,"textChunks":[{"__isSmartRef__":true,"id":17672}],"eventHandler":{"__isSmartRef__":true,"id":17674},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17669},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"17671":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17672":{"style":{"__isSmartRef__":true,"id":17673},"chunkOwner":{"__isSmartRef__":true,"id":17670},"storedString":"","_id":"_805","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17673":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17674":{"morph":{"__isSmartRef__":true,"id":17670},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17675":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17596},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17676":{"morph":{"__isSmartRef__":true,"id":17669},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17677":{"stops":[{"__isSmartRef__":true,"id":17678},{"__isSmartRef__":true,"id":17679},{"__isSmartRef__":true,"id":17680},{"__isSmartRef__":true,"id":17681}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17678":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17679":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17680":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17681":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17682":{"moveHorizontal":true},"17683":{"sourceObj":{"__isSmartRef__":true,"id":17669},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17654},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17684},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17684":{"source":{"__isSmartRef__":true,"id":17669},"target":{"__isSmartRef__":true,"id":17654}},"17685":{"sourceObj":{"__isSmartRef__":true,"id":17669},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17654},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17686},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17686":{"source":{"__isSmartRef__":true,"id":17669},"target":{"__isSmartRef__":true,"id":17654}},"17687":{"submorphs":[{"__isSmartRef__":true,"id":17688}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17693},"id":366,"eventHandler":{"__isSmartRef__":true,"id":17694},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17596},"lighterFill":{"__isSmartRef__":true,"id":17695},"label":{"__isSmartRef__":true,"id":17688},"owner":{"__isSmartRef__":true,"id":17662},"attributeConnections":[{"__isSmartRef__":true,"id":17700},{"__isSmartRef__":true,"id":17702}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"17688":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17689},"id":367,"textChunks":[{"__isSmartRef__":true,"id":17690}],"eventHandler":{"__isSmartRef__":true,"id":17692},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17687},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"17689":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17690":{"style":{"__isSmartRef__":true,"id":17691},"chunkOwner":{"__isSmartRef__":true,"id":17688},"storedString":"","_id":"_806","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17691":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17692":{"morph":{"__isSmartRef__":true,"id":17688},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17693":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17596},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17694":{"morph":{"__isSmartRef__":true,"id":17687},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17695":{"stops":[{"__isSmartRef__":true,"id":17696},{"__isSmartRef__":true,"id":17697},{"__isSmartRef__":true,"id":17698},{"__isSmartRef__":true,"id":17699}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17696":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17697":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17698":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17699":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17700":{"sourceObj":{"__isSmartRef__":true,"id":17687},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17654},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17701},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17701":{"source":{"__isSmartRef__":true,"id":17687},"target":{"__isSmartRef__":true,"id":17654}},"17702":{"sourceObj":{"__isSmartRef__":true,"id":17687},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17654},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17703},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17703":{"source":{"__isSmartRef__":true,"id":17687},"target":{"__isSmartRef__":true,"id":17654}},"17704":{"submorphs":[{"__isSmartRef__":true,"id":17705}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17710},"id":368,"eventHandler":{"__isSmartRef__":true,"id":17711},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17596},"lighterFill":{"__isSmartRef__":true,"id":17712},"label":{"__isSmartRef__":true,"id":17705},"owner":{"__isSmartRef__":true,"id":17662},"layout":{"__isSmartRef__":true,"id":17717},"attributeConnections":[{"__isSmartRef__":true,"id":17718},{"__isSmartRef__":true,"id":17720}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"17705":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17706},"id":369,"textChunks":[{"__isSmartRef__":true,"id":17707}],"eventHandler":{"__isSmartRef__":true,"id":17709},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17704},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"17706":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"17707":{"style":{"__isSmartRef__":true,"id":17708},"chunkOwner":{"__isSmartRef__":true,"id":17705},"storedString":"","_id":"_807","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17708":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17709":{"morph":{"__isSmartRef__":true,"id":17705},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17710":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17596},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"17711":{"morph":{"__isSmartRef__":true,"id":17704},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17712":{"stops":[{"__isSmartRef__":true,"id":17713},{"__isSmartRef__":true,"id":17714},{"__isSmartRef__":true,"id":17715},{"__isSmartRef__":true,"id":17716}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17713":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17714":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17715":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17716":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17717":{"moveHorizontal":true},"17718":{"sourceObj":{"__isSmartRef__":true,"id":17704},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17654},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17719},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17719":{"source":{"__isSmartRef__":true,"id":17704},"target":{"__isSmartRef__":true,"id":17654}},"17720":{"sourceObj":{"__isSmartRef__":true,"id":17704},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17654},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17721},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17721":{"source":{"__isSmartRef__":true,"id":17704},"target":{"__isSmartRef__":true,"id":17654}},"17722":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":17723},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"17723":{"stops":[{"__isSmartRef__":true,"id":17724},{"__isSmartRef__":true,"id":17725},{"__isSmartRef__":true,"id":17726}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17724":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"17725":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(243,243,243)"},"17726":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"17727":{"morph":{"__isSmartRef__":true,"id":17662},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17728":{"resizeWidth":true,"adjustForNewBounds":true},"17729":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)","_Position":"lively.pt(0.0,0.0)"},"17730":{"morph":{"__isSmartRef__":true,"id":17654},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17731":{"adjustForNewBounds":true},"17732":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17733":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17734":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17735":{"submorphs":[],"scripts":[],"id":"A77101C7-3D06-4C2E-9F56-421AB517C400","shape":{"__isSmartRef__":true,"id":17736},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":689.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":17737}],"layout":{"__isSmartRef__":true,"id":17739},"showsHalos":false,"prevScroll":[0,0],"name":"ObjectEditorScriptPane","charsReplaced":"// changed at Wed Jun 13 2012 16:23:24 GMT+0200 (CEST) by tessi \nthis.addScript(function foo() {\n return \"foo!\";\n}).tag([\"tagged\"]);\n\n\n// changed at Wed Jun 13 2012 16:26:48 GMT+0200 (CEST) by tessi \nthis.addScript(function baz() {\n return \"icke\"\n}).tag([\"due\"])","lastFindLoc":270,"partsBinMetaInfo":{"__isSmartRef__":true,"id":17740},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":24,"doitContext":{"__isSmartRef__":true,"id":16804},"savedTextString":"// changed at Thu Nov 17 2011 18:01:57 GMT+0100 (CET) by lauritz \nthis.addScript(function setTarget(morph) {\n this.reset();\n this.target = morph;\n\n this.migrateOldScriptAnnotations();\n\n this.morphSelector.setTarget(morph);\n this.scriptPane.setTarget(morph);\n\n this.startStepping(500/*ms*/, 'update'); \n}).tag([]);","_Align":"left","lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":17741},"attributeConnections":[{"__isSmartRef__":true,"id":17742},{"__isSmartRef__":true,"id":17757}],"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"],"_MinTextWidth":689.0285365288845,"_MinTextHeight":null,"lastSaveSource":"// changed at Tue Jun 26 2012 11:32:49 GMT+0200 (CEST) by lauritz \nthis.addScript(function setTarget(morph) {\n this.reset();\n this.target = morph;\n\n this.migrateOldScriptAnnotations();\n\n this.morphSelector.setTarget(morph);\n this.scriptPane.setTarget(morph);\n\n this.startStepping(500/*ms*/, 'update'); \n}).tag([]);","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":17500},"isCopyMorphRef":true,"morphRefId":151,"statusMorph":{"__isSmartRef__":true,"id":17758},"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"],"owner":{"__isSmartRef__":true,"id":17500},"syntaxHighlightingWhileTyping":true,"#startLetters":"enable","_syntaxHighlightTimeout":null,"_Rotation":0,"_Scale":1,"previousSelection":[284,295],"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"textString":"// changed at Tue Jun 26 2012 11:32:49 GMT+0200 (CEST) by lauritz \nthis.addScript(function setTarget(morph) {\n this.reset();\n this.target = morph;\n\n this.migrateOldScriptAnnotations();\n\n this.morphSelector.setTarget(morph);\n this.scriptPane.setTarget(morph);\n\n this.startStepping(500/*ms*/, 'update'); \n}).tag([]);","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17763},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(341.2,-18.3)","_Position":"lively.pt(200.0,40.0)"},"17736":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(691.0,475.6)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"17737":{"style":{"__isSmartRef__":true,"id":17738},"chunkOwner":{"__isSmartRef__":true,"id":17735},"_id":"_7055","storedString":"// changed at Tue Jun 26 2012 11:32:49 GMT+0200 (CEST) by lauritz \nthis.addScript(function setTarget(morph) {\n this.reset();\n this.target = morph;\n\n this.migrateOldScriptAnnotations();\n\n this.morphSelector.setTarget(morph);\n this.scriptPane.setTarget(morph);\n\n this.startStepping(500/*ms*/, 'update'); \n}).tag([]);","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17738":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17739":{"resizeWidth":true,"resizeHeight":true},"17740":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17741":{"morph":{"__isSmartRef__":true,"id":17735},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17742":{"sourceObj":{"__isSmartRef__":true,"id":17735},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":17743},"targetMethodName":"indicateUnsavedChanges","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17743":{"submorphs":[],"scripts":[],"id":"FDF14E48-923E-4EE8-B143-C0BEA61D6B81","shape":{"__isSmartRef__":true,"id":17744},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":17745},"eventHandler":{"__isSmartRef__":true,"id":17746},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":17500},"layout":{"__isSmartRef__":true,"id":17747},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"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"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","savedColor","alarmColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17748},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(883.0,40.0)","savedColor":"Color.rgb(0,0,0)","alarmColor":"Color.rgb(240,0,0)","distanceToDragEvent":"lively.pt(37.3,-17.5)"},"17744":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(8.6,9.7)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"17745":{"partsSpaceName":"PartsBin/Basic","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","__SourceModuleName__":"Global.lively.PartsBin"},"17746":{"morph":{"__isSmartRef__":true,"id":17743},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17747":{"moveHorizontal":true,"adjustForNewBounds":true},"17748":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":17749},"setColors":{"__isSmartRef__":true,"id":17753}},"17749":{"varMapping":{"__isSmartRef__":true,"id":17750},"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":17751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17750":{"this":{"__isSmartRef__":true,"id":17743}},"17751":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":17752}},"17752":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (Central Europe Daylight Time)"},"17753":{"varMapping":{"__isSmartRef__":true,"id":17754},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":17755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17754":{"this":{"__isSmartRef__":true,"id":17743}},"17755":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":17756}},"17756":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (Central Europe Daylight Time)"},"17757":{"sourceObj":{"__isSmartRef__":true,"id":17735},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":17735},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17758":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17759},"id":553,"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":17760}],"eventHandler":{"__isSmartRef__":true,"id":17762},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","owner":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(295.5,225.3)","_TextColor":"Color.rgb(0,204,0)"},"17759":{"_ClipMode":"visible","_BorderWidth":1,"_StrokeOpacity":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,25.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)"},"17760":{"style":{"__isSmartRef__":true,"id":17761},"chunkOwner":{"__isSmartRef__":true,"id":17758},"storedString":"saved source","_id":"_367","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17761":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17762":{"morph":{"__isSmartRef__":true,"id":17758},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17763":{"doSave":{"__isSmartRef__":true,"id":17764},"boundEval":{"__isSmartRef__":true,"id":17772},"reset":{"__isSmartRef__":true,"id":17780},"display":{"__isSmartRef__":true,"id":17784},"hasChanged":{"__isSmartRef__":true,"id":17788},"setTarget":{"__isSmartRef__":true,"id":17792},"displayStatus":{"__isSmartRef__":true,"id":17796}},"17764":{"varMapping":{"__isSmartRef__":true,"id":17765},"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":17770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17765":{"this":{"__isSmartRef__":true,"id":17735},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17766}},"17766":{"$super":{"__isSmartRef__":true,"id":17767}},"17767":{"varMapping":{"__isSmartRef__":true,"id":17768},"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":17769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17768":{"obj":{"__isSmartRef__":true,"id":17735},"name":"doSave"},"17769":{},"17770":{"timestamp":{"__isSmartRef__":true,"id":17771},"user":"lauritz"},"17771":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (Central Europe Standard Time)"},"17772":{"varMapping":{"__isSmartRef__":true,"id":17773},"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":17778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17773":{"this":{"__isSmartRef__":true,"id":17735},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17774}},"17774":{"$super":{"__isSmartRef__":true,"id":17775}},"17775":{"varMapping":{"__isSmartRef__":true,"id":17776},"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":17777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17776":{"obj":{"__isSmartRef__":true,"id":17735},"name":"boundEval"},"17777":{},"17778":{"timestamp":{"__isSmartRef__":true,"id":17779},"user":"timfelgentreff","tags":[]},"17779":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:42:56 GMT+0200 (Central Europe Daylight Time)"},"17780":{"varMapping":{"__isSmartRef__":true,"id":17781},"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":17782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17781":{"this":{"__isSmartRef__":true,"id":17735}},"17782":{"timestamp":{"__isSmartRef__":true,"id":17783},"user":"cschuster","tags":[]},"17783":{"isSerializedDate":true,"string":"Wed May 16 2012 20:52:57 GMT+0200 (Central Europe Daylight Time)"},"17784":{"varMapping":{"__isSmartRef__":true,"id":17785},"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":17786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17785":{"this":{"__isSmartRef__":true,"id":17735}},"17786":{"timestamp":{"__isSmartRef__":true,"id":17787},"user":"lauritz","categories":[]},"17787":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (Central Europe Daylight Time)"},"17788":{"varMapping":{"__isSmartRef__":true,"id":17789},"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":17790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17789":{"this":{"__isSmartRef__":true,"id":17735}},"17790":{"timestamp":{"__isSmartRef__":true,"id":17791},"user":"lauritz","categories":[]},"17791":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (Central Europe Daylight Time)"},"17792":{"varMapping":{"__isSmartRef__":true,"id":17793},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":17794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17793":{"this":{"__isSmartRef__":true,"id":17735}},"17794":{"timestamp":{"__isSmartRef__":true,"id":17795},"user":"timfelgentreff","tags":[]},"17795":{"isSerializedDate":true,"string":"Thu Jun 07 2012 09:46:09 GMT+0200 (Central Europe Daylight Time)"},"17796":{"varMapping":{"__isSmartRef__":true,"id":17797},"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":17798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17797":{"this":{"__isSmartRef__":true,"id":17735}},"17798":{"timestamp":{"__isSmartRef__":true,"id":17799},"user":"lauritz","categories":[]},"17799":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (Central Europe Standard Time)"},"17800":{"submorphs":[{"__isSmartRef__":true,"id":17801}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":17806},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17807},"lighterFill":{"__isSmartRef__":true,"id":17812},"label":{"__isSmartRef__":true,"id":17801},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":17817},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":17818},"eventHandler":{"__isSmartRef__":true,"id":17819},"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(820.0,9.0)","padding":"lively.rect(5,0,0,0)"},"17801":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":17802},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":17800},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":17803}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":17805},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"17802":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,18.0)","_BorderColor":"Color.rgb(0,0,0)"},"17803":{"style":{"__isSmartRef__":true,"id":17804},"chunkOwner":{"__isSmartRef__":true,"id":17801},"storedString":"","_id":"_808","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17804":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17805":{"morph":{"__isSmartRef__":true,"id":17801},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17806":{"_Fill":{"__isSmartRef__":true,"id":17807},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"17807":{"stops":[{"__isSmartRef__":true,"id":17808},{"__isSmartRef__":true,"id":17809},{"__isSmartRef__":true,"id":17810},{"__isSmartRef__":true,"id":17811}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17808":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17809":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17810":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17811":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"17812":{"stops":[{"__isSmartRef__":true,"id":17813},{"__isSmartRef__":true,"id":17814},{"__isSmartRef__":true,"id":17815},{"__isSmartRef__":true,"id":17816}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17813":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17814":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17815":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17816":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17817":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17818":{"moveHorizontal":true},"17819":{"morph":{"__isSmartRef__":true,"id":17800},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17820":{"submorphs":[{"__isSmartRef__":true,"id":17821}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":17825},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17826},"lighterFill":{"__isSmartRef__":true,"id":17831},"label":{"__isSmartRef__":true,"id":17821},"attributeConnections":[{"__isSmartRef__":true,"id":17836}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":17837},"_Scale":1,"owner":null,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(215.0,35.0)","padding":"lively.rect(5,0,0,0)"},"17821":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":17822},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":17820},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":17823}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"17822":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(0,0,0)"},"17823":{"style":{"__isSmartRef__":true,"id":17824},"chunkOwner":{"__isSmartRef__":true,"id":17821},"storedString":"","_id":"_809","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17824":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17825":{"_Fill":{"__isSmartRef__":true,"id":17826},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"17826":{"stops":[{"__isSmartRef__":true,"id":17827},{"__isSmartRef__":true,"id":17828},{"__isSmartRef__":true,"id":17829},{"__isSmartRef__":true,"id":17830}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17827":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17828":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17829":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17830":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"17831":{"stops":[{"__isSmartRef__":true,"id":17832},{"__isSmartRef__":true,"id":17833},{"__isSmartRef__":true,"id":17834},{"__isSmartRef__":true,"id":17835}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17832":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17833":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17834":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17835":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17836":{"sourceObj":{"__isSmartRef__":true,"id":17820},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17507},"targetMethodName":"chooseTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17837":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17838":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":17839},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":218,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":17840},"textChunks":[{"__isSmartRef__":true,"id":17841}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":17843}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"_Align":"left","eventHandler":{"__isSmartRef__":true,"id":17845},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":17846},"selection":{"__isSmartRef__":true,"id":17865},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":18145},"_Rotation":0,"_Scale":1,"savedTextString":"100","__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18146},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(200.0,10.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(153.9,-23.7)"},"17839":{"fill":null,"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(244,244,244)"},"17840":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17841":{"style":{"__isSmartRef__":true,"id":17842},"chunkOwner":{"__isSmartRef__":true,"id":17838},"storedString":"","_id":"_810","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17842":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17843":{"sourceObj":{"__isSmartRef__":true,"id":17838},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":17500},"targetMethodName":"setTarget","converterString":"function (name) { return $world.get(name)}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17844},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17844":{"source":{"__isSmartRef__":true,"id":17838},"target":{"__isSmartRef__":true,"id":17500}},"17845":{"morph":{"__isSmartRef__":true,"id":17838},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17846":{"createListMorph":{"__isSmartRef__":true,"id":17847},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":17849},"onMouseUp":{"__isSmartRef__":true,"id":17851},"resetConnections":{"__isSmartRef__":true,"id":17853},"setTargetToListSelection":{"__isSmartRef__":true,"id":17855},"setTargetOfPane":{"__isSmartRef__":true,"id":17857},"onBlur":{"__isSmartRef__":true,"id":17859},"reset":{"__isSmartRef__":true,"id":17861},"onMouseDown":{"__isSmartRef__":true,"id":17863}},"17847":{"time":{"__isSmartRef__":true,"id":17848},"user":"lauritz"},"17848":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (Central Europe Daylight Time)"},"17849":{"time":{"__isSmartRef__":true,"id":17850},"user":"lauritz"},"17850":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (Central Europe Daylight Time)"},"17851":{"time":{"__isSmartRef__":true,"id":17852},"user":"lauritz"},"17852":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (Central Europe Daylight Time)"},"17853":{"time":{"__isSmartRef__":true,"id":17854},"user":"lauritz"},"17854":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (Central Europe Daylight Time)"},"17855":{"time":{"__isSmartRef__":true,"id":17856},"user":"lauritz"},"17856":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (Central Europe Daylight Time)"},"17857":{"time":{"__isSmartRef__":true,"id":17858},"user":"lauritz"},"17858":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (Central Europe Daylight Time)"},"17859":{"time":{"__isSmartRef__":true,"id":17860},"user":"lauritz"},"17860":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (Central Europe Daylight Time)"},"17861":{"time":{"__isSmartRef__":true,"id":17862},"user":"lauritz"},"17862":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (Central Europe Daylight Time)"},"17863":{"time":{"__isSmartRef__":true,"id":17864},"user":"lauritz"},"17864":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (Central Europe Daylight Time)"},"17865":{"submorphs":[{"__isSmartRef__":true,"id":17500},{"__isSmartRef__":true,"id":17866},{"__isSmartRef__":true,"id":17895}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17976},"id":"15929CA8-049F-4B96-97F3-9BDB17AC69D7","eventHandler":{"__isSmartRef__":true,"id":17977},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":17978},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":17500},"titleBar":{"__isSmartRef__":true,"id":17895},"collapsedTransform":{"__isSmartRef__":true,"id":17979},"expandedTransform":{"__isSmartRef__":true,"id":17980},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":17981},"name":"ObjectGroupEditor1","highlighted":true,"cameForward":false,"showsHalos":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"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"],"moved":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1.01,"owner":null,"state":"shutdown","__serializedExpressions__":["contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition","minSize","minExtent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18132},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(723.0,268.0)","expandedExtent":"lively.pt(729.0,365.0)","prevDragPos":"lively.pt(1324.5,651.0)","expandedPosition":"lively.pt(26.0,125.0)","collapsedPosition":"lively.pt(21.0,92.9)","minSize":"lively.pt(500.0,300.0)","minExtent":"lively.pt(455.0,268.0)","_Position":"lively.pt(1058.7,637.9)"},"17866":{"submorphs":[],"scripts":[],"id":"FD088A90-D591-475D-A97C-2798CD35E52E","shape":{"__isSmartRef__":true,"id":17867},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ResizeCorner4","partsBinMetaInfo":{"__isSmartRef__":true,"id":17868},"__layered_draggingEnabled__":true,"dragStartPoint":null,"originalTargetExtent":null,"eventHandler":{"__isSmartRef__":true,"id":17869},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":17865},"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"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","originalExtent","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17870},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(896.0,533.0)","originalExtent":"lively.pt(239.0,138.0)","distanceToDragEvent":"lively.pt(42.3,-22.8)"},"17867":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(13.0,14.0)","_BorderColor":"Color.rgb(145,145,145)","_Fill":"Color.rgb(66,66,66)","_Padding":"lively.rect(0,0,0,0)"},"17868":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17869":{"morph":{"__isSmartRef__":true,"id":17866},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17870":{"onDrag":{"__isSmartRef__":true,"id":17871},"onDragEnd":{"__isSmartRef__":true,"id":17879},"onDragStart":{"__isSmartRef__":true,"id":17887}},"17871":{"varMapping":{"__isSmartRef__":true,"id":17872},"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":17877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17872":{"this":{"__isSmartRef__":true,"id":17866},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17873}},"17873":{"$super":{"__isSmartRef__":true,"id":17874}},"17874":{"varMapping":{"__isSmartRef__":true,"id":17875},"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":17876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17875":{"obj":{"__isSmartRef__":true,"id":17866},"name":"onDrag"},"17876":{},"17877":{"timestamp":{"__isSmartRef__":true,"id":17878},"user":"lauritz"},"17878":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Central Europe Standard Time)"},"17879":{"varMapping":{"__isSmartRef__":true,"id":17880},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":17885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17880":{"this":{"__isSmartRef__":true,"id":17866},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17881}},"17881":{"$super":{"__isSmartRef__":true,"id":17882}},"17882":{"varMapping":{"__isSmartRef__":true,"id":17883},"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":17884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17883":{"obj":{"__isSmartRef__":true,"id":17866},"name":"onDragEnd"},"17884":{},"17885":{"timestamp":{"__isSmartRef__":true,"id":17886},"user":"lauritz"},"17886":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Central Europe Standard Time)"},"17887":{"varMapping":{"__isSmartRef__":true,"id":17888},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":17893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17888":{"this":{"__isSmartRef__":true,"id":17866},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17889}},"17889":{"$super":{"__isSmartRef__":true,"id":17890}},"17890":{"varMapping":{"__isSmartRef__":true,"id":17891},"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":17892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17891":{"obj":{"__isSmartRef__":true,"id":17866},"name":"onDragStart"},"17892":{},"17893":{"timestamp":{"__isSmartRef__":true,"id":17894},"user":"lauritz"},"17894":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:35 GMT+0100 (Central Europe Standard Time)"},"17895":{"submorphs":[{"__isSmartRef__":true,"id":17896},{"__isSmartRef__":true,"id":17902},{"__isSmartRef__":true,"id":17930},{"__isSmartRef__":true,"id":17952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17970},"id":"7CB73B67-C4D2-46C5-A513-7CD6553B381F","eventHandler":{"__isSmartRef__":true,"id":17974},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17975},"windowMorph":{"__isSmartRef__":true,"id":17865},"label":{"__isSmartRef__":true,"id":17896},"closeButton":{"__isSmartRef__":true,"id":17902},"menuButton":{"__isSmartRef__":true,"id":17930},"collapseButton":{"__isSmartRef__":true,"id":17952},"owner":{"__isSmartRef__":true,"id":17865},"prevScroll":[0,0],"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"],"_ClipMode":"visible","_Scale":1,"#startLetters":"","__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"17896":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17897},"id":"57C37217-0192-40D2-9C56-E6EC71FD3445","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":17898}],"eventHandler":{"__isSmartRef__":true,"id":17900},"grabbingEnabled":false,"__layered_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":17901},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":17895},"_MaxTextWidth":850,"_MinTextWidth":850,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"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"],"_Scale":1,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(20.0,3.0)","_TextColor":"Color.rgb(102,102,102)"},"17897":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(850.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"17898":{"style":{"__isSmartRef__":true,"id":17899},"chunkOwner":{"__isSmartRef__":true,"id":17896},"storedString":"ObjectEditor (WebDev'12)","_id":"_368","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17899":{"fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17900":{"morph":{"__isSmartRef__":true,"id":17896},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17901":{"resizeWidth":true},"17902":{"submorphs":[{"__isSmartRef__":true,"id":17903}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17908},"id":"046CC489-6BF8-4642-87A7-0D3DF043A14D","eventHandler":{"__isSmartRef__":true,"id":17914},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17915},"lighterFill":{"__isSmartRef__":true,"id":17920},"label":{"__isSmartRef__":true,"id":17903},"owner":{"__isSmartRef__":true,"id":17895},"layout":{"__isSmartRef__":true,"id":17925},"attributeConnections":[{"__isSmartRef__":true,"id":17926},{"__isSmartRef__":true,"id":17928}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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"],"_ClipMode":"visible","showsHalos":false,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(889.0,3.0)"},"17903":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17904},"id":"D89941D7-6513-4BEF-BA15-B49F4AE4EB3F","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":17905}],"eventHandler":{"__isSmartRef__":true,"id":17907},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17902},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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"],"showsHalos":false,"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"17904":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"17905":{"style":{"__isSmartRef__":true,"id":17906},"chunkOwner":{"__isSmartRef__":true,"id":17903},"storedString":"X","_id":"_369","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17906":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17907":{"morph":{"__isSmartRef__":true,"id":17903},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17908":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17909},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"17909":{"stops":[{"__isSmartRef__":true,"id":17910},{"__isSmartRef__":true,"id":17911},{"__isSmartRef__":true,"id":17912},{"__isSmartRef__":true,"id":17913}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17910":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17911":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"17912":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"17913":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"17914":{"morph":{"__isSmartRef__":true,"id":17902},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17915":{"stops":[{"__isSmartRef__":true,"id":17916},{"__isSmartRef__":true,"id":17917},{"__isSmartRef__":true,"id":17918},{"__isSmartRef__":true,"id":17919}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17916":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17917":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17918":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17919":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"17920":{"stops":[{"__isSmartRef__":true,"id":17921},{"__isSmartRef__":true,"id":17922},{"__isSmartRef__":true,"id":17923},{"__isSmartRef__":true,"id":17924}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17921":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17922":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17923":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17924":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17925":{"moveHorizontal":true},"17926":{"sourceObj":{"__isSmartRef__":true,"id":17902},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17865},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17927},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17927":{"source":{"__isSmartRef__":true,"id":17902},"target":{"__isSmartRef__":true,"id":17865}},"17928":{"sourceObj":{"__isSmartRef__":true,"id":17902},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17865},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17929},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17929":{"source":{"__isSmartRef__":true,"id":17902},"target":{"__isSmartRef__":true,"id":17865}},"17930":{"submorphs":[{"__isSmartRef__":true,"id":17931}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17936},"id":"07D9ED80-3860-4FD6-B064-6278DF9440C9","eventHandler":{"__isSmartRef__":true,"id":17942},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17915},"lighterFill":{"__isSmartRef__":true,"id":17943},"label":{"__isSmartRef__":true,"id":17931},"owner":{"__isSmartRef__":true,"id":17895},"attributeConnections":[{"__isSmartRef__":true,"id":17948},{"__isSmartRef__":true,"id":17950}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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"],"_ClipMode":"visible","_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"17931":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17932},"id":"B50DDEB0-CC92-4D71-AB9B-28BB002F1469","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":17933}],"eventHandler":{"__isSmartRef__":true,"id":17935},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17930},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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"],"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"17932":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"17933":{"style":{"__isSmartRef__":true,"id":17934},"chunkOwner":{"__isSmartRef__":true,"id":17931},"storedString":"M","_id":"_370","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17934":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17935":{"morph":{"__isSmartRef__":true,"id":17931},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17936":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17937},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"17937":{"stops":[{"__isSmartRef__":true,"id":17938},{"__isSmartRef__":true,"id":17939},{"__isSmartRef__":true,"id":17940},{"__isSmartRef__":true,"id":17941}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17938":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"17939":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"17940":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"17941":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"17942":{"morph":{"__isSmartRef__":true,"id":17930},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17943":{"stops":[{"__isSmartRef__":true,"id":17944},{"__isSmartRef__":true,"id":17945},{"__isSmartRef__":true,"id":17946},{"__isSmartRef__":true,"id":17947}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17944":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17945":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17946":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17947":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17948":{"sourceObj":{"__isSmartRef__":true,"id":17930},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17865},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17949},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17949":{"source":{"__isSmartRef__":true,"id":17930},"target":{"__isSmartRef__":true,"id":17865}},"17950":{"sourceObj":{"__isSmartRef__":true,"id":17930},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17865},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17951},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17951":{"source":{"__isSmartRef__":true,"id":17930},"target":{"__isSmartRef__":true,"id":17865}},"17952":{"submorphs":[{"__isSmartRef__":true,"id":17953}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17958},"id":"B0AF0130-66FB-495C-9C53-C43EC7E90474","eventHandler":{"__isSmartRef__":true,"id":17959},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17915},"lighterFill":{"__isSmartRef__":true,"id":17960},"label":{"__isSmartRef__":true,"id":17953},"owner":{"__isSmartRef__":true,"id":17895},"layout":{"__isSmartRef__":true,"id":17965},"attributeConnections":[{"__isSmartRef__":true,"id":17966},{"__isSmartRef__":true,"id":17968}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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"],"_ClipMode":"visible","_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(870.0,3.0)"},"17953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17954},"id":"FFD66A88-456B-43C9-A845-4BB23B9E4AE0","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":17955}],"eventHandler":{"__isSmartRef__":true,"id":17957},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":17952},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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"],"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"17954":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"17955":{"style":{"__isSmartRef__":true,"id":17956},"chunkOwner":{"__isSmartRef__":true,"id":17953},"storedString":"–","_id":"_371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17956":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17957":{"morph":{"__isSmartRef__":true,"id":17953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17958":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":17915},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"17959":{"morph":{"__isSmartRef__":true,"id":17952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17960":{"stops":[{"__isSmartRef__":true,"id":17961},{"__isSmartRef__":true,"id":17962},{"__isSmartRef__":true,"id":17963},{"__isSmartRef__":true,"id":17964}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17961":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"17962":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17963":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"17964":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"17965":{"moveHorizontal":true},"17966":{"sourceObj":{"__isSmartRef__":true,"id":17952},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":17865},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17967},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17967":{"source":{"__isSmartRef__":true,"id":17952},"target":{"__isSmartRef__":true,"id":17865}},"17968":{"sourceObj":{"__isSmartRef__":true,"id":17952},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17865},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17969},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17969":{"source":{"__isSmartRef__":true,"id":17952},"target":{"__isSmartRef__":true,"id":17865}},"17970":{"_ClipMode":"visible","_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":17971},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(909.0,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(102,102,102)"},"17971":{"stops":[{"__isSmartRef__":true,"id":17972},{"__isSmartRef__":true,"id":17973}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"17972":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"17973":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"17974":{"morph":{"__isSmartRef__":true,"id":17895},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17975":{"resizeWidth":true,"adjustForNewBounds":true},"17976":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_ClipMode":"visible","__serializedExpressions__":["_Extent","_Position","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(909.0,547.0)","_Position":"lively.pt(0.0,0.0)","_Padding":"lively.rect(0,0,0,0)"},"17977":{"morph":{"__isSmartRef__":true,"id":17865},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17978":{"adjustForNewBounds":true},"17979":{"a":1,"b":0,"c":0,"d":1,"e":21,"f":92.89999999999998,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17980":{"a":1.0040100200350561,"b":0,"c":0,"d":1.0040100200350561,"e":25.958169966165087,"f":125.02070906988553,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17981":{"migrationLevel":4,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a morph, or a group of morphs.","partName":"ObjectGroupEditor","changes":[{"__isSmartRef__":true,"id":17982},{"__isSmartRef__":true,"id":17984},{"__isSmartRef__":true,"id":17986},{"__isSmartRef__":true,"id":17988},{"__isSmartRef__":true,"id":17990},{"__isSmartRef__":true,"id":17992},{"__isSmartRef__":true,"id":17994},{"__isSmartRef__":true,"id":17996},{"__isSmartRef__":true,"id":17998},{"__isSmartRef__":true,"id":18000},{"__isSmartRef__":true,"id":18002},{"__isSmartRef__":true,"id":18004},{"__isSmartRef__":true,"id":18006},{"__isSmartRef__":true,"id":18008},{"__isSmartRef__":true,"id":18010},{"__isSmartRef__":true,"id":18012},{"__isSmartRef__":true,"id":18014},{"__isSmartRef__":true,"id":18016},{"__isSmartRef__":true,"id":18018},{"__isSmartRef__":true,"id":18020},{"__isSmartRef__":true,"id":18022},{"__isSmartRef__":true,"id":18024},{"__isSmartRef__":true,"id":18026},{"__isSmartRef__":true,"id":18028},{"__isSmartRef__":true,"id":18030},{"__isSmartRef__":true,"id":18032},{"__isSmartRef__":true,"id":18034},{"__isSmartRef__":true,"id":18036},{"__isSmartRef__":true,"id":18038},{"__isSmartRef__":true,"id":18040},{"__isSmartRef__":true,"id":18042},{"__isSmartRef__":true,"id":18044},{"__isSmartRef__":true,"id":18046},{"__isSmartRef__":true,"id":18048},{"__isSmartRef__":true,"id":18050},{"__isSmartRef__":true,"id":18052},{"__isSmartRef__":true,"id":18054},{"__isSmartRef__":true,"id":18056},{"__isSmartRef__":true,"id":18058},{"__isSmartRef__":true,"id":18060},{"__isSmartRef__":true,"id":18062},{"__isSmartRef__":true,"id":18064},{"__isSmartRef__":true,"id":18066},{"__isSmartRef__":true,"id":18068},{"__isSmartRef__":true,"id":18070},{"__isSmartRef__":true,"id":18072},{"__isSmartRef__":true,"id":18074},{"__isSmartRef__":true,"id":18076},{"__isSmartRef__":true,"id":18078},{"__isSmartRef__":true,"id":18080},{"__isSmartRef__":true,"id":18082},{"__isSmartRef__":true,"id":18084},{"__isSmartRef__":true,"id":18086},{"__isSmartRef__":true,"id":18088},{"__isSmartRef__":true,"id":18090},{"__isSmartRef__":true,"id":18092},{"__isSmartRef__":true,"id":18094},{"__isSmartRef__":true,"id":18096},{"__isSmartRef__":true,"id":18098},{"__isSmartRef__":true,"id":18100},{"__isSmartRef__":true,"id":18102},{"__isSmartRef__":true,"id":18104},{"__isSmartRef__":true,"id":18106},{"__isSmartRef__":true,"id":18108},{"__isSmartRef__":true,"id":18110},{"__isSmartRef__":true,"id":18112},{"__isSmartRef__":true,"id":18114},{"__isSmartRef__":true,"id":18116},{"__isSmartRef__":true,"id":18118},{"__isSmartRef__":true,"id":18120},{"__isSmartRef__":true,"id":18122},{"__isSmartRef__":true,"id":18124},{"__isSmartRef__":true,"id":18126},{"__isSmartRef__":true,"id":18128},{"__isSmartRef__":true,"id":18130}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17982":{"date":{"__isSmartRef__":true,"id":17983},"author":"timfelgentreff","message":"resize initially","id":"6D0DAD13-A4E6-4FC7-AB01-0CBD3CBE6FEE"},"17983":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:26:37 GMT+0200 (Central Europe Daylight Time)"},"17984":{"date":{"__isSmartRef__":true,"id":17985},"author":"tessi","message":"select target-dropwdownlist instead of \"Target\"-Label when clicking on the dropdownlist","id":"8744030E-7C35-4B0D-9619-DDF542E951E3"},"17985":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:21:25 GMT+0200 (Central Europe Daylight Time)"},"17986":{"date":{"__isSmartRef__":true,"id":17987},"author":"lauritz","message":"added cschusters's Widget.js module to this part's PartsBinMetaInfo.requiredModules","id":"CDFDF35E-A6AC-4ABC-8ADC-567B3CC55F6B"},"17987":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:11:02 GMT+0200 (Central Europe Daylight Time)"},"17988":{"date":{"__isSmartRef__":true,"id":17989},"author":"timfelgentreff","message":"Add a magnifiying glass to select target (similar to developer tools DOM selection)","id":"D9409D32-738F-4916-BA02-82C040C9891B"},"17989":{"isSerializedDate":true,"string":"Thu May 24 2012 17:21:39 GMT+0200 (Central Europe Daylight Time)"},"17990":{"date":{"__isSmartRef__":true,"id":17991},"author":"timfelgentreff","message":"no comment","id":"6D83027E-EC28-4497-A29F-E48051BD74FA"},"17991":{"isSerializedDate":true,"string":"Thu May 24 2012 16:54:16 GMT+0200 (Central Europe Daylight Time)"},"17992":{"date":{"__isSmartRef__":true,"id":17993},"author":"robertkrahn","message":"restored old version for addressing immediate save problems","id":"63323F27-08DC-499B-80D6-A700A30FE6BA"},"17993":{"isSerializedDate":true,"string":"Thu Apr 26 2012 22:03:48 GMT+0200 (Central Europe Daylight Time)"},"17994":{"date":{"__isSmartRef__":true,"id":17995},"author":"fbo","message":"No more addScript and better support for Firefox","id":"1BC8E4F5-9621-43E1-9451-35E018A8B06F"},"17995":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:16:30 GMT+0200 (Central Europe Daylight Time)"},"17996":{"date":{"__isSmartRef__":true,"id":17997},"author":"robertkrahn","message":"- Tags text morph now is a input line, fixed a bug in generateSourceForScript()","id":"485A3064-009C-4A89-875B-D3BF1B1C0606"},"17997":{"isSerializedDate":true,"string":"Thu Mar 08 2012 19:12:32 GMT+0100 (Central Europe Standard Time)"},"17998":{"date":{"__isSmartRef__":true,"id":17999},"author":"fabian","message":"","id":"50D90B40-1175-48A3-AC0E-10AC8884288A"},"17999":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:51:00 GMT+0100 (Central Europe Standard Time)"},"18000":{"date":{"__isSmartRef__":true,"id":18001},"author":"fabian","message":"","id":"E39C79D4-9E74-47BA-A6EA-D0B861EB411D"},"18001":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:46:13 GMT+0100 (Central Europe Standard Time)"},"18002":{"date":{"__isSmartRef__":true,"id":18003},"author":"fabian","message":"","id":"0714BC73-548D-4AF3-9A61-32FEE36C9B1F"},"18003":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:34:16 GMT+0100 (Central Europe Standard Time)"},"18004":{"date":{"__isSmartRef__":true,"id":18005},"author":"fabian","message":"","id":"AEB64F75-685C-4BB8-8C69-D8EC60CBA91D"},"18005":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:14:57 GMT+0100 (Central Europe Standard Time)"},"18006":{"date":{"__isSmartRef__":true,"id":18007},"author":"fabian","message":"","id":"EE9D6061-DD05-4FC8-B53A-21B93B9F5535"},"18007":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:57:12 GMT+0100 (Central Europe Standard Time)"},"18008":{"date":{"__isSmartRef__":true,"id":18009},"author":"fabian","message":"","id":"112A906B-C79A-4CF2-BD2A-EEF9A6731634"},"18009":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:42:40 GMT+0100 (Central Europe Standard Time)"},"18010":{"date":{"__isSmartRef__":true,"id":18011},"author":"fabian","message":"","id":"6FF4CD6F-6C92-449F-B2CA-20BFACE54E7A"},"18011":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:37:11 GMT+0100 (Central Europe Standard Time)"},"18012":{"date":{"__isSmartRef__":true,"id":18013},"author":"sstamm","message":"added save button","id":"3A85D0AF-64E0-40C7-8C4E-61CD462F3971"},"18013":{"isSerializedDate":true,"string":"Fri Feb 03 2012 11:45:18 GMT+0100 (Central Europe Standard Time)"},"18014":{"date":{"__isSmartRef__":true,"id":18015},"author":"bsiegmund","message":"Run Button now moving when window is resized","id":"9ECA7B2B-8322-42C5-8EFA-49AC432960B4"},"18015":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:36:10 GMT+0100 (Central Europe Standard Time)"},"18016":{"date":{"__isSmartRef__":true,"id":18017},"author":"lauritz","message":"changed label \"Category:\" to \"Tag:\".","id":"DBC877ED-0328-44A8-A46D-FE83C935797F"},"18017":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:50:45 GMT+0100 (Central Europe Standard Time)"},"18018":{"date":{"__isSmartRef__":true,"id":18019},"author":"lauritz","message":"adapted layout of notifications","id":"1C01FAB9-AD9A-44B5-BAF1-EC06408A767E"},"18019":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:26:48 GMT+0100 (Central Europe Standard Time)"},"18020":{"date":{"__isSmartRef__":true,"id":18021},"author":"lauritz","message":"fixed a bug (onBlur event handling) and added the world to the target chooser","id":"A8C151D4-0767-44E0-B586-090EA305BDF5"},"18021":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:14:00 GMT+0100 (Central Europe Standard Time)"},"18022":{"date":{"__isSmartRef__":true,"id":18023},"author":"jenslincke","message":"- reset title bar and borders","id":"8CE7DA3C-5C83-4151-A3A7-7B41D1C555BD"},"18023":{"isSerializedDate":true,"string":"Fri Nov 18 2011 15:26:49 GMT+0100 (Central Europe Standard Time)"},"18024":{"date":{"__isSmartRef__":true,"id":18025},"author":"lauritz","message":"Refactoring of script annotations (now at scripts not morphs). Added category tagging. Layout changes.","id":"1A9DA32B-8A1D-4CCF-92CB-47462F8CF117"},"18025":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:22:54 GMT+0100 (Central Europe Standard Time)"},"18026":{"date":{"__isSmartRef__":true,"id":18027},"author":"lauritz","message":"layout adaptions","id":"6F1AEBDC-EED3-4CE0-B84C-F4DD4DA784C5"},"18027":{"isSerializedDate":true,"string":"Wed Nov 16 2011 02:12:15 GMT+0100 (Central Europe Standard Time)"},"18028":{"date":{"__isSmartRef__":true,"id":18029},"author":"lauritz","message":"two more checks on attempts to remove scripts or connections.","id":"ED9F0090-C36C-4BC6-8FD2-A6FB60C7A0B2"},"18029":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:47:27 GMT+0100 (Central Europe Standard Time)"},"18030":{"date":{"__isSmartRef__":true,"id":18031},"author":"lauritz","message":"added confirmation before removal of scripts or connections.","id":"00B5B7BA-FC00-4B1C-A967-B8A38B05EEA8"},"18031":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:42:28 GMT+0100 (Central Europe Standard Time)"},"18032":{"date":{"__isSmartRef__":true,"id":18033},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"18033":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:40:22 GMT+0200 (Central Europe Daylight Time)"},"18034":{"date":{"__isSmartRef__":true,"id":18035},"author":"lauritz","message":"Locked down submorphs of the editor pane. Grabbing and dragging disabled. "},"18035":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:36:22 GMT+0200 (Central Europe Daylight Time)"},"18036":{"date":{"__isSmartRef__":true,"id":18037},"author":"jenslincke","message":"bring resize handle to front","id":"996D26BC-8567-486E-B114-A9041230543D"},"18037":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:41:36 GMT+0100 (Central Europe Standard Time)"},"18038":{"date":{"__isSmartRef__":true,"id":18039},"author":"jenslincke","message":"set min extent to pt(500,300)","id":"20634435-660B-4E80-93FF-8B8C4F5E0453"},"18039":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:44:45 GMT+0100 (Central Europe Standard Time)"},"18040":{"date":{"__isSmartRef__":true,"id":18041},"author":"lauritz","message":"set a minExtent","id":"85B641E5-15C6-4C6D-BE9A-F4F96E347258"},"18041":{"isSerializedDate":true,"string":"Tue Nov 15 2011 20:12:45 GMT+0100 (Central Europe Standard Time)"},"18042":{"date":{"__isSmartRef__":true,"id":18043},"author":"lauritz","message":"removed a missed debugger statement. corrected setting of target.","id":"BD747202-2BE7-4560-8EB2-DBA586BAD46F"},"18043":{"isSerializedDate":true,"string":"Fri Nov 18 2011 20:19:07 GMT+0100 (Central Europe Standard Time)"},"18044":{"date":{"__isSmartRef__":true,"id":18045},"author":"lauritz","message":"added a border to notifications, centered notification text","id":"D1DDACFE-EC70-45FB-8178-0A93C8DC81F1"},"18045":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:02:14 GMT+0100 (Central Europe Standard Time)"},"18046":{"date":{"__isSmartRef__":true,"id":18047},"author":"lauritz","message":"renamed .categorize to .tag","id":"470CD024-16F9-4221-B2D7-87FAC17B198B"},"18047":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:44:44 GMT+0100 (Central Europe Standard Time)"},"18048":{"date":{"__isSmartRef__":true,"id":18049},"author":"lauritz","message":"fixed a defect (weeeeeird property caused an error on deserialization of copies)","id":"F6F92336-29F4-4FB4-B597-B8EF12E2922E"},"18049":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:55:11 GMT+0100 (Central Europe Standard Time)"},"18050":{"date":{"__isSmartRef__":true,"id":18051},"author":"lauritz","message":"fixed a bug regarding anonymous morphs.","id":"30C42CB6-324C-455D-8B3E-828A80325027"},"18051":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:31:58 GMT+0100 (Central Europe Standard Time)"},"18052":{"date":{"__isSmartRef__":true,"id":18053},"author":"lauritz","message":"workaround for issue #161 - target morph list is scrollable","id":"7D5DAE37-46E2-4C63-8008-AA553CD6B1E9"},"18053":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:13:13 GMT+0100 (Central Europe Standard Time)"},"18054":{"date":{"__isSmartRef__":true,"id":18055},"author":"lauritz","message":"removed a workaround","id":"9AC9A97B-E63C-4C24-BCAF-6DC61C3A677C"},"18055":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:56:45 GMT+0100 (Central Europe Standard Time)"},"18056":{"date":{"__isSmartRef__":true,"id":18057},"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"},"18057":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:04:53 GMT+0100 (Central Europe Standard Time)"},"18058":{"date":{"__isSmartRef__":true,"id":18059},"author":"lauritz","message":"sorted tag list.","id":"597DB7EB-1788-42DC-A64F-E061D7B831EC"},"18059":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:23:14 GMT+0100 (Central Europe Standard Time)"},"18060":{"date":{"__isSmartRef__":true,"id":18061},"author":"lauritz","message":"top-most entry of the tag list is \"all\" now.","id":"62D12D9E-7F42-40CC-BB5B-162130454572"},"18061":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:28:30 GMT+0100 (Central Europe Standard Time)"},"18062":{"date":{"__isSmartRef__":true,"id":18063},"author":"lauritz","message":"","id":"72E0F00D-53A7-43E9-AD7B-E34F485BC75E"},"18063":{"isSerializedDate":true,"string":"Fri Jan 06 2012 07:15:04 GMT+0100 (Central Europe Standard Time)"},"18064":{"date":{"__isSmartRef__":true,"id":18065},"author":"robertkrahn","message":"show scripts even if they are wrapped","id":"6F608C14-369B-49D6-8E91-81B35ABB14DE"},"18065":{"isSerializedDate":true,"string":"Fri Jan 27 2012 17:50:40 GMT+0100 (Central Europe Standard Time)"},"18066":{"date":{"__isSmartRef__":true,"id":18067},"author":"conradcalmez","message":"added run button for trying out methods","id":"D21502DF-B383-45AA-8DB2-16D6A4C7DFC0"},"18067":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:15 GMT+0100 (Central Europe Standard Time)"},"18068":{"date":{"__isSmartRef__":true,"id":18069},"author":"conradcalmez","message":"set selection of lists to null","id":"1C918344-7895-4714-9F8E-2BCC837250CA"},"18069":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:00:56 GMT+0100 (Central Europe Standard Time)"},"18070":{"date":{"__isSmartRef__":true,"id":18071},"author":"fbo","message":"","id":"EBED707C-49B0-4E5F-9DD8-FF84007B435E"},"18071":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:47:59 GMT+0100 (Central Europe Standard Time)"},"18072":{"date":{"__isSmartRef__":true,"id":18073},"author":"fabian","message":"","id":"7D345E64-F67F-4266-AB55-590EB143327A"},"18073":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:08:57 GMT+0100 (Central Europe Standard Time)"},"18074":{"date":{"__isSmartRef__":true,"id":18075},"author":"fabian","message":"","id":"1A435460-69B4-469B-909F-F2F395B97C4D"},"18075":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:09:30 GMT+0100 (Central Europe Standard Time)"},"18076":{"date":{"__isSmartRef__":true,"id":18077},"author":"undefined","message":"","id":"121C044E-8723-4B1F-A9C5-54E73422CD05"},"18077":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:40:16 GMT+0100 (Central Europe Standard Time)"},"18078":{"date":{"__isSmartRef__":true,"id":18079},"author":"fabian","message":"","id":"D2F5383B-1F99-477E-A66E-D92928DB7540"},"18079":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:52:22 GMT+0100 (Central Europe Standard Time)"},"18080":{"date":{"__isSmartRef__":true,"id":18081},"author":"fabian","message":"","id":"350CA522-AD08-42D8-BB89-DA7D8BCAD0FB"},"18081":{"isSerializedDate":true,"string":"Wed Mar 07 2012 21:27:57 GMT+0100 (Central Europe Standard Time)"},"18082":{"date":{"__isSmartRef__":true,"id":18083},"author":"fabian","message":"","id":"FABA3850-E4EF-4888-BCE9-BB4F9EC9C2D4"},"18083":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:37:50 GMT+0100 (Central Europe Standard Time)"},"18084":{"date":{"__isSmartRef__":true,"id":18085},"author":"fabian","message":"","id":"31CF7B42-DEAF-4A50-A5A2-6745A92BF6DC"},"18085":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:48:03 GMT+0100 (Central Europe Standard Time)"},"18086":{"date":{"__isSmartRef__":true,"id":18087},"author":"fabian","message":"","id":"00E45103-9D78-4178-A58F-03896AFF5CA3"},"18087":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:55:32 GMT+0100 (Central Europe Standard Time)"},"18088":{"date":{"__isSmartRef__":true,"id":18089},"author":"fbo","message":"No more addScript and better support for Firefox","id":"2AC82901-2DCD-4921-B6F9-78B05D3D671C"},"18089":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:14:35 GMT+0200 (Central Europe Daylight Time)"},"18090":{"date":{"__isSmartRef__":true,"id":18091},"author":"fbo","message":"No more addScript and better support for Firefox","id":"C6D736FA-5748-448D-A6A0-6068A9BA9A34"},"18091":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:15:21 GMT+0200 (Central Europe Daylight Time)"},"18092":{"date":{"__isSmartRef__":true,"id":18093},"author":"timfelgentreff","message":"no comment","id":"27293AFB-6616-4516-B2FB-BB688F7ADB2D"},"18093":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:19 GMT+0200 (Central Europe Daylight Time)"},"18094":{"date":{"__isSmartRef__":true,"id":18095},"author":"timfelgentreff","message":"no comment","id":"D66996F5-54A4-4923-8D9E-3FC049EA2D32"},"18095":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:35 GMT+0200 (Central Europe Daylight Time)"},"18096":{"date":{"__isSmartRef__":true,"id":18097},"author":"lauritz","message":"reduced global variable usage","id":"2FCB8ACB-CA90-4236-A8DF-D77F631C6CA9"},"18097":{"isSerializedDate":true,"string":"Tue May 29 2012 13:10:35 GMT+0200 (Central Europe Daylight Time)"},"18098":{"date":{"__isSmartRef__":true,"id":18099},"author":"lauritz","message":"hover over the magnifier button to see the current target","id":"9E6C0152-723A-43B1-8EF8-A3C2F15F5EBA"},"18099":{"isSerializedDate":true,"string":"Tue May 29 2012 13:18:56 GMT+0200 (Central Europe Daylight Time)"},"18100":{"date":{"__isSmartRef__":true,"id":18101},"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"},"18101":{"isSerializedDate":true,"string":"Wed Jun 06 2012 16:21:44 GMT+0200 (Central Europe Daylight Time)"},"18102":{"date":{"__isSmartRef__":true,"id":18103},"author":"lauritz","message":"fixed magnifier-tool: highlight-rectangle property of the object, now.","id":"9301C445-2961-4C51-8D35-8FF338F0CD19"},"18103":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:25:01 GMT+0200 (Central Europe Daylight Time)"},"18104":{"date":{"__isSmartRef__":true,"id":18105},"author":"lauritz","message":"","id":"667CB328-3FE7-46B6-BD5A-FA4763544BC6"},"18105":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:29:52 GMT+0200 (Central Europe Daylight Time)"},"18106":{"date":{"__isSmartRef__":true,"id":18107},"author":"lauritz","message":"fix bad interaction b/w highlight and tracking in magnifier","id":"0970265D-1552-4376-8999-F6847141362C"},"18107":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:07:40 GMT+0200 (Central Europe Daylight Time)"},"18108":{"date":{"__isSmartRef__":true,"id":18109},"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"},"18109":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:29:36 GMT+0200 (Central Europe Daylight Time)"},"18110":{"date":{"__isSmartRef__":true,"id":18111},"author":"tessi","message":"Fix hover on empty target","id":"E65D513E-8719-46CD-BA22-F1F8A6C6904B"},"18111":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:32:55 GMT+0200 (Central Europe Daylight Time)"},"18112":{"date":{"__isSmartRef__":true,"id":18113},"author":"tessi","message":"Stop Magnifier-Selection-Thingy if Esc-Key was pressed","id":"F59C88F0-0708-483D-89BA-2D926B22BC5E"},"18113":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:59 GMT+0200 (Central Europe Daylight Time)"},"18114":{"date":{"__isSmartRef__":true,"id":18115},"author":"timfelgentreff","message":"implement saving and retrieving of groups, using tags on the morphs","id":"854E44DD-C527-406E-81A6-87D1FDFF499B"},"18115":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:09:18 GMT+0200 (Central Europe Daylight Time)"},"18116":{"date":{"__isSmartRef__":true,"id":18117},"author":"timfelgentreff","message":"fix issue with uniqueness","id":"863C36B3-EC03-45B1-9D36-7EB092A00EFE"},"18117":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:23:01 GMT+0200 (Central Europe Daylight Time)"},"18118":{"date":{"__isSmartRef__":true,"id":18119},"author":"timfelgentreff","message":"introduce evaluation for groups. returns multiple results if result is `this' dependent","id":"E459B71C-5114-40F2-A11E-34A42A4CA50C"},"18119":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:45:09 GMT+0200 (Central Europe Daylight Time)"},"18120":{"date":{"__isSmartRef__":true,"id":18121},"author":"timfelgentreff","message":"hide \"Name group\" button by default","id":"617D6A4B-7BD3-4B7B-9913-CC650DC7BA6A"},"18121":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:46:11 GMT+0200 (Central Europe Daylight Time)"},"18122":{"date":{"__isSmartRef__":true,"id":18123},"author":"timfelgentreff","message":"use tree for submorphs","id":"592A118B-2713-4C06-B820-22DB62E43D16"},"18123":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:41:30 GMT+0200 (Central Europe Daylight Time)"},"18124":{"date":{"__isSmartRef__":true,"id":18125},"author":"timfelgentreff","message":"automatic expand and highlight","id":"02EF2B1D-F704-4EB5-A81A-FAAD2F85470D"},"18125":{"isSerializedDate":true,"string":"Tue Jun 19 2012 09:32:59 GMT+0200 (Central Europe Daylight Time)"},"18126":{"date":{"__isSmartRef__":true,"id":18127},"author":"lauritz","message":"changed title to clarify","id":"A5FE4F60-1BA4-4FDE-A872-70D815D6C99E"},"18127":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:29:57 GMT+0200 (Central Europe Daylight Time)"},"18128":{"date":{"__isSmartRef__":true,"id":18129},"author":"timfelgentreff","message":"shift-multi-selection in scenegraph tree","id":"06F870D2-4E2C-49D4-B02D-9B3D16C03EEB"},"18129":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:49:25 GMT+0200 (Central Europe Daylight Time)"},"18130":{"date":{"__isSmartRef__":true,"id":18131},"author":"lauritz","message":"reflected relocation of the tree widget","id":"C2F5A421-34F4-4F59-897F-B71A43FCB6E6"},"18131":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:51:17 GMT+0200 (Central Europe Daylight Time)"},"18132":{"setTarget":{"__isSmartRef__":true,"id":18133},"reset":{"__isSmartRef__":true,"id":18137},"onShutdown":{"__isSmartRef__":true,"id":18141}},"18133":{"varMapping":{"__isSmartRef__":true,"id":18134},"source":"function setTarget(t) {\n this.targetMorph.setTarget(t);\n}","funcProperties":{"__isSmartRef__":true,"id":18135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18134":{"this":{"__isSmartRef__":true,"id":17865}},"18135":{"timestamp":{"__isSmartRef__":true,"id":18136},"user":"lauritz","categories":[]},"18136":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Central Europe Standard Time)"},"18137":{"varMapping":{"__isSmartRef__":true,"id":18138},"source":"function reset() {\n this.targetMorph.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":18139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18138":{"this":{"__isSmartRef__":true,"id":17865}},"18139":{"timestamp":{"__isSmartRef__":true,"id":18140},"user":"lauritz","categories":[]},"18140":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Central Europe Standard Time)"},"18141":{"varMapping":{"__isSmartRef__":true,"id":18142},"source":"function onShutdown() {\n this.targetMorph.onShutdown();\n}","funcProperties":{"__isSmartRef__":true,"id":18143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18142":{"this":{"__isSmartRef__":true,"id":17865}},"18143":{"timestamp":{"__isSmartRef__":true,"id":18144},"user":"lauritz","categories":[]},"18144":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:25:16 GMT+0200 (Central Europe Daylight Time)"},"18145":{},"18146":{"getList":{"__isSmartRef__":true,"id":18147},"setList":{"__isSmartRef__":true,"id":18150},"reset":{"__isSmartRef__":true,"id":18153},"example":{"__isSmartRef__":true,"id":18156},"removeList":{"__isSmartRef__":true,"id":18159},"onBlur":{"__isSmartRef__":true,"id":18162},"createListMorph":{"__isSmartRef__":true,"id":18169},"resetConnections":{"__isSmartRef__":true,"id":18172},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":18175},"setTargetToListSelection":{"__isSmartRef__":true,"id":18178},"setTargetOfPane":{"__isSmartRef__":true,"id":18181},"onMouseDown":{"__isSmartRef__":true,"id":18184}},"18147":{"varMapping":{"__isSmartRef__":true,"id":18148},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":18149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18148":{"this":{"__isSmartRef__":true,"id":17838}},"18149":{},"18150":{"varMapping":{"__isSmartRef__":true,"id":18151},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":18152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18151":{"this":{"__isSmartRef__":true,"id":17838}},"18152":{},"18153":{"varMapping":{"__isSmartRef__":true,"id":18154},"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":18155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18154":{"this":{"__isSmartRef__":true,"id":17838}},"18155":{},"18156":{"varMapping":{"__isSmartRef__":true,"id":18157},"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":18158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18157":{"this":{"__isSmartRef__":true,"id":17838}},"18158":{},"18159":{"varMapping":{"__isSmartRef__":true,"id":18160},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":18161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18160":{"this":{"__isSmartRef__":true,"id":17838}},"18161":{},"18162":{"varMapping":{"__isSmartRef__":true,"id":18163},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":18168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18163":{"this":{"__isSmartRef__":true,"id":17838},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18164}},"18164":{"$super":{"__isSmartRef__":true,"id":18165}},"18165":{"varMapping":{"__isSmartRef__":true,"id":18166},"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":18167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18166":{"obj":{"__isSmartRef__":true,"id":17838},"name":"onBlur"},"18167":{},"18168":{},"18169":{"varMapping":{"__isSmartRef__":true,"id":18170},"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":18171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18170":{"this":{"__isSmartRef__":true,"id":17838}},"18171":{},"18172":{"varMapping":{"__isSmartRef__":true,"id":18173},"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":18174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18173":{"this":{"__isSmartRef__":true,"id":17838}},"18174":{},"18175":{"varMapping":{"__isSmartRef__":true,"id":18176},"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":18177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18176":{"this":{"__isSmartRef__":true,"id":17838}},"18177":{},"18178":{"varMapping":{"__isSmartRef__":true,"id":18179},"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":18180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18179":{"this":{"__isSmartRef__":true,"id":17838}},"18180":{},"18181":{"varMapping":{"__isSmartRef__":true,"id":18182},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":18183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18182":{"this":{"__isSmartRef__":true,"id":17838}},"18183":{},"18184":{"varMapping":{"__isSmartRef__":true,"id":18185},"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":18190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18185":{"this":{"__isSmartRef__":true,"id":17838},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18186}},"18186":{"$super":{"__isSmartRef__":true,"id":18187}},"18187":{"varMapping":{"__isSmartRef__":true,"id":18188},"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":18189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18188":{"obj":{"__isSmartRef__":true,"id":17838},"name":"onMouseDown"},"18189":{},"18190":{},"18191":{"morph":{"__isSmartRef__":true,"id":17507},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18192":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":18193},"setTarget":{"__isSmartRef__":true,"id":18196},"generateSourceForScript":{"__isSmartRef__":true,"id":18199},"generateSourceForConnection":{"__isSmartRef__":true,"id":18202},"generateTargetCode":{"__isSmartRef__":true,"id":18205},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":18208},"displayJavaScriptSource":{"__isSmartRef__":true,"id":18211},"displaySourceForScript":{"__isSmartRef__":true,"id":18214},"displaySourceForConnection":{"__isSmartRef__":true,"id":18217},"newScript":{"__isSmartRef__":true,"id":18220},"newConnection":{"__isSmartRef__":true,"id":18223},"deleteSelectedScript":{"__isSmartRef__":true,"id":18226},"disconnectConnection":{"__isSmartRef__":true,"id":18229},"updateLists":{"__isSmartRef__":true,"id":18232},"displayInitialScript":{"__isSmartRef__":true,"id":18235},"reset":{"__isSmartRef__":true,"id":18238},"selectChangedContent":{"__isSmartRef__":true,"id":18241}},"18193":{"varMapping":{"__isSmartRef__":true,"id":18194},"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":18195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18194":{"this":{"__isSmartRef__":true,"id":17507}},"18195":{},"18196":{"varMapping":{"__isSmartRef__":true,"id":18197},"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":18198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18197":{"this":{"__isSmartRef__":true,"id":17507}},"18198":{},"18199":{"varMapping":{"__isSmartRef__":true,"id":18200},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":18201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18200":{"this":{"__isSmartRef__":true,"id":17507}},"18201":{},"18202":{"varMapping":{"__isSmartRef__":true,"id":18203},"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":18204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18203":{"this":{"__isSmartRef__":true,"id":17507}},"18204":{},"18205":{"varMapping":{"__isSmartRef__":true,"id":18206},"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":18207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18206":{"this":{"__isSmartRef__":true,"id":17507}},"18207":{},"18208":{"varMapping":{"__isSmartRef__":true,"id":18209},"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":18210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18209":{"this":{"__isSmartRef__":true,"id":17507}},"18210":{},"18211":{"varMapping":{"__isSmartRef__":true,"id":18212},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":18213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18212":{"this":{"__isSmartRef__":true,"id":17507}},"18213":{},"18214":{"varMapping":{"__isSmartRef__":true,"id":18215},"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":18216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18215":{"this":{"__isSmartRef__":true,"id":17507}},"18216":{},"18217":{"varMapping":{"__isSmartRef__":true,"id":18218},"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":18219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18218":{"this":{"__isSmartRef__":true,"id":17507}},"18219":{},"18220":{"varMapping":{"__isSmartRef__":true,"id":18221},"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":18222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18221":{"this":{"__isSmartRef__":true,"id":17507}},"18222":{},"18223":{"varMapping":{"__isSmartRef__":true,"id":18224},"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":18225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18224":{"this":{"__isSmartRef__":true,"id":17507}},"18225":{},"18226":{"varMapping":{"__isSmartRef__":true,"id":18227},"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":18228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18227":{"this":{"__isSmartRef__":true,"id":17507}},"18228":{},"18229":{"varMapping":{"__isSmartRef__":true,"id":18230},"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":18231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18230":{"this":{"__isSmartRef__":true,"id":17507}},"18231":{},"18232":{"varMapping":{"__isSmartRef__":true,"id":18233},"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":18234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18233":{"this":{"__isSmartRef__":true,"id":17507}},"18234":{},"18235":{"varMapping":{"__isSmartRef__":true,"id":18236},"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":18237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18236":{"this":{"__isSmartRef__":true,"id":17507}},"18237":{},"18238":{"varMapping":{"__isSmartRef__":true,"id":18239},"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":18240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18239":{"this":{"__isSmartRef__":true,"id":17507}},"18240":{},"18241":{"varMapping":{"__isSmartRef__":true,"id":18242},"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":18334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18333":{"this":{"__isSmartRef__":true,"id":18309}},"18334":{"timestamp":{"__isSmartRef__":true,"id":18335},"user":"lauritz","categories":[]},"18335":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (Central Europe Standard Time)"},"18336":{"submorphs":[{"__isSmartRef__":true,"id":18337}],"scripts":[],"id":"4201853A-99F3-4248-824C-C4982C8CF896","shape":{"__isSmartRef__":true,"id":18342},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18343},"lighterFill":{"__isSmartRef__":true,"id":18348},"label":{"__isSmartRef__":true,"id":18337},"attributeConnections":[{"__isSmartRef__":true,"id":18353}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":18355},"owner":{"__isSmartRef__":true,"id":17500},"eventHandler":{"__isSmartRef__":true,"id":18356},"isCopyMorphRef":true,"morphRefId":150,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":17500},"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"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18357},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(160.0,40.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(33.4,-21.3)"},"18337":{"submorphs":[],"scripts":[],"id":"9FFDE6EE-3962-4D0E-9065-CE6BD664C36F","shape":{"__isSmartRef__":true,"id":18338},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":21,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":18336},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":18339}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":18341},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":21,"_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"],"_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"18338":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"18339":{"style":{"__isSmartRef__":true,"id":18340},"chunkOwner":{"__isSmartRef__":true,"id":18337},"storedString":"-","_id":"_377","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18340":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18341":{"morph":{"__isSmartRef__":true,"id":18337},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18342":{"_Fill":{"__isSmartRef__":true,"id":18343},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"18343":{"stops":[{"__isSmartRef__":true,"id":18344},{"__isSmartRef__":true,"id":18345},{"__isSmartRef__":true,"id":18346},{"__isSmartRef__":true,"id":18347}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18344":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"18345":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18346":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18347":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"18348":{"stops":[{"__isSmartRef__":true,"id":18349},{"__isSmartRef__":true,"id":18350},{"__isSmartRef__":true,"id":18351},{"__isSmartRef__":true,"id":18352}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18349":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"18350":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18351":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18352":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"18353":{"sourceObj":{"__isSmartRef__":true,"id":18336},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":18336},"targetMethodName":"deleteSelectedScript","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":18354},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18354":{"source":{"__isSmartRef__":true,"id":18336},"target":{"__isSmartRef__":true,"id":18336}},"18355":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18356":{"morph":{"__isSmartRef__":true,"id":18336},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18357":{"deleteSelectedScript":{"__isSmartRef__":true,"id":18358}},"18358":{"varMapping":{"__isSmartRef__":true,"id":18359},"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.hasOwnProperty(selection)) \n return;\n delete editor.target[selection];\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":18360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18359":{"this":{"__isSmartRef__":true,"id":18336}},"18360":{"timestamp":{"__isSmartRef__":true,"id":18361},"user":"lauritz"},"18361":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (Central Europe Standard Time)"},"18362":{"submorphs":[],"scripts":[],"id":"1BF878E5-9B1A-452D-9E7B-4BB3859CAAF6","shape":{"__isSmartRef__":true,"id":18363},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":18364},"textChunks":[{"__isSmartRef__":true,"id":18365}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":18367},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":155,"owner":{"__isSmartRef__":true,"id":17500},"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"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(45.8,-27.8)"},"18363":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"18364":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18365":{"style":{"__isSmartRef__":true,"id":18366},"chunkOwner":{"__isSmartRef__":true,"id":18362},"storedString":"Tag:","_id":"_378","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18366":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18367":{"morph":{"__isSmartRef__":true,"id":18362},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18368":{"submorphs":[{"__isSmartRef__":true,"id":18369}],"scripts":[],"id":"04E4EE86-95C7-49F9-B564-0ED3975E59BC","shape":{"__isSmartRef__":true,"id":18375},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18381},"lighterFill":{"__isSmartRef__":true,"id":18376},"label":{"__isSmartRef__":true,"id":18369},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":18386},"listMorph":null,"list":[],"eventHandler":{"__isSmartRef__":true,"id":18387},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":17500},"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"],"isCopyMorphRef":true,"morphRefId":156,"_Rotation":0,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18388},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(39.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(85.7,-11.6)"},"18369":{"submorphs":[],"scripts":[],"id":"67C44D55-EDD0-4BBC-B376-02EB579F42FB","shape":{"__isSmartRef__":true,"id":18370},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":18368},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":18371}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":18373}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":18374},"_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"],"_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"18370":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"18371":{"style":{"__isSmartRef__":true,"id":18372},"chunkOwner":{"__isSmartRef__":true,"id":18369},"storedString":"all","_id":"_379","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18372":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18373":{"sourceObj":{"__isSmartRef__":true,"id":18369},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":18368},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18374":{"morph":{"__isSmartRef__":true,"id":18369},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18375":{"_Fill":{"__isSmartRef__":true,"id":18376},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"18376":{"stops":[{"__isSmartRef__":true,"id":18377},{"__isSmartRef__":true,"id":18378},{"__isSmartRef__":true,"id":18379},{"__isSmartRef__":true,"id":18380}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18377":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"18378":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18379":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18380":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"18381":{"stops":[{"__isSmartRef__":true,"id":18382},{"__isSmartRef__":true,"id":18383},{"__isSmartRef__":true,"id":18384},{"__isSmartRef__":true,"id":18385}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18382":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"18383":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18384":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18385":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"18386":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18387":{"morph":{"__isSmartRef__":true,"id":18368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18388":{"createListMorph":{"__isSmartRef__":true,"id":18389},"getList":{"__isSmartRef__":true,"id":18393},"removeList":{"__isSmartRef__":true,"id":18397},"reset":{"__isSmartRef__":true,"id":18401},"onMouseUp":{"__isSmartRef__":true,"id":18405},"onBlur":{"__isSmartRef__":true,"id":18413},"setTag":{"__isSmartRef__":true,"id":18421}},"18389":{"varMapping":{"__isSmartRef__":true,"id":18390},"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":18391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18390":{"this":{"__isSmartRef__":true,"id":18368}},"18391":{"timestamp":{"__isSmartRef__":true,"id":18392},"user":"lauritz","categories":[]},"18392":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (Central Europe Standard Time)"},"18393":{"varMapping":{"__isSmartRef__":true,"id":18394},"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":18395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18394":{"this":{"__isSmartRef__":true,"id":18368}},"18395":{"timestamp":{"__isSmartRef__":true,"id":18396},"user":"lauritz","tags":[]},"18396":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (Central Europe Standard Time)"},"18397":{"varMapping":{"__isSmartRef__":true,"id":18398},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":18399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18398":{"this":{"__isSmartRef__":true,"id":18368}},"18399":{"timestamp":{"__isSmartRef__":true,"id":18400},"user":"lauritz","categories":[]},"18400":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (Central Europe Standard Time)"},"18401":{"varMapping":{"__isSmartRef__":true,"id":18402},"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":18403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18402":{"this":{"__isSmartRef__":true,"id":18368}},"18403":{"timestamp":{"__isSmartRef__":true,"id":18404},"user":"lauritz","tags":[]},"18404":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (Central Europe Standard Time)"},"18405":{"varMapping":{"__isSmartRef__":true,"id":18406},"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":18411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18406":{"this":{"__isSmartRef__":true,"id":18368},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18407}},"18407":{"$super":{"__isSmartRef__":true,"id":18408}},"18408":{"varMapping":{"__isSmartRef__":true,"id":18409},"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":18410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18409":{"obj":{"__isSmartRef__":true,"id":18368},"name":"onMouseUp"},"18410":{},"18411":{"timestamp":{"__isSmartRef__":true,"id":18412},"user":"lauritz","categories":[]},"18412":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (Central Europe Standard Time)"},"18413":{"varMapping":{"__isSmartRef__":true,"id":18414},"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":18419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18414":{"this":{"__isSmartRef__":true,"id":18368},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18415}},"18415":{"$super":{"__isSmartRef__":true,"id":18416}},"18416":{"varMapping":{"__isSmartRef__":true,"id":18417},"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":18418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18417":{"obj":{"__isSmartRef__":true,"id":18368},"name":"onBlur"},"18418":{},"18419":{"timestamp":{"__isSmartRef__":true,"id":18420},"user":"lauritz","categories":[]},"18420":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (Central Europe Standard Time)"},"18421":{"varMapping":{"__isSmartRef__":true,"id":18422},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":18423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18422":{"this":{"__isSmartRef__":true,"id":18368}},"18423":{"timestamp":{"__isSmartRef__":true,"id":18424},"user":"lauritz","categories":[]},"18424":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (Central Europe Standard Time)"},"18425":{"submorphs":[{"__isSmartRef__":true,"id":18426}],"scripts":[],"id":"7185F08E-325C-4363-ABA8-223584D0861B","shape":{"__isSmartRef__":true,"id":18431},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18432},"lighterFill":{"__isSmartRef__":true,"id":18437},"label":{"__isSmartRef__":true,"id":18426},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18442},"attributeConnections":[{"__isSmartRef__":true,"id":18443}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":18466},"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"],"owner":{"__isSmartRef__":true,"id":17500},"layout":{"__isSmartRef__":true,"id":18467},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":157,"_Rotation":0,"_Scale":0.994014980014994,"isPressed":false,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(65.4,-14.0)","_Position":"lively.pt(802.7,9.6)"},"18426":{"submorphs":[],"scripts":[],"id":"172AD169-7C16-49E5-8BAB-2865FE591C80","shape":{"__isSmartRef__":true,"id":18427},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":81.90968415810595,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":18425},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":18428}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":18430},"_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"],"_MinTextWidth":81.90968415810595,"_MinTextHeight":null,"__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"18427":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(85.9,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"18428":{"style":{"__isSmartRef__":true,"id":18429},"chunkOwner":{"__isSmartRef__":true,"id":18426},"storedString":"run","_id":"_380","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18429":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18430":{"morph":{"__isSmartRef__":true,"id":18426},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18431":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":18432},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(85.9,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"18432":{"stops":[{"__isSmartRef__":true,"id":18433},{"__isSmartRef__":true,"id":18434},{"__isSmartRef__":true,"id":18435},{"__isSmartRef__":true,"id":18436}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18433":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"18434":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18435":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18436":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"18437":{"stops":[{"__isSmartRef__":true,"id":18438},{"__isSmartRef__":true,"id":18439},{"__isSmartRef__":true,"id":18440},{"__isSmartRef__":true,"id":18441}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18438":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"18439":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18440":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18441":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"18442":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18443":{"sourceObj":{"__isSmartRef__":true,"id":18425},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17500},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":18444},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18444":{"submorphs":[{"__isSmartRef__":true,"id":18445}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18452},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","eventHandler":{"__isSmartRef__":true,"id":18455},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":18456},{"__isSmartRef__":true,"id":18457}],"con":{"__isSmartRef__":true,"id":18443},"showsMorphMenu":true,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18458},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"18445":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18446},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","eventHandler":{"__isSmartRef__":true,"id":18451},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":18444},"_Rotation":-3.130064002485303,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"18446":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":18447},{"__isSmartRef__":true,"id":18448},{"__isSmartRef__":true,"id":18449},{"__isSmartRef__":true,"id":18450}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"18447":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18448":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18449":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18450":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18451":{"morph":{"__isSmartRef__":true,"id":18445},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18452":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":18453},{"__isSmartRef__":true,"id":18454}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(831.0,11.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"18453":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18454":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18455":{"morph":{"__isSmartRef__":true,"id":18444},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18456":{"morph":{"__isSmartRef__":true,"id":18444},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"18457":{"morph":{"__isSmartRef__":true,"id":18444},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":18445},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"18458":{"morphMenuItems":{"__isSmartRef__":true,"id":18459}},"18459":{"varMapping":{"__isSmartRef__":true,"id":18460},"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":18465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18460":{"this":{"__isSmartRef__":true,"id":18444},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18461}},"18461":{"$super":{"__isSmartRef__":true,"id":18462}},"18462":{"varMapping":{"__isSmartRef__":true,"id":18463},"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":18464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18463":{"obj":{"__isSmartRef__":true,"id":18444},"name":"morphMenuItems"},"18464":{},"18465":{},"18466":{"morph":{"__isSmartRef__":true,"id":18425},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18467":{"centeredHorizontal":false,"moveHorizontal":true},"18468":{"submorphs":[{"__isSmartRef__":true,"id":18469}],"scripts":[],"id":"D55C0A2C-AB82-4128-8B4A-7414FEBC11AC","shape":{"__isSmartRef__":true,"id":18474},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18475},"lighterFill":{"__isSmartRef__":true,"id":18480},"label":{"__isSmartRef__":true,"id":18469},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18485},"attributeConnections":[{"__isSmartRef__":true,"id":18486}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":18509},"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"],"layout":{"__isSmartRef__":true,"id":18510},"owner":{"__isSmartRef__":true,"id":17500},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":158,"_Rotation":0,"_Scale":0.9880657804942089,"isPressed":false,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(62.6,-18.0)","_Position":"lively.pt(717.3,9.5)"},"18469":{"submorphs":[],"scripts":[],"id":"E2DBB33F-6E57-4BE9-978F-2A06F2E2020A","shape":{"__isSmartRef__":true,"id":18470},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":78.78258942335096,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":18468},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":18471}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":18473},"_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"],"_MinTextWidth":78.78258942335096,"_MinTextHeight":null,"__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"18470":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(82.8,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"18471":{"style":{"__isSmartRef__":true,"id":18472},"chunkOwner":{"__isSmartRef__":true,"id":18469},"storedString":"save","_id":"_381","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18472":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18473":{"morph":{"__isSmartRef__":true,"id":18469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18474":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":18475},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(82.8,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"18475":{"stops":[{"__isSmartRef__":true,"id":18476},{"__isSmartRef__":true,"id":18477},{"__isSmartRef__":true,"id":18478},{"__isSmartRef__":true,"id":18479}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18476":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"18477":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18478":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18479":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"18480":{"stops":[{"__isSmartRef__":true,"id":18481},{"__isSmartRef__":true,"id":18482},{"__isSmartRef__":true,"id":18483},{"__isSmartRef__":true,"id":18484}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18481":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"18482":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18483":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18484":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"18485":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18486":{"sourceObj":{"__isSmartRef__":true,"id":18468},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17735},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":18487},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18487":{"submorphs":[{"__isSmartRef__":true,"id":18488}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18495},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","eventHandler":{"__isSmartRef__":true,"id":18498},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":18499},{"__isSmartRef__":true,"id":18500}],"con":{"__isSmartRef__":true,"id":18486},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18501},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"18488":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18489},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","eventHandler":{"__isSmartRef__":true,"id":18494},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":18487},"_Rotation":3.077607197692381,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(201.2,40.2)"},"18489":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":18490},{"__isSmartRef__":true,"id":18491},{"__isSmartRef__":true,"id":18492},{"__isSmartRef__":true,"id":18493}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"18490":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18491":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18492":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18493":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18494":{"morph":{"__isSmartRef__":true,"id":18488},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18495":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":18496},{"__isSmartRef__":true,"id":18497}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(200.0,9.0)","_Extent":"lively.pt(480.0,32.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"18496":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18497":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"18498":{"morph":{"__isSmartRef__":true,"id":18487},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18499":{"morph":{"__isSmartRef__":true,"id":18487},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"18500":{"morph":{"__isSmartRef__":true,"id":18487},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":18488},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"18501":{"morphMenuItems":{"__isSmartRef__":true,"id":18502}},"18502":{"varMapping":{"__isSmartRef__":true,"id":18503},"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":18508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18503":{"this":{"__isSmartRef__":true,"id":18487},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18504}},"18504":{"$super":{"__isSmartRef__":true,"id":18505}},"18505":{"varMapping":{"__isSmartRef__":true,"id":18506},"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":18507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18506":{"obj":{"__isSmartRef__":true,"id":18487},"name":"morphMenuItems"},"18507":{},"18508":{},"18509":{"morph":{"__isSmartRef__":true,"id":18468},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18510":{"centeredHorizontal":false,"moveHorizontal":true},"18511":{"submorphs":[{"__isSmartRef__":true,"id":18512}],"scripts":[],"id":"2BA19FBD-A4A2-42BA-BE95-202475E444EF","shape":{"__isSmartRef__":true,"id":18517},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18518},"lighterFill":{"__isSmartRef__":true,"id":18523},"label":{"__isSmartRef__":true,"id":18512},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18528},"attributeConnections":[{"__isSmartRef__":true,"id":18529}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":18530},"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"],"owner":{"__isSmartRef__":true,"id":17500},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":159,"_Rotation":0,"_Scale":0.9940149800149939,"isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(634.0,9.0)","distanceToDragEvent":"lively.pt(59.7,-12.5)"},"18512":{"submorphs":[],"scripts":[],"id":"D39EC3D1-A406-47A0-9199-AA1E124D64DE","shape":{"__isSmartRef__":true,"id":18513},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":75.8735578213487,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":18511},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":18514}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":18516},"_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"],"_MinTextWidth":75.8735578213487,"_MinTextHeight":null,"__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"18513":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(79.9,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"18514":{"style":{"__isSmartRef__":true,"id":18515},"chunkOwner":{"__isSmartRef__":true,"id":18512},"storedString":"Tests","_id":"_382","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18515":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18516":{"morph":{"__isSmartRef__":true,"id":18512},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18517":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":18518},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(79.9,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"18518":{"stops":[{"__isSmartRef__":true,"id":18519},{"__isSmartRef__":true,"id":18520},{"__isSmartRef__":true,"id":18521},{"__isSmartRef__":true,"id":18522}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18519":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"18520":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18521":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18522":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"18523":{"stops":[{"__isSmartRef__":true,"id":18524},{"__isSmartRef__":true,"id":18525},{"__isSmartRef__":true,"id":18526},{"__isSmartRef__":true,"id":18527}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18524":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"18525":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18526":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18527":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"18528":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18529":{"sourceObj":{"__isSmartRef__":true,"id":18511},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17500},"targetMethodName":"openPartTestRunner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18530":{"morph":{"__isSmartRef__":true,"id":18511},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18531":{"submorphs":[{"__isSmartRef__":true,"id":18532},{"__isSmartRef__":true,"id":18539}],"scripts":[],"id":"2B3ADF0D-4BB3-4853-BD58-E620C3738566","shape":{"__isSmartRef__":true,"id":18542},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18543},"lighterFill":{"__isSmartRef__":true,"id":18548},"label":{"__isSmartRef__":true,"id":18532},"name":"MagnifierButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18553},"attributeConnections":[{"__isSmartRef__":true,"id":18556}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":18557},"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"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":17500},"highlightRectangle":{"__isSmartRef__":true,"id":18558},"isCopyMorphRef":true,"morphRefId":1,"#startLetters":"highlightRectangle","prevScroll":[0,0],"_Rotation":0,"_Scale":0.9920279440699439,"isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18639},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(464.5,8.5)","distanceToDragEvent":"lively.pt(37.9,-7.9)"},"18532":{"submorphs":[],"scripts":[],"id":"0A27610F-8483-4401-981A-F2A849F7B311","shape":{"__isSmartRef__":true,"id":18533},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":24,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":18531},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":18534},{"__isSmartRef__":true,"id":18536}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":18538},"_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"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":24,"_MinTextHeight":null,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"18533":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"18534":{"style":{"__isSmartRef__":true,"id":18535},"chunkOwner":{"__isSmartRef__":true,"id":18532},"storedString":"","_id":"_811","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18535":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18536":{"style":{"__isSmartRef__":true,"id":18537},"chunkOwner":{"__isSmartRef__":true,"id":18532},"storedString":"","_id":"_812","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18537":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18538":{"morph":{"__isSmartRef__":true,"id":18532},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18539":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18540},"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"],"id":"03113BB6-9EC2-4E54-9C4A-12FA49FA8E93","eventHandler":{"__isSmartRef__":true,"id":18541},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":18531},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","isCopyMorphRef":true,"morphRefId":161,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-3.0,0.0)","distanceToDragEvent":"lively.pt(39.9,-9.0)"},"18540":{"_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==","_NodeClass":["image"],"_NodeId":"29E543E0-AE93-493A-A694-FC1C330D0544","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(29.0,29.0)","_Padding":"lively.rect(0,0,0,0)"},"18541":{"morph":{"__isSmartRef__":true,"id":18539},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18542":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":18543},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"18543":{"stops":[{"__isSmartRef__":true,"id":18544},{"__isSmartRef__":true,"id":18545},{"__isSmartRef__":true,"id":18546},{"__isSmartRef__":true,"id":18547}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18544":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"18545":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18546":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18547":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"18548":{"stops":[{"__isSmartRef__":true,"id":18549},{"__isSmartRef__":true,"id":18550},{"__isSmartRef__":true,"id":18551},{"__isSmartRef__":true,"id":18552}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18549":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"18550":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18551":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18552":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"18553":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":18554}],"revisionOnLoad":154251,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18554":{"date":{"__isSmartRef__":true,"id":18555},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"18555":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (Central Europe Daylight Time)"},"18556":{"sourceObj":{"__isSmartRef__":true,"id":18531},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":18531},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18557":{"morph":{"__isSmartRef__":true,"id":18531},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18558":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":18559},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":18560},"eventHandler":{"__isSmartRef__":true,"id":18601},"attributeConnections":[{"__isSmartRef__":true,"id":18602},{"__isSmartRef__":true,"id":18603},{"__isSmartRef__":true,"id":18604}],"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":18605},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"","eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","_Rotation":0,"_Scale":1.0060210561262526,"owner":null,"magnifierButton":{"__isSmartRef__":true,"id":18531},"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18610},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"18559":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.2597,"_BorderStyle":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(5000.0,3000.0)","_BorderColor":"Color.rgb(204,0,0)","_Fill":"Color.rgb(58,0,255)","_Padding":"lively.rect(0,0,0,0)"},"18560":{"partsSpaceName":"PartsBin/Tools","comment":"A rectangle which highlights the object under the first hand of the world","migrationLevel":4,"partName":"HighlightRectangle","changes":[{"__isSmartRef__":true,"id":18561},{"__isSmartRef__":true,"id":18563},{"__isSmartRef__":true,"id":18565},{"__isSmartRef__":true,"id":18567},{"__isSmartRef__":true,"id":18569},{"__isSmartRef__":true,"id":18571},{"__isSmartRef__":true,"id":18573},{"__isSmartRef__":true,"id":18575},{"__isSmartRef__":true,"id":18577},{"__isSmartRef__":true,"id":18579},{"__isSmartRef__":true,"id":18581},{"__isSmartRef__":true,"id":18583},{"__isSmartRef__":true,"id":18585},{"__isSmartRef__":true,"id":18587},{"__isSmartRef__":true,"id":18589},{"__isSmartRef__":true,"id":18591},{"__isSmartRef__":true,"id":18593},{"__isSmartRef__":true,"id":18595},{"__isSmartRef__":true,"id":18597},{"__isSmartRef__":true,"id":18599}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18561":{"date":{"__isSmartRef__":true,"id":18562},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"18562":{"isSerializedDate":true,"string":"Thu May 24 2012 17:04:54 GMT+0200 (Central Europe Daylight Time)"},"18563":{"date":{"__isSmartRef__":true,"id":18564},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"18564":{"isSerializedDate":true,"string":"Thu May 24 2012 16:57:13 GMT+0200 (Central Europe Daylight Time)"},"18565":{"date":{"__isSmartRef__":true,"id":18566},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"18566":{"isSerializedDate":true,"string":"Thu May 24 2012 16:23:11 GMT+0200 (Central Europe Daylight Time)"},"18567":{"date":{"__isSmartRef__":true,"id":18568},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"18568":{"isSerializedDate":true,"string":"Thu May 24 2012 14:46:08 GMT+0200 (Central Europe Daylight Time)"},"18569":{"date":{"__isSmartRef__":true,"id":18570},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"18570":{"isSerializedDate":true,"string":"Thu May 24 2012 14:39:50 GMT+0200 (Central Europe Daylight Time)"},"18571":{"date":{"__isSmartRef__":true,"id":18572},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"18572":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"18573":{"date":{"__isSmartRef__":true,"id":18574},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"18574":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"18575":{"date":{"__isSmartRef__":true,"id":18576},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"18576":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"18577":{"date":{"__isSmartRef__":true,"id":18578},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"18578":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"18579":{"date":{"__isSmartRef__":true,"id":18580},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"18580":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"18581":{"date":{"__isSmartRef__":true,"id":18582},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"18582":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"18583":{"date":{"__isSmartRef__":true,"id":18584},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"18584":{"isSerializedDate":true,"string":"Thu May 24 2012 13:58:01 GMT+0200 (Central Europe Daylight Time)"},"18585":{"date":{"__isSmartRef__":true,"id":18586},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"18586":{"isSerializedDate":true,"string":"Thu May 24 2012 14:07:32 GMT+0200 (Central Europe Daylight Time)"},"18587":{"date":{"__isSmartRef__":true,"id":18588},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"18588":{"isSerializedDate":true,"string":"Thu May 24 2012 15:34:59 GMT+0200 (Central Europe Daylight Time)"},"18589":{"date":{"__isSmartRef__":true,"id":18590},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"18590":{"isSerializedDate":true,"string":"Thu May 24 2012 16:34:29 GMT+0200 (Central Europe Daylight Time)"},"18591":{"date":{"__isSmartRef__":true,"id":18592},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"18592":{"isSerializedDate":true,"string":"Thu May 24 2012 16:45:49 GMT+0200 (Central Europe Daylight Time)"},"18593":{"date":{"__isSmartRef__":true,"id":18594},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"18594":{"isSerializedDate":true,"string":"Thu May 24 2012 16:47:20 GMT+0200 (Central Europe Daylight Time)"},"18595":{"date":{"__isSmartRef__":true,"id":18596},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"18596":{"isSerializedDate":true,"string":"Thu May 24 2012 16:51:06 GMT+0200 (Central Europe Daylight Time)"},"18597":{"date":{"__isSmartRef__":true,"id":18598},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"18598":{"isSerializedDate":true,"string":"Thu May 24 2012 16:52:10 GMT+0200 (Central Europe Daylight Time)"},"18599":{"date":{"__isSmartRef__":true,"id":18600},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"18600":{"isSerializedDate":true,"string":"Thu May 24 2012 16:59:39 GMT+0200 (Central Europe Daylight Time)"},"18601":{"morph":{"__isSmartRef__":true,"id":18558},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18602":{"sourceObj":{"__isSmartRef__":true,"id":18558},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":18558},"targetMethodName":"updateOnMove","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18603":{"sourceObj":{"__isSmartRef__":true,"id":18558},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":18531},"targetMethodName":"setTarget","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18604":{"sourceObj":{"__isSmartRef__":true,"id":18558},"sourceAttrName":"onKeyPress","targetObj":{"__isSmartRef__":true,"id":18531},"targetMethodName":"onRectangleKeyPress","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18605":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18606}},"18606":{"test01IsMorph":{"__isSmartRef__":true,"id":18607}},"18607":{"varMapping":{"__isSmartRef__":true,"id":18608},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":18609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18608":{"this":{"__isSmartRef__":true,"id":18605}},"18609":{},"18610":{"update":{"__isSmartRef__":true,"id":18611},"coveredMorph":{"__isSmartRef__":true,"id":18615},"updateOnMove":{"__isSmartRef__":true,"id":18619},"bringToFront":{"__isSmartRef__":true,"id":18623},"onKeyUp":{"__isSmartRef__":true,"id":18631}},"18611":{"varMapping":{"__isSmartRef__":true,"id":18612},"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":18613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18612":{"this":{"__isSmartRef__":true,"id":18558}},"18613":{"timestamp":{"__isSmartRef__":true,"id":18614},"user":"timfelgentreff","tags":[]},"18614":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:09:28 GMT+0200 (Central Europe Daylight Time)"},"18615":{"varMapping":{"__isSmartRef__":true,"id":18616},"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":18617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18616":{"this":{"__isSmartRef__":true,"id":18558}},"18617":{"timestamp":{"__isSmartRef__":true,"id":18618},"user":"timfelgentreff","tags":[]},"18618":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:40 GMT+0200 (Central Europe Daylight Time)"},"18619":{"varMapping":{"__isSmartRef__":true,"id":18620},"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":18621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18620":{"this":{"__isSmartRef__":true,"id":18558}},"18621":{"timestamp":{"__isSmartRef__":true,"id":18622},"user":"tessi","tags":[]},"18622":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:56:41 GMT+0200 (Central Europe Daylight Time)"},"18623":{"varMapping":{"__isSmartRef__":true,"id":18624},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000\n}","funcProperties":{"__isSmartRef__":true,"id":18629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18624":{"this":{"__isSmartRef__":true,"id":18558},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18625}},"18625":{"$super":{"__isSmartRef__":true,"id":18626}},"18626":{"varMapping":{"__isSmartRef__":true,"id":18627},"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":18628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18627":{"obj":{"__isSmartRef__":true,"id":18558},"name":"bringToFront"},"18628":{},"18629":{"timestamp":{"__isSmartRef__":true,"id":18630},"user":"lauritz","tags":[]},"18630":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:28:10 GMT+0200 (Central Europe Daylight Time)"},"18631":{"varMapping":{"__isSmartRef__":true,"id":18632},"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":18637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18632":{"this":{"__isSmartRef__":true,"id":18558},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18633}},"18633":{"$super":{"__isSmartRef__":true,"id":18634}},"18634":{"varMapping":{"__isSmartRef__":true,"id":18635},"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":18636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18635":{"obj":{"__isSmartRef__":true,"id":18558},"name":"onKeyUp"},"18636":{},"18637":{"timestamp":{"__isSmartRef__":true,"id":18638},"user":"tessi","tags":[]},"18638":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:10 GMT+0200 (Central Europe Daylight Time)"},"18639":{"onFire":{"__isSmartRef__":true,"id":18640},"onMouseMove":{"__isSmartRef__":true,"id":18644},"onMouseOut":{"__isSmartRef__":true,"id":18652},"reset":{"__isSmartRef__":true,"id":18660},"isTracking":{"__isSmartRef__":true,"id":18664},"isHighlighting":{"__isSmartRef__":true,"id":18668},"currentTarget":{"__isSmartRef__":true,"id":18672},"setTarget":{"__isSmartRef__":true,"id":18676},"currentTargetIsMultiSelection":{"__isSmartRef__":true,"id":18680},"newMultiSelection":{"__isSmartRef__":true,"id":18684},"newGreenRectangle":{"__isSmartRef__":true,"id":18688},"stopTracking":{"__isSmartRef__":true,"id":18692},"startTracking":{"__isSmartRef__":true,"id":18696},"stopHighlighting":{"__isSmartRef__":true,"id":18700},"startHighlighting":{"__isSmartRef__":true,"id":18704},"onRectangleKeyPress":{"__isSmartRef__":true,"id":18708}},"18640":{"varMapping":{"__isSmartRef__":true,"id":18641},"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":18642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18641":{"this":{"__isSmartRef__":true,"id":18531}},"18642":{"timestamp":{"__isSmartRef__":true,"id":18643},"user":"timfelgentreff","tags":[]},"18643":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:10:52 GMT+0200 (Central Europe Daylight Time)"},"18644":{"varMapping":{"__isSmartRef__":true,"id":18645},"source":"function onMouseMove(evt) {\n if (!this.isHighlighting()) {\n this.startHighlighting()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18645":{"this":{"__isSmartRef__":true,"id":18531},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18646}},"18646":{"$super":{"__isSmartRef__":true,"id":18647}},"18647":{"varMapping":{"__isSmartRef__":true,"id":18648},"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":18649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18648":{"obj":{"__isSmartRef__":true,"id":18531},"name":"onMouseMove"},"18649":{},"18650":{"timestamp":{"__isSmartRef__":true,"id":18651},"user":"timfelgentreff","tags":[]},"18651":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:53:50 GMT+0200 (Central Europe Daylight Time)"},"18652":{"varMapping":{"__isSmartRef__":true,"id":18653},"source":"function onMouseOut() {\n this.stopHighlighting()\n}","funcProperties":{"__isSmartRef__":true,"id":18658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18653":{"this":{"__isSmartRef__":true,"id":18531},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18654}},"18654":{"$super":{"__isSmartRef__":true,"id":18655}},"18655":{"varMapping":{"__isSmartRef__":true,"id":18656},"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":18657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18656":{"obj":{"__isSmartRef__":true,"id":18531},"name":"onMouseOut"},"18657":{},"18658":{"timestamp":{"__isSmartRef__":true,"id":18659},"user":"timfelgentreff","tags":[]},"18659":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:55:09 GMT+0200 (Central Europe Daylight Time)"},"18660":{"varMapping":{"__isSmartRef__":true,"id":18661},"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":18662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18661":{"this":{"__isSmartRef__":true,"id":18531}},"18662":{"timestamp":{"__isSmartRef__":true,"id":18663},"user":"tessi","tags":[]},"18663":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:54:48 GMT+0200 (Central Europe Daylight Time)"},"18664":{"varMapping":{"__isSmartRef__":true,"id":18665},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection\n}","funcProperties":{"__isSmartRef__":true,"id":18666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18665":{"this":{"__isSmartRef__":true,"id":18531}},"18666":{"timestamp":{"__isSmartRef__":true,"id":18667},"user":"lauritz","tags":["state"]},"18667":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:04:17 GMT+0200 (Central Europe Daylight Time)"},"18668":{"varMapping":{"__isSmartRef__":true,"id":18669},"source":"function isHighlighting() {\n return !!this.greenRectangle\n}","funcProperties":{"__isSmartRef__":true,"id":18670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18669":{"this":{"__isSmartRef__":true,"id":18531}},"18670":{"timestamp":{"__isSmartRef__":true,"id":18671},"user":"timfelgentreff","tags":["state"]},"18671":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:52:02 GMT+0200 (Central Europe Daylight Time)"},"18672":{"varMapping":{"__isSmartRef__":true,"id":18673},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":18674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18673":{"this":{"__isSmartRef__":true,"id":18531}},"18674":{"timestamp":{"__isSmartRef__":true,"id":18675},"user":"lauritz","tags":[]},"18675":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:26:02 GMT+0200 (Central Europe Daylight Time)"},"18676":{"varMapping":{"__isSmartRef__":true,"id":18677},"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":18678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18677":{"this":{"__isSmartRef__":true,"id":18531}},"18678":{"timestamp":{"__isSmartRef__":true,"id":18679},"user":"timfelgentreff","tags":["selecting"]},"18679":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:38:48 GMT+0200 (Central Europe Daylight Time)"},"18680":{"varMapping":{"__isSmartRef__":true,"id":18681},"source":"function currentTargetIsMultiSelection() {\n return !!(this.currentTarget() && this.currentTarget().__multi_selection_proxy__)\n}","funcProperties":{"__isSmartRef__":true,"id":18682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18681":{"this":{"__isSmartRef__":true,"id":18531}},"18682":{"timestamp":{"__isSmartRef__":true,"id":18683},"user":"tessi","tags":[]},"18683":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:31:43 GMT+0200 (Central Europe Daylight Time)"},"18684":{"varMapping":{"__isSmartRef__":true,"id":18685},"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 }\n\n Functions.own(ms).each(function (name) { ms[name].asScriptOf(ms, name) })\n return ms\n}","funcProperties":{"__isSmartRef__":true,"id":18686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18685":{"this":{"__isSmartRef__":true,"id":18531}},"18686":{"timestamp":{"__isSmartRef__":true,"id":18687},"user":"timfelgentreff","tags":[]},"18687":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:12:40 GMT+0200 (Central Europe Daylight Time)"},"18688":{"varMapping":{"__isSmartRef__":true,"id":18689},"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":18690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18689":{"this":{"__isSmartRef__":true,"id":18531}},"18690":{"timestamp":{"__isSmartRef__":true,"id":18691},"user":"timfelgentreff","tags":["hovering"]},"18691":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:50 GMT+0200 (Central Europe Daylight Time)"},"18692":{"varMapping":{"__isSmartRef__":true,"id":18693},"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":18694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18693":{"this":{"__isSmartRef__":true,"id":18531}},"18694":{"timestamp":{"__isSmartRef__":true,"id":18695},"user":"tessi","tags":[]},"18695":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:47:06 GMT+0200 (Central Europe Daylight Time)"},"18696":{"varMapping":{"__isSmartRef__":true,"id":18697},"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":18698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18697":{"this":{"__isSmartRef__":true,"id":18531}},"18698":{"timestamp":{"__isSmartRef__":true,"id":18699},"user":"tessi","tags":[]},"18699":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:45:33 GMT+0200 (Central Europe Daylight Time)"},"18700":{"varMapping":{"__isSmartRef__":true,"id":18701},"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":18702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18701":{"this":{"__isSmartRef__":true,"id":18531}},"18702":{"timestamp":{"__isSmartRef__":true,"id":18703},"user":"timfelgentreff","tags":["hovering"]},"18703":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:07:19 GMT+0200 (Central Europe Daylight Time)"},"18704":{"varMapping":{"__isSmartRef__":true,"id":18705},"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":18706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18705":{"this":{"__isSmartRef__":true,"id":18531}},"18706":{"timestamp":{"__isSmartRef__":true,"id":18707},"user":"tessi","tags":["hovering"]},"18707":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:30:59 GMT+0200 (Central Europe Daylight Time)"},"18708":{"varMapping":{"__isSmartRef__":true,"id":18709},"source":"function onRectangleKeyPress() {\n debugger\n}","funcProperties":{"__isSmartRef__":true,"id":18710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18709":{"this":{"__isSmartRef__":true,"id":18531}},"18710":{"timestamp":{"__isSmartRef__":true,"id":18711},"user":"tessi","tags":[]},"18711":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:40:02 GMT+0200 (Central Europe Daylight Time)"},"18712":{"submorphs":[{"__isSmartRef__":true,"id":18713},{"__isSmartRef__":true,"id":18718}],"scripts":[],"id":"7ABC4063-1E5D-467F-B567-41F88C59A439","shape":{"__isSmartRef__":true,"id":18721},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18722},"lighterFill":{"__isSmartRef__":true,"id":18727},"label":{"__isSmartRef__":true,"id":18713},"name":"NameGroupButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18732},"attributeConnections":[{"__isSmartRef__":true,"id":18737}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":18738},"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"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":17500},"_Visible":false,"isCopyMorphRef":true,"morphRefId":162,"_Rotation":0,"_Scale":0.990044880209748,"isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18739},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(490.0,9.5)","distanceToDragEvent":"lively.pt(69.1,-14.0)"},"18713":{"submorphs":[],"scripts":[],"id":"F5A22BDE-D7C2-45C8-900A-E0945EC1603E","shape":{"__isSmartRef__":true,"id":18714},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":106.05027610358519,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":18712},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":18715}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":18717},"_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"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":106.05027610358519,"_MinTextHeight":null,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"18714":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(106.1,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"18715":{"style":{"__isSmartRef__":true,"id":18716},"chunkOwner":{"__isSmartRef__":true,"id":18713},"storedString":" Name group","_id":"_383","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18716":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18717":{"morph":{"__isSmartRef__":true,"id":18713},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18718":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18719},"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"],"id":"7B21E074-D45C-48E6-AF92-1A3713791E33","eventHandler":{"__isSmartRef__":true,"id":18720},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":18712},"name":"document_rename.png","showsHalos":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isCopyMorphRef":true,"morphRefId":163,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-0.9,3.0)","distanceToDragEvent":"lively.pt(39.0,-10.0)"},"18719":{"_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==","_NodeClass":["morph","image"],"_NodeId":"morph-59b9c10f-5e4e-48be-ac11-e220b20ea1a9","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,16.0)","_Padding":"lively.rect(0,0,0,0)"},"18720":{"morph":{"__isSmartRef__":true,"id":18718},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18721":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":18722},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(106.1,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"18722":{"stops":[{"__isSmartRef__":true,"id":18723},{"__isSmartRef__":true,"id":18724},{"__isSmartRef__":true,"id":18725},{"__isSmartRef__":true,"id":18726}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18723":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"18724":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18725":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18726":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"18727":{"stops":[{"__isSmartRef__":true,"id":18728},{"__isSmartRef__":true,"id":18729},{"__isSmartRef__":true,"id":18730},{"__isSmartRef__":true,"id":18731}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18728":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"18729":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18730":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18731":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"18732":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":18733},{"__isSmartRef__":true,"id":18735}],"revisionOnLoad":170561,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18733":{"date":{"__isSmartRef__":true,"id":18734},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"18734":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (Central Europe Daylight Time)"},"18735":{"date":{"__isSmartRef__":true,"id":18736},"author":"huberthesse","message":"Restore scriptable button","id":"7DCED89C-C162-4A42-94E3-6B4D2CBA4932"},"18736":{"isSerializedDate":true,"string":"Tue Jun 12 2012 11:12:07 GMT+0200 (Central Europe Daylight Time)"},"18737":{"sourceObj":{"__isSmartRef__":true,"id":18712},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":18712},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18738":{"morph":{"__isSmartRef__":true,"id":18712},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18739":{"onFire":{"__isSmartRef__":true,"id":18740}},"18740":{"varMapping":{"__isSmartRef__":true,"id":18741},"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":18742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18741":{"this":{"__isSmartRef__":true,"id":18712}},"18742":{"timestamp":{"__isSmartRef__":true,"id":18743},"user":"timfelgentreff","tags":[]},"18743":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:04:34 GMT+0200 (Central Europe Daylight Time)"},"18744":{"submorphs":[{"__isSmartRef__":true,"id":18745}],"scripts":[],"id":"52C02A40-BD17-42F8-B199-0A1734C5B057","shape":{"__isSmartRef__":true,"id":18751},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18752},"lighterFill":{"__isSmartRef__":true,"id":18757},"label":{"__isSmartRef__":true,"id":18745},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":18762},"list":[],"eventHandler":{"__isSmartRef__":true,"id":18763},"owner":{"__isSmartRef__":true,"id":17500},"textString":"","selection":{"__isSmartRef__":true,"id":18764},"_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"],"#startLetters":"getBounds()","isCopyMorphRef":true,"morphRefId":153,"_Rotation":0,"_Scale":1.0000000000000002,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18770},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(237.2,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"18745":{"submorphs":[],"scripts":[],"id":"0CF5DA20-43C8-4BB7-B51E-240588026E20","shape":{"__isSmartRef__":true,"id":18746},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":18744},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":18747}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":18749}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":18750},"_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"],"_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"18746":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"18747":{"style":{"__isSmartRef__":true,"id":18748},"chunkOwner":{"__isSmartRef__":true,"id":18745},"storedString":"ObjectEditorPane","_id":"_384","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18748":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18749":{"sourceObj":{"__isSmartRef__":true,"id":18745},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":18744},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18750":{"morph":{"__isSmartRef__":true,"id":18745},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18751":{"_Fill":{"__isSmartRef__":true,"id":18752},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"18752":{"stops":[{"__isSmartRef__":true,"id":18753},{"__isSmartRef__":true,"id":18754},{"__isSmartRef__":true,"id":18755},{"__isSmartRef__":true,"id":18756}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18753":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"18754":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18755":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"18756":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"18757":{"stops":[{"__isSmartRef__":true,"id":18758},{"__isSmartRef__":true,"id":18759},{"__isSmartRef__":true,"id":18760},{"__isSmartRef__":true,"id":18761}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"18758":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"18759":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18760":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"18761":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"18762":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18763":{"morph":{"__isSmartRef__":true,"id":18744},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18764":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":18765},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":18766},"textChunks":[{"__isSmartRef__":true,"id":18767}],"eventHandler":{"__isSmartRef__":true,"id":18769},"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,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"18765":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"18766":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18767":{"style":{"__isSmartRef__":true,"id":18768},"chunkOwner":{"__isSmartRef__":true,"id":18764},"storedString":"","_id":"_813","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18768":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18769":{"morph":{"__isSmartRef__":true,"id":18764},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18770":{"createListMorph":{"__isSmartRef__":true,"id":18771},"removeList":{"__isSmartRef__":true,"id":18775},"reset":{"__isSmartRef__":true,"id":18779},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":18783},"onMouseDown":{"__isSmartRef__":true,"id":18787},"setTargetOfPane":{"__isSmartRef__":true,"id":18795},"setTargetToListSelection":{"__isSmartRef__":true,"id":18799},"onBlur":{"__isSmartRef__":true,"id":18803},"setTarget":{"__isSmartRef__":true,"id":18811},"setTargetOnSelection":{"__isSmartRef__":true,"id":18815},"getItems":{"__isSmartRef__":true,"id":18819},"createGroupTree":{"__isSmartRef__":true,"id":18823},"createWorldTree":{"__isSmartRef__":true,"id":18827},"highlightCurrentTarget":{"__isSmartRef__":true,"id":18831},"setHighlight":{"__isSmartRef__":true,"id":18835},"removeHighlight":{"__isSmartRef__":true,"id":18839}},"18771":{"varMapping":{"__isSmartRef__":true,"id":18772},"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":18773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18772":{"this":{"__isSmartRef__":true,"id":18744}},"18773":{"timestamp":{"__isSmartRef__":true,"id":18774},"user":"lauritz","tags":[]},"18774":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:49:08 GMT+0200 (Central Europe Daylight Time)"},"18775":{"varMapping":{"__isSmartRef__":true,"id":18776},"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":18777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18776":{"this":{"__isSmartRef__":true,"id":18744}},"18777":{"timestamp":{"__isSmartRef__":true,"id":18778},"user":"timfelgentreff","tags":[]},"18778":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:43:28 GMT+0200 (Central Europe Daylight Time)"},"18779":{"varMapping":{"__isSmartRef__":true,"id":18780},"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":18781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18780":{"this":{"__isSmartRef__":true,"id":18744}},"18781":{"timestamp":{"__isSmartRef__":true,"id":18782},"user":"lauritz","tags":[]},"18782":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (Central Europe Standard Time)"},"18783":{"varMapping":{"__isSmartRef__":true,"id":18784},"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":18785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18784":{"this":{"__isSmartRef__":true,"id":18744}},"18785":{"timestamp":{"__isSmartRef__":true,"id":18786},"user":"timfelgentreff","tags":[]},"18786":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:22:44 GMT+0200 (Central Europe Daylight Time)"},"18787":{"varMapping":{"__isSmartRef__":true,"id":18788},"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":18793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18788":{"this":{"__isSmartRef__":true,"id":18744},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18789}},"18789":{"$super":{"__isSmartRef__":true,"id":18790}},"18790":{"varMapping":{"__isSmartRef__":true,"id":18791},"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":18792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18791":{"obj":{"__isSmartRef__":true,"id":18744},"name":"onMouseDown"},"18792":{},"18793":{"timestamp":{"__isSmartRef__":true,"id":18794},"user":"timfelgentreff","tags":[]},"18794":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:03:45 GMT+0200 (Central Europe Daylight Time)"},"18795":{"varMapping":{"__isSmartRef__":true,"id":18796},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":18797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18796":{"this":{"__isSmartRef__":true,"id":18744}},"18797":{"timestamp":{"__isSmartRef__":true,"id":18798},"user":"lauritz","tags":[]},"18798":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (Central Europe Standard Time)"},"18799":{"varMapping":{"__isSmartRef__":true,"id":18800},"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":18801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18800":{"this":{"__isSmartRef__":true,"id":18744}},"18801":{"timestamp":{"__isSmartRef__":true,"id":18802},"user":"lauritz","tags":[]},"18802":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (Central Europe Standard Time)"},"18803":{"varMapping":{"__isSmartRef__":true,"id":18804},"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":18809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18804":{"this":{"__isSmartRef__":true,"id":18744},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18805}},"18805":{"$super":{"__isSmartRef__":true,"id":18806}},"18806":{"varMapping":{"__isSmartRef__":true,"id":18807},"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":18808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18807":{"obj":{"__isSmartRef__":true,"id":18744},"name":"onBlur"},"18808":{},"18809":{"timestamp":{"__isSmartRef__":true,"id":18810},"user":"timfelgentreff","tags":[]},"18810":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:01:12 GMT+0200 (Central Europe Daylight Time)"},"18811":{"varMapping":{"__isSmartRef__":true,"id":18812},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":18813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18812":{"this":{"__isSmartRef__":true,"id":18744}},"18813":{"timestamp":{"__isSmartRef__":true,"id":18814},"user":"lauritz","tags":[]},"18814":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (Central Europe Standard Time)"},"18815":{"varMapping":{"__isSmartRef__":true,"id":18816},"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":18817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18816":{"this":{"__isSmartRef__":true,"id":18744}},"18817":{"timestamp":{"__isSmartRef__":true,"id":18818},"user":"lauritz","tags":[]},"18818":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (Central Europe Standard Time)"},"18819":{"varMapping":{"__isSmartRef__":true,"id":18820},"source":"function getItems() {\n var worldEntry = this.createWorldTree(),\n groups = this.createGroupTree()\n\n return {children: [groups, worldEntry]};\n}","funcProperties":{"__isSmartRef__":true,"id":18821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18820":{"this":{"__isSmartRef__":true,"id":18744}},"18821":{"timestamp":{"__isSmartRef__":true,"id":18822},"user":"timfelgentreff","tags":[]},"18822":{"isSerializedDate":true,"string":"Mon Jun 18 2012 20:56:14 GMT+0200 (Central Europe Daylight Time)"},"18823":{"varMapping":{"__isSmartRef__":true,"id":18824},"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":18825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18824":{"this":{"__isSmartRef__":true,"id":18744}},"18825":{"timestamp":{"__isSmartRef__":true,"id":18826},"user":"timfelgentreff","tags":[]},"18826":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:27:07 GMT+0200 (Central Europe Daylight Time)"},"18827":{"varMapping":{"__isSmartRef__":true,"id":18828},"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":18829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18828":{"this":{"__isSmartRef__":true,"id":18744}},"18829":{"timestamp":{"__isSmartRef__":true,"id":18830},"user":"timfelgentreff","tags":[]},"18830":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:48:12 GMT+0200 (Central Europe Daylight Time)"},"18831":{"varMapping":{"__isSmartRef__":true,"id":18832},"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":18833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18832":{"this":{"__isSmartRef__":true,"id":18744}},"18833":{"timestamp":{"__isSmartRef__":true,"id":18834},"user":"timfelgentreff","tags":[]},"18834":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:41:55 GMT+0200 (Central Europe Daylight Time)"},"18835":{"varMapping":{"__isSmartRef__":true,"id":18836},"source":"function setHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":18837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18836":{"this":{"__isSmartRef__":true,"id":18744}},"18837":{"timestamp":{"__isSmartRef__":true,"id":18838},"user":"timfelgentreff","tags":[]},"18838":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:42:05 GMT+0200 (Central Europe Daylight Time)"},"18839":{"varMapping":{"__isSmartRef__":true,"id":18840},"source":"function removeHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":18841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18840":{"this":{"__isSmartRef__":true,"id":18744}},"18841":{"timestamp":{"__isSmartRef__":true,"id":18842},"user":"timfelgentreff","tags":[]},"18842":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:46:05 GMT+0200 (Central Europe Daylight Time)"},"18843":{"target":{"__isSmartRef__":true,"id":17500},"selector":"update","args":[],"stopped":true,"tickTime":500,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"18844":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(909.0,526.6)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"18845":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":18846}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18846":{"date":{"__isSmartRef__":true,"id":18847},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"18847":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (Central Europe Daylight Time)"},"18848":{"morph":{"__isSmartRef__":true,"id":17500},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18849":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"18850":{},"18851":{"displayInitialScript":{"__isSmartRef__":true,"id":18852},"displayJavaScriptSource":{"__isSmartRef__":true,"id":18856},"displaySourceForConnection":{"__isSmartRef__":true,"id":18860},"displaySourceForScript":{"__isSmartRef__":true,"id":18864},"generateSourceForConnection":{"__isSmartRef__":true,"id":18868},"generateSourceForScript":{"__isSmartRef__":true,"id":18872},"generateTargetCode":{"__isSmartRef__":true,"id":18876},"newConnection":{"__isSmartRef__":true,"id":18880},"newScript":{"__isSmartRef__":true,"id":18884},"reset":{"__isSmartRef__":true,"id":18888},"selectChangedContent":{"__isSmartRef__":true,"id":18892},"setTarget":{"__isSmartRef__":true,"id":18896},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":18900},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":18904},"updateLists":{"__isSmartRef__":true,"id":18908},"onShutdown":{"__isSmartRef__":true,"id":18912},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":18916},"update":{"__isSmartRef__":true,"id":18920},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":18924},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":18928},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":18932},"printTags":{"__isSmartRef__":true,"id":18940},"setTag":{"__isSmartRef__":true,"id":18944},"runScript":{"__isSmartRef__":true,"id":18948},"openPartTestRunner":{"__isSmartRef__":true,"id":18952}},"18852":{"varMapping":{"__isSmartRef__":true,"id":18853},"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":18854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18853":{"this":{"__isSmartRef__":true,"id":17500}},"18854":{"timestamp":{"__isSmartRef__":true,"id":18855},"user":"lauritz","tags":[]},"18855":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (Central Europe Standard Time)"},"18856":{"varMapping":{"__isSmartRef__":true,"id":18857},"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":18858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18857":{"this":{"__isSmartRef__":true,"id":17500}},"18858":{"timestamp":{"__isSmartRef__":true,"id":18859},"user":"lauritz","tags":[]},"18859":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18860":{"varMapping":{"__isSmartRef__":true,"id":18861},"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":18862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18861":{"this":{"__isSmartRef__":true,"id":17500}},"18862":{"timestamp":{"__isSmartRef__":true,"id":18863},"user":"conradcalmez","tags":[]},"18863":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (Central Europe Standard Time)"},"18864":{"varMapping":{"__isSmartRef__":true,"id":18865},"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":18866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18865":{"this":{"__isSmartRef__":true,"id":17500}},"18866":{"timestamp":{"__isSmartRef__":true,"id":18867},"user":"lauritz","tags":[]},"18867":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (Central Europe Standard Time)"},"18868":{"varMapping":{"__isSmartRef__":true,"id":18869},"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":18870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18869":{"this":{"__isSmartRef__":true,"id":17500}},"18870":{"timestamp":{"__isSmartRef__":true,"id":18871},"user":"lauritz","tags":[]},"18871":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18872":{"varMapping":{"__isSmartRef__":true,"id":18873},"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":18874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18873":{"this":{"__isSmartRef__":true,"id":17500}},"18874":{"timestamp":{"__isSmartRef__":true,"id":18875},"user":"tessi","tags":[]},"18875":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:17:15 GMT+0200 (Central Europe Daylight Time)"},"18876":{"varMapping":{"__isSmartRef__":true,"id":18877},"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":18878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18877":{"this":{"__isSmartRef__":true,"id":17500}},"18878":{"timestamp":{"__isSmartRef__":true,"id":18879},"user":"lauritz","tags":[]},"18879":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18880":{"varMapping":{"__isSmartRef__":true,"id":18881},"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":18882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18881":{"this":{"__isSmartRef__":true,"id":17500}},"18882":{"timestamp":{"__isSmartRef__":true,"id":18883},"user":"lauritz","tags":[]},"18883":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18884":{"varMapping":{"__isSmartRef__":true,"id":18885},"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":18886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18885":{"this":{"__isSmartRef__":true,"id":17500}},"18886":{"timestamp":{"__isSmartRef__":true,"id":18887},"user":"lauritz","tags":[]},"18887":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (Central Europe Standard Time)"},"18888":{"varMapping":{"__isSmartRef__":true,"id":18889},"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":18890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18889":{"this":{"__isSmartRef__":true,"id":17500}},"18890":{"timestamp":{"__isSmartRef__":true,"id":18891},"user":"conradcalmez","tags":[]},"18891":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (Central Europe Standard Time)"},"18892":{"varMapping":{"__isSmartRef__":true,"id":18893},"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":18898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18897":{"this":{"__isSmartRef__":true,"id":17500}},"18898":{"timestamp":{"__isSmartRef__":true,"id":18899},"user":"timfelgentreff","tags":[]},"18899":{"isSerializedDate":true,"string":"Mon Jun 18 2012 18:44:44 GMT+0200 (Central Europe Daylight Time)"},"18900":{"varMapping":{"__isSmartRef__":true,"id":18901},"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":18902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18901":{"this":{"__isSmartRef__":true,"id":17500}},"18902":{"timestamp":{"__isSmartRef__":true,"id":18903},"user":"lauritz","tags":[]},"18903":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18904":{"varMapping":{"__isSmartRef__":true,"id":18905},"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":18906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18905":{"this":{"__isSmartRef__":true,"id":17500}},"18906":{"timestamp":{"__isSmartRef__":true,"id":18907},"user":"lauritz","tags":[]},"18907":{"isSerializedDate":true,"string":"Thu Jun 07 2012 15:55:01 GMT+0200 (Central Europe Daylight Time)"},"18908":{"varMapping":{"__isSmartRef__":true,"id":18909},"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":18910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18909":{"this":{"__isSmartRef__":true,"id":17500}},"18910":{"timestamp":{"__isSmartRef__":true,"id":18911},"user":"lauritz","tags":[]},"18911":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18912":{"varMapping":{"__isSmartRef__":true,"id":18913},"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":18914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18913":{"this":{"__isSmartRef__":true,"id":17500}},"18914":{"timestamp":{"__isSmartRef__":true,"id":18915},"user":"lauritz","tags":[]},"18915":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18916":{"varMapping":{"__isSmartRef__":true,"id":18917},"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":18918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18917":{"this":{"__isSmartRef__":true,"id":17500}},"18918":{"timestamp":{"__isSmartRef__":true,"id":18919},"user":"lauritz","tags":[]},"18919":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:52:56 GMT+0100 (Central Europe Standard Time)"},"18920":{"varMapping":{"__isSmartRef__":true,"id":18921},"source":"function update() {\n // alias to conform to convention\n this.updateLists();\n}","funcProperties":{"__isSmartRef__":true,"id":18922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18921":{"this":{"__isSmartRef__":true,"id":17500}},"18922":{"timestamp":{"__isSmartRef__":true,"id":18923},"user":"lauritz","tags":[]},"18923":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18924":{"varMapping":{"__isSmartRef__":true,"id":18925},"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":18926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18925":{"this":{"__isSmartRef__":true,"id":17500}},"18926":{"timestamp":{"__isSmartRef__":true,"id":18927},"user":"lauritz","tags":[]},"18927":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:03:17 GMT+0100 (Central Europe Standard Time)"},"18928":{"varMapping":{"__isSmartRef__":true,"id":18929},"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":18930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18929":{"this":{"__isSmartRef__":true,"id":17500}},"18930":{"timestamp":{"__isSmartRef__":true,"id":18931},"user":"lauritz","tags":[]},"18931":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:41:00 GMT+0100 (Central Europe Standard Time)"},"18932":{"varMapping":{"__isSmartRef__":true,"id":18933},"source":"function copyToPartsBinWithUserRequest() {\n this.owner.copyToPartsBinWithUserRequest();\n}","funcProperties":{"__isSmartRef__":true,"id":18938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18933":{"this":{"__isSmartRef__":true,"id":17500},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18934}},"18934":{"$super":{"__isSmartRef__":true,"id":18935}},"18935":{"varMapping":{"__isSmartRef__":true,"id":18936},"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":18937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18936":{"obj":{"__isSmartRef__":true,"id":17500},"name":"copyToPartsBinWithUserRequest"},"18937":{},"18938":{"timestamp":{"__isSmartRef__":true,"id":18939},"user":"lauritz","tags":[]},"18939":{"isSerializedDate":true,"string":"Thu Nov 17 2011 20:04:19 GMT+0100 (Central Europe Standard Time)"},"18940":{"varMapping":{"__isSmartRef__":true,"id":18941},"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":18942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18941":{"this":{"__isSmartRef__":true,"id":17500}},"18942":{"timestamp":{"__isSmartRef__":true,"id":18943},"user":"lauritz","tags":[]},"18943":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:33:20 GMT+0100 (Central Europe Standard Time)"},"18944":{"varMapping":{"__isSmartRef__":true,"id":18945},"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":18946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18945":{"this":{"__isSmartRef__":true,"id":17500}},"18946":{"timestamp":{"__isSmartRef__":true,"id":18947},"user":"lauritz","tags":[]},"18947":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:35 GMT+0100 (Central Europe Standard Time)"},"18948":{"varMapping":{"__isSmartRef__":true,"id":18949},"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":18950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18949":{"this":{"__isSmartRef__":true,"id":17500}},"18950":{"timestamp":{"__isSmartRef__":true,"id":18951},"user":"conradcalmez","tags":[]},"18951":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:53:29 GMT+0100 (Central Europe Standard Time)"},"18952":{"varMapping":{"__isSmartRef__":true,"id":18953},"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":18954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18953":{"this":{"__isSmartRef__":true,"id":17500}},"18954":{"timestamp":{"__isSmartRef__":true,"id":18955},"user":"jenslincke","tags":[]},"18955":{"isSerializedDate":true,"string":"Wed Mar 14 2012 15:48:07 GMT+0100 (Central Europe Standard Time)"},"18956":{"sourceObj":{"__isSmartRef__":true,"id":17497},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":17500},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":18957},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"18957":{"source":{"__isSmartRef__":true,"id":17497},"target":{"__isSmartRef__":true,"id":17500}},"18958":{"resizeHeight":false,"moveVertical":true},"18959":{"morph":{"__isSmartRef__":true,"id":17497},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18960":{"preselectItem":{"__isSmartRef__":true,"id":18961}},"18961":{"varMapping":{"__isSmartRef__":true,"id":18962},"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":18963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18962":{"this":{"__isSmartRef__":true,"id":17497}},"18963":{"timestamp":{"__isSmartRef__":true,"id":18964},"user":"lauritz"},"18964":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (Central Europe Standard Time)"},"18965":{},"18966":{"displayInitialScript":{"__isSmartRef__":true,"id":18967},"displayJavaScriptSource":{"__isSmartRef__":true,"id":18971},"displaySourceForConnection":{"__isSmartRef__":true,"id":18975},"displaySourceForScript":{"__isSmartRef__":true,"id":18979},"generateSourceForConnection":{"__isSmartRef__":true,"id":18983},"generateSourceForScript":{"__isSmartRef__":true,"id":18987},"generateTargetCode":{"__isSmartRef__":true,"id":18991},"newConnection":{"__isSmartRef__":true,"id":18995},"newScript":{"__isSmartRef__":true,"id":18999},"reset":{"__isSmartRef__":true,"id":19003},"selectChangedContent":{"__isSmartRef__":true,"id":19007},"setTarget":{"__isSmartRef__":true,"id":19011},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":19015},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":19019},"updateLists":{"__isSmartRef__":true,"id":19023},"onShutdown":{"__isSmartRef__":true,"id":19027},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":19031},"update":{"__isSmartRef__":true,"id":19035},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":19039},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":19043},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":19047},"printTags":{"__isSmartRef__":true,"id":19055},"setTag":{"__isSmartRef__":true,"id":19059},"runScript":{"__isSmartRef__":true,"id":19063},"openPartTestRunner":{"__isSmartRef__":true,"id":19067}},"18967":{"varMapping":{"__isSmartRef__":true,"id":18968},"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":18969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18968":{"this":{"__isSmartRef__":true,"id":16804}},"18969":{"timestamp":{"__isSmartRef__":true,"id":18970},"user":"lauritz","tags":[]},"18970":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (Central Europe Standard Time)"},"18971":{"varMapping":{"__isSmartRef__":true,"id":18972},"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":18973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18972":{"this":{"__isSmartRef__":true,"id":16804}},"18973":{"timestamp":{"__isSmartRef__":true,"id":18974},"user":"lauritz","tags":[]},"18974":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18975":{"varMapping":{"__isSmartRef__":true,"id":18976},"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":18977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18976":{"this":{"__isSmartRef__":true,"id":16804}},"18977":{"timestamp":{"__isSmartRef__":true,"id":18978},"user":"conradcalmez","tags":[]},"18978":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (Central Europe Standard Time)"},"18979":{"varMapping":{"__isSmartRef__":true,"id":18980},"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":18981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18980":{"this":{"__isSmartRef__":true,"id":16804}},"18981":{"timestamp":{"__isSmartRef__":true,"id":18982},"user":"lauritz","tags":[]},"18982":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (Central Europe Standard Time)"},"18983":{"varMapping":{"__isSmartRef__":true,"id":18984},"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":18985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18984":{"this":{"__isSmartRef__":true,"id":16804}},"18985":{"timestamp":{"__isSmartRef__":true,"id":18986},"user":"lauritz","tags":[]},"18986":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18987":{"varMapping":{"__isSmartRef__":true,"id":18988},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\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":18989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18988":{"this":{"__isSmartRef__":true,"id":16804}},"18989":{"timestamp":{"__isSmartRef__":true,"id":18990},"user":"lauritz","tags":[]},"18990":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:32:42 GMT+0100 (Central Europe Standard Time)"},"18991":{"varMapping":{"__isSmartRef__":true,"id":18992},"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":18993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18992":{"this":{"__isSmartRef__":true,"id":16804}},"18993":{"timestamp":{"__isSmartRef__":true,"id":18994},"user":"lauritz","tags":[]},"18994":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18995":{"varMapping":{"__isSmartRef__":true,"id":18996},"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":18997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18996":{"this":{"__isSmartRef__":true,"id":16804}},"18997":{"timestamp":{"__isSmartRef__":true,"id":18998},"user":"lauritz","tags":[]},"18998":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"18999":{"varMapping":{"__isSmartRef__":true,"id":19000},"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":19001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19000":{"this":{"__isSmartRef__":true,"id":16804}},"19001":{"timestamp":{"__isSmartRef__":true,"id":19002},"user":"lauritz","tags":[]},"19002":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (Central Europe Standard Time)"},"19003":{"varMapping":{"__isSmartRef__":true,"id":19004},"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":19005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19004":{"this":{"__isSmartRef__":true,"id":16804}},"19005":{"timestamp":{"__isSmartRef__":true,"id":19006},"user":"conradcalmez","tags":[]},"19006":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (Central Europe Standard Time)"},"19007":{"varMapping":{"__isSmartRef__":true,"id":19008},"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 -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":19842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19841":{"this":{"__isSmartRef__":true,"id":19386}},"19842":{},"19843":{"varMapping":{"__isSmartRef__":true,"id":19844},"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":19845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19844":{"this":{"__isSmartRef__":true,"id":19386}},"19845":{},"19846":{"varMapping":{"__isSmartRef__":true,"id":19847},"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":19848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19847":{"this":{"__isSmartRef__":true,"id":19386}},"19848":{},"19849":{"varMapping":{"__isSmartRef__":true,"id":19850},"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":19851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19850":{"this":{"__isSmartRef__":true,"id":19386}},"19851":{},"19852":{"varMapping":{"__isSmartRef__":true,"id":19853},"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","selection":{"__isSmartRef__":true,"id":19937},"_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"],"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19943},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(240.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"19918":{"submorphs":[],"scripts":[],"id":"492A4A8A-5246-4C42-90DD-46BF68ADD47E","shape":{"__isSmartRef__":true,"id":19919},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":19917},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":19920}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":19922}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":19923},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":14,"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"],"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"_WordBreak":"break-all","_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"19919":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"19920":{"style":{"__isSmartRef__":true,"id":19921},"chunkOwner":{"__isSmartRef__":true,"id":19918},"storedString":"OgreCharacter3","_id":"_363","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19921":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19922":{"sourceObj":{"__isSmartRef__":true,"id":19918},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":19917},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"19923":{"morph":{"__isSmartRef__":true,"id":19918},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19924":{"_Fill":{"__isSmartRef__":true,"id":19925},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"19925":{"stops":[{"__isSmartRef__":true,"id":19926},{"__isSmartRef__":true,"id":19927},{"__isSmartRef__":true,"id":19928},{"__isSmartRef__":true,"id":19929}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"19926":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"19927":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"19928":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"19929":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"19930":{"stops":[{"__isSmartRef__":true,"id":19931},{"__isSmartRef__":true,"id":19932},{"__isSmartRef__":true,"id":19933},{"__isSmartRef__":true,"id":19934}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"19931":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"19932":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"19933":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"19934":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"19935":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19936":{"morph":{"__isSmartRef__":true,"id":19917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19937":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":19938},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":19939},"textChunks":[{"__isSmartRef__":true,"id":19940}],"eventHandler":{"__isSmartRef__":true,"id":19942},"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,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"19938":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"19939":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19940":{"style":{"__isSmartRef__":true,"id":19941},"chunkOwner":{"__isSmartRef__":true,"id":19937},"storedString":"","_id":"_795","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19941":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19942":{"morph":{"__isSmartRef__":true,"id":19937},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19943":{"createListMorph":{"__isSmartRef__":true,"id":19944},"getList":{"__isSmartRef__":true,"id":19948},"removeList":{"__isSmartRef__":true,"id":19952},"reset":{"__isSmartRef__":true,"id":19956},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":19960},"onMouseDown":{"__isSmartRef__":true,"id":19964},"setTargetOfPane":{"__isSmartRef__":true,"id":19972},"setTargetToListSelection":{"__isSmartRef__":true,"id":19976},"onBlur":{"__isSmartRef__":true,"id":19980},"setTarget":{"__isSmartRef__":true,"id":19988},"setTargetOnSelection":{"__isSmartRef__":true,"id":19992}},"19944":{"varMapping":{"__isSmartRef__":true,"id":19945},"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, 'setTargetToListSelection');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":19946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19945":{"this":{"__isSmartRef__":true,"id":19917}},"19946":{"timestamp":{"__isSmartRef__":true,"id":19947},"user":"lauritz","tags":[]},"19947":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (Central Europe Standard Time)"},"19948":{"varMapping":{"__isSmartRef__":true,"id":19949},"source":"function getList() {\n var worldEntry = {\n isListItem: true,\n selectionString: 'World',\n string: 'World',\n value: this.world()\n };\n var list = this.world().indentedListItemsOfMorphNames();\n list.unshift(worldEntry);\n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":19950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19949":{"this":{"__isSmartRef__":true,"id":19917}},"19950":{"timestamp":{"__isSmartRef__":true,"id":19951},"user":"lauritz","tags":[]},"19951":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (Central Europe Standard Time)"},"19952":{"varMapping":{"__isSmartRef__":true,"id":19953},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":19954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19953":{"this":{"__isSmartRef__":true,"id":19917}},"19954":{"timestamp":{"__isSmartRef__":true,"id":19955},"user":"lauritz","tags":[]},"19955":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (Central Europe Standard Time)"},"19956":{"varMapping":{"__isSmartRef__":true,"id":19957},"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":19958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19957":{"this":{"__isSmartRef__":true,"id":19917}},"19958":{"timestamp":{"__isSmartRef__":true,"id":19959},"user":"lauritz","tags":[]},"19959":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (Central Europe Standard Time)"},"19960":{"varMapping":{"__isSmartRef__":true,"id":19961},"source":"function displayTopLevelMorphs() {\n var list = this.createListMorph(); \n if (this.getList().length === 0) return;\n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":19962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19961":{"this":{"__isSmartRef__":true,"id":19917}},"19962":{"timestamp":{"__isSmartRef__":true,"id":19963},"user":"lauritz","tags":[]},"19963":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (Central Europe Standard Time)"},"19964":{"varMapping":{"__isSmartRef__":true,"id":19965},"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":19970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19965":{"this":{"__isSmartRef__":true,"id":19917},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19966}},"19966":{"$super":{"__isSmartRef__":true,"id":19967}},"19967":{"varMapping":{"__isSmartRef__":true,"id":19968},"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":19969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19968":{"obj":{"__isSmartRef__":true,"id":19917},"name":"onMouseDown"},"19969":{},"19970":{"timestamp":{"__isSmartRef__":true,"id":19971},"user":"lauritz","tags":[]},"19971":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (Central Europe Standard Time)"},"19972":{"varMapping":{"__isSmartRef__":true,"id":19973},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":19974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19973":{"this":{"__isSmartRef__":true,"id":19917}},"19974":{"timestamp":{"__isSmartRef__":true,"id":19975},"user":"lauritz","tags":[]},"19975":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (Central Europe Standard Time)"},"19976":{"varMapping":{"__isSmartRef__":true,"id":19977},"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":19978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19977":{"this":{"__isSmartRef__":true,"id":19917}},"19978":{"timestamp":{"__isSmartRef__":true,"id":19979},"user":"lauritz","tags":[]},"19979":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (Central Europe Standard Time)"},"19980":{"varMapping":{"__isSmartRef__":true,"id":19981},"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":19986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19981":{"this":{"__isSmartRef__":true,"id":19917},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19982}},"19982":{"$super":{"__isSmartRef__":true,"id":19983}},"19983":{"varMapping":{"__isSmartRef__":true,"id":19984},"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":19985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19984":{"obj":{"__isSmartRef__":true,"id":19917},"name":"onBlur"},"19985":{},"19986":{"timestamp":{"__isSmartRef__":true,"id":19987},"user":"lauritz","tags":[]},"19987":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (Central Europe Standard Time)"},"19988":{"varMapping":{"__isSmartRef__":true,"id":19989},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":19990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19989":{"this":{"__isSmartRef__":true,"id":19917}},"19990":{"timestamp":{"__isSmartRef__":true,"id":19991},"user":"lauritz","tags":[]},"19991":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (Central Europe Standard Time)"},"19992":{"varMapping":{"__isSmartRef__":true,"id":19993},"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":19994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19993":{"this":{"__isSmartRef__":true,"id":19917}},"19994":{"timestamp":{"__isSmartRef__":true,"id":19995},"user":"lauritz","tags":[]},"19995":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (Central Europe Standard Time)"},"19996":{"submorphs":[],"scripts":[],"id":"F8036A3A-8774-4997-871B-9D9BB5687F01","shape":{"__isSmartRef__":true,"id":19997},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":19998},"textChunks":[{"__isSmartRef__":true,"id":19999}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20001},"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":19379},"isCopyMorphRef":true,"morphRefId":27,"derivationIds":[223,"5E3A69EF-26C1-4D0D-B04C-8C3894017F56","14AB1B91-3ED6-49AE-AA58-47D18B6C569F","991D4A54-1FC4-4BC7-AA82-F814AC52CDE3","DB9B19F7-4390-4CE5-9B1D-62177CB8D605","8F7B2EE9-9538-4044-B75B-6A12F3108B70","4B9F9B4B-C7D3-418D-9AC9-10503A4EBF8E","324EE422-8C94-43CE-B964-A3150830C25F","36D1ECF9-591F-426B-A4F6-B337D7DB053B","CB52849C-BE64-4053-8D07-758F969F84EB","F1C241D4-A689-4DB7-942F-ADB5F39D9CAA","F9D413A0-184F-47F5-9B55-D05D511915CB","F4C5DA2D-8203-47EB-834D-2D03338B0419","1E089341-3FFF-45CD-9C21-BA7A8B4CF6F2","87F8B14A-C122-40D7-8405-CA07248E60D3","A8E7E359-A02C-427B-8D23-C707CE9664B2","695927E1-0410-434B-A716-F030B4ECD84D","B2857406-8534-4160-AC2C-6D8008C5EE1C","9C4879F3-2A68-4EDC-ACC3-22438F66B654","F53397C6-6F57-4E8E-B094-E168D20383E5","2BCC47EC-7C72-4E05-9136-D6950CF1B4C8"],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(198.2,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(41.1,-10.5)"},"19997":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"19998":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19999":{"style":{"__isSmartRef__":true,"id":20000},"chunkOwner":{"__isSmartRef__":true,"id":19996},"storedString":"Target:","_id":"_364","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20000":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20001":{"morph":{"__isSmartRef__":true,"id":19996},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20002":{"submorphs":[],"scripts":[],"id":"A10F43F6-C3D5-4102-8764-0795CE0D0CC9","shape":{"__isSmartRef__":true,"id":20003},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":20004},"textChunks":[{"__isSmartRef__":true,"id":20005}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20007},"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":19379},"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"],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(45.8,-27.8)"},"20003":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"20004":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20005":{"style":{"__isSmartRef__":true,"id":20006},"chunkOwner":{"__isSmartRef__":true,"id":20002},"storedString":"Tag:","_id":"_365","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20006":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20007":{"morph":{"__isSmartRef__":true,"id":20002},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20008":{"submorphs":[{"__isSmartRef__":true,"id":20009}],"scripts":[],"id":"C7C2E9BB-6ACB-4A2A-B56D-0018A1DB7884","shape":{"__isSmartRef__":true,"id":20015},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20021},"lighterFill":{"__isSmartRef__":true,"id":20016},"label":{"__isSmartRef__":true,"id":20009},"showsHalos":false,"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":20026},"listMorph":null,"list":[],"eventHandler":{"__isSmartRef__":true,"id":20027},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":19379},"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"],"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20028},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(39.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(85.7,-11.6)"},"20009":{"submorphs":[],"scripts":[],"id":"7EC6B94E-DCFB-4A0D-9849-F221C67855F3","shape":{"__isSmartRef__":true,"id":20010},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":20008},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":20011}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":20013}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":20014},"_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"],"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"_WordBreak":"break-all","_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"20010":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"20011":{"style":{"__isSmartRef__":true,"id":20012},"chunkOwner":{"__isSmartRef__":true,"id":20009},"storedString":"all","_id":"_366","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20012":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20013":{"sourceObj":{"__isSmartRef__":true,"id":20009},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":20008},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20014":{"morph":{"__isSmartRef__":true,"id":20009},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20015":{"_Fill":{"__isSmartRef__":true,"id":20016},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"20016":{"stops":[{"__isSmartRef__":true,"id":20017},{"__isSmartRef__":true,"id":20018},{"__isSmartRef__":true,"id":20019},{"__isSmartRef__":true,"id":20020}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20017":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20018":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20019":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20020":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20021":{"stops":[{"__isSmartRef__":true,"id":20022},{"__isSmartRef__":true,"id":20023},{"__isSmartRef__":true,"id":20024},{"__isSmartRef__":true,"id":20025}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20022":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20023":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20024":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20025":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"20026":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20027":{"morph":{"__isSmartRef__":true,"id":20008},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20028":{"createListMorph":{"__isSmartRef__":true,"id":20029},"getList":{"__isSmartRef__":true,"id":20033},"removeList":{"__isSmartRef__":true,"id":20037},"reset":{"__isSmartRef__":true,"id":20041},"onMouseUp":{"__isSmartRef__":true,"id":20045},"onBlur":{"__isSmartRef__":true,"id":20053},"setTag":{"__isSmartRef__":true,"id":20061}},"20029":{"varMapping":{"__isSmartRef__":true,"id":20030},"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":20031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20030":{"this":{"__isSmartRef__":true,"id":20008}},"20031":{"timestamp":{"__isSmartRef__":true,"id":20032},"user":"lauritz","categories":[]},"20032":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (Central Europe Standard Time)"},"20033":{"varMapping":{"__isSmartRef__":true,"id":20034},"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":20035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20034":{"this":{"__isSmartRef__":true,"id":20008}},"20035":{"timestamp":{"__isSmartRef__":true,"id":20036},"user":"lauritz","tags":[]},"20036":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (Central Europe Standard Time)"},"20037":{"varMapping":{"__isSmartRef__":true,"id":20038},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":20039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20038":{"this":{"__isSmartRef__":true,"id":20008}},"20039":{"timestamp":{"__isSmartRef__":true,"id":20040},"user":"lauritz","categories":[]},"20040":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (Central Europe Standard Time)"},"20041":{"varMapping":{"__isSmartRef__":true,"id":20042},"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":20043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20042":{"this":{"__isSmartRef__":true,"id":20008}},"20043":{"timestamp":{"__isSmartRef__":true,"id":20044},"user":"lauritz","tags":[]},"20044":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (Central Europe Standard Time)"},"20045":{"varMapping":{"__isSmartRef__":true,"id":20046},"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":20051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20046":{"this":{"__isSmartRef__":true,"id":20008},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20047}},"20047":{"$super":{"__isSmartRef__":true,"id":20048}},"20048":{"varMapping":{"__isSmartRef__":true,"id":20049},"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":20050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20049":{"obj":{"__isSmartRef__":true,"id":20008},"name":"onMouseUp"},"20050":{},"20051":{"timestamp":{"__isSmartRef__":true,"id":20052},"user":"lauritz","categories":[]},"20052":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (Central Europe Standard Time)"},"20053":{"varMapping":{"__isSmartRef__":true,"id":20054},"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":20059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20054":{"this":{"__isSmartRef__":true,"id":20008},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20055}},"20055":{"$super":{"__isSmartRef__":true,"id":20056}},"20056":{"varMapping":{"__isSmartRef__":true,"id":20057},"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":20058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20057":{"obj":{"__isSmartRef__":true,"id":20008},"name":"onBlur"},"20058":{},"20059":{"timestamp":{"__isSmartRef__":true,"id":20060},"user":"lauritz","categories":[]},"20060":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (Central Europe Standard Time)"},"20061":{"varMapping":{"__isSmartRef__":true,"id":20062},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":20063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20062":{"this":{"__isSmartRef__":true,"id":20008}},"20063":{"timestamp":{"__isSmartRef__":true,"id":20064},"user":"lauritz","categories":[]},"20064":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (Central Europe Standard Time)"},"20065":{"target":{"__isSmartRef__":true,"id":19379},"selector":"update","args":[],"stopped":true,"tickTime":500,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"20066":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(609.0,355.6)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"20067":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":20068}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20068":{"date":{"__isSmartRef__":true,"id":20069},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"20069":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (Central Europe Daylight Time)"},"20070":{"morph":{"__isSmartRef__":true,"id":19379},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20071":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"20072":{"submorphs":[],"scripts":[],"id":"BF53E28D-FD5A-49FC-A917-EAE83229E86F","shape":{"__isSmartRef__":true,"id":20073},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":["-- ALL --"],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":20074},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":20075},"attributeConnections":[{"__isSmartRef__":true,"id":21531}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":21533},"eventHandler":{"__isSmartRef__":true,"id":21534},"_FontSize":10,"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"],"selection":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21535},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,441.6)","distanceToDragEvent":"lively.pt(125.0,-17.1)"},"20073":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,74.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"20074":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20075":{"submorphs":[{"__isSmartRef__":true,"id":20076},{"__isSmartRef__":true,"id":20828},{"__isSmartRef__":true,"id":20072},{"__isSmartRef__":true,"id":20834},{"__isSmartRef__":true,"id":20841},{"__isSmartRef__":true,"id":20863},{"__isSmartRef__":true,"id":20884},{"__isSmartRef__":true,"id":20911},{"__isSmartRef__":true,"id":20310},{"__isSmartRef__":true,"id":20318},{"__isSmartRef__":true,"id":20937},{"__isSmartRef__":true,"id":20943},{"__isSmartRef__":true,"id":21000},{"__isSmartRef__":true,"id":21043},{"__isSmartRef__":true,"id":21086},{"__isSmartRef__":true,"id":21106},{"__isSmartRef__":true,"id":21287},{"__isSmartRef__":true,"id":21319}],"scripts":[{"__isSmartRef__":true,"id":21418}],"id":"4BDD41D6-6AD7-48D9-AB53-00D487F0CFC9","shape":{"__isSmartRef__":true,"id":21419},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":21420},"eventHandler":{"__isSmartRef__":true,"id":21423},"layout":{"__isSmartRef__":true,"id":21424},"target":{"__isSmartRef__":true,"id":19379},"scriptPane":{"__isSmartRef__":true,"id":20310},"scriptList":{"__isSmartRef__":true,"id":20076},"connectionList":{"__isSmartRef__":true,"id":20072},"morphSelector":{"__isSmartRef__":true,"id":21319},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":20318},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"tagChooser":{"__isSmartRef__":true,"id":20943},"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"],"owner":{"__isSmartRef__":true,"id":20440},"partTests":{"__isSmartRef__":true,"id":21425},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":142,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21426},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(350.2,-3.2)","_Position":"lively.pt(1.0,21.5)"},"20076":{"submorphs":[],"scripts":[],"id":"CBD4DD07-7323-43CB-8302-A5B617532C9B","shape":{"__isSmartRef__":true,"id":20077},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":["-- ALL --","confirmUnsavedChanges","copyToPartsBinWithUserRequest","displayInitialScript","displayJavaScriptSource","displaySourceForConnection","displaySourceForScript","ensureAnnotationLayer","generateSourceForConnection","generateSourceForScript","generateTargetCode","migrateOldScriptAnnotations","newConnection","newScript","onShutdown","openPartTestRunner","printTags","reset","runScript","selectChangedContent","setTag","setTarget","sortedConnectionNamesOfObj","sortedScriptNamesOfObj","update","updateLists"],"selectedLineNo":21,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":20078},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":20075},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":20079}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":20081},"doitContext":{"__isSmartRef__":true,"id":20082},"eventHandler":{"__isSmartRef__":true,"id":20819},"_FontSize":10,"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"],"selection":"setTarget","changeTriggered":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20820},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,63.0)","distanceToDragEvent":"lively.pt(126.0,-14.4)"},"20077":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,337.6)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"20078":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20079":{"sourceObj":{"__isSmartRef__":true,"id":20076},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":20075},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20080},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20080":{"source":{"__isSmartRef__":true,"id":20076},"target":{"__isSmartRef__":true,"id":20075}},"20081":{"resizeHeight":true},"20082":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":20083},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":20084},"titleBar":{"__isSmartRef__":true,"id":20085},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":20150},"highlighted":true,"_Rotation":0,"_Scale":1,"showsHalos":false,"name":"ObjectEditor","target":{"__isSmartRef__":true,"id":20151},"partsBinMetaInfo":{"__isSmartRef__":true,"id":20309},"scriptList":{"__isSmartRef__":true,"id":20076},"scriptPane":{"__isSmartRef__":true,"id":20310},"classButton":{"__isSmartRef__":true,"id":20375},"connectionList":{"__isSmartRef__":true,"id":20072},"targetButton":{"__isSmartRef__":true,"id":20395},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"morphSelector":{"__isSmartRef__":true,"id":20413},"eventHandler":{"__isSmartRef__":true,"id":20766},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["contentOffset","expandedExtent","prevDragPos","expandedPosition","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20767},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","expandedExtent":"lively.pt(861.5,575.2)","prevDragPos":"lively.pt(613.0,129.0)","expandedPosition":"lively.pt(377.7,419.5)","_Position":"lively.pt(715.5,73.9)"},"20083":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":9.25,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Fill","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Extent":"lively.pt(981.0,585.2)","_BorderColor":"Color.rgb(0,0,0)"},"20084":{"adjustForNewBounds":true},"20085":{"submorphs":[{"__isSmartRef__":true,"id":20086},{"__isSmartRef__":true,"id":20091},{"__isSmartRef__":true,"id":20112},{"__isSmartRef__":true,"id":20127}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":20143},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20148},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":20082},"label":{"__isSmartRef__":true,"id":20086},"closeButton":{"__isSmartRef__":true,"id":20091},"menuButton":{"__isSmartRef__":true,"id":20112},"collapseButton":{"__isSmartRef__":true,"id":20127},"owner":null,"name":"ObjectEditorTitleBar","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":20149},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"20086":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":20087},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":20088}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":20085},"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":20090},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"20087":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(922.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20088":{"style":{"__isSmartRef__":true,"id":20089},"chunkOwner":{"__isSmartRef__":true,"id":20086},"storedString":"","_id":"_430","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20089":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20090":{"morph":{"__isSmartRef__":true,"id":20086},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20091":{"submorphs":[{"__isSmartRef__":true,"id":20092}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":20097},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20098},"lighterFill":{"__isSmartRef__":true,"id":20103},"label":{"__isSmartRef__":true,"id":20092},"owner":{"__isSmartRef__":true,"id":20085},"layout":{"__isSmartRef__":true,"id":20108},"attributeConnections":[{"__isSmartRef__":true,"id":20109},{"__isSmartRef__":true,"id":20110}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":20111},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(961.0,3.0)"},"20092":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":20093},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":20094}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20091},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":20096},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"20093":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20094":{"style":{"__isSmartRef__":true,"id":20095},"chunkOwner":{"__isSmartRef__":true,"id":20092},"storedString":"","_id":"_796","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20095":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20096":{"morph":{"__isSmartRef__":true,"id":20092},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20097":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20098},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"20098":{"stops":[{"__isSmartRef__":true,"id":20099},{"__isSmartRef__":true,"id":20100},{"__isSmartRef__":true,"id":20101},{"__isSmartRef__":true,"id":20102}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20099":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20100":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20101":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20102":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"20103":{"stops":[{"__isSmartRef__":true,"id":20104},{"__isSmartRef__":true,"id":20105},{"__isSmartRef__":true,"id":20106},{"__isSmartRef__":true,"id":20107}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20104":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20105":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20106":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20107":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20108":{"moveHorizontal":true},"20109":{"sourceObj":{"__isSmartRef__":true,"id":20091},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20082},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20110":{"sourceObj":{"__isSmartRef__":true,"id":20091},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20082},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20111":{"morph":{"__isSmartRef__":true,"id":20091},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20112":{"submorphs":[{"__isSmartRef__":true,"id":20113}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":20118},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20098},"lighterFill":{"__isSmartRef__":true,"id":20119},"label":{"__isSmartRef__":true,"id":20113},"owner":{"__isSmartRef__":true,"id":20085},"attributeConnections":[{"__isSmartRef__":true,"id":20124},{"__isSmartRef__":true,"id":20125}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":20126},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"20113":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":20114},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":20115}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20112},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":20117},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"20114":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20115":{"style":{"__isSmartRef__":true,"id":20116},"chunkOwner":{"__isSmartRef__":true,"id":20113},"storedString":"","_id":"_797","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20116":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20117":{"morph":{"__isSmartRef__":true,"id":20113},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20118":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20098},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"20119":{"stops":[{"__isSmartRef__":true,"id":20120},{"__isSmartRef__":true,"id":20121},{"__isSmartRef__":true,"id":20122},{"__isSmartRef__":true,"id":20123}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20120":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20121":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20122":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20123":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20124":{"sourceObj":{"__isSmartRef__":true,"id":20112},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20082},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20125":{"sourceObj":{"__isSmartRef__":true,"id":20112},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20082},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20126":{"morph":{"__isSmartRef__":true,"id":20112},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20127":{"submorphs":[{"__isSmartRef__":true,"id":20128}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":20133},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20098},"lighterFill":{"__isSmartRef__":true,"id":20134},"label":{"__isSmartRef__":true,"id":20128},"owner":{"__isSmartRef__":true,"id":20085},"layout":{"__isSmartRef__":true,"id":20139},"attributeConnections":[{"__isSmartRef__":true,"id":20140},{"__isSmartRef__":true,"id":20141}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":20142},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(942.0,3.0)"},"20128":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":20129},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":20130}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20127},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":20132},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"20129":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20130":{"style":{"__isSmartRef__":true,"id":20131},"chunkOwner":{"__isSmartRef__":true,"id":20128},"storedString":"","_id":"_798","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20131":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20132":{"morph":{"__isSmartRef__":true,"id":20128},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20133":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20098},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"20134":{"stops":[{"__isSmartRef__":true,"id":20135},{"__isSmartRef__":true,"id":20136},{"__isSmartRef__":true,"id":20137},{"__isSmartRef__":true,"id":20138}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20135":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20136":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20137":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20138":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20139":{"moveHorizontal":true},"20140":{"sourceObj":{"__isSmartRef__":true,"id":20127},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20082},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20141":{"sourceObj":{"__isSmartRef__":true,"id":20127},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20082},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20142":{"morph":{"__isSmartRef__":true,"id":20127},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20143":{"_BorderWidth":2,"_Fill":{"__isSmartRef__":true,"id":20144},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(981.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"20144":{"stops":[{"__isSmartRef__":true,"id":20145},{"__isSmartRef__":true,"id":20146},{"__isSmartRef__":true,"id":20147}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,1,0,-1)"},"20145":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"20146":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(230,230,230)"},"20147":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"20148":{"resizeWidth":true,"adjustForNewBounds":true},"20149":{"morph":{"__isSmartRef__":true,"id":20085},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20150":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20151":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20152},"id":394,"textChunks":[{"__isSmartRef__":true,"id":20153}],"eventHandler":{"__isSmartRef__":true,"id":20155},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20156},"layout":{"__isSmartRef__":true,"id":20228},"doitContext":{"__isSmartRef__":true,"id":20229},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"20152":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,200.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"20153":{"style":{"__isSmartRef__":true,"id":20154},"chunkOwner":{"__isSmartRef__":true,"id":20151},"storedString":"","_id":"_799","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20154":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20155":{"morph":{"__isSmartRef__":true,"id":20151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20156":{"submorphs":[{"__isSmartRef__":true,"id":20151},{"__isSmartRef__":true,"id":20157}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20225},"id":395,"eventHandler":{"__isSmartRef__":true,"id":20226},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":20227},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":20151},"titleBar":{"__isSmartRef__":true,"id":20157},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"cameForward":false,"showsHalos":false,"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1234.0,448.0)","contentOffset":"lively.pt(0.0,22.0)","prevDragPos":"lively.pt(1478.0,453.0)"},"20157":{"submorphs":[{"__isSmartRef__":true,"id":20158},{"__isSmartRef__":true,"id":20164},{"__isSmartRef__":true,"id":20187},{"__isSmartRef__":true,"id":20204}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20222},"id":396,"eventHandler":{"__isSmartRef__":true,"id":20223},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20224},"windowMorph":{"__isSmartRef__":true,"id":20156},"label":{"__isSmartRef__":true,"id":20158},"closeButton":{"__isSmartRef__":true,"id":20164},"menuButton":{"__isSmartRef__":true,"id":20187},"collapseButton":{"__isSmartRef__":true,"id":20204},"owner":{"__isSmartRef__":true,"id":20156},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"20158":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20159},"id":397,"textChunks":[{"__isSmartRef__":true,"id":20160}],"eventHandler":{"__isSmartRef__":true,"id":20162},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":20163},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":20157},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"20159":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20160":{"style":{"__isSmartRef__":true,"id":20161},"chunkOwner":{"__isSmartRef__":true,"id":20158},"storedString":"","_id":"_800","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20161":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20162":{"morph":{"__isSmartRef__":true,"id":20158},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20163":{"resizeWidth":true},"20164":{"submorphs":[{"__isSmartRef__":true,"id":20165}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20170},"id":398,"eventHandler":{"__isSmartRef__":true,"id":20176},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20171},"lighterFill":{"__isSmartRef__":true,"id":20177},"label":{"__isSmartRef__":true,"id":20165},"owner":{"__isSmartRef__":true,"id":20157},"layout":{"__isSmartRef__":true,"id":20182},"attributeConnections":[{"__isSmartRef__":true,"id":20183},{"__isSmartRef__":true,"id":20185}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"20165":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20166},"id":399,"textChunks":[{"__isSmartRef__":true,"id":20167}],"eventHandler":{"__isSmartRef__":true,"id":20169},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20164},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"20166":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20167":{"style":{"__isSmartRef__":true,"id":20168},"chunkOwner":{"__isSmartRef__":true,"id":20165},"storedString":"","_id":"_801","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20168":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20169":{"morph":{"__isSmartRef__":true,"id":20165},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20170":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20171},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"20171":{"stops":[{"__isSmartRef__":true,"id":20172},{"__isSmartRef__":true,"id":20173},{"__isSmartRef__":true,"id":20174},{"__isSmartRef__":true,"id":20175}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20172":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20173":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20174":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20175":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"20176":{"morph":{"__isSmartRef__":true,"id":20164},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20177":{"stops":[{"__isSmartRef__":true,"id":20178},{"__isSmartRef__":true,"id":20179},{"__isSmartRef__":true,"id":20180},{"__isSmartRef__":true,"id":20181}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20178":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20179":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20180":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20181":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20182":{"moveHorizontal":true},"20183":{"sourceObj":{"__isSmartRef__":true,"id":20164},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20156},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20184},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20184":{"source":{"__isSmartRef__":true,"id":20164},"target":{"__isSmartRef__":true,"id":20156}},"20185":{"sourceObj":{"__isSmartRef__":true,"id":20164},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20156},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20186},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20186":{"source":{"__isSmartRef__":true,"id":20164},"target":{"__isSmartRef__":true,"id":20156}},"20187":{"submorphs":[{"__isSmartRef__":true,"id":20188}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20193},"id":400,"eventHandler":{"__isSmartRef__":true,"id":20194},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20171},"lighterFill":{"__isSmartRef__":true,"id":20195},"label":{"__isSmartRef__":true,"id":20188},"owner":{"__isSmartRef__":true,"id":20157},"attributeConnections":[{"__isSmartRef__":true,"id":20200},{"__isSmartRef__":true,"id":20202}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"20188":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20189},"id":401,"textChunks":[{"__isSmartRef__":true,"id":20190}],"eventHandler":{"__isSmartRef__":true,"id":20192},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20187},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"20189":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20190":{"style":{"__isSmartRef__":true,"id":20191},"chunkOwner":{"__isSmartRef__":true,"id":20188},"storedString":"","_id":"_802","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20191":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20192":{"morph":{"__isSmartRef__":true,"id":20188},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20193":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20171},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"20194":{"morph":{"__isSmartRef__":true,"id":20187},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20195":{"stops":[{"__isSmartRef__":true,"id":20196},{"__isSmartRef__":true,"id":20197},{"__isSmartRef__":true,"id":20198},{"__isSmartRef__":true,"id":20199}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20196":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20197":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20198":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20199":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20200":{"sourceObj":{"__isSmartRef__":true,"id":20187},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20156},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20201},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20201":{"source":{"__isSmartRef__":true,"id":20187},"target":{"__isSmartRef__":true,"id":20156}},"20202":{"sourceObj":{"__isSmartRef__":true,"id":20187},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20156},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20203},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20203":{"source":{"__isSmartRef__":true,"id":20187},"target":{"__isSmartRef__":true,"id":20156}},"20204":{"submorphs":[{"__isSmartRef__":true,"id":20205}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20210},"id":402,"eventHandler":{"__isSmartRef__":true,"id":20211},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20171},"lighterFill":{"__isSmartRef__":true,"id":20212},"label":{"__isSmartRef__":true,"id":20205},"owner":{"__isSmartRef__":true,"id":20157},"layout":{"__isSmartRef__":true,"id":20217},"attributeConnections":[{"__isSmartRef__":true,"id":20218},{"__isSmartRef__":true,"id":20220}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"20205":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20206},"id":403,"textChunks":[{"__isSmartRef__":true,"id":20207}],"eventHandler":{"__isSmartRef__":true,"id":20209},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20204},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"20206":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20207":{"style":{"__isSmartRef__":true,"id":20208},"chunkOwner":{"__isSmartRef__":true,"id":20205},"storedString":"","_id":"_803","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20208":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20209":{"morph":{"__isSmartRef__":true,"id":20205},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20210":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20171},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"20211":{"morph":{"__isSmartRef__":true,"id":20204},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20212":{"stops":[{"__isSmartRef__":true,"id":20213},{"__isSmartRef__":true,"id":20214},{"__isSmartRef__":true,"id":20215},{"__isSmartRef__":true,"id":20216}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20213":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20214":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20215":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20216":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20217":{"moveHorizontal":true},"20218":{"sourceObj":{"__isSmartRef__":true,"id":20204},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20156},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20219},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20219":{"source":{"__isSmartRef__":true,"id":20204},"target":{"__isSmartRef__":true,"id":20156}},"20220":{"sourceObj":{"__isSmartRef__":true,"id":20204},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20156},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20221},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20221":{"source":{"__isSmartRef__":true,"id":20204},"target":{"__isSmartRef__":true,"id":20156}},"20222":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":20144},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"20223":{"morph":{"__isSmartRef__":true,"id":20157},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20224":{"resizeWidth":true,"adjustForNewBounds":true},"20225":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)"},"20226":{"morph":{"__isSmartRef__":true,"id":20156},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20227":{"adjustForNewBounds":true},"20228":{"resizeWidth":true,"resizeHeight":true},"20229":{"submorphs":[{"__isSmartRef__":true,"id":20230},{"__isSmartRef__":true,"id":20237}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20304},"id":361,"eventHandler":{"__isSmartRef__":true,"id":20305},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":20306},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":20230},"titleBar":{"__isSmartRef__":true,"id":20237},"collapsedTransform":{"__isSmartRef__":true,"id":20307},"expandedTransform":{"__isSmartRef__":true,"id":20308},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"state":"shutdown","__serializedExpressions__":["_Position","contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1131.0,79.0)","contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(500.0,22.0)","expandedExtent":"lively.pt(500.0,222.0)","prevDragPos":"lively.pt(1507.0,76.0)","expandedPosition":"lively.pt(1131.0,79.0)","collapsedPosition":"lively.pt(1131.0,79.0)"},"20230":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20231},"id":360,"textChunks":[{"__isSmartRef__":true,"id":20232}],"eventHandler":{"__isSmartRef__":true,"id":20234},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20229},"layout":{"__isSmartRef__":true,"id":20235},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":20236}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"charsReplaced":"","lastFindLoc":15,"__serializedExpressions__":["_Padding","_Position"],"textString":"undefined","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"20231":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"20232":{"style":{"__isSmartRef__":true,"id":20233},"chunkOwner":{"__isSmartRef__":true,"id":20230},"_id":"_15","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20233":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20234":{"morph":{"__isSmartRef__":true,"id":20230},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20235":{"resizeWidth":true,"resizeHeight":true},"20236":{"sourceObj":{"__isSmartRef__":true,"id":20230},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":20230},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20237":{"submorphs":[{"__isSmartRef__":true,"id":20238},{"__isSmartRef__":true,"id":20244},{"__isSmartRef__":true,"id":20262},{"__isSmartRef__":true,"id":20279}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20297},"id":362,"eventHandler":{"__isSmartRef__":true,"id":20302},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20303},"windowMorph":{"__isSmartRef__":true,"id":20229},"label":{"__isSmartRef__":true,"id":20238},"closeButton":{"__isSmartRef__":true,"id":20244},"menuButton":{"__isSmartRef__":true,"id":20262},"collapseButton":{"__isSmartRef__":true,"id":20279},"owner":{"__isSmartRef__":true,"id":20229},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"20238":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20239},"id":363,"textChunks":[{"__isSmartRef__":true,"id":20240}],"eventHandler":{"__isSmartRef__":true,"id":20242},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":20243},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":20237},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"20239":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20240":{"style":{"__isSmartRef__":true,"id":20241},"chunkOwner":{"__isSmartRef__":true,"id":20238},"storedString":"","_id":"_804","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20241":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20242":{"morph":{"__isSmartRef__":true,"id":20238},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20243":{"resizeWidth":true},"20244":{"submorphs":[{"__isSmartRef__":true,"id":20245}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20250},"id":364,"eventHandler":{"__isSmartRef__":true,"id":20251},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20171},"lighterFill":{"__isSmartRef__":true,"id":20252},"label":{"__isSmartRef__":true,"id":20245},"owner":{"__isSmartRef__":true,"id":20237},"layout":{"__isSmartRef__":true,"id":20257},"attributeConnections":[{"__isSmartRef__":true,"id":20258},{"__isSmartRef__":true,"id":20260}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"20245":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20246},"id":365,"textChunks":[{"__isSmartRef__":true,"id":20247}],"eventHandler":{"__isSmartRef__":true,"id":20249},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20244},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"20246":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20247":{"style":{"__isSmartRef__":true,"id":20248},"chunkOwner":{"__isSmartRef__":true,"id":20245},"storedString":"","_id":"_805","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20248":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20249":{"morph":{"__isSmartRef__":true,"id":20245},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20250":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20171},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"20251":{"morph":{"__isSmartRef__":true,"id":20244},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20252":{"stops":[{"__isSmartRef__":true,"id":20253},{"__isSmartRef__":true,"id":20254},{"__isSmartRef__":true,"id":20255},{"__isSmartRef__":true,"id":20256}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20253":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20254":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20255":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20256":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20257":{"moveHorizontal":true},"20258":{"sourceObj":{"__isSmartRef__":true,"id":20244},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20229},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20259},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20259":{"source":{"__isSmartRef__":true,"id":20244},"target":{"__isSmartRef__":true,"id":20229}},"20260":{"sourceObj":{"__isSmartRef__":true,"id":20244},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20229},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20261},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20261":{"source":{"__isSmartRef__":true,"id":20244},"target":{"__isSmartRef__":true,"id":20229}},"20262":{"submorphs":[{"__isSmartRef__":true,"id":20263}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20268},"id":366,"eventHandler":{"__isSmartRef__":true,"id":20269},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20171},"lighterFill":{"__isSmartRef__":true,"id":20270},"label":{"__isSmartRef__":true,"id":20263},"owner":{"__isSmartRef__":true,"id":20237},"attributeConnections":[{"__isSmartRef__":true,"id":20275},{"__isSmartRef__":true,"id":20277}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"20263":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20264},"id":367,"textChunks":[{"__isSmartRef__":true,"id":20265}],"eventHandler":{"__isSmartRef__":true,"id":20267},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20262},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"20264":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20265":{"style":{"__isSmartRef__":true,"id":20266},"chunkOwner":{"__isSmartRef__":true,"id":20263},"storedString":"","_id":"_806","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20266":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20267":{"morph":{"__isSmartRef__":true,"id":20263},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20268":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20171},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"20269":{"morph":{"__isSmartRef__":true,"id":20262},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20270":{"stops":[{"__isSmartRef__":true,"id":20271},{"__isSmartRef__":true,"id":20272},{"__isSmartRef__":true,"id":20273},{"__isSmartRef__":true,"id":20274}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20271":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20272":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20273":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20274":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20275":{"sourceObj":{"__isSmartRef__":true,"id":20262},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20229},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20276},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20276":{"source":{"__isSmartRef__":true,"id":20262},"target":{"__isSmartRef__":true,"id":20229}},"20277":{"sourceObj":{"__isSmartRef__":true,"id":20262},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20229},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20278},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20278":{"source":{"__isSmartRef__":true,"id":20262},"target":{"__isSmartRef__":true,"id":20229}},"20279":{"submorphs":[{"__isSmartRef__":true,"id":20280}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20285},"id":368,"eventHandler":{"__isSmartRef__":true,"id":20286},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20171},"lighterFill":{"__isSmartRef__":true,"id":20287},"label":{"__isSmartRef__":true,"id":20280},"owner":{"__isSmartRef__":true,"id":20237},"layout":{"__isSmartRef__":true,"id":20292},"attributeConnections":[{"__isSmartRef__":true,"id":20293},{"__isSmartRef__":true,"id":20295}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"20280":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20281},"id":369,"textChunks":[{"__isSmartRef__":true,"id":20282}],"eventHandler":{"__isSmartRef__":true,"id":20284},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20279},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"20281":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"20282":{"style":{"__isSmartRef__":true,"id":20283},"chunkOwner":{"__isSmartRef__":true,"id":20280},"storedString":"","_id":"_807","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20283":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20284":{"morph":{"__isSmartRef__":true,"id":20280},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20285":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20171},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"20286":{"morph":{"__isSmartRef__":true,"id":20279},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20287":{"stops":[{"__isSmartRef__":true,"id":20288},{"__isSmartRef__":true,"id":20289},{"__isSmartRef__":true,"id":20290},{"__isSmartRef__":true,"id":20291}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20288":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20289":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20290":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20291":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20292":{"moveHorizontal":true},"20293":{"sourceObj":{"__isSmartRef__":true,"id":20279},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20229},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20294},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20294":{"source":{"__isSmartRef__":true,"id":20279},"target":{"__isSmartRef__":true,"id":20229}},"20295":{"sourceObj":{"__isSmartRef__":true,"id":20279},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20229},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20296},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20296":{"source":{"__isSmartRef__":true,"id":20279},"target":{"__isSmartRef__":true,"id":20229}},"20297":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":20298},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"20298":{"stops":[{"__isSmartRef__":true,"id":20299},{"__isSmartRef__":true,"id":20300},{"__isSmartRef__":true,"id":20301}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20299":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"20300":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(243,243,243)"},"20301":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"20302":{"morph":{"__isSmartRef__":true,"id":20237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20303":{"resizeWidth":true,"adjustForNewBounds":true},"20304":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)","_Position":"lively.pt(0.0,0.0)"},"20305":{"morph":{"__isSmartRef__":true,"id":20229},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20306":{"adjustForNewBounds":true},"20307":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20308":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20309":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20310":{"submorphs":[],"scripts":[],"id":"A77101C7-3D06-4C2E-9F56-421AB517C400","shape":{"__isSmartRef__":true,"id":20311},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":689.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":20312}],"layout":{"__isSmartRef__":true,"id":20314},"showsHalos":false,"prevScroll":[0,0],"name":"ObjectEditorScriptPane","charsReplaced":"// changed at Wed Jun 13 2012 16:23:24 GMT+0200 (CEST) by tessi \nthis.addScript(function foo() {\n return \"foo!\";\n}).tag([\"tagged\"]);\n\n\n// changed at Wed Jun 13 2012 16:26:48 GMT+0200 (CEST) by tessi \nthis.addScript(function baz() {\n return \"icke\"\n}).tag([\"due\"])","lastFindLoc":270,"partsBinMetaInfo":{"__isSmartRef__":true,"id":20315},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":24,"doitContext":{"__isSmartRef__":true,"id":19379},"savedTextString":"// changed at Thu Nov 17 2011 18:01:57 GMT+0100 (CET) by lauritz \nthis.addScript(function setTarget(morph) {\n this.reset();\n this.target = morph;\n\n this.migrateOldScriptAnnotations();\n\n this.morphSelector.setTarget(morph);\n this.scriptPane.setTarget(morph);\n\n this.startStepping(500/*ms*/, 'update'); \n}).tag([]);","_Align":"left","lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":20316},"attributeConnections":[{"__isSmartRef__":true,"id":20317},{"__isSmartRef__":true,"id":20332}],"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"],"_MinTextWidth":689.0285365288845,"_MinTextHeight":null,"lastSaveSource":"// changed at Tue Jun 26 2012 11:32:49 GMT+0200 (CEST) by lauritz \nthis.addScript(function setTarget(morph) {\n this.reset();\n this.target = morph;\n\n this.migrateOldScriptAnnotations();\n\n this.morphSelector.setTarget(morph);\n this.scriptPane.setTarget(morph);\n\n this.startStepping(500/*ms*/, 'update'); \n}).tag([]);","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":20075},"isCopyMorphRef":true,"morphRefId":151,"statusMorph":{"__isSmartRef__":true,"id":20333},"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"],"owner":{"__isSmartRef__":true,"id":20075},"syntaxHighlightingWhileTyping":true,"#startLetters":"enable","_syntaxHighlightTimeout":null,"_Rotation":0,"_Scale":1,"previousSelection":[284,295],"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"textString":"// changed at Tue Jun 26 2012 11:32:49 GMT+0200 (CEST) by lauritz \nthis.addScript(function setTarget(morph) {\n this.reset();\n this.target = morph;\n\n this.migrateOldScriptAnnotations();\n\n this.morphSelector.setTarget(morph);\n this.scriptPane.setTarget(morph);\n\n this.startStepping(500/*ms*/, 'update'); \n}).tag([]);","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20338},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(341.2,-18.3)","_Position":"lively.pt(200.0,40.0)"},"20311":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(691.0,475.6)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"20312":{"style":{"__isSmartRef__":true,"id":20313},"chunkOwner":{"__isSmartRef__":true,"id":20310},"_id":"_16","storedString":"// changed at Tue Jun 26 2012 11:32:49 GMT+0200 (CEST) by lauritz \nthis.addScript(function setTarget(morph) {\n this.reset();\n this.target = morph;\n\n this.migrateOldScriptAnnotations();\n\n this.morphSelector.setTarget(morph);\n this.scriptPane.setTarget(morph);\n\n this.startStepping(500/*ms*/, 'update'); \n}).tag([]);","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20313":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20314":{"resizeWidth":true,"resizeHeight":true},"20315":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20316":{"morph":{"__isSmartRef__":true,"id":20310},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20317":{"sourceObj":{"__isSmartRef__":true,"id":20310},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":20318},"targetMethodName":"indicateUnsavedChanges","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20318":{"submorphs":[],"scripts":[],"id":"FDF14E48-923E-4EE8-B143-C0BEA61D6B81","shape":{"__isSmartRef__":true,"id":20319},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":20320},"eventHandler":{"__isSmartRef__":true,"id":20321},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":20075},"layout":{"__isSmartRef__":true,"id":20322},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"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"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","savedColor","alarmColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20323},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(883.0,40.0)","savedColor":"Color.rgb(0,0,0)","alarmColor":"Color.rgb(240,0,0)","distanceToDragEvent":"lively.pt(37.3,-17.5)"},"20319":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(8.6,9.7)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"20320":{"partsSpaceName":"PartsBin/Basic","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","__SourceModuleName__":"Global.lively.PartsBin"},"20321":{"morph":{"__isSmartRef__":true,"id":20318},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20322":{"moveHorizontal":true,"adjustForNewBounds":true},"20323":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":20324},"setColors":{"__isSmartRef__":true,"id":20328}},"20324":{"varMapping":{"__isSmartRef__":true,"id":20325},"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":20326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20325":{"this":{"__isSmartRef__":true,"id":20318}},"20326":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20327}},"20327":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (Central Europe Daylight Time)"},"20328":{"varMapping":{"__isSmartRef__":true,"id":20329},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":20330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20329":{"this":{"__isSmartRef__":true,"id":20318}},"20330":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20331}},"20331":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (Central Europe Daylight Time)"},"20332":{"sourceObj":{"__isSmartRef__":true,"id":20310},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":20310},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20333":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20334},"id":553,"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":20335}],"eventHandler":{"__isSmartRef__":true,"id":20337},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","owner":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(295.5,225.3)","_TextColor":"Color.rgb(0,204,0)"},"20334":{"_ClipMode":"visible","_BorderWidth":1,"_StrokeOpacity":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,25.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)"},"20335":{"style":{"__isSmartRef__":true,"id":20336},"chunkOwner":{"__isSmartRef__":true,"id":20333},"storedString":"saved source","_id":"_367","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20336":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20337":{"morph":{"__isSmartRef__":true,"id":20333},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20338":{"doSave":{"__isSmartRef__":true,"id":20339},"boundEval":{"__isSmartRef__":true,"id":20347},"reset":{"__isSmartRef__":true,"id":20355},"display":{"__isSmartRef__":true,"id":20359},"hasChanged":{"__isSmartRef__":true,"id":20363},"setTarget":{"__isSmartRef__":true,"id":20367},"displayStatus":{"__isSmartRef__":true,"id":20371}},"20339":{"varMapping":{"__isSmartRef__":true,"id":20340},"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":20345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20340":{"this":{"__isSmartRef__":true,"id":20310},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20341}},"20341":{"$super":{"__isSmartRef__":true,"id":20342}},"20342":{"varMapping":{"__isSmartRef__":true,"id":20343},"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":20344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20343":{"obj":{"__isSmartRef__":true,"id":20310},"name":"doSave"},"20344":{},"20345":{"timestamp":{"__isSmartRef__":true,"id":20346},"user":"lauritz"},"20346":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (Central Europe Standard Time)"},"20347":{"varMapping":{"__isSmartRef__":true,"id":20348},"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":20353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20348":{"this":{"__isSmartRef__":true,"id":20310},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20349}},"20349":{"$super":{"__isSmartRef__":true,"id":20350}},"20350":{"varMapping":{"__isSmartRef__":true,"id":20351},"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":20352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20351":{"obj":{"__isSmartRef__":true,"id":20310},"name":"boundEval"},"20352":{},"20353":{"timestamp":{"__isSmartRef__":true,"id":20354},"user":"timfelgentreff","tags":[]},"20354":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:42:56 GMT+0200 (Central Europe Daylight Time)"},"20355":{"varMapping":{"__isSmartRef__":true,"id":20356},"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":20357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20356":{"this":{"__isSmartRef__":true,"id":20310}},"20357":{"timestamp":{"__isSmartRef__":true,"id":20358},"user":"cschuster","tags":[]},"20358":{"isSerializedDate":true,"string":"Wed May 16 2012 20:52:57 GMT+0200 (Central Europe Daylight Time)"},"20359":{"varMapping":{"__isSmartRef__":true,"id":20360},"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":20361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20360":{"this":{"__isSmartRef__":true,"id":20310}},"20361":{"timestamp":{"__isSmartRef__":true,"id":20362},"user":"lauritz","categories":[]},"20362":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (Central Europe Daylight Time)"},"20363":{"varMapping":{"__isSmartRef__":true,"id":20364},"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":20365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20364":{"this":{"__isSmartRef__":true,"id":20310}},"20365":{"timestamp":{"__isSmartRef__":true,"id":20366},"user":"lauritz","categories":[]},"20366":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (Central Europe Daylight Time)"},"20367":{"varMapping":{"__isSmartRef__":true,"id":20368},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":20369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20368":{"this":{"__isSmartRef__":true,"id":20310}},"20369":{"timestamp":{"__isSmartRef__":true,"id":20370},"user":"timfelgentreff","tags":[]},"20370":{"isSerializedDate":true,"string":"Thu Jun 07 2012 09:46:09 GMT+0200 (Central Europe Daylight Time)"},"20371":{"varMapping":{"__isSmartRef__":true,"id":20372},"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":20373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20372":{"this":{"__isSmartRef__":true,"id":20310}},"20373":{"timestamp":{"__isSmartRef__":true,"id":20374},"user":"lauritz","categories":[]},"20374":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (Central Europe Standard Time)"},"20375":{"submorphs":[{"__isSmartRef__":true,"id":20376}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":20381},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20382},"lighterFill":{"__isSmartRef__":true,"id":20387},"label":{"__isSmartRef__":true,"id":20376},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":20392},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":20393},"eventHandler":{"__isSmartRef__":true,"id":20394},"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(820.0,9.0)","padding":"lively.rect(5,0,0,0)"},"20376":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":20377},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":20375},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":20378}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":20380},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"20377":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,18.0)","_BorderColor":"Color.rgb(0,0,0)"},"20378":{"style":{"__isSmartRef__":true,"id":20379},"chunkOwner":{"__isSmartRef__":true,"id":20376},"storedString":"","_id":"_808","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20379":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20380":{"morph":{"__isSmartRef__":true,"id":20376},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20381":{"_Fill":{"__isSmartRef__":true,"id":20382},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"20382":{"stops":[{"__isSmartRef__":true,"id":20383},{"__isSmartRef__":true,"id":20384},{"__isSmartRef__":true,"id":20385},{"__isSmartRef__":true,"id":20386}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20383":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20384":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20385":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20386":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"20387":{"stops":[{"__isSmartRef__":true,"id":20388},{"__isSmartRef__":true,"id":20389},{"__isSmartRef__":true,"id":20390},{"__isSmartRef__":true,"id":20391}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20388":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20389":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20390":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20391":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20392":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20393":{"moveHorizontal":true},"20394":{"morph":{"__isSmartRef__":true,"id":20375},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20395":{"submorphs":[{"__isSmartRef__":true,"id":20396}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":20400},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20401},"lighterFill":{"__isSmartRef__":true,"id":20406},"label":{"__isSmartRef__":true,"id":20396},"attributeConnections":[{"__isSmartRef__":true,"id":20411}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":20412},"_Scale":1,"owner":null,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(215.0,35.0)","padding":"lively.rect(5,0,0,0)"},"20396":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":20397},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":20395},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":20398}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"20397":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(0,0,0)"},"20398":{"style":{"__isSmartRef__":true,"id":20399},"chunkOwner":{"__isSmartRef__":true,"id":20396},"storedString":"","_id":"_809","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20399":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20400":{"_Fill":{"__isSmartRef__":true,"id":20401},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"20401":{"stops":[{"__isSmartRef__":true,"id":20402},{"__isSmartRef__":true,"id":20403},{"__isSmartRef__":true,"id":20404},{"__isSmartRef__":true,"id":20405}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20402":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20403":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20404":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20405":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"20406":{"stops":[{"__isSmartRef__":true,"id":20407},{"__isSmartRef__":true,"id":20408},{"__isSmartRef__":true,"id":20409},{"__isSmartRef__":true,"id":20410}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20407":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20408":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20409":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20410":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20411":{"sourceObj":{"__isSmartRef__":true,"id":20395},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20082},"targetMethodName":"chooseTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20412":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20413":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":20414},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":218,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":20415},"textChunks":[{"__isSmartRef__":true,"id":20416}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":20418}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"_Align":"left","eventHandler":{"__isSmartRef__":true,"id":20420},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":20421},"selection":{"__isSmartRef__":true,"id":20440},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":20720},"_Rotation":0,"_Scale":1,"savedTextString":"100","__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20721},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(200.0,10.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(153.9,-23.7)"},"20414":{"fill":null,"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(244,244,244)"},"20415":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20416":{"style":{"__isSmartRef__":true,"id":20417},"chunkOwner":{"__isSmartRef__":true,"id":20413},"storedString":"","_id":"_810","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20417":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20418":{"sourceObj":{"__isSmartRef__":true,"id":20413},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":20075},"targetMethodName":"setTarget","converterString":"function (name) { return $world.get(name)}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20419},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20419":{"source":{"__isSmartRef__":true,"id":20413},"target":{"__isSmartRef__":true,"id":20075}},"20420":{"morph":{"__isSmartRef__":true,"id":20413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20421":{"createListMorph":{"__isSmartRef__":true,"id":20422},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":20424},"onMouseUp":{"__isSmartRef__":true,"id":20426},"resetConnections":{"__isSmartRef__":true,"id":20428},"setTargetToListSelection":{"__isSmartRef__":true,"id":20430},"setTargetOfPane":{"__isSmartRef__":true,"id":20432},"onBlur":{"__isSmartRef__":true,"id":20434},"reset":{"__isSmartRef__":true,"id":20436},"onMouseDown":{"__isSmartRef__":true,"id":20438}},"20422":{"time":{"__isSmartRef__":true,"id":20423},"user":"lauritz"},"20423":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (Central Europe Daylight Time)"},"20424":{"time":{"__isSmartRef__":true,"id":20425},"user":"lauritz"},"20425":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (Central Europe Daylight Time)"},"20426":{"time":{"__isSmartRef__":true,"id":20427},"user":"lauritz"},"20427":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (Central Europe Daylight Time)"},"20428":{"time":{"__isSmartRef__":true,"id":20429},"user":"lauritz"},"20429":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (Central Europe Daylight Time)"},"20430":{"time":{"__isSmartRef__":true,"id":20431},"user":"lauritz"},"20431":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (Central Europe Daylight Time)"},"20432":{"time":{"__isSmartRef__":true,"id":20433},"user":"lauritz"},"20433":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (Central Europe Daylight Time)"},"20434":{"time":{"__isSmartRef__":true,"id":20435},"user":"lauritz"},"20435":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (Central Europe Daylight Time)"},"20436":{"time":{"__isSmartRef__":true,"id":20437},"user":"lauritz"},"20437":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (Central Europe Daylight Time)"},"20438":{"time":{"__isSmartRef__":true,"id":20439},"user":"lauritz"},"20439":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (Central Europe Daylight Time)"},"20440":{"submorphs":[{"__isSmartRef__":true,"id":20075},{"__isSmartRef__":true,"id":20441},{"__isSmartRef__":true,"id":20470}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20551},"id":"15929CA8-049F-4B96-97F3-9BDB17AC69D7","eventHandler":{"__isSmartRef__":true,"id":20552},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":20553},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":20075},"titleBar":{"__isSmartRef__":true,"id":20470},"collapsedTransform":{"__isSmartRef__":true,"id":20554},"expandedTransform":{"__isSmartRef__":true,"id":20555},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":20556},"name":"ObjectGroupEditor1","highlighted":true,"cameForward":false,"showsHalos":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"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"],"moved":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1.01,"owner":null,"state":"shutdown","__serializedExpressions__":["contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition","minSize","minExtent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20707},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withLayers":["Global.PreventDroppingLayer"],"withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(723.0,268.0)","expandedExtent":"lively.pt(729.0,365.0)","prevDragPos":"lively.pt(1324.5,651.0)","expandedPosition":"lively.pt(26.0,125.0)","collapsedPosition":"lively.pt(21.0,92.9)","minSize":"lively.pt(500.0,300.0)","minExtent":"lively.pt(455.0,268.0)","_Position":"lively.pt(1058.7,637.9)"},"20441":{"submorphs":[],"scripts":[],"id":"FD088A90-D591-475D-A97C-2798CD35E52E","shape":{"__isSmartRef__":true,"id":20442},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ResizeCorner4","partsBinMetaInfo":{"__isSmartRef__":true,"id":20443},"__layered_draggingEnabled__":true,"dragStartPoint":null,"originalTargetExtent":null,"eventHandler":{"__isSmartRef__":true,"id":20444},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":20440},"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"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","originalExtent","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20445},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(896.0,533.0)","originalExtent":"lively.pt(239.0,138.0)","distanceToDragEvent":"lively.pt(42.3,-22.8)"},"20442":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(13.0,14.0)","_BorderColor":"Color.rgb(145,145,145)","_Fill":"Color.rgb(66,66,66)","_Padding":"lively.rect(0,0,0,0)"},"20443":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20444":{"morph":{"__isSmartRef__":true,"id":20441},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20445":{"onDrag":{"__isSmartRef__":true,"id":20446},"onDragEnd":{"__isSmartRef__":true,"id":20454},"onDragStart":{"__isSmartRef__":true,"id":20462}},"20446":{"varMapping":{"__isSmartRef__":true,"id":20447},"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":20452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20447":{"this":{"__isSmartRef__":true,"id":20441},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20448}},"20448":{"$super":{"__isSmartRef__":true,"id":20449}},"20449":{"varMapping":{"__isSmartRef__":true,"id":20450},"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":20451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20450":{"obj":{"__isSmartRef__":true,"id":20441},"name":"onDrag"},"20451":{},"20452":{"timestamp":{"__isSmartRef__":true,"id":20453},"user":"lauritz"},"20453":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Central Europe Standard Time)"},"20454":{"varMapping":{"__isSmartRef__":true,"id":20455},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":20460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20455":{"this":{"__isSmartRef__":true,"id":20441},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20456}},"20456":{"$super":{"__isSmartRef__":true,"id":20457}},"20457":{"varMapping":{"__isSmartRef__":true,"id":20458},"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":20459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20458":{"obj":{"__isSmartRef__":true,"id":20441},"name":"onDragEnd"},"20459":{},"20460":{"timestamp":{"__isSmartRef__":true,"id":20461},"user":"lauritz"},"20461":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (Central Europe Standard Time)"},"20462":{"varMapping":{"__isSmartRef__":true,"id":20463},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":20468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20463":{"this":{"__isSmartRef__":true,"id":20441},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20464}},"20464":{"$super":{"__isSmartRef__":true,"id":20465}},"20465":{"varMapping":{"__isSmartRef__":true,"id":20466},"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":20467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20466":{"obj":{"__isSmartRef__":true,"id":20441},"name":"onDragStart"},"20467":{},"20468":{"timestamp":{"__isSmartRef__":true,"id":20469},"user":"lauritz"},"20469":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:35 GMT+0100 (Central Europe Standard Time)"},"20470":{"submorphs":[{"__isSmartRef__":true,"id":20471},{"__isSmartRef__":true,"id":20477},{"__isSmartRef__":true,"id":20505},{"__isSmartRef__":true,"id":20527}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20545},"id":"7CB73B67-C4D2-46C5-A513-7CD6553B381F","eventHandler":{"__isSmartRef__":true,"id":20549},"__layered_droppingEnabled__":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20550},"windowMorph":{"__isSmartRef__":true,"id":20440},"label":{"__isSmartRef__":true,"id":20471},"closeButton":{"__isSmartRef__":true,"id":20477},"menuButton":{"__isSmartRef__":true,"id":20505},"collapseButton":{"__isSmartRef__":true,"id":20527},"owner":{"__isSmartRef__":true,"id":20440},"prevScroll":[0,0],"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"],"_ClipMode":"visible","_Scale":1,"#startLetters":"","__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"20471":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20472},"id":"57C37217-0192-40D2-9C56-E6EC71FD3445","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":20473}],"eventHandler":{"__isSmartRef__":true,"id":20475},"grabbingEnabled":false,"__layered_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":20476},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":20470},"_MaxTextWidth":850,"_MinTextWidth":850,"_MaxTextHeight":null,"_MinTextHeight":null,"showsHalos":false,"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"],"_Scale":1,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(20.0,3.0)","_TextColor":"Color.rgb(102,102,102)"},"20472":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(850.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"20473":{"style":{"__isSmartRef__":true,"id":20474},"chunkOwner":{"__isSmartRef__":true,"id":20471},"storedString":"ObjectEditor (WebDev'12)","_id":"_368","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20474":{"fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20475":{"morph":{"__isSmartRef__":true,"id":20471},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20476":{"resizeWidth":true},"20477":{"submorphs":[{"__isSmartRef__":true,"id":20478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20483},"id":"046CC489-6BF8-4642-87A7-0D3DF043A14D","eventHandler":{"__isSmartRef__":true,"id":20489},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20490},"lighterFill":{"__isSmartRef__":true,"id":20495},"label":{"__isSmartRef__":true,"id":20478},"owner":{"__isSmartRef__":true,"id":20470},"layout":{"__isSmartRef__":true,"id":20500},"attributeConnections":[{"__isSmartRef__":true,"id":20501},{"__isSmartRef__":true,"id":20503}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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"],"_ClipMode":"visible","showsHalos":false,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(889.0,3.0)"},"20478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20479},"id":"D89941D7-6513-4BEF-BA15-B49F4AE4EB3F","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":20480}],"eventHandler":{"__isSmartRef__":true,"id":20482},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20477},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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"],"showsHalos":false,"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"20479":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"20480":{"style":{"__isSmartRef__":true,"id":20481},"chunkOwner":{"__isSmartRef__":true,"id":20478},"storedString":"X","_id":"_369","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20481":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20482":{"morph":{"__isSmartRef__":true,"id":20478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20483":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20484},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"20484":{"stops":[{"__isSmartRef__":true,"id":20485},{"__isSmartRef__":true,"id":20486},{"__isSmartRef__":true,"id":20487},{"__isSmartRef__":true,"id":20488}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20485":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20486":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"20487":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"20488":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"20489":{"morph":{"__isSmartRef__":true,"id":20477},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20490":{"stops":[{"__isSmartRef__":true,"id":20491},{"__isSmartRef__":true,"id":20492},{"__isSmartRef__":true,"id":20493},{"__isSmartRef__":true,"id":20494}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20491":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20492":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20493":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20494":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"20495":{"stops":[{"__isSmartRef__":true,"id":20496},{"__isSmartRef__":true,"id":20497},{"__isSmartRef__":true,"id":20498},{"__isSmartRef__":true,"id":20499}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20496":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20497":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20498":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20499":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20500":{"moveHorizontal":true},"20501":{"sourceObj":{"__isSmartRef__":true,"id":20477},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20440},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20502},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20502":{"source":{"__isSmartRef__":true,"id":20477},"target":{"__isSmartRef__":true,"id":20440}},"20503":{"sourceObj":{"__isSmartRef__":true,"id":20477},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20440},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20504},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20504":{"source":{"__isSmartRef__":true,"id":20477},"target":{"__isSmartRef__":true,"id":20440}},"20505":{"submorphs":[{"__isSmartRef__":true,"id":20506}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20511},"id":"07D9ED80-3860-4FD6-B064-6278DF9440C9","eventHandler":{"__isSmartRef__":true,"id":20517},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20490},"lighterFill":{"__isSmartRef__":true,"id":20518},"label":{"__isSmartRef__":true,"id":20506},"owner":{"__isSmartRef__":true,"id":20470},"attributeConnections":[{"__isSmartRef__":true,"id":20523},{"__isSmartRef__":true,"id":20525}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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"],"_ClipMode":"visible","_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"20506":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20507},"id":"B50DDEB0-CC92-4D71-AB9B-28BB002F1469","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":20508}],"eventHandler":{"__isSmartRef__":true,"id":20510},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20505},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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"],"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"20507":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"20508":{"style":{"__isSmartRef__":true,"id":20509},"chunkOwner":{"__isSmartRef__":true,"id":20506},"storedString":"M","_id":"_370","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20509":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20510":{"morph":{"__isSmartRef__":true,"id":20506},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20511":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20512},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"20512":{"stops":[{"__isSmartRef__":true,"id":20513},{"__isSmartRef__":true,"id":20514},{"__isSmartRef__":true,"id":20515},{"__isSmartRef__":true,"id":20516}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20513":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20514":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"20515":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"20516":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"20517":{"morph":{"__isSmartRef__":true,"id":20505},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20518":{"stops":[{"__isSmartRef__":true,"id":20519},{"__isSmartRef__":true,"id":20520},{"__isSmartRef__":true,"id":20521},{"__isSmartRef__":true,"id":20522}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20519":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20520":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20521":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20522":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20523":{"sourceObj":{"__isSmartRef__":true,"id":20505},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20440},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20524},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20524":{"source":{"__isSmartRef__":true,"id":20505},"target":{"__isSmartRef__":true,"id":20440}},"20525":{"sourceObj":{"__isSmartRef__":true,"id":20505},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20440},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20526},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20526":{"source":{"__isSmartRef__":true,"id":20505},"target":{"__isSmartRef__":true,"id":20440}},"20527":{"submorphs":[{"__isSmartRef__":true,"id":20528}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20533},"id":"B0AF0130-66FB-495C-9C53-C43EC7E90474","eventHandler":{"__isSmartRef__":true,"id":20534},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20490},"lighterFill":{"__isSmartRef__":true,"id":20535},"label":{"__isSmartRef__":true,"id":20528},"owner":{"__isSmartRef__":true,"id":20470},"layout":{"__isSmartRef__":true,"id":20540},"attributeConnections":[{"__isSmartRef__":true,"id":20541},{"__isSmartRef__":true,"id":20543}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"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"],"_ClipMode":"visible","_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(870.0,3.0)"},"20528":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20529},"id":"FFD66A88-456B-43C9-A845-4BB23B9E4AE0","_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":20530}],"eventHandler":{"__isSmartRef__":true,"id":20532},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20527},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"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"],"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)"},"20529":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"20530":{"style":{"__isSmartRef__":true,"id":20531},"chunkOwner":{"__isSmartRef__":true,"id":20528},"storedString":"–","_id":"_371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20531":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20532":{"morph":{"__isSmartRef__":true,"id":20528},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20533":{"_ClipMode":"visible","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":20490},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"20534":{"morph":{"__isSmartRef__":true,"id":20527},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20535":{"stops":[{"__isSmartRef__":true,"id":20536},{"__isSmartRef__":true,"id":20537},{"__isSmartRef__":true,"id":20538},{"__isSmartRef__":true,"id":20539}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20536":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20537":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20538":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20539":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20540":{"moveHorizontal":true},"20541":{"sourceObj":{"__isSmartRef__":true,"id":20527},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20440},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20542},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20542":{"source":{"__isSmartRef__":true,"id":20527},"target":{"__isSmartRef__":true,"id":20440}},"20543":{"sourceObj":{"__isSmartRef__":true,"id":20527},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20440},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20544},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20544":{"source":{"__isSmartRef__":true,"id":20527},"target":{"__isSmartRef__":true,"id":20440}},"20545":{"_ClipMode":"visible","_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":20546},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(909.0,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(102,102,102)"},"20546":{"stops":[{"__isSmartRef__":true,"id":20547},{"__isSmartRef__":true,"id":20548}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20547":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(255,255,255)"},"20548":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20549":{"morph":{"__isSmartRef__":true,"id":20470},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20550":{"resizeWidth":true,"adjustForNewBounds":true},"20551":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_ClipMode":"visible","__serializedExpressions__":["_Extent","_Position","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(909.0,547.0)","_Position":"lively.pt(0.0,0.0)","_Padding":"lively.rect(0,0,0,0)"},"20552":{"morph":{"__isSmartRef__":true,"id":20440},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20553":{"adjustForNewBounds":true},"20554":{"a":1,"b":0,"c":0,"d":1,"e":21,"f":92.89999999999998,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20555":{"a":1.0040100200350561,"b":0,"c":0,"d":1.0040100200350561,"e":25.958169966165087,"f":125.02070906988553,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20556":{"migrationLevel":4,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a morph, or a group of morphs.","partName":"ObjectGroupEditor","changes":[{"__isSmartRef__":true,"id":20557},{"__isSmartRef__":true,"id":20559},{"__isSmartRef__":true,"id":20561},{"__isSmartRef__":true,"id":20563},{"__isSmartRef__":true,"id":20565},{"__isSmartRef__":true,"id":20567},{"__isSmartRef__":true,"id":20569},{"__isSmartRef__":true,"id":20571},{"__isSmartRef__":true,"id":20573},{"__isSmartRef__":true,"id":20575},{"__isSmartRef__":true,"id":20577},{"__isSmartRef__":true,"id":20579},{"__isSmartRef__":true,"id":20581},{"__isSmartRef__":true,"id":20583},{"__isSmartRef__":true,"id":20585},{"__isSmartRef__":true,"id":20587},{"__isSmartRef__":true,"id":20589},{"__isSmartRef__":true,"id":20591},{"__isSmartRef__":true,"id":20593},{"__isSmartRef__":true,"id":20595},{"__isSmartRef__":true,"id":20597},{"__isSmartRef__":true,"id":20599},{"__isSmartRef__":true,"id":20601},{"__isSmartRef__":true,"id":20603},{"__isSmartRef__":true,"id":20605},{"__isSmartRef__":true,"id":20607},{"__isSmartRef__":true,"id":20609},{"__isSmartRef__":true,"id":20611},{"__isSmartRef__":true,"id":20613},{"__isSmartRef__":true,"id":20615},{"__isSmartRef__":true,"id":20617},{"__isSmartRef__":true,"id":20619},{"__isSmartRef__":true,"id":20621},{"__isSmartRef__":true,"id":20623},{"__isSmartRef__":true,"id":20625},{"__isSmartRef__":true,"id":20627},{"__isSmartRef__":true,"id":20629},{"__isSmartRef__":true,"id":20631},{"__isSmartRef__":true,"id":20633},{"__isSmartRef__":true,"id":20635},{"__isSmartRef__":true,"id":20637},{"__isSmartRef__":true,"id":20639},{"__isSmartRef__":true,"id":20641},{"__isSmartRef__":true,"id":20643},{"__isSmartRef__":true,"id":20645},{"__isSmartRef__":true,"id":20647},{"__isSmartRef__":true,"id":20649},{"__isSmartRef__":true,"id":20651},{"__isSmartRef__":true,"id":20653},{"__isSmartRef__":true,"id":20655},{"__isSmartRef__":true,"id":20657},{"__isSmartRef__":true,"id":20659},{"__isSmartRef__":true,"id":20661},{"__isSmartRef__":true,"id":20663},{"__isSmartRef__":true,"id":20665},{"__isSmartRef__":true,"id":20667},{"__isSmartRef__":true,"id":20669},{"__isSmartRef__":true,"id":20671},{"__isSmartRef__":true,"id":20673},{"__isSmartRef__":true,"id":20675},{"__isSmartRef__":true,"id":20677},{"__isSmartRef__":true,"id":20679},{"__isSmartRef__":true,"id":20681},{"__isSmartRef__":true,"id":20683},{"__isSmartRef__":true,"id":20685},{"__isSmartRef__":true,"id":20687},{"__isSmartRef__":true,"id":20689},{"__isSmartRef__":true,"id":20691},{"__isSmartRef__":true,"id":20693},{"__isSmartRef__":true,"id":20695},{"__isSmartRef__":true,"id":20697},{"__isSmartRef__":true,"id":20699},{"__isSmartRef__":true,"id":20701},{"__isSmartRef__":true,"id":20703},{"__isSmartRef__":true,"id":20705}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20557":{"date":{"__isSmartRef__":true,"id":20558},"author":"timfelgentreff","message":"resize initially","id":"6D0DAD13-A4E6-4FC7-AB01-0CBD3CBE6FEE"},"20558":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:26:37 GMT+0200 (Central Europe Daylight Time)"},"20559":{"date":{"__isSmartRef__":true,"id":20560},"author":"tessi","message":"select target-dropwdownlist instead of \"Target\"-Label when clicking on the dropdownlist","id":"8744030E-7C35-4B0D-9619-DDF542E951E3"},"20560":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:21:25 GMT+0200 (Central Europe Daylight Time)"},"20561":{"date":{"__isSmartRef__":true,"id":20562},"author":"lauritz","message":"added cschusters's Widget.js module to this part's PartsBinMetaInfo.requiredModules","id":"CDFDF35E-A6AC-4ABC-8ADC-567B3CC55F6B"},"20562":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:11:02 GMT+0200 (Central Europe Daylight Time)"},"20563":{"date":{"__isSmartRef__":true,"id":20564},"author":"timfelgentreff","message":"Add a magnifiying glass to select target (similar to developer tools DOM selection)","id":"D9409D32-738F-4916-BA02-82C040C9891B"},"20564":{"isSerializedDate":true,"string":"Thu May 24 2012 17:21:39 GMT+0200 (Central Europe Daylight Time)"},"20565":{"date":{"__isSmartRef__":true,"id":20566},"author":"timfelgentreff","message":"no comment","id":"6D83027E-EC28-4497-A29F-E48051BD74FA"},"20566":{"isSerializedDate":true,"string":"Thu May 24 2012 16:54:16 GMT+0200 (Central Europe Daylight Time)"},"20567":{"date":{"__isSmartRef__":true,"id":20568},"author":"robertkrahn","message":"restored old version for addressing immediate save problems","id":"63323F27-08DC-499B-80D6-A700A30FE6BA"},"20568":{"isSerializedDate":true,"string":"Thu Apr 26 2012 22:03:48 GMT+0200 (Central Europe Daylight Time)"},"20569":{"date":{"__isSmartRef__":true,"id":20570},"author":"fbo","message":"No more addScript and better support for Firefox","id":"1BC8E4F5-9621-43E1-9451-35E018A8B06F"},"20570":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:16:30 GMT+0200 (Central Europe Daylight Time)"},"20571":{"date":{"__isSmartRef__":true,"id":20572},"author":"robertkrahn","message":"- Tags text morph now is a input line, fixed a bug in generateSourceForScript()","id":"485A3064-009C-4A89-875B-D3BF1B1C0606"},"20572":{"isSerializedDate":true,"string":"Thu Mar 08 2012 19:12:32 GMT+0100 (Central Europe Standard Time)"},"20573":{"date":{"__isSmartRef__":true,"id":20574},"author":"fabian","message":"","id":"50D90B40-1175-48A3-AC0E-10AC8884288A"},"20574":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:51:00 GMT+0100 (Central Europe Standard Time)"},"20575":{"date":{"__isSmartRef__":true,"id":20576},"author":"fabian","message":"","id":"E39C79D4-9E74-47BA-A6EA-D0B861EB411D"},"20576":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:46:13 GMT+0100 (Central Europe Standard Time)"},"20577":{"date":{"__isSmartRef__":true,"id":20578},"author":"fabian","message":"","id":"0714BC73-548D-4AF3-9A61-32FEE36C9B1F"},"20578":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:34:16 GMT+0100 (Central Europe Standard Time)"},"20579":{"date":{"__isSmartRef__":true,"id":20580},"author":"fabian","message":"","id":"AEB64F75-685C-4BB8-8C69-D8EC60CBA91D"},"20580":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:14:57 GMT+0100 (Central Europe Standard Time)"},"20581":{"date":{"__isSmartRef__":true,"id":20582},"author":"fabian","message":"","id":"EE9D6061-DD05-4FC8-B53A-21B93B9F5535"},"20582":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:57:12 GMT+0100 (Central Europe Standard Time)"},"20583":{"date":{"__isSmartRef__":true,"id":20584},"author":"fabian","message":"","id":"112A906B-C79A-4CF2-BD2A-EEF9A6731634"},"20584":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:42:40 GMT+0100 (Central Europe Standard Time)"},"20585":{"date":{"__isSmartRef__":true,"id":20586},"author":"fabian","message":"","id":"6FF4CD6F-6C92-449F-B2CA-20BFACE54E7A"},"20586":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:37:11 GMT+0100 (Central Europe Standard Time)"},"20587":{"date":{"__isSmartRef__":true,"id":20588},"author":"sstamm","message":"added save button","id":"3A85D0AF-64E0-40C7-8C4E-61CD462F3971"},"20588":{"isSerializedDate":true,"string":"Fri Feb 03 2012 11:45:18 GMT+0100 (Central Europe Standard Time)"},"20589":{"date":{"__isSmartRef__":true,"id":20590},"author":"bsiegmund","message":"Run Button now moving when window is resized","id":"9ECA7B2B-8322-42C5-8EFA-49AC432960B4"},"20590":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:36:10 GMT+0100 (Central Europe Standard Time)"},"20591":{"date":{"__isSmartRef__":true,"id":20592},"author":"lauritz","message":"changed label \"Category:\" to \"Tag:\".","id":"DBC877ED-0328-44A8-A46D-FE83C935797F"},"20592":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:50:45 GMT+0100 (Central Europe Standard Time)"},"20593":{"date":{"__isSmartRef__":true,"id":20594},"author":"lauritz","message":"adapted layout of notifications","id":"1C01FAB9-AD9A-44B5-BAF1-EC06408A767E"},"20594":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:26:48 GMT+0100 (Central Europe Standard Time)"},"20595":{"date":{"__isSmartRef__":true,"id":20596},"author":"lauritz","message":"fixed a bug (onBlur event handling) and added the world to the target chooser","id":"A8C151D4-0767-44E0-B586-090EA305BDF5"},"20596":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:14:00 GMT+0100 (Central Europe Standard Time)"},"20597":{"date":{"__isSmartRef__":true,"id":20598},"author":"jenslincke","message":"- reset title bar and borders","id":"8CE7DA3C-5C83-4151-A3A7-7B41D1C555BD"},"20598":{"isSerializedDate":true,"string":"Fri Nov 18 2011 15:26:49 GMT+0100 (Central Europe Standard Time)"},"20599":{"date":{"__isSmartRef__":true,"id":20600},"author":"lauritz","message":"Refactoring of script annotations (now at scripts not morphs). Added category tagging. Layout changes.","id":"1A9DA32B-8A1D-4CCF-92CB-47462F8CF117"},"20600":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:22:54 GMT+0100 (Central Europe Standard Time)"},"20601":{"date":{"__isSmartRef__":true,"id":20602},"author":"lauritz","message":"layout adaptions","id":"6F1AEBDC-EED3-4CE0-B84C-F4DD4DA784C5"},"20602":{"isSerializedDate":true,"string":"Wed Nov 16 2011 02:12:15 GMT+0100 (Central Europe Standard Time)"},"20603":{"date":{"__isSmartRef__":true,"id":20604},"author":"lauritz","message":"two more checks on attempts to remove scripts or connections.","id":"ED9F0090-C36C-4BC6-8FD2-A6FB60C7A0B2"},"20604":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:47:27 GMT+0100 (Central Europe Standard Time)"},"20605":{"date":{"__isSmartRef__":true,"id":20606},"author":"lauritz","message":"added confirmation before removal of scripts or connections.","id":"00B5B7BA-FC00-4B1C-A967-B8A38B05EEA8"},"20606":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:42:28 GMT+0100 (Central Europe Standard Time)"},"20607":{"date":{"__isSmartRef__":true,"id":20608},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"20608":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:40:22 GMT+0200 (Central Europe Daylight Time)"},"20609":{"date":{"__isSmartRef__":true,"id":20610},"author":"lauritz","message":"Locked down submorphs of the editor pane. Grabbing and dragging disabled. "},"20610":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:36:22 GMT+0200 (Central Europe Daylight Time)"},"20611":{"date":{"__isSmartRef__":true,"id":20612},"author":"jenslincke","message":"bring resize handle to front","id":"996D26BC-8567-486E-B114-A9041230543D"},"20612":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:41:36 GMT+0100 (Central Europe Standard Time)"},"20613":{"date":{"__isSmartRef__":true,"id":20614},"author":"jenslincke","message":"set min extent to pt(500,300)","id":"20634435-660B-4E80-93FF-8B8C4F5E0453"},"20614":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:44:45 GMT+0100 (Central Europe Standard Time)"},"20615":{"date":{"__isSmartRef__":true,"id":20616},"author":"lauritz","message":"set a minExtent","id":"85B641E5-15C6-4C6D-BE9A-F4F96E347258"},"20616":{"isSerializedDate":true,"string":"Tue Nov 15 2011 20:12:45 GMT+0100 (Central Europe Standard Time)"},"20617":{"date":{"__isSmartRef__":true,"id":20618},"author":"lauritz","message":"removed a missed debugger statement. corrected setting of target.","id":"BD747202-2BE7-4560-8EB2-DBA586BAD46F"},"20618":{"isSerializedDate":true,"string":"Fri Nov 18 2011 20:19:07 GMT+0100 (Central Europe Standard Time)"},"20619":{"date":{"__isSmartRef__":true,"id":20620},"author":"lauritz","message":"added a border to notifications, centered notification text","id":"D1DDACFE-EC70-45FB-8178-0A93C8DC81F1"},"20620":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:02:14 GMT+0100 (Central Europe Standard Time)"},"20621":{"date":{"__isSmartRef__":true,"id":20622},"author":"lauritz","message":"renamed .categorize to .tag","id":"470CD024-16F9-4221-B2D7-87FAC17B198B"},"20622":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:44:44 GMT+0100 (Central Europe Standard Time)"},"20623":{"date":{"__isSmartRef__":true,"id":20624},"author":"lauritz","message":"fixed a defect (weeeeeird property caused an error on deserialization of copies)","id":"F6F92336-29F4-4FB4-B597-B8EF12E2922E"},"20624":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:55:11 GMT+0100 (Central Europe Standard Time)"},"20625":{"date":{"__isSmartRef__":true,"id":20626},"author":"lauritz","message":"fixed a bug regarding anonymous morphs.","id":"30C42CB6-324C-455D-8B3E-828A80325027"},"20626":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:31:58 GMT+0100 (Central Europe Standard Time)"},"20627":{"date":{"__isSmartRef__":true,"id":20628},"author":"lauritz","message":"workaround for issue #161 - target morph list is scrollable","id":"7D5DAE37-46E2-4C63-8008-AA553CD6B1E9"},"20628":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:13:13 GMT+0100 (Central Europe Standard Time)"},"20629":{"date":{"__isSmartRef__":true,"id":20630},"author":"lauritz","message":"removed a workaround","id":"9AC9A97B-E63C-4C24-BCAF-6DC61C3A677C"},"20630":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:56:45 GMT+0100 (Central Europe Standard Time)"},"20631":{"date":{"__isSmartRef__":true,"id":20632},"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"},"20632":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:04:53 GMT+0100 (Central Europe Standard Time)"},"20633":{"date":{"__isSmartRef__":true,"id":20634},"author":"lauritz","message":"sorted tag list.","id":"597DB7EB-1788-42DC-A64F-E061D7B831EC"},"20634":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:23:14 GMT+0100 (Central Europe Standard Time)"},"20635":{"date":{"__isSmartRef__":true,"id":20636},"author":"lauritz","message":"top-most entry of the tag list is \"all\" now.","id":"62D12D9E-7F42-40CC-BB5B-162130454572"},"20636":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:28:30 GMT+0100 (Central Europe Standard Time)"},"20637":{"date":{"__isSmartRef__":true,"id":20638},"author":"lauritz","message":"","id":"72E0F00D-53A7-43E9-AD7B-E34F485BC75E"},"20638":{"isSerializedDate":true,"string":"Fri Jan 06 2012 07:15:04 GMT+0100 (Central Europe Standard Time)"},"20639":{"date":{"__isSmartRef__":true,"id":20640},"author":"robertkrahn","message":"show scripts even if they are wrapped","id":"6F608C14-369B-49D6-8E91-81B35ABB14DE"},"20640":{"isSerializedDate":true,"string":"Fri Jan 27 2012 17:50:40 GMT+0100 (Central Europe Standard Time)"},"20641":{"date":{"__isSmartRef__":true,"id":20642},"author":"conradcalmez","message":"added run button for trying out methods","id":"D21502DF-B383-45AA-8DB2-16D6A4C7DFC0"},"20642":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:15 GMT+0100 (Central Europe Standard Time)"},"20643":{"date":{"__isSmartRef__":true,"id":20644},"author":"conradcalmez","message":"set selection of lists to null","id":"1C918344-7895-4714-9F8E-2BCC837250CA"},"20644":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:00:56 GMT+0100 (Central Europe Standard Time)"},"20645":{"date":{"__isSmartRef__":true,"id":20646},"author":"fbo","message":"","id":"EBED707C-49B0-4E5F-9DD8-FF84007B435E"},"20646":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:47:59 GMT+0100 (Central Europe Standard Time)"},"20647":{"date":{"__isSmartRef__":true,"id":20648},"author":"fabian","message":"","id":"7D345E64-F67F-4266-AB55-590EB143327A"},"20648":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:08:57 GMT+0100 (Central Europe Standard Time)"},"20649":{"date":{"__isSmartRef__":true,"id":20650},"author":"fabian","message":"","id":"1A435460-69B4-469B-909F-F2F395B97C4D"},"20650":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:09:30 GMT+0100 (Central Europe Standard Time)"},"20651":{"date":{"__isSmartRef__":true,"id":20652},"author":"undefined","message":"","id":"121C044E-8723-4B1F-A9C5-54E73422CD05"},"20652":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:40:16 GMT+0100 (Central Europe Standard Time)"},"20653":{"date":{"__isSmartRef__":true,"id":20654},"author":"fabian","message":"","id":"D2F5383B-1F99-477E-A66E-D92928DB7540"},"20654":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:52:22 GMT+0100 (Central Europe Standard Time)"},"20655":{"date":{"__isSmartRef__":true,"id":20656},"author":"fabian","message":"","id":"350CA522-AD08-42D8-BB89-DA7D8BCAD0FB"},"20656":{"isSerializedDate":true,"string":"Wed Mar 07 2012 21:27:57 GMT+0100 (Central Europe Standard Time)"},"20657":{"date":{"__isSmartRef__":true,"id":20658},"author":"fabian","message":"","id":"FABA3850-E4EF-4888-BCE9-BB4F9EC9C2D4"},"20658":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:37:50 GMT+0100 (Central Europe Standard Time)"},"20659":{"date":{"__isSmartRef__":true,"id":20660},"author":"fabian","message":"","id":"31CF7B42-DEAF-4A50-A5A2-6745A92BF6DC"},"20660":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:48:03 GMT+0100 (Central Europe Standard Time)"},"20661":{"date":{"__isSmartRef__":true,"id":20662},"author":"fabian","message":"","id":"00E45103-9D78-4178-A58F-03896AFF5CA3"},"20662":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:55:32 GMT+0100 (Central Europe Standard Time)"},"20663":{"date":{"__isSmartRef__":true,"id":20664},"author":"fbo","message":"No more addScript and better support for Firefox","id":"2AC82901-2DCD-4921-B6F9-78B05D3D671C"},"20664":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:14:35 GMT+0200 (Central Europe Daylight Time)"},"20665":{"date":{"__isSmartRef__":true,"id":20666},"author":"fbo","message":"No more addScript and better support for Firefox","id":"C6D736FA-5748-448D-A6A0-6068A9BA9A34"},"20666":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:15:21 GMT+0200 (Central Europe Daylight Time)"},"20667":{"date":{"__isSmartRef__":true,"id":20668},"author":"timfelgentreff","message":"no comment","id":"27293AFB-6616-4516-B2FB-BB688F7ADB2D"},"20668":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:19 GMT+0200 (Central Europe Daylight Time)"},"20669":{"date":{"__isSmartRef__":true,"id":20670},"author":"timfelgentreff","message":"no comment","id":"D66996F5-54A4-4923-8D9E-3FC049EA2D32"},"20670":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:35 GMT+0200 (Central Europe Daylight Time)"},"20671":{"date":{"__isSmartRef__":true,"id":20672},"author":"lauritz","message":"reduced global variable usage","id":"2FCB8ACB-CA90-4236-A8DF-D77F631C6CA9"},"20672":{"isSerializedDate":true,"string":"Tue May 29 2012 13:10:35 GMT+0200 (Central Europe Daylight Time)"},"20673":{"date":{"__isSmartRef__":true,"id":20674},"author":"lauritz","message":"hover over the magnifier button to see the current target","id":"9E6C0152-723A-43B1-8EF8-A3C2F15F5EBA"},"20674":{"isSerializedDate":true,"string":"Tue May 29 2012 13:18:56 GMT+0200 (Central Europe Daylight Time)"},"20675":{"date":{"__isSmartRef__":true,"id":20676},"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"},"20676":{"isSerializedDate":true,"string":"Wed Jun 06 2012 16:21:44 GMT+0200 (Central Europe Daylight Time)"},"20677":{"date":{"__isSmartRef__":true,"id":20678},"author":"lauritz","message":"fixed magnifier-tool: highlight-rectangle property of the object, now.","id":"9301C445-2961-4C51-8D35-8FF338F0CD19"},"20678":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:25:01 GMT+0200 (Central Europe Daylight Time)"},"20679":{"date":{"__isSmartRef__":true,"id":20680},"author":"lauritz","message":"","id":"667CB328-3FE7-46B6-BD5A-FA4763544BC6"},"20680":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:29:52 GMT+0200 (Central Europe Daylight Time)"},"20681":{"date":{"__isSmartRef__":true,"id":20682},"author":"lauritz","message":"fix bad interaction b/w highlight and tracking in magnifier","id":"0970265D-1552-4376-8999-F6847141362C"},"20682":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:07:40 GMT+0200 (Central Europe Daylight Time)"},"20683":{"date":{"__isSmartRef__":true,"id":20684},"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"},"20684":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:29:36 GMT+0200 (Central Europe Daylight Time)"},"20685":{"date":{"__isSmartRef__":true,"id":20686},"author":"tessi","message":"Fix hover on empty target","id":"E65D513E-8719-46CD-BA22-F1F8A6C6904B"},"20686":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:32:55 GMT+0200 (Central Europe Daylight Time)"},"20687":{"date":{"__isSmartRef__":true,"id":20688},"author":"tessi","message":"Stop Magnifier-Selection-Thingy if Esc-Key was pressed","id":"F59C88F0-0708-483D-89BA-2D926B22BC5E"},"20688":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:59 GMT+0200 (Central Europe Daylight Time)"},"20689":{"date":{"__isSmartRef__":true,"id":20690},"author":"timfelgentreff","message":"implement saving and retrieving of groups, using tags on the morphs","id":"854E44DD-C527-406E-81A6-87D1FDFF499B"},"20690":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:09:18 GMT+0200 (Central Europe Daylight Time)"},"20691":{"date":{"__isSmartRef__":true,"id":20692},"author":"timfelgentreff","message":"fix issue with uniqueness","id":"863C36B3-EC03-45B1-9D36-7EB092A00EFE"},"20692":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:23:01 GMT+0200 (Central Europe Daylight Time)"},"20693":{"date":{"__isSmartRef__":true,"id":20694},"author":"timfelgentreff","message":"introduce evaluation for groups. returns multiple results if result is `this' dependent","id":"E459B71C-5114-40F2-A11E-34A42A4CA50C"},"20694":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:45:09 GMT+0200 (Central Europe Daylight Time)"},"20695":{"date":{"__isSmartRef__":true,"id":20696},"author":"timfelgentreff","message":"hide \"Name group\" button by default","id":"617D6A4B-7BD3-4B7B-9913-CC650DC7BA6A"},"20696":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:46:11 GMT+0200 (Central Europe Daylight Time)"},"20697":{"date":{"__isSmartRef__":true,"id":20698},"author":"timfelgentreff","message":"use tree for submorphs","id":"592A118B-2713-4C06-B820-22DB62E43D16"},"20698":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:41:30 GMT+0200 (Central Europe Daylight Time)"},"20699":{"date":{"__isSmartRef__":true,"id":20700},"author":"timfelgentreff","message":"automatic expand and highlight","id":"02EF2B1D-F704-4EB5-A81A-FAAD2F85470D"},"20700":{"isSerializedDate":true,"string":"Tue Jun 19 2012 09:32:59 GMT+0200 (Central Europe Daylight Time)"},"20701":{"date":{"__isSmartRef__":true,"id":20702},"author":"lauritz","message":"changed title to clarify","id":"A5FE4F60-1BA4-4FDE-A872-70D815D6C99E"},"20702":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:29:57 GMT+0200 (Central Europe Daylight Time)"},"20703":{"date":{"__isSmartRef__":true,"id":20704},"author":"timfelgentreff","message":"shift-multi-selection in scenegraph tree","id":"06F870D2-4E2C-49D4-B02D-9B3D16C03EEB"},"20704":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:49:25 GMT+0200 (Central Europe Daylight Time)"},"20705":{"date":{"__isSmartRef__":true,"id":20706},"author":"lauritz","message":"reflected relocation of the tree widget","id":"C2F5A421-34F4-4F59-897F-B71A43FCB6E6"},"20706":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:51:17 GMT+0200 (Central Europe Daylight Time)"},"20707":{"setTarget":{"__isSmartRef__":true,"id":20708},"reset":{"__isSmartRef__":true,"id":20712},"onShutdown":{"__isSmartRef__":true,"id":20716}},"20708":{"varMapping":{"__isSmartRef__":true,"id":20709},"source":"function setTarget(t) {\n this.targetMorph.setTarget(t);\n}","funcProperties":{"__isSmartRef__":true,"id":20710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20709":{"this":{"__isSmartRef__":true,"id":20440}},"20710":{"timestamp":{"__isSmartRef__":true,"id":20711},"user":"lauritz","categories":[]},"20711":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Central Europe Standard Time)"},"20712":{"varMapping":{"__isSmartRef__":true,"id":20713},"source":"function reset() {\n this.targetMorph.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":20714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20713":{"this":{"__isSmartRef__":true,"id":20440}},"20714":{"timestamp":{"__isSmartRef__":true,"id":20715},"user":"lauritz","categories":[]},"20715":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (Central Europe Standard Time)"},"20716":{"varMapping":{"__isSmartRef__":true,"id":20717},"source":"function onShutdown() {\n this.targetMorph.onShutdown();\n}","funcProperties":{"__isSmartRef__":true,"id":20718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20717":{"this":{"__isSmartRef__":true,"id":20440}},"20718":{"timestamp":{"__isSmartRef__":true,"id":20719},"user":"lauritz","categories":[]},"20719":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:25:16 GMT+0200 (Central Europe Daylight Time)"},"20720":{},"20721":{"getList":{"__isSmartRef__":true,"id":20722},"setList":{"__isSmartRef__":true,"id":20725},"reset":{"__isSmartRef__":true,"id":20728},"example":{"__isSmartRef__":true,"id":20731},"removeList":{"__isSmartRef__":true,"id":20734},"onBlur":{"__isSmartRef__":true,"id":20737},"createListMorph":{"__isSmartRef__":true,"id":20744},"resetConnections":{"__isSmartRef__":true,"id":20747},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":20750},"setTargetToListSelection":{"__isSmartRef__":true,"id":20753},"setTargetOfPane":{"__isSmartRef__":true,"id":20756},"onMouseDown":{"__isSmartRef__":true,"id":20759}},"20722":{"varMapping":{"__isSmartRef__":true,"id":20723},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":20724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20723":{"this":{"__isSmartRef__":true,"id":20413}},"20724":{},"20725":{"varMapping":{"__isSmartRef__":true,"id":20726},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":20727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20726":{"this":{"__isSmartRef__":true,"id":20413}},"20727":{},"20728":{"varMapping":{"__isSmartRef__":true,"id":20729},"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":20730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20729":{"this":{"__isSmartRef__":true,"id":20413}},"20730":{},"20731":{"varMapping":{"__isSmartRef__":true,"id":20732},"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":20733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20732":{"this":{"__isSmartRef__":true,"id":20413}},"20733":{},"20734":{"varMapping":{"__isSmartRef__":true,"id":20735},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":20736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20735":{"this":{"__isSmartRef__":true,"id":20413}},"20736":{},"20737":{"varMapping":{"__isSmartRef__":true,"id":20738},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":20743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20738":{"this":{"__isSmartRef__":true,"id":20413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20739}},"20739":{"$super":{"__isSmartRef__":true,"id":20740}},"20740":{"varMapping":{"__isSmartRef__":true,"id":20741},"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":20742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20741":{"obj":{"__isSmartRef__":true,"id":20413},"name":"onBlur"},"20742":{},"20743":{},"20744":{"varMapping":{"__isSmartRef__":true,"id":20745},"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":20746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20745":{"this":{"__isSmartRef__":true,"id":20413}},"20746":{},"20747":{"varMapping":{"__isSmartRef__":true,"id":20748},"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":20749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20748":{"this":{"__isSmartRef__":true,"id":20413}},"20749":{},"20750":{"varMapping":{"__isSmartRef__":true,"id":20751},"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":20752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20751":{"this":{"__isSmartRef__":true,"id":20413}},"20752":{},"20753":{"varMapping":{"__isSmartRef__":true,"id":20754},"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":20755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20754":{"this":{"__isSmartRef__":true,"id":20413}},"20755":{},"20756":{"varMapping":{"__isSmartRef__":true,"id":20757},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":20758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20757":{"this":{"__isSmartRef__":true,"id":20413}},"20758":{},"20759":{"varMapping":{"__isSmartRef__":true,"id":20760},"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":20765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20760":{"this":{"__isSmartRef__":true,"id":20413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20761}},"20761":{"$super":{"__isSmartRef__":true,"id":20762}},"20762":{"varMapping":{"__isSmartRef__":true,"id":20763},"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":20764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20763":{"obj":{"__isSmartRef__":true,"id":20413},"name":"onMouseDown"},"20764":{},"20765":{},"20766":{"morph":{"__isSmartRef__":true,"id":20082},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20767":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":20768},"setTarget":{"__isSmartRef__":true,"id":20771},"generateSourceForScript":{"__isSmartRef__":true,"id":20774},"generateSourceForConnection":{"__isSmartRef__":true,"id":20777},"generateTargetCode":{"__isSmartRef__":true,"id":20780},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":20783},"displayJavaScriptSource":{"__isSmartRef__":true,"id":20786},"displaySourceForScript":{"__isSmartRef__":true,"id":20789},"displaySourceForConnection":{"__isSmartRef__":true,"id":20792},"newScript":{"__isSmartRef__":true,"id":20795},"newConnection":{"__isSmartRef__":true,"id":20798},"deleteSelectedScript":{"__isSmartRef__":true,"id":20801},"disconnectConnection":{"__isSmartRef__":true,"id":20804},"updateLists":{"__isSmartRef__":true,"id":20807},"displayInitialScript":{"__isSmartRef__":true,"id":20810},"reset":{"__isSmartRef__":true,"id":20813},"selectChangedContent":{"__isSmartRef__":true,"id":20816}},"20768":{"varMapping":{"__isSmartRef__":true,"id":20769},"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":20770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20769":{"this":{"__isSmartRef__":true,"id":20082}},"20770":{},"20771":{"varMapping":{"__isSmartRef__":true,"id":20772},"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":20773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20772":{"this":{"__isSmartRef__":true,"id":20082}},"20773":{},"20774":{"varMapping":{"__isSmartRef__":true,"id":20775},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":20776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20775":{"this":{"__isSmartRef__":true,"id":20082}},"20776":{},"20777":{"varMapping":{"__isSmartRef__":true,"id":20778},"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":20779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20778":{"this":{"__isSmartRef__":true,"id":20082}},"20779":{},"20780":{"varMapping":{"__isSmartRef__":true,"id":20781},"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":20782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20781":{"this":{"__isSmartRef__":true,"id":20082}},"20782":{},"20783":{"varMapping":{"__isSmartRef__":true,"id":20784},"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":20785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20784":{"this":{"__isSmartRef__":true,"id":20082}},"20785":{},"20786":{"varMapping":{"__isSmartRef__":true,"id":20787},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":20788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20787":{"this":{"__isSmartRef__":true,"id":20082}},"20788":{},"20789":{"varMapping":{"__isSmartRef__":true,"id":20790},"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":20791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20790":{"this":{"__isSmartRef__":true,"id":20082}},"20791":{},"20792":{"varMapping":{"__isSmartRef__":true,"id":20793},"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":20794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20793":{"this":{"__isSmartRef__":true,"id":20082}},"20794":{},"20795":{"varMapping":{"__isSmartRef__":true,"id":20796},"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":20797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20796":{"this":{"__isSmartRef__":true,"id":20082}},"20797":{},"20798":{"varMapping":{"__isSmartRef__":true,"id":20799},"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":20800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20799":{"this":{"__isSmartRef__":true,"id":20082}},"20800":{},"20801":{"varMapping":{"__isSmartRef__":true,"id":20802},"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":20803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20802":{"this":{"__isSmartRef__":true,"id":20082}},"20803":{},"20804":{"varMapping":{"__isSmartRef__":true,"id":20805},"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":20806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20805":{"this":{"__isSmartRef__":true,"id":20082}},"20806":{},"20807":{"varMapping":{"__isSmartRef__":true,"id":20808},"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":20809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20808":{"this":{"__isSmartRef__":true,"id":20082}},"20809":{},"20810":{"varMapping":{"__isSmartRef__":true,"id":20811},"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":20812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20811":{"this":{"__isSmartRef__":true,"id":20082}},"20812":{},"20813":{"varMapping":{"__isSmartRef__":true,"id":20814},"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":20815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20814":{"this":{"__isSmartRef__":true,"id":20082}},"20815":{},"20816":{"varMapping":{"__isSmartRef__":true,"id":20817},"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":20909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20908":{"this":{"__isSmartRef__":true,"id":20884}},"20909":{"timestamp":{"__isSmartRef__":true,"id":20910},"user":"lauritz","categories":[]},"20910":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (Central Europe Standard Time)"},"20911":{"submorphs":[{"__isSmartRef__":true,"id":20912}],"scripts":[],"id":"4201853A-99F3-4248-824C-C4982C8CF896","shape":{"__isSmartRef__":true,"id":20917},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20918},"lighterFill":{"__isSmartRef__":true,"id":20923},"label":{"__isSmartRef__":true,"id":20912},"attributeConnections":[{"__isSmartRef__":true,"id":20928}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":20930},"owner":{"__isSmartRef__":true,"id":20075},"eventHandler":{"__isSmartRef__":true,"id":20931},"isCopyMorphRef":true,"morphRefId":150,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":20075},"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"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20932},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(160.0,40.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(33.4,-21.3)"},"20912":{"submorphs":[],"scripts":[],"id":"9FFDE6EE-3962-4D0E-9065-CE6BD664C36F","shape":{"__isSmartRef__":true,"id":20913},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":21,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":20911},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":20914}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":20916},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":21,"_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"],"_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"20913":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"20914":{"style":{"__isSmartRef__":true,"id":20915},"chunkOwner":{"__isSmartRef__":true,"id":20912},"storedString":"-","_id":"_377","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20915":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20916":{"morph":{"__isSmartRef__":true,"id":20912},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20917":{"_Fill":{"__isSmartRef__":true,"id":20918},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"20918":{"stops":[{"__isSmartRef__":true,"id":20919},{"__isSmartRef__":true,"id":20920},{"__isSmartRef__":true,"id":20921},{"__isSmartRef__":true,"id":20922}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20919":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20920":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20921":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20922":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"20923":{"stops":[{"__isSmartRef__":true,"id":20924},{"__isSmartRef__":true,"id":20925},{"__isSmartRef__":true,"id":20926},{"__isSmartRef__":true,"id":20927}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20924":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20925":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20926":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20927":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20928":{"sourceObj":{"__isSmartRef__":true,"id":20911},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20911},"targetMethodName":"deleteSelectedScript","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20929},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20929":{"source":{"__isSmartRef__":true,"id":20911},"target":{"__isSmartRef__":true,"id":20911}},"20930":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20931":{"morph":{"__isSmartRef__":true,"id":20911},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20932":{"deleteSelectedScript":{"__isSmartRef__":true,"id":20933}},"20933":{"varMapping":{"__isSmartRef__":true,"id":20934},"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.hasOwnProperty(selection)) \n return;\n delete editor.target[selection];\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":20935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20934":{"this":{"__isSmartRef__":true,"id":20911}},"20935":{"timestamp":{"__isSmartRef__":true,"id":20936},"user":"lauritz"},"20936":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (Central Europe Standard Time)"},"20937":{"submorphs":[],"scripts":[],"id":"1BF878E5-9B1A-452D-9E7B-4BB3859CAAF6","shape":{"__isSmartRef__":true,"id":20938},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":20939},"textChunks":[{"__isSmartRef__":true,"id":20940}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20942},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":155,"owner":{"__isSmartRef__":true,"id":20075},"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"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(45.8,-27.8)"},"20938":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"20939":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20940":{"style":{"__isSmartRef__":true,"id":20941},"chunkOwner":{"__isSmartRef__":true,"id":20937},"storedString":"Tag:","_id":"_378","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20941":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20942":{"morph":{"__isSmartRef__":true,"id":20937},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20943":{"submorphs":[{"__isSmartRef__":true,"id":20944}],"scripts":[],"id":"04E4EE86-95C7-49F9-B564-0ED3975E59BC","shape":{"__isSmartRef__":true,"id":20950},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20956},"lighterFill":{"__isSmartRef__":true,"id":20951},"label":{"__isSmartRef__":true,"id":20944},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":20961},"listMorph":null,"list":[],"eventHandler":{"__isSmartRef__":true,"id":20962},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":20075},"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"],"isCopyMorphRef":true,"morphRefId":156,"_Rotation":0,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20963},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(39.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(85.7,-11.6)"},"20944":{"submorphs":[],"scripts":[],"id":"67C44D55-EDD0-4BBC-B376-02EB579F42FB","shape":{"__isSmartRef__":true,"id":20945},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":20943},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":20946}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":20948}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":20949},"_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"],"_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"20945":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"20946":{"style":{"__isSmartRef__":true,"id":20947},"chunkOwner":{"__isSmartRef__":true,"id":20944},"storedString":"all","_id":"_379","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20947":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20948":{"sourceObj":{"__isSmartRef__":true,"id":20944},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":20943},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"20949":{"morph":{"__isSmartRef__":true,"id":20944},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20950":{"_Fill":{"__isSmartRef__":true,"id":20951},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"20951":{"stops":[{"__isSmartRef__":true,"id":20952},{"__isSmartRef__":true,"id":20953},{"__isSmartRef__":true,"id":20954},{"__isSmartRef__":true,"id":20955}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20952":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"20953":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20954":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"20955":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"20956":{"stops":[{"__isSmartRef__":true,"id":20957},{"__isSmartRef__":true,"id":20958},{"__isSmartRef__":true,"id":20959},{"__isSmartRef__":true,"id":20960}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"20957":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"20958":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20959":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"20960":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"20961":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20962":{"morph":{"__isSmartRef__":true,"id":20943},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20963":{"createListMorph":{"__isSmartRef__":true,"id":20964},"getList":{"__isSmartRef__":true,"id":20968},"removeList":{"__isSmartRef__":true,"id":20972},"reset":{"__isSmartRef__":true,"id":20976},"onMouseUp":{"__isSmartRef__":true,"id":20980},"onBlur":{"__isSmartRef__":true,"id":20988},"setTag":{"__isSmartRef__":true,"id":20996}},"20964":{"varMapping":{"__isSmartRef__":true,"id":20965},"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":20966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20965":{"this":{"__isSmartRef__":true,"id":20943}},"20966":{"timestamp":{"__isSmartRef__":true,"id":20967},"user":"lauritz","categories":[]},"20967":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (Central Europe Standard Time)"},"20968":{"varMapping":{"__isSmartRef__":true,"id":20969},"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":20970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20969":{"this":{"__isSmartRef__":true,"id":20943}},"20970":{"timestamp":{"__isSmartRef__":true,"id":20971},"user":"lauritz","tags":[]},"20971":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (Central Europe Standard Time)"},"20972":{"varMapping":{"__isSmartRef__":true,"id":20973},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":20974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20973":{"this":{"__isSmartRef__":true,"id":20943}},"20974":{"timestamp":{"__isSmartRef__":true,"id":20975},"user":"lauritz","categories":[]},"20975":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (Central Europe Standard Time)"},"20976":{"varMapping":{"__isSmartRef__":true,"id":20977},"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":20978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20977":{"this":{"__isSmartRef__":true,"id":20943}},"20978":{"timestamp":{"__isSmartRef__":true,"id":20979},"user":"lauritz","tags":[]},"20979":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (Central Europe Standard Time)"},"20980":{"varMapping":{"__isSmartRef__":true,"id":20981},"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":20986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20981":{"this":{"__isSmartRef__":true,"id":20943},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20982}},"20982":{"$super":{"__isSmartRef__":true,"id":20983}},"20983":{"varMapping":{"__isSmartRef__":true,"id":20984},"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":20985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20984":{"obj":{"__isSmartRef__":true,"id":20943},"name":"onMouseUp"},"20985":{},"20986":{"timestamp":{"__isSmartRef__":true,"id":20987},"user":"lauritz","categories":[]},"20987":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (Central Europe Standard Time)"},"20988":{"varMapping":{"__isSmartRef__":true,"id":20989},"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":20994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20989":{"this":{"__isSmartRef__":true,"id":20943},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20990}},"20990":{"$super":{"__isSmartRef__":true,"id":20991}},"20991":{"varMapping":{"__isSmartRef__":true,"id":20992},"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":20993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20992":{"obj":{"__isSmartRef__":true,"id":20943},"name":"onBlur"},"20993":{},"20994":{"timestamp":{"__isSmartRef__":true,"id":20995},"user":"lauritz","categories":[]},"20995":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (Central Europe Standard Time)"},"20996":{"varMapping":{"__isSmartRef__":true,"id":20997},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":20998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20997":{"this":{"__isSmartRef__":true,"id":20943}},"20998":{"timestamp":{"__isSmartRef__":true,"id":20999},"user":"lauritz","categories":[]},"20999":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (Central Europe Standard Time)"},"21000":{"submorphs":[{"__isSmartRef__":true,"id":21001}],"scripts":[],"id":"7185F08E-325C-4363-ABA8-223584D0861B","shape":{"__isSmartRef__":true,"id":21006},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21007},"lighterFill":{"__isSmartRef__":true,"id":21012},"label":{"__isSmartRef__":true,"id":21001},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":21017},"attributeConnections":[{"__isSmartRef__":true,"id":21018}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":21041},"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"],"owner":{"__isSmartRef__":true,"id":20075},"layout":{"__isSmartRef__":true,"id":21042},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":157,"_Rotation":0,"_Scale":0.994014980014994,"isPressed":false,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(65.4,-14.0)","_Position":"lively.pt(802.7,9.6)"},"21001":{"submorphs":[],"scripts":[],"id":"172AD169-7C16-49E5-8BAB-2865FE591C80","shape":{"__isSmartRef__":true,"id":21002},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":81.90968415810595,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":21000},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":21003}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":21005},"_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"],"_MinTextWidth":81.90968415810595,"_MinTextHeight":null,"__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"21002":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(85.9,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"21003":{"style":{"__isSmartRef__":true,"id":21004},"chunkOwner":{"__isSmartRef__":true,"id":21001},"storedString":"run","_id":"_380","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21004":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21005":{"morph":{"__isSmartRef__":true,"id":21001},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21006":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":21007},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(85.9,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"21007":{"stops":[{"__isSmartRef__":true,"id":21008},{"__isSmartRef__":true,"id":21009},{"__isSmartRef__":true,"id":21010},{"__isSmartRef__":true,"id":21011}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21008":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"21009":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21010":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21011":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"21012":{"stops":[{"__isSmartRef__":true,"id":21013},{"__isSmartRef__":true,"id":21014},{"__isSmartRef__":true,"id":21015},{"__isSmartRef__":true,"id":21016}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21013":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"21014":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21015":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21016":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"21017":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21018":{"sourceObj":{"__isSmartRef__":true,"id":21000},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20075},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":21019},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21019":{"submorphs":[{"__isSmartRef__":true,"id":21020}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21027},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","eventHandler":{"__isSmartRef__":true,"id":21030},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":21031},{"__isSmartRef__":true,"id":21032}],"con":{"__isSmartRef__":true,"id":21018},"showsMorphMenu":true,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21033},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"21020":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":21021},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","eventHandler":{"__isSmartRef__":true,"id":21026},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":21019},"_Rotation":-3.130064002485303,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"21021":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":21022},{"__isSmartRef__":true,"id":21023},{"__isSmartRef__":true,"id":21024},{"__isSmartRef__":true,"id":21025}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"21022":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21023":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21024":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21025":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21026":{"morph":{"__isSmartRef__":true,"id":21020},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21027":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":21028},{"__isSmartRef__":true,"id":21029}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(831.0,11.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"21028":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21029":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21030":{"morph":{"__isSmartRef__":true,"id":21019},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21031":{"morph":{"__isSmartRef__":true,"id":21019},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"21032":{"morph":{"__isSmartRef__":true,"id":21019},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":21020},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"21033":{"morphMenuItems":{"__isSmartRef__":true,"id":21034}},"21034":{"varMapping":{"__isSmartRef__":true,"id":21035},"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":21040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21035":{"this":{"__isSmartRef__":true,"id":21019},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21036}},"21036":{"$super":{"__isSmartRef__":true,"id":21037}},"21037":{"varMapping":{"__isSmartRef__":true,"id":21038},"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":21039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21038":{"obj":{"__isSmartRef__":true,"id":21019},"name":"morphMenuItems"},"21039":{},"21040":{},"21041":{"morph":{"__isSmartRef__":true,"id":21000},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21042":{"centeredHorizontal":false,"moveHorizontal":true},"21043":{"submorphs":[{"__isSmartRef__":true,"id":21044}],"scripts":[],"id":"D55C0A2C-AB82-4128-8B4A-7414FEBC11AC","shape":{"__isSmartRef__":true,"id":21049},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21050},"lighterFill":{"__isSmartRef__":true,"id":21055},"label":{"__isSmartRef__":true,"id":21044},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":21060},"attributeConnections":[{"__isSmartRef__":true,"id":21061}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":21084},"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"],"layout":{"__isSmartRef__":true,"id":21085},"owner":{"__isSmartRef__":true,"id":20075},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":158,"_Rotation":0,"_Scale":0.9880657804942089,"isPressed":false,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(62.6,-18.0)","_Position":"lively.pt(717.3,9.5)"},"21044":{"submorphs":[],"scripts":[],"id":"E2DBB33F-6E57-4BE9-978F-2A06F2E2020A","shape":{"__isSmartRef__":true,"id":21045},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":78.78258942335096,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":21043},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":21046}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":21048},"_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"],"_MinTextWidth":78.78258942335096,"_MinTextHeight":null,"__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"21045":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(82.8,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"21046":{"style":{"__isSmartRef__":true,"id":21047},"chunkOwner":{"__isSmartRef__":true,"id":21044},"storedString":"save","_id":"_381","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21047":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21048":{"morph":{"__isSmartRef__":true,"id":21044},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21049":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":21050},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(82.8,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"21050":{"stops":[{"__isSmartRef__":true,"id":21051},{"__isSmartRef__":true,"id":21052},{"__isSmartRef__":true,"id":21053},{"__isSmartRef__":true,"id":21054}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21051":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"21052":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21053":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21054":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"21055":{"stops":[{"__isSmartRef__":true,"id":21056},{"__isSmartRef__":true,"id":21057},{"__isSmartRef__":true,"id":21058},{"__isSmartRef__":true,"id":21059}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21056":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"21057":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21058":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21059":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"21060":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21061":{"sourceObj":{"__isSmartRef__":true,"id":21043},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20310},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21062":{"submorphs":[{"__isSmartRef__":true,"id":21063}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21070},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","eventHandler":{"__isSmartRef__":true,"id":21073},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":21074},{"__isSmartRef__":true,"id":21075}],"con":{"__isSmartRef__":true,"id":21061},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21076},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"21063":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":21064},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","eventHandler":{"__isSmartRef__":true,"id":21069},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":21062},"_Rotation":3.077607197692381,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(201.2,40.2)"},"21064":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":21065},{"__isSmartRef__":true,"id":21066},{"__isSmartRef__":true,"id":21067},{"__isSmartRef__":true,"id":21068}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"21065":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21066":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21067":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21068":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21069":{"morph":{"__isSmartRef__":true,"id":21063},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21070":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":21071},{"__isSmartRef__":true,"id":21072}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(200.0,9.0)","_Extent":"lively.pt(480.0,32.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"21071":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21072":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"21073":{"morph":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21074":{"morph":{"__isSmartRef__":true,"id":21062},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"21075":{"morph":{"__isSmartRef__":true,"id":21062},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":21063},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"21076":{"morphMenuItems":{"__isSmartRef__":true,"id":21077}},"21077":{"varMapping":{"__isSmartRef__":true,"id":21078},"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":21083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21078":{"this":{"__isSmartRef__":true,"id":21062},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21079}},"21079":{"$super":{"__isSmartRef__":true,"id":21080}},"21080":{"varMapping":{"__isSmartRef__":true,"id":21081},"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":21082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21081":{"obj":{"__isSmartRef__":true,"id":21062},"name":"morphMenuItems"},"21082":{},"21083":{},"21084":{"morph":{"__isSmartRef__":true,"id":21043},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21085":{"centeredHorizontal":false,"moveHorizontal":true},"21086":{"submorphs":[{"__isSmartRef__":true,"id":21087}],"scripts":[],"id":"2BA19FBD-A4A2-42BA-BE95-202475E444EF","shape":{"__isSmartRef__":true,"id":21092},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21093},"lighterFill":{"__isSmartRef__":true,"id":21098},"label":{"__isSmartRef__":true,"id":21087},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":21103},"attributeConnections":[{"__isSmartRef__":true,"id":21104}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":21105},"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"],"owner":{"__isSmartRef__":true,"id":20075},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":159,"_Rotation":0,"_Scale":0.9940149800149939,"isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(634.0,9.0)","distanceToDragEvent":"lively.pt(59.7,-12.5)"},"21087":{"submorphs":[],"scripts":[],"id":"D39EC3D1-A406-47A0-9199-AA1E124D64DE","shape":{"__isSmartRef__":true,"id":21088},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":75.8735578213487,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":21086},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":21089}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":21091},"_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"],"_MinTextWidth":75.8735578213487,"_MinTextHeight":null,"__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"21088":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(79.9,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"21089":{"style":{"__isSmartRef__":true,"id":21090},"chunkOwner":{"__isSmartRef__":true,"id":21087},"storedString":"Tests","_id":"_382","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21090":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21091":{"morph":{"__isSmartRef__":true,"id":21087},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21092":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":21093},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(79.9,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"21093":{"stops":[{"__isSmartRef__":true,"id":21094},{"__isSmartRef__":true,"id":21095},{"__isSmartRef__":true,"id":21096},{"__isSmartRef__":true,"id":21097}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21094":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"21095":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21096":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21097":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"21098":{"stops":[{"__isSmartRef__":true,"id":21099},{"__isSmartRef__":true,"id":21100},{"__isSmartRef__":true,"id":21101},{"__isSmartRef__":true,"id":21102}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21099":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"21100":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21101":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21102":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"21103":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21104":{"sourceObj":{"__isSmartRef__":true,"id":21086},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20075},"targetMethodName":"openPartTestRunner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21105":{"morph":{"__isSmartRef__":true,"id":21086},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21106":{"submorphs":[{"__isSmartRef__":true,"id":21107},{"__isSmartRef__":true,"id":21114}],"scripts":[],"id":"2B3ADF0D-4BB3-4853-BD58-E620C3738566","shape":{"__isSmartRef__":true,"id":21117},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21118},"lighterFill":{"__isSmartRef__":true,"id":21123},"label":{"__isSmartRef__":true,"id":21107},"name":"MagnifierButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":21128},"attributeConnections":[{"__isSmartRef__":true,"id":21131}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":21132},"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"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":20075},"highlightRectangle":{"__isSmartRef__":true,"id":21133},"isCopyMorphRef":true,"morphRefId":1,"#startLetters":"highlightRectangle","prevScroll":[0,0],"_Rotation":0,"_Scale":0.9920279440699439,"isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21214},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(464.5,8.5)","distanceToDragEvent":"lively.pt(37.9,-7.9)"},"21107":{"submorphs":[],"scripts":[],"id":"0A27610F-8483-4401-981A-F2A849F7B311","shape":{"__isSmartRef__":true,"id":21108},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":24,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":21106},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":21109},{"__isSmartRef__":true,"id":21111}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":21113},"_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"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":24,"_MinTextHeight":null,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"21108":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"21109":{"style":{"__isSmartRef__":true,"id":21110},"chunkOwner":{"__isSmartRef__":true,"id":21107},"storedString":"","_id":"_811","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21110":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21111":{"style":{"__isSmartRef__":true,"id":21112},"chunkOwner":{"__isSmartRef__":true,"id":21107},"storedString":"","_id":"_812","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21112":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21113":{"morph":{"__isSmartRef__":true,"id":21107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21114":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":21115},"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"],"id":"03113BB6-9EC2-4E54-9C4A-12FA49FA8E93","eventHandler":{"__isSmartRef__":true,"id":21116},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":21106},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","isCopyMorphRef":true,"morphRefId":161,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-3.0,0.0)","distanceToDragEvent":"lively.pt(39.9,-9.0)"},"21115":{"_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==","_NodeClass":["image"],"_NodeId":"29E543E0-AE93-493A-A694-FC1C330D0544","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(29.0,29.0)","_Padding":"lively.rect(0,0,0,0)"},"21116":{"morph":{"__isSmartRef__":true,"id":21114},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21117":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":21118},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"21118":{"stops":[{"__isSmartRef__":true,"id":21119},{"__isSmartRef__":true,"id":21120},{"__isSmartRef__":true,"id":21121},{"__isSmartRef__":true,"id":21122}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21119":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"21120":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21121":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21122":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"21123":{"stops":[{"__isSmartRef__":true,"id":21124},{"__isSmartRef__":true,"id":21125},{"__isSmartRef__":true,"id":21126},{"__isSmartRef__":true,"id":21127}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21124":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"21125":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21126":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21127":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"21128":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":21129}],"revisionOnLoad":154251,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21129":{"date":{"__isSmartRef__":true,"id":21130},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"21130":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (Central Europe Daylight Time)"},"21131":{"sourceObj":{"__isSmartRef__":true,"id":21106},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":21106},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21132":{"morph":{"__isSmartRef__":true,"id":21106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21133":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":21134},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":21135},"eventHandler":{"__isSmartRef__":true,"id":21176},"attributeConnections":[{"__isSmartRef__":true,"id":21177},{"__isSmartRef__":true,"id":21178},{"__isSmartRef__":true,"id":21179}],"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":21180},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"","eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","_Rotation":0,"_Scale":1.0060210561262526,"owner":null,"magnifierButton":{"__isSmartRef__":true,"id":21106},"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21185},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"21134":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.2597,"_BorderStyle":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(5000.0,3000.0)","_BorderColor":"Color.rgb(204,0,0)","_Fill":"Color.rgb(58,0,255)","_Padding":"lively.rect(0,0,0,0)"},"21135":{"partsSpaceName":"PartsBin/Tools","comment":"A rectangle which highlights the object under the first hand of the world","migrationLevel":4,"partName":"HighlightRectangle","changes":[{"__isSmartRef__":true,"id":21136},{"__isSmartRef__":true,"id":21138},{"__isSmartRef__":true,"id":21140},{"__isSmartRef__":true,"id":21142},{"__isSmartRef__":true,"id":21144},{"__isSmartRef__":true,"id":21146},{"__isSmartRef__":true,"id":21148},{"__isSmartRef__":true,"id":21150},{"__isSmartRef__":true,"id":21152},{"__isSmartRef__":true,"id":21154},{"__isSmartRef__":true,"id":21156},{"__isSmartRef__":true,"id":21158},{"__isSmartRef__":true,"id":21160},{"__isSmartRef__":true,"id":21162},{"__isSmartRef__":true,"id":21164},{"__isSmartRef__":true,"id":21166},{"__isSmartRef__":true,"id":21168},{"__isSmartRef__":true,"id":21170},{"__isSmartRef__":true,"id":21172},{"__isSmartRef__":true,"id":21174}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21136":{"date":{"__isSmartRef__":true,"id":21137},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"21137":{"isSerializedDate":true,"string":"Thu May 24 2012 17:04:54 GMT+0200 (Central Europe Daylight Time)"},"21138":{"date":{"__isSmartRef__":true,"id":21139},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"21139":{"isSerializedDate":true,"string":"Thu May 24 2012 16:57:13 GMT+0200 (Central Europe Daylight Time)"},"21140":{"date":{"__isSmartRef__":true,"id":21141},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"21141":{"isSerializedDate":true,"string":"Thu May 24 2012 16:23:11 GMT+0200 (Central Europe Daylight Time)"},"21142":{"date":{"__isSmartRef__":true,"id":21143},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"21143":{"isSerializedDate":true,"string":"Thu May 24 2012 14:46:08 GMT+0200 (Central Europe Daylight Time)"},"21144":{"date":{"__isSmartRef__":true,"id":21145},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"21145":{"isSerializedDate":true,"string":"Thu May 24 2012 14:39:50 GMT+0200 (Central Europe Daylight Time)"},"21146":{"date":{"__isSmartRef__":true,"id":21147},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"21147":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (Central Europe Daylight Time)"},"21148":{"date":{"__isSmartRef__":true,"id":21149},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"21149":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (Central Europe Daylight Time)"},"21150":{"date":{"__isSmartRef__":true,"id":21151},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"21151":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (Central Europe Standard Time)"},"21152":{"date":{"__isSmartRef__":true,"id":21153},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"21153":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (Central Europe Standard Time)"},"21154":{"date":{"__isSmartRef__":true,"id":21155},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"21155":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (Central Europe Standard Time)"},"21156":{"date":{"__isSmartRef__":true,"id":21157},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"21157":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (Central Europe Daylight Time)"},"21158":{"date":{"__isSmartRef__":true,"id":21159},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"21159":{"isSerializedDate":true,"string":"Thu May 24 2012 13:58:01 GMT+0200 (Central Europe Daylight Time)"},"21160":{"date":{"__isSmartRef__":true,"id":21161},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"21161":{"isSerializedDate":true,"string":"Thu May 24 2012 14:07:32 GMT+0200 (Central Europe Daylight Time)"},"21162":{"date":{"__isSmartRef__":true,"id":21163},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"21163":{"isSerializedDate":true,"string":"Thu May 24 2012 15:34:59 GMT+0200 (Central Europe Daylight Time)"},"21164":{"date":{"__isSmartRef__":true,"id":21165},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"21165":{"isSerializedDate":true,"string":"Thu May 24 2012 16:34:29 GMT+0200 (Central Europe Daylight Time)"},"21166":{"date":{"__isSmartRef__":true,"id":21167},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"21167":{"isSerializedDate":true,"string":"Thu May 24 2012 16:45:49 GMT+0200 (Central Europe Daylight Time)"},"21168":{"date":{"__isSmartRef__":true,"id":21169},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"21169":{"isSerializedDate":true,"string":"Thu May 24 2012 16:47:20 GMT+0200 (Central Europe Daylight Time)"},"21170":{"date":{"__isSmartRef__":true,"id":21171},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"21171":{"isSerializedDate":true,"string":"Thu May 24 2012 16:51:06 GMT+0200 (Central Europe Daylight Time)"},"21172":{"date":{"__isSmartRef__":true,"id":21173},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"21173":{"isSerializedDate":true,"string":"Thu May 24 2012 16:52:10 GMT+0200 (Central Europe Daylight Time)"},"21174":{"date":{"__isSmartRef__":true,"id":21175},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"21175":{"isSerializedDate":true,"string":"Thu May 24 2012 16:59:39 GMT+0200 (Central Europe Daylight Time)"},"21176":{"morph":{"__isSmartRef__":true,"id":21133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21177":{"sourceObj":{"__isSmartRef__":true,"id":21133},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":21133},"targetMethodName":"updateOnMove","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21178":{"sourceObj":{"__isSmartRef__":true,"id":21133},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":21106},"targetMethodName":"setTarget","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21179":{"sourceObj":{"__isSmartRef__":true,"id":21133},"sourceAttrName":"onKeyPress","targetObj":{"__isSmartRef__":true,"id":21106},"targetMethodName":"onRectangleKeyPress","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21180":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21181}},"21181":{"test01IsMorph":{"__isSmartRef__":true,"id":21182}},"21182":{"varMapping":{"__isSmartRef__":true,"id":21183},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":21184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21183":{"this":{"__isSmartRef__":true,"id":21180}},"21184":{},"21185":{"update":{"__isSmartRef__":true,"id":21186},"coveredMorph":{"__isSmartRef__":true,"id":21190},"updateOnMove":{"__isSmartRef__":true,"id":21194},"bringToFront":{"__isSmartRef__":true,"id":21198},"onKeyUp":{"__isSmartRef__":true,"id":21206}},"21186":{"varMapping":{"__isSmartRef__":true,"id":21187},"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":21188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21187":{"this":{"__isSmartRef__":true,"id":21133}},"21188":{"timestamp":{"__isSmartRef__":true,"id":21189},"user":"timfelgentreff","tags":[]},"21189":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:09:28 GMT+0200 (Central Europe Daylight Time)"},"21190":{"varMapping":{"__isSmartRef__":true,"id":21191},"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":21192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21191":{"this":{"__isSmartRef__":true,"id":21133}},"21192":{"timestamp":{"__isSmartRef__":true,"id":21193},"user":"timfelgentreff","tags":[]},"21193":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:40 GMT+0200 (Central Europe Daylight Time)"},"21194":{"varMapping":{"__isSmartRef__":true,"id":21195},"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":21196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21195":{"this":{"__isSmartRef__":true,"id":21133}},"21196":{"timestamp":{"__isSmartRef__":true,"id":21197},"user":"tessi","tags":[]},"21197":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:56:41 GMT+0200 (Central Europe Daylight Time)"},"21198":{"varMapping":{"__isSmartRef__":true,"id":21199},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000\n}","funcProperties":{"__isSmartRef__":true,"id":21204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21199":{"this":{"__isSmartRef__":true,"id":21133},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21200}},"21200":{"$super":{"__isSmartRef__":true,"id":21201}},"21201":{"varMapping":{"__isSmartRef__":true,"id":21202},"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":21203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21202":{"obj":{"__isSmartRef__":true,"id":21133},"name":"bringToFront"},"21203":{},"21204":{"timestamp":{"__isSmartRef__":true,"id":21205},"user":"lauritz","tags":[]},"21205":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:28:10 GMT+0200 (Central Europe Daylight Time)"},"21206":{"varMapping":{"__isSmartRef__":true,"id":21207},"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":21212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21207":{"this":{"__isSmartRef__":true,"id":21133},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21208}},"21208":{"$super":{"__isSmartRef__":true,"id":21209}},"21209":{"varMapping":{"__isSmartRef__":true,"id":21210},"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":21211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21210":{"obj":{"__isSmartRef__":true,"id":21133},"name":"onKeyUp"},"21211":{},"21212":{"timestamp":{"__isSmartRef__":true,"id":21213},"user":"tessi","tags":[]},"21213":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:10 GMT+0200 (Central Europe Daylight Time)"},"21214":{"onFire":{"__isSmartRef__":true,"id":21215},"onMouseMove":{"__isSmartRef__":true,"id":21219},"onMouseOut":{"__isSmartRef__":true,"id":21227},"reset":{"__isSmartRef__":true,"id":21235},"isTracking":{"__isSmartRef__":true,"id":21239},"isHighlighting":{"__isSmartRef__":true,"id":21243},"currentTarget":{"__isSmartRef__":true,"id":21247},"setTarget":{"__isSmartRef__":true,"id":21251},"currentTargetIsMultiSelection":{"__isSmartRef__":true,"id":21255},"newMultiSelection":{"__isSmartRef__":true,"id":21259},"newGreenRectangle":{"__isSmartRef__":true,"id":21263},"stopTracking":{"__isSmartRef__":true,"id":21267},"startTracking":{"__isSmartRef__":true,"id":21271},"stopHighlighting":{"__isSmartRef__":true,"id":21275},"startHighlighting":{"__isSmartRef__":true,"id":21279},"onRectangleKeyPress":{"__isSmartRef__":true,"id":21283}},"21215":{"varMapping":{"__isSmartRef__":true,"id":21216},"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":21217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21216":{"this":{"__isSmartRef__":true,"id":21106}},"21217":{"timestamp":{"__isSmartRef__":true,"id":21218},"user":"timfelgentreff","tags":[]},"21218":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:10:52 GMT+0200 (Central Europe Daylight Time)"},"21219":{"varMapping":{"__isSmartRef__":true,"id":21220},"source":"function onMouseMove(evt) {\n if (!this.isHighlighting()) {\n this.startHighlighting()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21220":{"this":{"__isSmartRef__":true,"id":21106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21221}},"21221":{"$super":{"__isSmartRef__":true,"id":21222}},"21222":{"varMapping":{"__isSmartRef__":true,"id":21223},"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":21224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21223":{"obj":{"__isSmartRef__":true,"id":21106},"name":"onMouseMove"},"21224":{},"21225":{"timestamp":{"__isSmartRef__":true,"id":21226},"user":"timfelgentreff","tags":[]},"21226":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:53:50 GMT+0200 (Central Europe Daylight Time)"},"21227":{"varMapping":{"__isSmartRef__":true,"id":21228},"source":"function onMouseOut() {\n this.stopHighlighting()\n}","funcProperties":{"__isSmartRef__":true,"id":21233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21228":{"this":{"__isSmartRef__":true,"id":21106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21229}},"21229":{"$super":{"__isSmartRef__":true,"id":21230}},"21230":{"varMapping":{"__isSmartRef__":true,"id":21231},"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":21232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21231":{"obj":{"__isSmartRef__":true,"id":21106},"name":"onMouseOut"},"21232":{},"21233":{"timestamp":{"__isSmartRef__":true,"id":21234},"user":"timfelgentreff","tags":[]},"21234":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:55:09 GMT+0200 (Central Europe Daylight Time)"},"21235":{"varMapping":{"__isSmartRef__":true,"id":21236},"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":21237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21236":{"this":{"__isSmartRef__":true,"id":21106}},"21237":{"timestamp":{"__isSmartRef__":true,"id":21238},"user":"tessi","tags":[]},"21238":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:54:48 GMT+0200 (Central Europe Daylight Time)"},"21239":{"varMapping":{"__isSmartRef__":true,"id":21240},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection\n}","funcProperties":{"__isSmartRef__":true,"id":21241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21240":{"this":{"__isSmartRef__":true,"id":21106}},"21241":{"timestamp":{"__isSmartRef__":true,"id":21242},"user":"lauritz","tags":["state"]},"21242":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:04:17 GMT+0200 (Central Europe Daylight Time)"},"21243":{"varMapping":{"__isSmartRef__":true,"id":21244},"source":"function isHighlighting() {\n return !!this.greenRectangle\n}","funcProperties":{"__isSmartRef__":true,"id":21245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21244":{"this":{"__isSmartRef__":true,"id":21106}},"21245":{"timestamp":{"__isSmartRef__":true,"id":21246},"user":"timfelgentreff","tags":["state"]},"21246":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:52:02 GMT+0200 (Central Europe Daylight Time)"},"21247":{"varMapping":{"__isSmartRef__":true,"id":21248},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":21249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21248":{"this":{"__isSmartRef__":true,"id":21106}},"21249":{"timestamp":{"__isSmartRef__":true,"id":21250},"user":"lauritz","tags":[]},"21250":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:26:02 GMT+0200 (Central Europe Daylight Time)"},"21251":{"varMapping":{"__isSmartRef__":true,"id":21252},"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":21253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21252":{"this":{"__isSmartRef__":true,"id":21106}},"21253":{"timestamp":{"__isSmartRef__":true,"id":21254},"user":"timfelgentreff","tags":["selecting"]},"21254":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:38:48 GMT+0200 (Central Europe Daylight Time)"},"21255":{"varMapping":{"__isSmartRef__":true,"id":21256},"source":"function currentTargetIsMultiSelection() {\n return !!(this.currentTarget() && this.currentTarget().__multi_selection_proxy__)\n}","funcProperties":{"__isSmartRef__":true,"id":21257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21256":{"this":{"__isSmartRef__":true,"id":21106}},"21257":{"timestamp":{"__isSmartRef__":true,"id":21258},"user":"tessi","tags":[]},"21258":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:31:43 GMT+0200 (Central Europe Daylight Time)"},"21259":{"varMapping":{"__isSmartRef__":true,"id":21260},"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 }\n\n Functions.own(ms).each(function (name) { ms[name].asScriptOf(ms, name) })\n return ms\n}","funcProperties":{"__isSmartRef__":true,"id":21261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21260":{"this":{"__isSmartRef__":true,"id":21106}},"21261":{"timestamp":{"__isSmartRef__":true,"id":21262},"user":"timfelgentreff","tags":[]},"21262":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:12:40 GMT+0200 (Central Europe Daylight Time)"},"21263":{"varMapping":{"__isSmartRef__":true,"id":21264},"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":21265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21264":{"this":{"__isSmartRef__":true,"id":21106}},"21265":{"timestamp":{"__isSmartRef__":true,"id":21266},"user":"timfelgentreff","tags":["hovering"]},"21266":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:50 GMT+0200 (Central Europe Daylight Time)"},"21267":{"varMapping":{"__isSmartRef__":true,"id":21268},"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":21269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21268":{"this":{"__isSmartRef__":true,"id":21106}},"21269":{"timestamp":{"__isSmartRef__":true,"id":21270},"user":"tessi","tags":[]},"21270":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:47:06 GMT+0200 (Central Europe Daylight Time)"},"21271":{"varMapping":{"__isSmartRef__":true,"id":21272},"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":21273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21272":{"this":{"__isSmartRef__":true,"id":21106}},"21273":{"timestamp":{"__isSmartRef__":true,"id":21274},"user":"tessi","tags":[]},"21274":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:45:33 GMT+0200 (Central Europe Daylight Time)"},"21275":{"varMapping":{"__isSmartRef__":true,"id":21276},"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":21277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21276":{"this":{"__isSmartRef__":true,"id":21106}},"21277":{"timestamp":{"__isSmartRef__":true,"id":21278},"user":"timfelgentreff","tags":["hovering"]},"21278":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:07:19 GMT+0200 (Central Europe Daylight Time)"},"21279":{"varMapping":{"__isSmartRef__":true,"id":21280},"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":21281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21280":{"this":{"__isSmartRef__":true,"id":21106}},"21281":{"timestamp":{"__isSmartRef__":true,"id":21282},"user":"tessi","tags":["hovering"]},"21282":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:30:59 GMT+0200 (Central Europe Daylight Time)"},"21283":{"varMapping":{"__isSmartRef__":true,"id":21284},"source":"function onRectangleKeyPress() {\n debugger\n}","funcProperties":{"__isSmartRef__":true,"id":21285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21284":{"this":{"__isSmartRef__":true,"id":21106}},"21285":{"timestamp":{"__isSmartRef__":true,"id":21286},"user":"tessi","tags":[]},"21286":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:40:02 GMT+0200 (Central Europe Daylight Time)"},"21287":{"submorphs":[{"__isSmartRef__":true,"id":21288},{"__isSmartRef__":true,"id":21293}],"scripts":[],"id":"7ABC4063-1E5D-467F-B567-41F88C59A439","shape":{"__isSmartRef__":true,"id":21296},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21297},"lighterFill":{"__isSmartRef__":true,"id":21302},"label":{"__isSmartRef__":true,"id":21288},"name":"NameGroupButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":21307},"attributeConnections":[{"__isSmartRef__":true,"id":21312}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":21313},"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"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":20075},"_Visible":false,"isCopyMorphRef":true,"morphRefId":162,"_Rotation":0,"_Scale":0.990044880209748,"isPressed":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21314},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(490.0,9.5)","distanceToDragEvent":"lively.pt(69.1,-14.0)"},"21288":{"submorphs":[],"scripts":[],"id":"F5A22BDE-D7C2-45C8-900A-E0945EC1603E","shape":{"__isSmartRef__":true,"id":21289},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":106.05027610358519,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":21287},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":21290}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":21292},"_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"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":106.05027610358519,"_MinTextHeight":null,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"21289":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(106.1,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"21290":{"style":{"__isSmartRef__":true,"id":21291},"chunkOwner":{"__isSmartRef__":true,"id":21288},"storedString":" Name group","_id":"_383","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21291":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21292":{"morph":{"__isSmartRef__":true,"id":21288},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21293":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":21294},"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"],"id":"7B21E074-D45C-48E6-AF92-1A3713791E33","eventHandler":{"__isSmartRef__":true,"id":21295},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":21287},"name":"document_rename.png","showsHalos":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isCopyMorphRef":true,"morphRefId":163,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-0.9,3.0)","distanceToDragEvent":"lively.pt(39.0,-10.0)"},"21294":{"_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==","_NodeClass":["morph","image"],"_NodeId":"morph-59b9c10f-5e4e-48be-ac11-e220b20ea1a9","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(16.0,16.0)","_Padding":"lively.rect(0,0,0,0)"},"21295":{"morph":{"__isSmartRef__":true,"id":21293},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21296":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":21297},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(106.1,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"21297":{"stops":[{"__isSmartRef__":true,"id":21298},{"__isSmartRef__":true,"id":21299},{"__isSmartRef__":true,"id":21300},{"__isSmartRef__":true,"id":21301}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21298":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"21299":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21300":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21301":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"21302":{"stops":[{"__isSmartRef__":true,"id":21303},{"__isSmartRef__":true,"id":21304},{"__isSmartRef__":true,"id":21305},{"__isSmartRef__":true,"id":21306}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21303":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"21304":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21305":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21306":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"21307":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":21308},{"__isSmartRef__":true,"id":21310}],"revisionOnLoad":170561,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21308":{"date":{"__isSmartRef__":true,"id":21309},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"21309":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (Central Europe Daylight Time)"},"21310":{"date":{"__isSmartRef__":true,"id":21311},"author":"huberthesse","message":"Restore scriptable button","id":"7DCED89C-C162-4A42-94E3-6B4D2CBA4932"},"21311":{"isSerializedDate":true,"string":"Tue Jun 12 2012 11:12:07 GMT+0200 (Central Europe Daylight Time)"},"21312":{"sourceObj":{"__isSmartRef__":true,"id":21287},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":21287},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21313":{"morph":{"__isSmartRef__":true,"id":21287},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21314":{"onFire":{"__isSmartRef__":true,"id":21315}},"21315":{"varMapping":{"__isSmartRef__":true,"id":21316},"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":21317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21316":{"this":{"__isSmartRef__":true,"id":21287}},"21317":{"timestamp":{"__isSmartRef__":true,"id":21318},"user":"timfelgentreff","tags":[]},"21318":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:04:34 GMT+0200 (Central Europe Daylight Time)"},"21319":{"submorphs":[{"__isSmartRef__":true,"id":21320}],"scripts":[],"id":"52C02A40-BD17-42F8-B199-0A1734C5B057","shape":{"__isSmartRef__":true,"id":21326},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21327},"lighterFill":{"__isSmartRef__":true,"id":21332},"label":{"__isSmartRef__":true,"id":21320},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":21337},"list":[],"eventHandler":{"__isSmartRef__":true,"id":21338},"owner":{"__isSmartRef__":true,"id":20075},"textString":"","selection":{"__isSmartRef__":true,"id":21339},"_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"],"#startLetters":"getBounds()","isCopyMorphRef":true,"morphRefId":153,"_Rotation":0,"_Scale":1.0000000000000002,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21345},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(237.2,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"21320":{"submorphs":[],"scripts":[],"id":"0CF5DA20-43C8-4BB7-B51E-240588026E20","shape":{"__isSmartRef__":true,"id":21321},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":21319},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":21322}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":21324}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":21325},"_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"],"_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"21321":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"21322":{"style":{"__isSmartRef__":true,"id":21323},"chunkOwner":{"__isSmartRef__":true,"id":21320},"storedString":"ObjectEditorPane","_id":"_384","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21323":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21324":{"sourceObj":{"__isSmartRef__":true,"id":21320},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":21319},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21325":{"morph":{"__isSmartRef__":true,"id":21320},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21326":{"_Fill":{"__isSmartRef__":true,"id":21327},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"21327":{"stops":[{"__isSmartRef__":true,"id":21328},{"__isSmartRef__":true,"id":21329},{"__isSmartRef__":true,"id":21330},{"__isSmartRef__":true,"id":21331}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21328":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"21329":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21330":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"21331":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"21332":{"stops":[{"__isSmartRef__":true,"id":21333},{"__isSmartRef__":true,"id":21334},{"__isSmartRef__":true,"id":21335},{"__isSmartRef__":true,"id":21336}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"21333":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"21334":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21335":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"21336":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"21337":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21338":{"morph":{"__isSmartRef__":true,"id":21319},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21339":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":21340},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":21341},"textChunks":[{"__isSmartRef__":true,"id":21342}],"eventHandler":{"__isSmartRef__":true,"id":21344},"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,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"21340":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"21341":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21342":{"style":{"__isSmartRef__":true,"id":21343},"chunkOwner":{"__isSmartRef__":true,"id":21339},"storedString":"","_id":"_813","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21343":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21344":{"morph":{"__isSmartRef__":true,"id":21339},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21345":{"createListMorph":{"__isSmartRef__":true,"id":21346},"removeList":{"__isSmartRef__":true,"id":21350},"reset":{"__isSmartRef__":true,"id":21354},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":21358},"onMouseDown":{"__isSmartRef__":true,"id":21362},"setTargetOfPane":{"__isSmartRef__":true,"id":21370},"setTargetToListSelection":{"__isSmartRef__":true,"id":21374},"onBlur":{"__isSmartRef__":true,"id":21378},"setTarget":{"__isSmartRef__":true,"id":21386},"setTargetOnSelection":{"__isSmartRef__":true,"id":21390},"getItems":{"__isSmartRef__":true,"id":21394},"createGroupTree":{"__isSmartRef__":true,"id":21398},"createWorldTree":{"__isSmartRef__":true,"id":21402},"highlightCurrentTarget":{"__isSmartRef__":true,"id":21406},"setHighlight":{"__isSmartRef__":true,"id":21410},"removeHighlight":{"__isSmartRef__":true,"id":21414}},"21346":{"varMapping":{"__isSmartRef__":true,"id":21347},"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":21348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21347":{"this":{"__isSmartRef__":true,"id":21319}},"21348":{"timestamp":{"__isSmartRef__":true,"id":21349},"user":"lauritz","tags":[]},"21349":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:49:08 GMT+0200 (Central Europe Daylight Time)"},"21350":{"varMapping":{"__isSmartRef__":true,"id":21351},"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":21352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21351":{"this":{"__isSmartRef__":true,"id":21319}},"21352":{"timestamp":{"__isSmartRef__":true,"id":21353},"user":"timfelgentreff","tags":[]},"21353":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:43:28 GMT+0200 (Central Europe Daylight Time)"},"21354":{"varMapping":{"__isSmartRef__":true,"id":21355},"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":21356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21355":{"this":{"__isSmartRef__":true,"id":21319}},"21356":{"timestamp":{"__isSmartRef__":true,"id":21357},"user":"lauritz","tags":[]},"21357":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (Central Europe Standard Time)"},"21358":{"varMapping":{"__isSmartRef__":true,"id":21359},"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":21360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21359":{"this":{"__isSmartRef__":true,"id":21319}},"21360":{"timestamp":{"__isSmartRef__":true,"id":21361},"user":"timfelgentreff","tags":[]},"21361":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:22:44 GMT+0200 (Central Europe Daylight Time)"},"21362":{"varMapping":{"__isSmartRef__":true,"id":21363},"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":21368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21363":{"this":{"__isSmartRef__":true,"id":21319},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21364}},"21364":{"$super":{"__isSmartRef__":true,"id":21365}},"21365":{"varMapping":{"__isSmartRef__":true,"id":21366},"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":21367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21366":{"obj":{"__isSmartRef__":true,"id":21319},"name":"onMouseDown"},"21367":{},"21368":{"timestamp":{"__isSmartRef__":true,"id":21369},"user":"timfelgentreff","tags":[]},"21369":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:03:45 GMT+0200 (Central Europe Daylight Time)"},"21370":{"varMapping":{"__isSmartRef__":true,"id":21371},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":21372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21371":{"this":{"__isSmartRef__":true,"id":21319}},"21372":{"timestamp":{"__isSmartRef__":true,"id":21373},"user":"lauritz","tags":[]},"21373":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (Central Europe Standard Time)"},"21374":{"varMapping":{"__isSmartRef__":true,"id":21375},"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":21376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21375":{"this":{"__isSmartRef__":true,"id":21319}},"21376":{"timestamp":{"__isSmartRef__":true,"id":21377},"user":"lauritz","tags":[]},"21377":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (Central Europe Standard Time)"},"21378":{"varMapping":{"__isSmartRef__":true,"id":21379},"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":21384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21379":{"this":{"__isSmartRef__":true,"id":21319},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21380}},"21380":{"$super":{"__isSmartRef__":true,"id":21381}},"21381":{"varMapping":{"__isSmartRef__":true,"id":21382},"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":21383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21382":{"obj":{"__isSmartRef__":true,"id":21319},"name":"onBlur"},"21383":{},"21384":{"timestamp":{"__isSmartRef__":true,"id":21385},"user":"timfelgentreff","tags":[]},"21385":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:01:12 GMT+0200 (Central Europe Daylight Time)"},"21386":{"varMapping":{"__isSmartRef__":true,"id":21387},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":21388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21387":{"this":{"__isSmartRef__":true,"id":21319}},"21388":{"timestamp":{"__isSmartRef__":true,"id":21389},"user":"lauritz","tags":[]},"21389":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (Central Europe Standard Time)"},"21390":{"varMapping":{"__isSmartRef__":true,"id":21391},"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":21392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21391":{"this":{"__isSmartRef__":true,"id":21319}},"21392":{"timestamp":{"__isSmartRef__":true,"id":21393},"user":"lauritz","tags":[]},"21393":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (Central Europe Standard Time)"},"21394":{"varMapping":{"__isSmartRef__":true,"id":21395},"source":"function getItems() {\n var worldEntry = this.createWorldTree(),\n groups = this.createGroupTree()\n\n return {children: [groups, worldEntry]};\n}","funcProperties":{"__isSmartRef__":true,"id":21396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21395":{"this":{"__isSmartRef__":true,"id":21319}},"21396":{"timestamp":{"__isSmartRef__":true,"id":21397},"user":"timfelgentreff","tags":[]},"21397":{"isSerializedDate":true,"string":"Mon Jun 18 2012 20:56:14 GMT+0200 (Central Europe Daylight Time)"},"21398":{"varMapping":{"__isSmartRef__":true,"id":21399},"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":21400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21399":{"this":{"__isSmartRef__":true,"id":21319}},"21400":{"timestamp":{"__isSmartRef__":true,"id":21401},"user":"timfelgentreff","tags":[]},"21401":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:27:07 GMT+0200 (Central Europe Daylight Time)"},"21402":{"varMapping":{"__isSmartRef__":true,"id":21403},"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":21404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21403":{"this":{"__isSmartRef__":true,"id":21319}},"21404":{"timestamp":{"__isSmartRef__":true,"id":21405},"user":"timfelgentreff","tags":[]},"21405":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:48:12 GMT+0200 (Central Europe Daylight Time)"},"21406":{"varMapping":{"__isSmartRef__":true,"id":21407},"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":21408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21407":{"this":{"__isSmartRef__":true,"id":21319}},"21408":{"timestamp":{"__isSmartRef__":true,"id":21409},"user":"timfelgentreff","tags":[]},"21409":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:41:55 GMT+0200 (Central Europe Daylight Time)"},"21410":{"varMapping":{"__isSmartRef__":true,"id":21411},"source":"function setHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":21412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21411":{"this":{"__isSmartRef__":true,"id":21319}},"21412":{"timestamp":{"__isSmartRef__":true,"id":21413},"user":"timfelgentreff","tags":[]},"21413":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:42:05 GMT+0200 (Central Europe Daylight Time)"},"21414":{"varMapping":{"__isSmartRef__":true,"id":21415},"source":"function removeHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":21416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21415":{"this":{"__isSmartRef__":true,"id":21319}},"21416":{"timestamp":{"__isSmartRef__":true,"id":21417},"user":"timfelgentreff","tags":[]},"21417":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:46:05 GMT+0200 (Central Europe Daylight Time)"},"21418":{"target":{"__isSmartRef__":true,"id":20075},"selector":"update","args":[],"stopped":true,"tickTime":500,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"21419":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(909.0,526.6)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"21420":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":21421}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21421":{"date":{"__isSmartRef__":true,"id":21422},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"21422":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (Central Europe Daylight Time)"},"21423":{"morph":{"__isSmartRef__":true,"id":20075},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21424":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"21425":{},"21426":{"displayInitialScript":{"__isSmartRef__":true,"id":21427},"displayJavaScriptSource":{"__isSmartRef__":true,"id":21431},"displaySourceForConnection":{"__isSmartRef__":true,"id":21435},"displaySourceForScript":{"__isSmartRef__":true,"id":21439},"generateSourceForConnection":{"__isSmartRef__":true,"id":21443},"generateSourceForScript":{"__isSmartRef__":true,"id":21447},"generateTargetCode":{"__isSmartRef__":true,"id":21451},"newConnection":{"__isSmartRef__":true,"id":21455},"newScript":{"__isSmartRef__":true,"id":21459},"reset":{"__isSmartRef__":true,"id":21463},"selectChangedContent":{"__isSmartRef__":true,"id":21467},"setTarget":{"__isSmartRef__":true,"id":21471},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":21475},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":21479},"updateLists":{"__isSmartRef__":true,"id":21483},"onShutdown":{"__isSmartRef__":true,"id":21487},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":21491},"update":{"__isSmartRef__":true,"id":21495},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":21499},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":21503},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":21507},"printTags":{"__isSmartRef__":true,"id":21515},"setTag":{"__isSmartRef__":true,"id":21519},"runScript":{"__isSmartRef__":true,"id":21523},"openPartTestRunner":{"__isSmartRef__":true,"id":21527}},"21427":{"varMapping":{"__isSmartRef__":true,"id":21428},"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":21429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21428":{"this":{"__isSmartRef__":true,"id":20075}},"21429":{"timestamp":{"__isSmartRef__":true,"id":21430},"user":"lauritz","tags":[]},"21430":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (Central Europe Standard Time)"},"21431":{"varMapping":{"__isSmartRef__":true,"id":21432},"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":21433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21432":{"this":{"__isSmartRef__":true,"id":20075}},"21433":{"timestamp":{"__isSmartRef__":true,"id":21434},"user":"lauritz","tags":[]},"21434":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21435":{"varMapping":{"__isSmartRef__":true,"id":21436},"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":21437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21436":{"this":{"__isSmartRef__":true,"id":20075}},"21437":{"timestamp":{"__isSmartRef__":true,"id":21438},"user":"conradcalmez","tags":[]},"21438":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (Central Europe Standard Time)"},"21439":{"varMapping":{"__isSmartRef__":true,"id":21440},"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":21441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21440":{"this":{"__isSmartRef__":true,"id":20075}},"21441":{"timestamp":{"__isSmartRef__":true,"id":21442},"user":"lauritz","tags":[]},"21442":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (Central Europe Standard Time)"},"21443":{"varMapping":{"__isSmartRef__":true,"id":21444},"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":21445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21444":{"this":{"__isSmartRef__":true,"id":20075}},"21445":{"timestamp":{"__isSmartRef__":true,"id":21446},"user":"lauritz","tags":[]},"21446":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21447":{"varMapping":{"__isSmartRef__":true,"id":21448},"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":21449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21448":{"this":{"__isSmartRef__":true,"id":20075}},"21449":{"timestamp":{"__isSmartRef__":true,"id":21450},"user":"tessi","tags":[]},"21450":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:17:15 GMT+0200 (Central Europe Daylight Time)"},"21451":{"varMapping":{"__isSmartRef__":true,"id":21452},"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":21453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21452":{"this":{"__isSmartRef__":true,"id":20075}},"21453":{"timestamp":{"__isSmartRef__":true,"id":21454},"user":"lauritz","tags":[]},"21454":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21455":{"varMapping":{"__isSmartRef__":true,"id":21456},"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":21457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21456":{"this":{"__isSmartRef__":true,"id":20075}},"21457":{"timestamp":{"__isSmartRef__":true,"id":21458},"user":"lauritz","tags":[]},"21458":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21459":{"varMapping":{"__isSmartRef__":true,"id":21460},"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":21461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21460":{"this":{"__isSmartRef__":true,"id":20075}},"21461":{"timestamp":{"__isSmartRef__":true,"id":21462},"user":"lauritz","tags":[]},"21462":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (Central Europe Standard Time)"},"21463":{"varMapping":{"__isSmartRef__":true,"id":21464},"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":21465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21464":{"this":{"__isSmartRef__":true,"id":20075}},"21465":{"timestamp":{"__isSmartRef__":true,"id":21466},"user":"conradcalmez","tags":[]},"21466":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (Central Europe Standard Time)"},"21467":{"varMapping":{"__isSmartRef__":true,"id":21468},"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":21473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21472":{"this":{"__isSmartRef__":true,"id":20075}},"21473":{"timestamp":{"__isSmartRef__":true,"id":21474},"user":"timfelgentreff","tags":[]},"21474":{"isSerializedDate":true,"string":"Mon Jun 18 2012 18:44:44 GMT+0200 (Central Europe Daylight Time)"},"21475":{"varMapping":{"__isSmartRef__":true,"id":21476},"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":21477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21476":{"this":{"__isSmartRef__":true,"id":20075}},"21477":{"timestamp":{"__isSmartRef__":true,"id":21478},"user":"lauritz","tags":[]},"21478":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21479":{"varMapping":{"__isSmartRef__":true,"id":21480},"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":21481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21480":{"this":{"__isSmartRef__":true,"id":20075}},"21481":{"timestamp":{"__isSmartRef__":true,"id":21482},"user":"lauritz","tags":[]},"21482":{"isSerializedDate":true,"string":"Thu Jun 07 2012 15:55:01 GMT+0200 (Central Europe Daylight Time)"},"21483":{"varMapping":{"__isSmartRef__":true,"id":21484},"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":21485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21484":{"this":{"__isSmartRef__":true,"id":20075}},"21485":{"timestamp":{"__isSmartRef__":true,"id":21486},"user":"lauritz","tags":[]},"21486":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21487":{"varMapping":{"__isSmartRef__":true,"id":21488},"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":21489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21488":{"this":{"__isSmartRef__":true,"id":20075}},"21489":{"timestamp":{"__isSmartRef__":true,"id":21490},"user":"lauritz","tags":[]},"21490":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21491":{"varMapping":{"__isSmartRef__":true,"id":21492},"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":21493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21492":{"this":{"__isSmartRef__":true,"id":20075}},"21493":{"timestamp":{"__isSmartRef__":true,"id":21494},"user":"lauritz","tags":[]},"21494":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:52:56 GMT+0100 (Central Europe Standard Time)"},"21495":{"varMapping":{"__isSmartRef__":true,"id":21496},"source":"function update() {\n // alias to conform to convention\n this.updateLists();\n}","funcProperties":{"__isSmartRef__":true,"id":21497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21496":{"this":{"__isSmartRef__":true,"id":20075}},"21497":{"timestamp":{"__isSmartRef__":true,"id":21498},"user":"lauritz","tags":[]},"21498":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21499":{"varMapping":{"__isSmartRef__":true,"id":21500},"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":21501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21500":{"this":{"__isSmartRef__":true,"id":20075}},"21501":{"timestamp":{"__isSmartRef__":true,"id":21502},"user":"lauritz","tags":[]},"21502":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:03:17 GMT+0100 (Central Europe Standard Time)"},"21503":{"varMapping":{"__isSmartRef__":true,"id":21504},"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":21505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21504":{"this":{"__isSmartRef__":true,"id":20075}},"21505":{"timestamp":{"__isSmartRef__":true,"id":21506},"user":"lauritz","tags":[]},"21506":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:41:00 GMT+0100 (Central Europe Standard Time)"},"21507":{"varMapping":{"__isSmartRef__":true,"id":21508},"source":"function copyToPartsBinWithUserRequest() {\n this.owner.copyToPartsBinWithUserRequest();\n}","funcProperties":{"__isSmartRef__":true,"id":21513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21508":{"this":{"__isSmartRef__":true,"id":20075},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21509}},"21509":{"$super":{"__isSmartRef__":true,"id":21510}},"21510":{"varMapping":{"__isSmartRef__":true,"id":21511},"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":21512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21511":{"obj":{"__isSmartRef__":true,"id":20075},"name":"copyToPartsBinWithUserRequest"},"21512":{},"21513":{"timestamp":{"__isSmartRef__":true,"id":21514},"user":"lauritz","tags":[]},"21514":{"isSerializedDate":true,"string":"Thu Nov 17 2011 20:04:19 GMT+0100 (Central Europe Standard Time)"},"21515":{"varMapping":{"__isSmartRef__":true,"id":21516},"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":21517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21516":{"this":{"__isSmartRef__":true,"id":20075}},"21517":{"timestamp":{"__isSmartRef__":true,"id":21518},"user":"lauritz","tags":[]},"21518":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:33:20 GMT+0100 (Central Europe Standard Time)"},"21519":{"varMapping":{"__isSmartRef__":true,"id":21520},"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":21521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21520":{"this":{"__isSmartRef__":true,"id":20075}},"21521":{"timestamp":{"__isSmartRef__":true,"id":21522},"user":"lauritz","tags":[]},"21522":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:35 GMT+0100 (Central Europe Standard Time)"},"21523":{"varMapping":{"__isSmartRef__":true,"id":21524},"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":21525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21524":{"this":{"__isSmartRef__":true,"id":20075}},"21525":{"timestamp":{"__isSmartRef__":true,"id":21526},"user":"conradcalmez","tags":[]},"21526":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:53:29 GMT+0100 (Central Europe Standard Time)"},"21527":{"varMapping":{"__isSmartRef__":true,"id":21528},"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":21529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21528":{"this":{"__isSmartRef__":true,"id":20075}},"21529":{"timestamp":{"__isSmartRef__":true,"id":21530},"user":"jenslincke","tags":[]},"21530":{"isSerializedDate":true,"string":"Wed Mar 14 2012 15:48:07 GMT+0100 (Central Europe Standard Time)"},"21531":{"sourceObj":{"__isSmartRef__":true,"id":20072},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":20075},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":21532},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21532":{"source":{"__isSmartRef__":true,"id":20072},"target":{"__isSmartRef__":true,"id":20075}},"21533":{"resizeHeight":false,"moveVertical":true},"21534":{"morph":{"__isSmartRef__":true,"id":20072},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21535":{"preselectItem":{"__isSmartRef__":true,"id":21536}},"21536":{"varMapping":{"__isSmartRef__":true,"id":21537},"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":21538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21537":{"this":{"__isSmartRef__":true,"id":20072}},"21538":{"timestamp":{"__isSmartRef__":true,"id":21539},"user":"lauritz"},"21539":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (Central Europe Standard Time)"},"21540":{},"21541":{"displayInitialScript":{"__isSmartRef__":true,"id":21542},"displayJavaScriptSource":{"__isSmartRef__":true,"id":21546},"displaySourceForConnection":{"__isSmartRef__":true,"id":21550},"displaySourceForScript":{"__isSmartRef__":true,"id":21554},"generateSourceForConnection":{"__isSmartRef__":true,"id":21558},"generateSourceForScript":{"__isSmartRef__":true,"id":21562},"generateTargetCode":{"__isSmartRef__":true,"id":21566},"newConnection":{"__isSmartRef__":true,"id":21570},"newScript":{"__isSmartRef__":true,"id":21574},"reset":{"__isSmartRef__":true,"id":21578},"selectChangedContent":{"__isSmartRef__":true,"id":21582},"setTarget":{"__isSmartRef__":true,"id":21586},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":21590},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":21594},"updateLists":{"__isSmartRef__":true,"id":21598},"onShutdown":{"__isSmartRef__":true,"id":21602},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":21606},"update":{"__isSmartRef__":true,"id":21610},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":21614},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":21618},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":21622},"printTags":{"__isSmartRef__":true,"id":21630},"setTag":{"__isSmartRef__":true,"id":21634},"runScript":{"__isSmartRef__":true,"id":21638},"openPartTestRunner":{"__isSmartRef__":true,"id":21642}},"21542":{"varMapping":{"__isSmartRef__":true,"id":21543},"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":21544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21543":{"this":{"__isSmartRef__":true,"id":19379}},"21544":{"timestamp":{"__isSmartRef__":true,"id":21545},"user":"lauritz","tags":[]},"21545":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (Central Europe Standard Time)"},"21546":{"varMapping":{"__isSmartRef__":true,"id":21547},"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":21548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21547":{"this":{"__isSmartRef__":true,"id":19379}},"21548":{"timestamp":{"__isSmartRef__":true,"id":21549},"user":"lauritz","tags":[]},"21549":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21550":{"varMapping":{"__isSmartRef__":true,"id":21551},"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":21552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21551":{"this":{"__isSmartRef__":true,"id":19379}},"21552":{"timestamp":{"__isSmartRef__":true,"id":21553},"user":"conradcalmez","tags":[]},"21553":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (Central Europe Standard Time)"},"21554":{"varMapping":{"__isSmartRef__":true,"id":21555},"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":21556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21555":{"this":{"__isSmartRef__":true,"id":19379}},"21556":{"timestamp":{"__isSmartRef__":true,"id":21557},"user":"lauritz","tags":[]},"21557":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (Central Europe Standard Time)"},"21558":{"varMapping":{"__isSmartRef__":true,"id":21559},"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":21560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21559":{"this":{"__isSmartRef__":true,"id":19379}},"21560":{"timestamp":{"__isSmartRef__":true,"id":21561},"user":"lauritz","tags":[]},"21561":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21562":{"varMapping":{"__isSmartRef__":true,"id":21563},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\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":21564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21563":{"this":{"__isSmartRef__":true,"id":19379}},"21564":{"timestamp":{"__isSmartRef__":true,"id":21565},"user":"lauritz","tags":[]},"21565":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:32:42 GMT+0100 (Central Europe Standard Time)"},"21566":{"varMapping":{"__isSmartRef__":true,"id":21567},"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":21568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21567":{"this":{"__isSmartRef__":true,"id":19379}},"21568":{"timestamp":{"__isSmartRef__":true,"id":21569},"user":"lauritz","tags":[]},"21569":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21570":{"varMapping":{"__isSmartRef__":true,"id":21571},"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":21572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21571":{"this":{"__isSmartRef__":true,"id":19379}},"21572":{"timestamp":{"__isSmartRef__":true,"id":21573},"user":"lauritz","tags":[]},"21573":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (Central Europe Standard Time)"},"21574":{"varMapping":{"__isSmartRef__":true,"id":21575},"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":21576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21575":{"this":{"__isSmartRef__":true,"id":19379}},"21576":{"timestamp":{"__isSmartRef__":true,"id":21577},"user":"lauritz","tags":[]},"21577":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (Central Europe Standard Time)"},"21578":{"varMapping":{"__isSmartRef__":true,"id":21579},"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":21580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21579":{"this":{"__isSmartRef__":true,"id":19379}},"21580":{"timestamp":{"__isSmartRef__":true,"id":21581},"user":"conradcalmez","tags":[]},"21581":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (Central Europe Standard Time)"},"21582":{"varMapping":{"__isSmartRef__":true,"id":21583},"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