<?xml version="1.0" standalone="no"?>

<unit>

	<!-- *** parameters *** -->

	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="600" regeneration="0"/>
		<max-ep value="0"/>
		<armor value="0"/>
		<armor-type value="leather"/>					
		<sight value="9"/>
		<time value="40"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels/>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="50"/>			
		</resource-requirements>
		<resources-stored/>
		<image path="images/worker.bmp"/>
		<image-cancel path="images/magic_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/worker_select1.wav"/>
			<sound path="sounds/worker_select2.wav"/>
			<sound path="sounds/worker_select3.wav"/>
			<sound path="sounds/worker_select4.wav"/>					
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/worker_ack1.wav"/>
			<sound path="sounds/worker_ack2.wav"/>
			<sound path="sounds/worker_ack3.wav"/>
			<sound path="sounds/worker_ack4.wav"/>		
			<sound path="sounds/worker_ack5.wav"/>
			<sound path="sounds/worker_ack6.wav"/>
			<sound path="sounds/worker_ack7.wav"/>					
		</command-sounds>
	</parameters>


	<!-- *** skills *** -->

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="55"/>
			<animation path="models/worker_standing.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="stop"/>
			<name value="stop_loaded_skill"/>		
			<ep-cost value="0"/>
			<speed value="75"/>
			<anim-speed value="70"/>
			<animation path="models/worker_standing_loaded.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="stop"/>
			<name value="stop_loaded_wood_skill"/>		
			<ep-cost value="0"/>
			<speed value="75"/>
			<anim-speed value="70"/>
			<animation path="models/worker_standing_loaded_wood.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>				<building name="tower_5"/>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="190"/>
			<anim-speed value="130"/>
			<animation path="models/worker_walking.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_wood_skill"/>		
			<ep-cost value="0"/>
			<speed value="210"/>
			<anim-speed value="130"/>
			<animation path="models/worker_walking_wood.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_gold_skill"/>		
			<ep-cost value="0"/>
			<speed value="210"/>
			<anim-speed value="130"/>
			<animation path="models/worker_walking_gold.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_loaded_skill"/>		
			<ep-cost value="0"/>
			<speed value="190"/>
			<anim-speed value="100"/>
			<animation path="models/worker_walking_loaded.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_loaded_wood_skill"/>		
			<ep-cost value="0"/>
			<speed value="190"/>
			<anim-speed value="100"/>
			<animation path="models/worker_walking_loaded_wood.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="build"/>
			<name value="build_skill"/>		
			<ep-cost value="0"/>
			<speed value="10050"/>
			<anim-speed value="100"/>
			<animation path="models/worker_building.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="sounds/worker_build1.wav"/>
				<sound-file path="sounds/worker_build2.wav"/>
				<sound-file path="sounds/worker_build3.wav"/>
			</sound>
		</skill>	
		
		<skill>
			<type value="harvest"/>
			<name value="mine_skill"/>		
			<ep-cost value="0"/>
			<speed value="225"/>
			<anim-speed value="90"/>
			<animation path="models/worker_mining.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="sounds/worker_mine1.wav"/>
				<sound-file path="sounds/worker_mine2.wav"/>
				<sound-file path="sounds/worker_mine3.wav"/>
				<sound-file path="sounds/worker_mine4.wav"/>
				<sound-file path="sounds/worker_mine5.wav"/>
				<sound-file path="sounds/worker_mine6.wav"/>
			</sound>
		</skill>	
		
		<skill>
			<type value="harvest"/>
			<name value="harvest_wood_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="90"/>
			<animation path="models/worker_harversting_wood.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="sounds/worker_harvest_wood1.wav"/>
				<sound-file path="sounds/worker_harvest_wood2.wav"/>
				<sound-file path="sounds/worker_harvest_wood3.wav"/>
			</sound>
		</skill>		
		
		<skill>
			<type value="repair"/>
			<name value="repair_skill"/>		
			<ep-cost value="0"/>
			<speed value="4000"/>
			<anim-speed value="100"/>
			<animation path="models/worker_building.g3d"/>
			<sound enabled="true" start-time="0.5">
				<sound-file path="sounds/worker_build1.wav"/>
				<sound-file path="sounds/worker_build2.wav"/>
				<sound-file path="sounds/worker_build3.wav"/>
			</sound>
		</skill>		
		
		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="90"/>
			<anim-speed value="90"/>
			<animation path="models/worker_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/worker_die1.wav"/>
				<sound-file path="sounds/worker_die2.wav"/>
				<sound-file path="sounds/worker_die3.wav"/>								
			</sound>			
			<fade value="false"/>
		</skill>	
                
                <skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="30"/>
			<animation path="models/trebuchet_build_2.g3d"/>
			<sound enabled="false" start-time="0">
			</sound>
		</skill>					

	</skills>

	<!-- *** commands *** -->
	
	<commands>
		
		<command>
			<type value= "stop"/>
			<name value="stop"/>
			<image path="images/magic_stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value= "move"/>
			<name value="move"/>
			<image path="images/magic_move.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>

		<command>
			<type value= "build"/>
			<name value="start"/>
			<image path="images/initiate_build.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
				<building name="start_wave_1"/>
				<building name="start_wave_2"/>
				<building name="start_wave_3"/>
				<building name="start_wave_4"/>
				<building name="start_wave_5"/>
			</buildings>
			<start-sound enabled="false"/>
			<built-sound enabled="true">
				<sound-file path="sounds/worker_work_end1.wav"/>
				<sound-file path="sounds/worker_work_end2.wav"/>
				<sound-file path="sounds/worker_work_end3.wav"/>
			</built-sound>	
		</command>

		<command>
			<type value= "build"/>
			<name value="build_factorys"/>
			<image path="images/initiate_build.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
                                <building name="damage_factory"/>
                                <building name="range_factory"/>
                                <building name="ugrade_factory"/>
                                <!--building name="gold_factory"/-->
			</buildings>
			<start-sound enabled="false"/>
			<built-sound enabled="true">
				<sound-file path="sounds/worker_work_end1.wav"/>
				<sound-file path="sounds/worker_work_end2.wav"/>
				<sound-file path="sounds/worker_work_end3.wav"/>
			</built-sound>	
		</command>

		<command>
			<type value= "build"/>
			<name value="build_towers"/>
			<image path="images/initiate_build.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
				<building name="tower_1"/>	
				<building name="tower_2"/>
				<building name="tower_3"/>
				<building name="tower_4"/>
				<building name="tower_5"/>
				<building name="king_tower"/>
			</buildings>
			<start-sound enabled="false"/>
			<built-sound enabled="true">
				<sound-file path="sounds/worker_work_end1.wav"/>
				<sound-file path="sounds/worker_work_end2.wav"/>
				<sound-file path="sounds/worker_work_end3.wav"/>
			</built-sound>	
		</command>

		<command>
			<type value="harvest"/>
			<name value="mine"/>
			<image path="images/initiate_harvest.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_gold_skill"/>
			<harvest-skill value="mine_skill"/>
			<stop-loaded-skill value="stop_loaded_skill"/>
			<move-loaded-skill value="move_loaded_skill"/>
			<harvested-resources>
				<resource name="gold"/>	
				<resource name="stone"/>
			</harvested-resources>
			<max-load value="25"/>
			<hits-per-unit value="1"/>				
		</command>

		<command>
			<type value="harvest"/>
			<name value="harvest_wood"/>
			<image path="images/initiate_harvest_wood.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_wood_skill"/>
			<harvest-skill value="harvest_wood_skill"/>
			<stop-loaded-skill value="stop_loaded_wood_skill"/>
			<move-loaded-skill value="move_loaded_wood_skill"/>
			<harvested-resources>
				<resource name="wood"/>
			</harvested-resources>
			<max-load value="20"/>
			<hits-per-unit value="1"/>				
		</command>
		
		<command>
			<type value="repair"/>
			<name value="repair"/>
			<image path="images/initiate_repair.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<repair-skill value="repair_skill"/>
			<repaired-units>
				<unit name="factory"/>		
				<unit name="tower_1"/>	
				<unit name="tower_2"/>
				<unit name="tower_3"/>
				<unit name="tower_4"/>
				<unit name="tower_5"/>	
				<unit name="king_tower"/>					
			</repaired-units>		
		</command>	

		<command>
			<type value="morph"/>
			<name value="promote_trebuchet"/>
			<image path="../trebuchet/images/catapult.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "trebuchet"/>
			<discount value="0"/>
		</command>

	</commands>
</unit>
