<scene name="BusFence" numVictoryConditions="1" numSteps="5">
	<inventory>
		<object name="Icepick" memberName="HUD_icepick" acquired="0" visible="0"/>
		<object name="Pipe" memberName="HUD_pipe" acquired="0" visible="0"/>
		<object name="Shovel" memberName="HUD_shovel" acquired="0" visible="0"/>
		<object name="Spike" memberName="HUD_spike" acquired="0" visible="0"/>
	</inventory>
	
	<finalStates>
		<finalState objName="GarbageWindow" state="done"/>
		<finalState objName="DumpsterWindow" state="done"/>
		<finalState objName="Manhole" state="done"/>
	</finalStates>
	
	<slidersMap>
		<slider layerName="slider_L40_Debris" id="bridge18"/>
	</slidersMap>
	
	<animations>
		<animation name="DavidAnim" type="once" zpos="200" crossfade="1">
			<frames>
				<frame memberName="d1_anim" frameDelay="500"/>
				<frame memberName="d2_anim" frameDelay="500"/>
				<frame memberName="d3_anim" frameDelay="500"/>
			</frames>
		</animation>
	<!--
		<animation name="DumpsterFireAnim" type="loop" xpos="942" ypos="283" zpos="6" crossfade="1">
			<frames>
				<frame memberName="Anim_deadendloop__00000.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00004.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00008.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00012.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00016.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00020.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00024.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00028.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00032.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00036.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00040.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00044.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00048.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00052.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00056.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00060.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00064.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00068.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00072.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00076.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00080.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00084.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00088.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00092.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00096.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00100.png_anim" frameDelay="120"/>
				<frame memberName="Anim_deadendloop__00104.png_anim" frameDelay="120"/>
			</frames>
		</animation>
	
		<animation name="ManholeSteamAnim" type="loop" zpos="6">
			<frames>
				<frame memberName="Steam_loop_anim_ 02.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 04.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 06.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 08.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 10.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 12.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 14.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 16.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 18.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 20.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 22.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 24.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 26.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 28.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 30.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 32.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 34.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 36.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 38.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 40.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 42.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 44.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 46.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 48.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 50.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 52.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 54.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 56.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 58.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 60.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 62.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 64.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 66.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 68.png" frameDelay="80"/>
				<frame memberName="Steam_loop_anim_ 70.png" frameDelay="80"/>
			</frames>
		</animation>
	-->
	</animations>
	
	<zoomWindows>
		<zoomWindow name="GarbageWindow" file="ZoomWindows\DeadEnd_Z1.dir" visible="0" hotspot="point(577, 410)"/>
		<zoomWindow name="DumpsterWindow" file="ZoomWindows\DeadEnd_Z2.dir" visible="0" hotspot="point(797, 395)"/>
	</zoomWindows>
	
	<challengeWindows>
		<challengeWindow name="ChallengeWindow" challenge="level_25_challenge" reward="level_25_reward" file="ZoomWindows\DeadEnd_ZC.dir">
			<clickStrategy type="rect" left="255" top="25" right="715" bottom="460"/>
		</challengeWindow>
	</challengeWindows>
	
	<objects>
		<object name="GarbageWindow">
			<clickStrategy type="rect" left="520" top="340" right="635" bottom="480"/>
			<states>
				<state name="notAvailable">
					<onStateEnter>
						<!--<action target="Scene" name="StartAnimation" param="DumpsterFireAnim"/>-->
						<action target="Scene" name="PlaySound" param="S-30"/>
						<!--<action target="Scene" name="PlaySound" param="FireLoopSnd"/>-->
						<!--<action target="Scene" name="StartAnimation" param="ManholeSteamAnim"/>-->
					</onStateEnter>
					
					<onEvent name="reveal">
						<action target="Scene" name="RevealHotspot" param="GarbageWindow"/>
						<action target="GarbageWindow" name="SetState" param="clickable"/>
					</onEvent>
				</state>
				
				<state name="clickable">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="GarbageWindow"/>	
					</onClick>
				</state>
				
				<state name="done">
				</state>
			</states>
		</object>
		
		<object name="DumpsterWindow">
			<clickStrategy type="rect" left="670" top="350" right="925" bottom="440"/>
			<states>
				<state name="notAvailable">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="container opened"/>
						<action target="Scene" name="HideLayer" param="container opened shadow"/>
						<action target="Scene" name="HideLayer" param="container showel"/>
					</onStateEnter>
					
					<onEvent name="reveal">
						<action target="Scene" name="RevealHotspot" param="DumpsterWindow"/>
						<action target="DumpsterWindow" name="SetState" param="closed"/>
					</onEvent>
				</state>
				
				<state name="closed">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="puzzle"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="dumpster_click"/>
					</onClick>
					
					<onUseObject name="Shovel">
						<action target="Scene" name="RemoveFromInventory" param="Shovel"/>
						<action target="DumpsterWindow" name="SetState" param="clickable"/>
						<action target="Scene" name="PlaySound" param="p-107"/>
						<action target="Scene" name="StepComplete" param=""/>
					</onUseObject>
				</state>
				
				<state name="clickable">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="container closed"/>
						<action target="Scene" name="ShowLayer" param="container opened"/>
						<action target="Scene" name="ShowLayer" param="container opened shadow"/>
						<action target="Scene" name="ShowLayer" param="container showel"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="DumpsterWindow"/>	
					</onClick>
				</state>
				
				<state name="done">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="container closed"/>
						<action target="Scene" name="ShowLayer" param="container opened"/>
						<action target="Scene" name="ShowLayer" param="container opened shadow"/>
						<action target="Scene" name="ShowLayer" param="container showel"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Manhole">
			<clickStrategy type="alpha" layer="hedge closed"/>
			<states>
				<state name="closed">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="hedge01"/>
						<action target="Scene" name="HideLayer" param="hedge02"/>
						<action target="Scene" name="HideLayer" param="hedge03"/>
						<action target="Scene" name="HideLayer" param="hedge04"/>
						<action target="Scene" name="HideLayer" param="hedge ok"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="puzzle"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="manhole_click"/>
						<action target="GarbageWindow" name="SendEvent" param="reveal"/>
						<action target="DumpsterWindow" name="SendEvent" param="reveal"/>
					</onClick>
					
					<onUseObject name="Spike">
						<action target="Scene" name="RemoveFromInventory" param="Spike"/>
						<action target="Manhole" name="SetState" param="withSpike"/>
						<action target="Scene" name="StepComplete" param=""/>
					</onUseObject>
				</state>
				
				<state name="withSpike">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="hedge closed"/>
						<action target="Scene" name="ShowLayer" param="hedge01"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="puzzle"/>
					</onMouseOver>
					
					<onUseObject name="Pipe">
						<action target="Scene" name="RemoveFromInventory" param="Pipe"/>
						<action target="Manhole" name="SetState" param="withPipe"/>
						<action target="Scene" name="PlaySound" param="p-108"/>
						<action target="Scene" name="StepComplete" param=""/>
					</onUseObject>
				</state>
				
				<state name="withPipe">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="hedge01"/>
						<action target="Scene" name="ShowLayer" param="hedge02"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Manhole" name="SetState" param="ajar"/>
						<action target="Scene" name="PlaySound" param="p-109"/>
						<action target="Scene" name="StepComplete" param=""/>
					</onClick>
				</state>
				
				<state name="ajar">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="hedge02"/>
						<action target="Scene" name="ShowLayer" param="hedge03"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="puzzle"/>
					</onMouseOver>
					
					<onUseObject name="Icepick">
						<action target="Scene" name="RemoveFromInventory" param="Icepick"/>
						<action target="Manhole" name="SetState" param="removing"/>
						<action target="Scene" name="StepComplete" param=""/>
					</onUseObject>
				</state>
				
				<state name="removing">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="hedge03"/>
						<action target="Scene" name="ShowLayer" param="hedge04"/>
						<action target="Scene" name="PlaySound" param="p-110" delay="800"/>
						<action target="Manhole" name="SetState" param="open" delay="1400"/>
					</onStateEnter>
				</state>
				
				<state name="open">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="hedge04"/>
						<action target="Scene" name="ShowLayer" param="hedge ok"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="exit"/>
					</onMouseOver>
					
					<onClick>
						<action target="Manhole" name="SetState" param="ddone"/>
						<action target="Scene" name="StartAnimation" param="DavidAnim"/>
						<action target="Scene" name="RegisterVictoryCondition" param="" delay="1500"/>
					</onClick>
				</state>
				
				<state name="ddone">
				</state>
				
				<state name="done">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="hedge closed"/>
						<action target="Scene" name="HideLayer" param="hedge01"/>
						<action target="Scene" name="HideLayer" param="hedge02"/>
						<action target="Scene" name="HideLayer" param="hedge03"/>
						<action target="Scene" name="HideLayer" param="hedge04"/>
						<action target="Scene" name="ShowLayer" param="hedge ok"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="exit"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ReplayExit" param=""/>
					</onClick>
				</state>
			</states>
		</object>
	</objects>
</scene>