<screen id="LAUNDRY" src="swfs/screens/Floor1/Laundry.swf" footstep="Dirt">
	<warning id="LOCATION_FLOOR1_LAUNDRY"/>
	<unlockRoom id="Floor1/LAUNDRY"/>
	
	<state>
		<requirement type="session" id="ACTIVE_MISSION" valueNot="4" />
		<requirement type="session" id="ACTIVE_MISSION" valueNot="5" />
		<requirement type="session" id="ACTIVE_MISSION" valueNot="6" />
		<requirement type="session" id="ACTIVE_MISSION" valueNot="7" />
		
		<music src="Audio/Music/FLOOR1/HALLWAY_ATTACK.mp3" fadeIn="10000" channel="MUSIC" loop="true"/>
	</state>
	<state>
		<requirement type="session" id="ACTIVE_MISSION" valueNot="1" />
		<requirement type="session" id="ACTIVE_MISSION" valueNot="2" />
		<requirement type="session" id="ACTIVE_MISSION" valueNot="3" />
		
		<music src="Audio/Music/FLOOR1/MAIN_HALL.mp3" fadeIn="10000" channel="MUSIC" loop="true"/>
	</state>
	<music src="Audio/Ambient/FLOOR1/LAUNDRY.mp3" channel="AMBIENT" fadeIn="5000" loop="true"/>

	<state>
		<requirement type="session" id="M4_LAUNDRY_UNLOCKED"/>
		<requirement type="session" id="M4_GOT_CRANK" value="false"/> 
		<poi value="on" target="active_screen" object="HO_area" align="origin" />
	</state>
	<state>
		<requirement type="session" id="SOLVED_LAUNDRY_ROOM" value="true" />
		<requirement type="session" id="SOLVED_LAUNDRY_ROOM_2" value="false" />
		<requirement type="session" id="ACTIVE_MISSION" value="5" />
		<requirement type="session" id="M5_ALAN_DIALOGUE_1_VIEWED" value="true" />
		
		<poi value="on" target="active_screen" object="HO_area" align="origin" />
	</state>
	
	<state>
		<requirement type="session" id="SOLVED_LAUNDRY_ROOM" value="true" />
		<requirement type="session" id="M5_ALAN_DIALOGUE_1_VIEWED" value="false" />
		<!--<property type="visible" value="false" assign="object_window" name="HO_area" />-->
	</state>
	<state>
		<requirement type="session" id="SOLVED_LAUNDRY_ROOM_2" value="true" />
		<!--<property type="visible" value="false" assign="object_window" name="HO_area" />-->
	</state>
	
	
	
	
	<object name="HO_area" id="HO_AREA" cursor="hand" tooltip="LOCATION_FURNACE_HO">
		<state>
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM" value="false" />	
			<requirement type="session" id="M4_LAUNDRY_UNLOCKED"/>	
			<object name="HO_area" id="HO_AREA" cursor="spyglass"/>
		</state>
		<state>
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM" value="true" />
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM_2" value="false" />
			<requirement type="session" id="ACTIVE_MISSION" value="5" />
			<requirement type="session" id="M5_ALAN_DIALOGUE_1_VIEWED" value="true" />
			<requirement type="session" id="M4_LAUNDRY_UNLOCKED"/>	
			<object name="HO_area" id="HO_AREA" cursor="spyglass"/>
		</state>
		
		
		<event type="clicked">
			<requirement type="session" id="M4_LAUNDRY_UNLOCKED"/>
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM" value="true" />	
			<requirement type="session" id="M5_ALAN_DIALOGUE_1_VIEWED" value="false" />			
			<warning id="LAUNDRY_AREA1"/>
		</event>
		<event type="clicked">
			<requirement type="session" id="M4_LAUNDRY_UNLOCKED"/>
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM" value="true" />	
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM_2" value="true" />		
			<warning id="LAUNDRY_AREA1"/>
		</event>
		
		<event type="clicked">
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM" value="false" />	
			<requirement type="session" id="M4_LAUNDRY_UNLOCKED"/>	
			<portal target="HO_SCREEN/HO_LAUNDRY"  hidden_screen="true"/>
		</event>
		<event type="clicked">
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM" value="true" />
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM_2" value="false" />
			<requirement type="session" id="ACTIVE_MISSION" value="5" />
			<requirement type="session" id="M5_ALAN_DIALOGUE_1_VIEWED" value="true" />
			<requirement type="session" id="M4_LAUNDRY_UNLOCKED"/>	
			<portal target="HO_SCREEN/HO_LAUNDRY" hidden_screen="true" />
		</event>
	</object>
	
	
	<object name="nav_washroom" id="NAV_WASHROOM" cursor="south" tooltip="LOCATION_WASHROOM_TO">
		<event type="clicked">
			<portal target="Floor1/WASHROOM"/>
		</event> 				
	</object>
	
	<state>
		<requirement type="session" id="M4_GOT_AUDIOTAPE_9" value="true" />
		<property type="visible" value="false" assign="active_screen" name="hamper" />
	</state>
	<object name="hamper" id="HAMPER" cursor="spyglass">
		<state>
			<requirement type="session" id="M4_GOT_AUDIOTAPE_9" value="true" />
			<object name="hamper" id="HAMPER" cursor="default"/>
		</state>
		<state>
			<requirement type="session" id="M4_GOT_AUDIOTAPE_9" value="false" />
			<poi value="on" target="active_screen" object="hamper" align="origin" type="single" />
		</state>
		
		<event type="clicked">
			<window src="swfs/windows/hamper.swf">
				<object name="audiotape" basic="true" cursor="hand">
					<event type="clicked">
						<requirement type="session" id="M4_GOT_AUDIOTAPE_9" value="false" />
						<unlockAudioTape id="9"/>
						<session id="M4_GOT_AUDIOTAPE_9"/>
						<poi value="off" target="active_screen" object="hamper" align="right" />
						<object name="hamper" id="HAMPER" assign="active_screen" cursor="default"/>
						<closeWindow/>
						<property type="visible" value="false" assign="active_screen" name="hamper" />
						<show_book tab="3"/>
					</event>
				</object>
				
			</window>
		</event> 				
	</object>
	<state>
		<requirement type="session" id="M5_GOT_SECURITY_BADGE"/>
		<property type="visible" value="false" assign="active_screen" name="washer" />
	</state>
	
	<object name="washer" id="WASHER" cursor="spyglass">
		<state>			
			<requirement type="session" id="SOLVED_LAUNDRY_ROOM_2"/>
			<requirement type="session" id="M5_GOT_SECURITY_BADGE" value="false" />
			
			<object name="washer" id="WASHER" cursor="spyglass" />
			<poi value="on" target="active_screen" object="washer" align="origin" type="single" />
		</state>

		<event type="clicked">
			<window src="swfs/windows/washer.swf">
				<property type="visible" value="true" assign="active_screen" name="door_open" />
				<property type="visible" value="false" assign="object_window" name="jacket" />
				<state>
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED"/>
					<property type="visible" value="false" assign="object_window" name="drop_area" />
				</state>
				<object name="jacket" cursor="hand">
					<event type="clicked">
						<requirement type="session" id="M5_DIRTY_JACKET_INSERTED"/>
						<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED"/>
						<requirement type="session" id="M5_GOT_SECURITY_BADGE" value="false" />
						<item name="security_badge" id="SECURITY_BADGE" src="images/items/security_badge.png" large_src="images/items/security_badge_large.png"/>
						<items_collected>
							<goal id="TASK_4_7" remove="true" />
							<session id="M5_GOT_SECURITY_BADGE"/>
							<property type="visible" value="false" assign="active_screen" name="washer" />
							<closeWindow/>
						</items_collected>	
					</event>
				</object>
				

				<object name="animation">
					<event type="frame" value="active">
						<property type="visible" value="true" assign="object_window" name="jacket" />
					</event>		
				</object>
	
				<object name="animation">
					<event type="frame" value="washing">
						<sound src="Audio/SFX/FLOOR1/washing_machine_door_closing_washing_finishing.mp3" />
						<property type="visible" value="false" assign="active_screen" name="door_open" />
					</event>	
					<event type="frame" value="active">
						
						<property type="visible" value="true" assign="active_screen" name="door_open" />
					</event>
				</object>
				<state>
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="false" />
					<requirement type="session" id="M5_DIRTY_JACKET_INSERTED"/>
					
					<property type="frame" value="jacket_inserted" stop="true" assign="object_window" name="animation" />
				</state>
				<state>
					<requirement type="session" id="M5_DIRTY_JACKET_INSERTED"/>
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED"/>
					<requirement type="session" id="M5_GOT_SECURITY_BADGE" value="false" />
					<property type="frame" value="active" stop="true" assign="object_window" name="animation" />
					
				</state>
				<object name="drop_area">
					<event type="clicked">
						<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="false" />
						<requirement type="session" id="M5_DIRTY_JACKET_INSERTED" value="false" />
						
						<requirement type="holding_item" id="DIRTY_JACKET" warning="LAUNDRY_NEED_THE_JACKET" />
						<session id="M5_DIRTY_JACKET_INSERTED"/>
						<item remove="true" id="DIRTY_JACKET"/>
						<property type="frame" value="jacket" stop="false" assign="object_window" name="animation" />
					</event>
					<event type="clicked">
						<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="false" />
						<requirement type="session" id="M5_DIRTY_JACKET_INSERTED" value="true" />	
						<requirement type="holding_item" id="DIRTY_JACKET" value="false" />
						<requirement type="holding_item" id="LAUNDRY_TOKEN" warning="LAUNDRY_NEED_LAUNDRY_TOKEN" />
						<session id="M5_LAUNDRY_TOKEN_INSERTED"/>
						<item remove="true" id="LAUNDRY_TOKEN"/>
						<sound src="Audio/SFX/FLOOR1/laundry_token_dropped.mp3" />
						
						<!--
						<delay time="2500"/>
						<sound src="Audio/SFX/FLOOR1/washing_machine_door_closing_washing_finishing.mp3" />
						
						<property type="visible" value="true" assign="object_window" name="closed_door" />
						<property type="visible" value="false" assign="object_window" name="open_door" />-->
						
						
						<property type="frame" value="activate" stop="false" assign="object_window" name="animation" />	
							<property type="visible" value="false" assign="object_window" name="drop_area" />
					</event>	
				</object>
				<!--
				<state>
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="false"/>
					<property type="visible" value="false" assign="object_window" name="closed_door" />
					<property type="visible" value="true" assign="object_window" name="open_door" />
				</state>
				<state>
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="true" />
					<property type="visible" value="true" assign="object_window" name="closed_door" />
					<property type="visible" value="false" assign="object_window" name="open_door" />
				</state>
				<event type="clicked">
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="true" />
					<requirement type="session" id="M5_DIRTY_JACKET_INSERTED" value="true" />
					<window src="swfs/windows/clean_jacket.swf">
						<event type="clicked">
							<requirement type="session" id="M5_GOT_SECURITY_BADGE" value="false" />
							<goal id="TASK_4_7" remove="true" />
							<item name="security_badge" id="SECURITY_BADGE" src="images/items/security_badge.png" large_src="images/items/security_badge_large.png"/>
							<items_collected>
								<session id="M5_GOT_SECURITY_BADGE"/>
								<property type="visible" value="false" assign="active_screen" name="washer" />
								<closeWindow/>
							</items_collected>	
						</event>
					</window>
					
							
				</event>
				
				<event type="clicked">
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="false" />
					<requirement type="session" id="M5_DIRTY_JACKET_INSERTED" value="true" />
					
					<requirement type="holding_item" id="LAUNDRY_TOKEN" warning="LAUNDRY_NEED_LAUNDRY_TOKEN" />
					<session id="M5_LAUNDRY_TOKEN_INSERTED"/>
					<item remove="true" id="LAUNDRY_TOKEN"/>
					<sound src="Audio/SFX/FLOOR1/laundry_token_dropped.mp3" />
					<delay time="2500"/>
					<sound src="Audio/SFX/FLOOR1/washing_machine_door_closing_washing_finishing.mp3" />
					
					<property type="visible" value="true" assign="object_window" name="closed_door" />
					<property type="visible" value="false" assign="object_window" name="open_door" />
				</event>	
				<event type="clicked">
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="false" />
					<requirement type="session" id="M5_DIRTY_JACKET_INSERTED" value="false" />
					
					<requirement type="holding_item" id="DIRTY_JACKET" warning="LAUNDRY_NEED_THE_JACKET" />
					<session id="M5_DIRTY_JACKET_INSERTED"/>
					<item remove="true" id="DIRTY_JACKET"/>
				</event>
				-->
				<!--<event type="clicked">
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED"/>
					<requirement type="session" id="M5_DIRTY_JACKET_INSERTED" value="false" />
					<requirement type="holding_item" id="DIRTY_JACKET"/>
					<requirement type="session" id="M5_GOT_SECURITY_BADGE" value="false" />
					
				</event>
				<event type="clicked">
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="false" />
					<requirement type="holding_item" id="LAUNDRY_TOKEN" />
					<session id="M5_LAUNDRY_TOKEN_INSERTED"/>
					<item remove="true" id="LAUNDRY_TOKEN"/>
					<property type="visible" value="false" assign="object_window" name="closed_door" />
					<property type="visible" value="true" assign="object_window" name="open_door" />
				</event> 
				<event type="clicked">
					<requirement type="session" id="M5_DIRTY_JACKET_INSERTED" value="false" />
					
				</event> 
					
					
				
				<event type="clicked">
					<requirement type="session" id="M5_LAUNDRY_TOKEN_INSERTED" value="false" />
					<requirement type="session" id="M5_DIRTY_JACKET_INSERTED"/>
					<requirement type="holding_item" id="LAUNDRY_TOKEN"/>
					<requirement type="session" id="M5_GOT_SECURITY_BADGE" value="false" />
					<property type="visible" value="false" assign="object_window" name="closed_door" />
					<property type="visible" value="true" assign="object_window" name="open_door" />
					
				</event>
				-->
					
				
			</window>
		</event> 
	</object>
	
	
	<object name="area2" id="AREA2" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="LAUNDRY_AREA2"/>
		</event>		
	</object>
	<object name="area3" id="AREA3" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="LAUNDRY_AREA3"/>
		</event>		
	</object>
	<object name="area4" id="AREA4" basic="true" cursor="hand">
		<event type="clicked">
			<warning id="LAUNDRY_AREA4"/>
		</event>		
	</object>
</screen>