<scene name="Room36" numVictoryConditions="1">
	<inventory>
		<object name="BlankPaper" memberName="HUD_blankPaper" acquired="0" visible="1"/>
		<object name="Wifi" memberName="HUD_wifi" acquired="0" visible="1"/>
		<object name="PrintedPaper" memberName="HUD_printedPaper" acquired="0" visible="0"/>
	</inventory>
	
	<zoomWindows>
		<zoomWindow name="BigCaseWindow" file="ZoomWindows\Room36_BigCaseWindow.dir" x="330" y="300" visible="0"/>
		<zoomWindow name="PrinterWindow" file="ZoomWindows\Room36_PrinterWindow.dir" x="330" y="300" visible="0"/>
		<zoomWindow name="AdminComputerWindow" file="ZoomWindows\Room36_AdminComputerWindow.dir" x="330" y="300" visible="0"/>
		<zoomWindow name="Computer1Window" file="ZoomWindows\Room36_Computer1Window.dir" x="330" y="300" visible="0"/>
		<zoomWindow name="Computer2Window" file="ZoomWindows\Room36_Computer2Window.dir" x="330" y="300" visible="0"/>
		<zoomWindow name="Computer3Window" file="ZoomWindows\Room36_Computer3Window.dir" x="330" y="300" visible="0"/>
		<zoomWindow name="Computer4Window" file="ZoomWindows\Room36_Computer4Window.dir" x="330" y="300" visible="0"/>		
		<zoomWindow name="Computer5Window" file="ZoomWindows\Room36_Computer5Window.dir" x="330" y="300" visible="0"/>
		<zoomWindow name="Computer6Window" file="ZoomWindows\Room36_Computer6Window.dir" x="330" y="300" visible="0"/>
	</zoomWindows>
	
	<animations>
		<animation name="GrateAnim" type="once" xpos="330" ypos="300" zpos="22">
			<frames>
				<frame memberName="grate12_anim" frameDelay="150"/>
				<frame memberName="grate11_anim" frameDelay="150"/>
				<frame memberName="grate10_anim" frameDelay="150"/>
				<frame memberName="grate9_anim" frameDelay="150"/>
				<frame memberName="grate8_anim" frameDelay="150"/>
				<frame memberName="grate7_anim" frameDelay="150"/>
				<frame memberName="grate6_anim" frameDelay="150"/>
				<frame memberName="grate5_anim" frameDelay="150"/>
				<frame memberName="grate4_anim" frameDelay="150"/>
				<frame memberName="grate3_anim" frameDelay="150"/>
				<frame memberName="grate2_anim" frameDelay="150"/>
				<frame memberName="grate1_anim" frameDelay="150"/>				
			</frames>
		</animation>
	</animations>
	
	<objects>
		<object name="BigCase">
			<clickStrategy type="rect" left="520" top="90" right="610" bottom="190"/>
			<states>
				<state name="withPaper">
					<onStateEnter>
						<action target="Scene" name="PlaySound" param="indoor_small"/>
						<action target="Scene" name="PlaySound" param="beeps"/>
						<action target="Scene" name="PlaySound" param="computers_noise"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="BigCaseWindow"/>
					</onClick>
				</state>
				
				<state name="noPaper">
					<onStateEnter>
						<action target="Scene" name="CloseWindow" param="BigCaseWindow" delay="60"/>
						<action target="Scene" name="PlaySound" param="pickup_paper"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Printer">
			<clickStrategy type="alpha" layer="printer"/>
			<states>
				<state name="empty">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="PaperIn"/>
						<action target="Scene" name="HideLayer" param="PaperOut"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="PrinterWindow"/>
					</onClick>
					
					<onUseObject name="BlankPaper">
						<action target="Scene" name="OpenWindow" param="PrinterWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="BlankPaper"/>
						<action target="Printer" name="SetState" param="paperLoaded"/>
						<action target="Scene" name="PlaySound" param="use_paper_on_printer"/>
					</onUseObject>
					
					<onEvent name="printEmail">
						<action target="Scene" name="ShowDialog" param="no_paper"/>
					</onEvent>
				</state>
				
				<state name="paperLoaded">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="PaperIn"/>
						<action target="Scene" name="HideLayer" param="PaperOut"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="PrinterWindow"/>
					</onClick>
					
					<onEvent name="printEmail">
						<action target="Printer" name="SetState" param="pagePrinted"/>
						<action target="Computer5" name="SetState" param="emailPrinted"/>
					</onEvent>
				</state>
				
				<state name="pagePrinted">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="PaperIn"/>
						<action target="Scene" name="ShowLayer" param="PaperOut"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="PrinterWindow"/>
					</onClick>					
				</state>
				
				<state name="complete">
					<onStateEnter>
						<action target="Scene" name="ShowDialog" param="leave_room"/>
						<action target="Scene" name="CloseWindow" param="PrinterWindow" delay="60"/>
						<action target="Scene" name="HideLayer" param="PaperIn"/>
						<action target="Scene" name="HideLayer" param="PaperOut"/>
						<action target="Scene" name="PlaySound" param="take_the_code"/>
						<action target="Door" name="SendEvent" param="unlockDoor"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="WifiFloor">
			<clickStrategy type="alpha" layer="Wifi_floor"/>
			<states>
				<state name="clickable">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Wifi_floor"/>						
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Wifi"/>
						<action target="WifiFloor" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="pick_up_wifi"/>
					</onClick>
				</state>
				
				<state name="acquired">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Wifi_floor"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="WifiPlaced">
			<clickStrategy type="alpha" layer="Wifi_connected"/>
			<states>
				<state name="notThere">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Wifi_connected"/>
					</onStateEnter>
				</state>
				
				<state name="placed">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Wifi_connected"/>
						<action target="Scene" name="PlaySound" param="use_the_wifi_on_computer"/>
					</onStateEnter>					
				</state>
			</states>
		</object>
		
		<object name="AdminComputer">
			<clickStrategy type="rect" left="380" top="220" right="480" bottom="328"/>
			<states>
				<state name="waitForWifi">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="AdminScreen1"/>
						<action target="Scene" name="HideLayer" param="AdminScreen2"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="AdminComputerWindow"/>
						<action target="Scene" name="ShowDialog" param="admin_pc_click"/>
					</onClick>
					
					<onUseObject name="Wifi">
						<action target="Scene" name="RemoveFromInventory" param="Wifi"/>
						<action target="Scene" name="OpenWindow" param="AdminComputerWindow"/>
						<action target="WifiPlaced" name="SetState" param="placed"/>
						<action target="AdminComputer" name="SetState" param="emailSent"/>
						<action target="Computer5" name="SetState" param="emailReceived"/>
					</onUseObject>
				</state>
				
				<state name="emailSent">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="AdminScreen1"/>
						<action target="Scene" name="ShowLayer" param="AdminScreen2"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="AdminComputerWindow"/>
					</onClick>
				</state>
			</states>
		</object>
		
		<object name="Computer1">
			<clickStrategy type="alpha" layer="Computer1"/>
			<states>
				<state name="idle">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Computer1"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer1Window"/>
					</onClick>
				</state>
				
				<state name="noEmail">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Computer1"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer1Window"/>
					</onClick>
				</state>
			</states>
		</object>
		
		<object name="Computer2">
			<clickStrategy type="alpha" layer="Computer2"/>
			<states>
				<state name="idle">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Computer2"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer2Window"/>
					</onClick>
				</state>
				
				<state name="noEmail">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Computer2"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer2Window"/>
					</onClick>
				</state>
			</states>
		</object>
		
		<object name="Computer3">
			<clickStrategy type="alpha" layer="Computer3"/>
			<states>
				<state name="idle">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Computer3"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer3Window"/>
					</onClick>
				</state>
				
				<state name="noEmail">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Computer3"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer3Window"/>
					</onClick>
				</state>
			</states>
		</object>
		
		<object name="Computer4">
			<clickStrategy type="alpha" layer="Computer4"/>
			<states>
				<state name="idle">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Computer4"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer4Window"/>
					</onClick>
				</state>
				
				<state name="noEmail">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Computer4"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer4Window"/>
					</onClick>
				</state>
			</states>
		</object>
		
		<object name="Computer5">
			<clickStrategy type="rect" left="420" top="160" right="462" bottom="194"/>
			<states>
				<state name="idle">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer5Window"/>
					</onClick>
				</state>
				
				<state name="noEmail">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer5Window"/>
					</onClick>
				</state>
				
				<state name="emailReceived">
					<onStateEnter>
						<action target="Scene" name="PlaySound" param="open_email"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer5Window"/>
					</onClick>
				</state>
				
				<state name="emailPrinted">
					<onStateEnter>
						<action target="Scene" name="PlaySound" param="print_the_code"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer5Window"/>
					</onClick>				
				</state>
			</states>
		</object>
		
		<object name="Computer6">
			<clickStrategy type="alpha" layer="Computer6"/>
			<states>
				<state name="idle">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Computer6"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer6Window"/>
					</onClick>
				</state>
				
				<state name="noEmail">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Computer6"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="Computer6Window"/>
					</onClick>
				</state>
			</states>
		</object>
		
		<object name="Door">
			<clickStrategy type="alpha" layer="DoorOpen"/>
			<states>
				<state name="secured">
					<onStateEnter>
						<action target="Scene" name="StartAnimation" param="GrateAnim"/>
						<action target="Scene" name="HideLayer" param="DoorOpen"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="noExit"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="door_click"/>
					</onClick>
					
					<onEvent name="unlockDoor">
						<action target="Door" name="SetState" param="unlocked"/>
					</onEvent>
					
					<onEvent name="grateDown">
						<action target="Door" name="SetState" param="secured_grateDown"/>
					</onEvent>
				</state>
				
				<state name="secured_grateDown">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="noExit"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="ShowDialog" param="door_click"/>
					</onClick>
					
					<onEvent name="unlockDoor">
						<action target="Door" name="SetState" param="unlocked_grateDown"/>
					</onEvent>
					
					<onEvent name="grateRaised">
						<action target="Door" name="SetState" param="secured"/>
					</onEvent>
				</state>
				
				<state name="unlocked">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="exit"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="RegisterVictoryCondition" param=""/>
					</onClick>
					
					<onEvent name="grateDown">
						<action target="Door" name="SetState" param="unlocked_grateDown"/>
					</onEvent>
				</state>
				
				<state name="unlocked_grateDown">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="noExit"/>
					</onMouseOver>
					
					<onEvent name="grateRaised">
						<action target="Door" name="SetState" param="unlocked"/>
					</onEvent>
				</state>
			</states>
		</object>
		
		<object name="LightLevel1">
			<states>
				<state name="off">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="LightLevel1"/>						
					</onStateEnter>
				</state>
				
				<state name="on">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="LightLevel1"/>						
					</onStateEnter>
				</state>				
			</states>
		</object>
		
		<object name="LightLevel2">
			<states>
				<state name="off">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="LightLevel2"/>						
					</onStateEnter>
				</state>
				
				<state name="on">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="LightLevel2"/>						
					</onStateEnter>
				</state>
			</states>
		</object>
	</objects>
</scene>

