","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":"