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

<unit>

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

	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="1000" regeneration="8"/>
		<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>
			<property value="rotated_climb"/>
		</properties>
		<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="mushrooms" amount="10"/>
			<resource name="food" amount="1"/>			
		</resource-requirements>
		<resources-stored/>
		<image path="images/worker.bmp"/>
		<image-cancel path="images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="false">					
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/worker_ack1.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/axe_man_stand.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/axe_man_loading.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/axe_man_loading.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="190"/>
			<anim-speed value="130"/>
			<animation path="models/axe_man_walk.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/axe_man_walk.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/axe_man_walk.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/axe_man_loaded_walk.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/axe_man_loaded_walk.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="build"/>
			<name value="build_skill"/>		
			<ep-cost value="0"/>
			<speed value="105"/>
			<anim-speed value="100"/>
			<animation path="models/man_build.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/gun_man_chop.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/gun_man_chop.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="40"/>
			<anim-speed value="100"/>
			<animation path="models/man_build.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/axe_man_die.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="attack"/>
			<name value="attack_gun_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation path="models/gun_man_attack.g3d"/>
			<sound enabled="true" start-time="0.47">
				<sound-file path="sounds/shot1.wav"/>
			</sound> 
			<attack-strenght value="200"/>
			<attack-var value="100"/>
			<attack-range value="8"/>
			<attack-type value="slashing"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
					<sound enabled="false">
				</sound>
			</projectile>
			<splash value="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation path="models/gun_man_chop.g3d"/>
			<sound enabled="false" start-time="0.47">
			</sound> 
			<attack-strenght value="160"/>
			<attack-var value="100"/>
			<attack-range value="1"/>
			<attack-type value="slashing"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>

		<skill>
			<type value="morph"/>
			<name value="morph_skill"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="80"/>
			<animation path="models/gun_man_stand.g3d"/>
			<sound enabled="false"/>
		</skill>						

	</skills>

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

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

		<command>
			<type value= "build"/>
			<name value="build_basic"/>
			<image path="images/worker_build_basic.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
                                <building name="home_open"/>	
				<building name="tree"/>
				<building name="gate_open"/>
				<building name="wall"/>	
			</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/worker_mine.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="rock"/>									
			</harvested-resources>
			<max-load value="25"/>
			<hits-per-unit value="1"/>				
		</command>

		<command>
			<type value="harvest"/>
			<name value="mine"/>
			<image path="images/worker_mine.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="mushrooms"/>									
			</harvested-resources>
			<max-load value="25"/>
			<hits-per-unit value="1"/>				
		</command>
                <-->
		<command>
			<type value="harvest"/>
			<name value="harvest_wood"/>
			<image path="images/worker_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/worker_repair.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<repair-skill value="repair_skill"/>
			<repaired-units>
				<unit name="tree"/>		
				<unit name="home_open"/>
				<unit name="home_closed"/>
				<unit name="gate_open"/>
				<unit name="gate_closed"/>
				<unit name="wall"/>			
			</repaired-units>		
		</command>  

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

		<command>
			<type value="morph"/>
			<name value="use_gun"/>
			<image path="/images/gun.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "gun_man"/>
			<discount value="40"/>
		</command>

		<!--command>
			<type value="morph"/>
			<name value="use_pick"/>
			<image path="/images/pick.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "pick_man"/>
			<discount value="40"/>
		</command>


		<command>
			<type value="morph"/>
			<name value="use_axe"/>
			<image path="/images/axe.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="morph_skill"/>
			<morph-unit name= "axe_man"/>
			<discount value="40"/>
		</command>
	        <!-->	

	</commands>
</unit>
