<scene name="Room29" numVictoryConditions="1">
	<inventory>
		<object name="Bucket" memberName="HUD_bucketEmpty" acquired="0" visible="1">
			<onUseObject name="WetRag">
				<action target="Scene" name="RemoveFromInventory" param="Bucket"/>
				<action target="Scene" name="RemoveFromInventory" param="WetRag"/>
				<action target="Scene" name="AddToInventory" param="FullBucket"/>
				<action target="Scene" name="PlaySound" param="use_wet_rag_on_bucket"/>
			</onUseObject>
		</object>
		<object name="Beam" memberName="HUD_beam" acquired="0" visible="1"/>		
		<object name="Shovel" memberName="HUD_shovel" acquired="0" visible="1"/>
		<object name="Rag" memberName="HUD_rag" acquired="0" visible="1"/>
		<object name="Flask" memberName="HUD_oilFlaskFull" acquired="0" visible="1">
			<onUseObject name="Can">
				<action target="Scene" name="RemoveFromInventory" param="Flask"/>
				<action target="Scene" name="RemoveFromInventory" param="Can"/>
				<action target="Scene" name="AddToInventory" param="FullCan"/>
				<action target="Scene" name="PlaySound" param="use_oil_flask_on_oil_can"/>
			</onUseObject>
		</object>
		<object name="Can" memberName="HUD_oilCanEmpty" acquired="0" visible="1">
			<onUseObject name="Flask">
				<action target="Scene" name="RemoveFromInventory" param="Flask"/>
				<action target="Scene" name="RemoveFromInventory" param="Can"/>
				<action target="Scene" name="AddToInventory" param="FullCan"/>
				<action target="Scene" name="PlaySound" param="use_oil_flask_on_oil_can"/>
			</onUseObject>
		</object>
		<object name="FullCan" memberName="HUD_oilCanFull" acquired="0" visible="0"/>		
		<object name="ShovelWithCoal" memberName="HUD_shovelWithCoal" acquired="0" visible="0"/>
		<object name="WetRag" memberName="HUD_rag" acquired="0" visible="0">
			<onUseObject name="Bucket">
				<action target="Scene" name="RemoveFromInventory" param="Bucket"/>
				<action target="Scene" name="RemoveFromInventory" param="WetRag"/>
				<action target="Scene" name="AddToInventory" param="FullBucket"/>
				<action target="Scene" name="PlaySound" param="use_wet_rag_on_bucket"/>
			</onUseObject>
		</object>
		<object name="FullBucket" memberName="HUD_bucketFull" acquired="0" visible="0"/>
	</inventory>
	
	<finalStates>
		<finalState objName="Bucket" state="acquired"/>
		<finalState objName="Beam" state="acquired"/>
		<finalState objName="Shovel" state="acquired"/>
		<finalState objName="OilCase" state="empty"/>
		<finalState objName="Rag" state="acquired"/>
		<finalState objName="EngineBeam" state="withBeam"/>
		<finalState objName="Coal" state="noCoal"/>
		<finalState objName="FuelArea" state="withCoal"/>
		<finalState objName="Pool1" state="dry"/>
		<finalState objName="Pool2" state="dry"/>
		<finalState objName="Pool3" state="dry"/>
		<finalState objName="WaterHood" state="withWater"/>
		<finalState objName="Wheel" state="withOil"/>
		<finalState objName="Lever" state="engineRunning"/>
		<finalState objName="Door" state="smashed"/>
	</finalStates>
	
	<zoomWindows>
		<zoomWindow name="OilCaseWindow" file="ZoomWindows\Room29_OilCaseWindow.dir" x="570" y="380" visible="0"/>
		<zoomWindow name="FuelAreaWindow" file="ZoomWindows\Room29_FuelAreaWindow.dir" x="175" y="462" visible="0"/>
		<zoomWindow name="WaterHoodWindow" file="ZoomWindows\Room29_WaterHoodWindow.dir" x="207" y="327" visible="0"/>
		<zoomWindow name="WheelWindow" file="ZoomWindows\Room29_WheelWindow.dir" x="300" y="270" visible="0"/>
	</zoomWindows>
	
	<locks>
		<lock name="EngineLock">
			<parts>
				<part name="Coal" state="locked"/>
				<part name="Water" state="locked"/>
				<part name="Oil" state="locked"/>
				<part name="Beam" state="locked"/>
			</parts>
			<onUnlocked>
				<action target="Lever" name="SendEvent" param="engineComplete"/>
			</onUnlocked>
		</lock>		
	</locks>
	
	<animations>
		<animation name="WheelAnim" type="loop">
			<frames>
				<frame memberName="WheelMotion1_anim" frameDelay="4"/>
				<frame memberName="WheelMotion2_anim" frameDelay="4"/>
				<frame memberName="WheelMotion3_anim" frameDelay="4"/>
				<frame memberName="WheelMotion4_anim" frameDelay="4"/>
			</frames>
		</animation>
		
		<animation name="BeamAnim" type="loop">
			<frames>
				<frame memberName="BeamMotion1_anim" frameDelay="20"/>
				<frame memberName="BeamMotion2_anim" frameDelay="8"/>
			</frames>
		</animation>
		
		<animation name="DoorAnim" type="once" xpos="468" ypos="345">
			<frames>
				<frame memberName="wood1_anim" frameDelay="4"/>
				<frame memberName="wood2_anim" frameDelay="4"/>
				<frame memberName="wood3_anim" frameDelay="4"/>
				<frame memberName="wood4_anim" frameDelay="4"/>
				<frame memberName="wood5_anim" frameDelay="4"/>
				<frame memberName="wood6_anim" frameDelay="4"/>
				<frame memberName="wood7_anim" frameDelay="4"/>
				<frame memberName="wood8_anim" frameDelay="4"/>
				<frame memberName="wood9_anim" frameDelay="4"/>
				<frame memberName="wood10_anim" frameDelay="4"/>
				<frame memberName="wood11_anim" frameDelay="4"/>
				<frame memberName="wood12_anim" frameDelay="4"/>
				<frame memberName="wood13_anim" frameDelay="4"/>
				<frame memberName="wood14_anim" frameDelay="4"/>
				<frame memberName="wood15_anim" frameDelay="4"/>
				<frame memberName="wood16_anim" frameDelay="4"/>
				<frame memberName="wood17_anim" frameDelay="4"/>
				<frame memberName="wood18_anim" frameDelay="4"/>
				<frame memberName="wood19_anim" frameDelay="4"/>
				<frame memberName="wood20_anim" frameDelay="4"/>
				<frame memberName="wood21_anim" frameDelay="4"/>
				<frame memberName="wood22_anim" frameDelay="4"/>
				<frame memberName="wood23_anim" frameDelay="4"/>
				<frame memberName="wood24_anim" frameDelay="4"/>
				<frame memberName="wood25_anim" frameDelay="4"/>
				<frame memberName="wood26_anim" frameDelay="4"/>
				<frame memberName="wood27_anim" frameDelay="4"/>
				<frame memberName="wood28_anim" frameDelay="4"/>
				<frame memberName="wood29_anim" frameDelay="4"/>
				<frame memberName="wood30_anim" frameDelay="4"/>
			</frames>
		</animation>		
	</animations>
	
	<objects>
		<object name="Bucket">
			<clickStrategy type="alpha" layer="Bucket"/>
			<states>
				<state name="clickable">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Bucket"/>
						<action target="Scene" name="PlaySound" param="indoor_small"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
						
					<onClick>
						<action target="Scene" name="AddToInventory" param="Bucket"/>
						<action target="Bucket" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_bucket"/>
					</onClick>						
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Bucket"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Beam">
			<clickStrategy type="alpha" layer="Beam"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Beam"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Beam"/>
						<action target="Beam" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="Item_Pickup_Wood_big"/>
					</onClick>						
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Beam"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Shovel">
			<clickStrategy type="alpha" layer="Shovel"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Shovel"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Shovel"/>
						<action target="Shovel" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_little_shovel"/>
					</onClick>						
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Shovel"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="OilCase">
			<clickStrategy type="rect" left="520" top="366" right="620" bottom="415"/>
			<states>
				<state name="full">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="OilFlask"/>
						<action target="Scene" name="HideLayer" param="OilCan"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick><action target="Scene" name="OpenWindow" param="OilCaseWindow"/></onClick>
					
					<onEvent name="tookCan">
						<action target="OilCase" name="SetState" param="noCan"/>
						<action target="Scene" name="PlaySound" param="Item_Pickup_Metal_small"/>
					</onEvent>
					
					<onEvent name="tookFlask">
						<action target="OilCase" name="SetState" param="noFlask"/>
						<action target="Scene" name="PlaySound" param="use_shovel_on_coal_pile"/>
					</onEvent>
				</state>
				
				<state name="noCan">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="OilFlask"/>
						<action target="Scene" name="ShowLayer" param="OilCan"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick><action target="Scene" name="OpenWindow" param="OilCaseWindow"/></onClick>
					
					<onEvent name="tookFlask">
						<action target="OilCase" name="SetState" param="empty"/>
						<action target="Scene" name="PlaySound" param="use_shovel_on_coal_pile"/>
					</onEvent>
				</state>
				
				<state name="noFlask">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="OilFlask"/>
						<action target="Scene" name="HideLayer" param="OilCan"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick><action target="Scene" name="OpenWindow" param="OilCaseWindow"/></onClick>
					
					<onEvent name="tookCan">
						<action target="OilCase" name="SetState" param="empty"/>
						<action target="Scene" name="PlaySound" param="Item_Pickup_Metal_small"/>
					</onEvent>
				</state>
				
				<state name="empty">
					<onStateEnter>
						<action target="Scene" name="CloseWindow" param="OilCaseWindow" delay="60"/>
						<action target="Scene" name="ShowLayer" param="OilFlask"/>
						<action target="Scene" name="ShowLayer" param="OilCan"/>
					</onStateEnter>
				</state>
			</states>			
		</object>
		
		<object name="Rag">
			<clickStrategy type="alpha" layer="Rag"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Rag"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Rag"/>
						<action target="Rag" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="Item_Pickup_Cloth_big"/>
					</onClick>
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Rag"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="EngineBeam">
			<clickStrategy type="rect" left="285" top="360" right="335" bottom="395"/>			
			<states>
				<state name="noBeam">
					<onStateEnter><action target="Scene" name="HideLayer" param="EngineBeam"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="missing_rammer"/>
					</onClick>
					
					<onUseObject name="Beam">
						<action target="Scene" name="RemoveFromInventory" param="Beam"/>
						<action target="EngineBeam" name="SetState" param="withBeam"/>
						<action target="EngineLock" name="UnlockPart" param="Beam"/>
						<action target="Scene" name="PlaySound" param="use_beam_on_machine"/>
					</onUseObject>
				</state>
				
				<state name="withBeam">
					<onStateEnter><action target="Scene" name="ShowLayer" param="EngineBeam"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Coal">
			<clickStrategy type="alpha" layer="Coal"/>
			<states>
				<state name="withCoal">
					<onStateEnter><action target="Scene" name="HideLayer" param="Coal"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="coal_click"/>
					</onClick>
					
					<onUseObject name="Shovel">
						<action target="Scene" name="RemoveFromInventory" param="Shovel"/>
						<action target="Scene" name="AddToInventory" param="ShovelWithCoal"/>
						<action target="Coal" name="SetState" param="noCoal"/>
						<action target="Scene" name="PlaySound" param="use_shovel_on_coal_pile"/>
					</onUseObject>
				</state>
				
				<state name="noCoal">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Coal"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="FuelArea">
			<clickStrategy type="rect" left="120" top="400" right="180" bottom="440"/>
			<states>
				<state name="closed">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="OpenFireDoor"/>
						<action target="Scene" name="HideLayer" param="Fire"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick>
						<action target="FuelArea" name="SetState" param="open"/>
						<action target="Scene" name="OpenWindow" param="FuelAreaWindow"/>
						<action target="Scene" name="ShowDialog" param="fire_click"/>
					</onClick>
				</state>
				
				<state name="open">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="OpenFireDoor"/>
						<action target="Scene" name="HideLayer" param="Fire"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick><action target="Scene" name="OpenWindow" param="FuelAreaWindow"/></onClick>
					
					<onUseObject name="ShovelWithCoal">
						<action target="Scene" name="OpenWindow" param="FuelAreaWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="ShovelWithCoal"/>
						<action target="FuelArea" name="SetState" param="withCoal"/>
						<action target="EngineLock" name="UnlockPart" param="Coal"/>
						<action target="Scene" name="PlaySound" param="open_door_and_put_coal_inside"/>
					</onUseObject>
				</state>
				
				<state name="withCoal">
					<onStateEnter>
						<action target="Scene" name="CloseWindow" param="FuelAreaWindow" delay="60"/>
						<action target="Scene" name="ShowLayer" param="OpenFireDoor"/>
						<action target="Scene" name="ShowLayer" param="Fire"/>
					</onStateEnter>
				</state>				
			</states>
		</object>
		
		<object name="Pool1">
			<clickStrategy type="alpha" layer="Pool1"/>
			<states>
				<state name="wet">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Pool1"/>
						<action target="Scene" name="HideLayer" param="Pool2"/>
						<action target="Scene" name="HideLayer" param="Pool3"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>	

					<onClick>
						<action target="Scene" name="ShowDialog" param="need_water"/>
					</onClick>
					
					<onUseObject name="Rag">
						<action target="Scene" name="RemoveFromInventory" param="Rag"/>
						<action target="Scene" name="AddToInventory" param="WetRag"/>
						<action target="Pool1" name="SetState" param="dry"/>
						<action target="Pool2" name="SetState" param="dry"/>
						<action target="Pool3" name="SetState" param="dry"/>
						<action target="Scene" name="PlaySound" param="use_rag_on_pool"/>
					</onUseObject>
				</state>
				
				<state name="dry">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Pool1"/>
						<action target="Scene" name="ShowLayer" param="Pool2"/>
						<action target="Scene" name="ShowLayer" param="Pool3"/>
					</onStateEnter>
				</state>
			</states>
		</object>
	
		<object name="Pool2">
			<clickStrategy type="alpha" layer="Pool2"/>
			<states>
				<state name="wet">				
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="need_water"/>
					</onClick>					
					
					<onUseObject name="Rag">						
						<action target="Scene" name="RemoveFromInventory" param="Rag"/>
						<action target="Scene" name="AddToInventory" param="WetRag"/>
						<action target="Pool1" name="SetState" param="dry"/>
						<action target="Pool2" name="SetState" param="dry"/>
						<action target="Pool3" name="SetState" param="dry"/>
						<action target="Scene" name="PlaySound" param="use_rag_on_pool"/>
					</onUseObject>
				</state>
				
				<state name="dry"/>
			</states>
		</object>

		<object name="Pool3">
			<clickStrategy type="alpha" layer="Pool3"/>
			<states>
				<state name="wet">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="need_water"/>
					</onClick>					
										
					<onUseObject name="Rag">
						<action target="Scene" name="RemoveFromInventory" param="Rag"/>
						<action target="Scene" name="AddToInventory" param="WetRag"/>
						<action target="Pool1" name="SetState" param="dry"/>
						<action target="Pool2" name="SetState" param="dry"/>
						<action target="Pool3" name="SetState" param="dry"/>
						<action target="Scene" name="PlaySound" param="use_rag_on_pool"/>
					</onUseObject>
				</state>
				
				<state name="dry"/>
			</states>
		</object>

		<object name="WaterHood">		
			<clickStrategy type="rect" left="194" top="312" right="220" bottom="340"/>
			<states>
				<state name="closed">
					<onStateEnter><action target="Scene" name="HideLayer" param="OpenHood"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="WaterHoodWindow"/>
						<action target="WaterHood" name="SetState" param="open"/>
						<action target="Scene" name="PlaySound" param="hood_open"/>
						<action target="Scene" name="ShowDialog" param="water_trough_click"/>
					</onClick>
				</state>
				
				<state name="open">
					<onStateEnter><action target="Scene" name="ShowLayer" param="OpenHood"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="WaterHoodWindow"/>
						<action target="Scene" name="ShowDialog" param="water_trough_click"/>
					</onClick>
					
					<onUseObject name="FullBucket">
						<action target="Scene" name="OpenWindow" param="WaterHoodWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="FullBucket"/>
						<action target="WaterHood" name="SetState" param="withWater"/>
						<action target="EngineLock" name="UnlockPart" param="Water"/>
						<action target="Scene" name="PlaySound" param="pour_water_into_hood"/>
					</onUseObject>
				</state>
				
				<state name="withWater">
					<onStateEnter>
						<action target="Scene" name="CloseWindow" param="WaterHoodWindow" delay="60"/>
						<action target="Scene" name="HideLayer" param="OpenHood"/>
						<action target="Scene" name="PlaySound" param="hood_close"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Wheel">
			<clickStrategy type="rect" left="226" top="306" right="284" bottom="360"/>
			<states>
				<state name="noOil">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="WheelWindow"/>
						<action target="Scene" name="ShowDialog" param="wheel_click"/>
					</onClick>
						
					<onUseObject name="FullCan">
						<action target="Scene" name="OpenWindow" param="WheelWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="FullCan"/>
						<action target="Wheel" name="SetState" param="withOil"/>
						<action target="EngineLock" name="UnlockPart" param="Oil"/>
					</onUseObject>
				</state>
				
				<state name="withOil">
					<onStateEnter>
						<action target="Scene" name="CloseWindow" param="WheelWindow" delay="60"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Lever">
			<clickStrategy type="rect" left="165" top="343" right="190" bottom="397"/>
			<states>
				<state name="engineNotReady">					
					<onStateEnter><action target="Scene" name="HideLayer" param="LeverDown"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="machine_incomplete"/>
					</onClick>
					
					<onEvent name="engineComplete">
						<action target="Lever" name="SetState" param="engineReady"/>
					</onEvent>
				</state>
				
				<state name="engineReady">
					<onStateEnter><action target="Scene" name="HideLayer" param="LeverDown"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Lever" name="SetState" param="engineRunning"/>
						<action target="Scene" name="PlaySound" param="pull_lever"/>
						<action target="Scene" name="PlaySound" param="machine_start"/>
						<action target="Scene" name="PlaySound" param="machine_loop"/>
						<action target="Scene" name="PlaySound" param="machine_squeak_sound"/>
					</onClick>
				</state>
				
				<state name="engineRunning">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="LeverDown"/>
						<action target="Scene" name="StartAnimation" param="WheelAnim"/>
						<action target="Scene" name="StartAnimation" param="BeamAnim"/>
						<action target="Door" name="SendEvent" param="engineRunning" delay="100"/>
						<action target="Scene" name="StartAnimation" param="DoorAnim" delay="100"/>
					</onStateEnter>
				</state>
			</states>
		</object>	

		<object name="Door">
			<clickStrategy type="alpha" layer="Door"/>
			<states>
				<state name="locked">
					<onStateEnter><action target="Scene" name="HideLayer" param="Door"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="noExit"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="door_click"/>
					</onClick>
					
					<onEvent name="engineRunning">
						<action target="Door" name="SetState" param="smashed"/>
						<action target="Scene" name="PlaySound" param="door_break"/>
					</onEvent>
				</state>
				
				<state name="smashed">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Door"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="exit"/>
					</onMouseOver>
					
					<onClick><action target="Scene" name="RegisterVictoryCondition" param=""/></onClick>
				</state>
			</states>
		</object>
	</objects>
</scene>

