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

<unit>
	<parameters>
		<size value="4"/>
		<height value="10"/>
		<max-hp value="6000" regeneration="3"/>
		<max-ep value="0"/>
		<armor value="50"/>	
		<armor-type value="organic"/>				
		<sight value="10"/>
		<time value="150"/>	
		<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="200" />
			<resource name="wood" amount="300" />	
		</resource-requirements>
		<resources-stored>
			<resource name="wood" amount="600"/>
		</resources-stored>
		<image path="images/swordman.bmp"/>
		<image-cancel path="../tyrannosaurus_rex/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel3.wav"/>
			<sound path="sounds/sel4.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/sel1.wav"/>
			<sound path="sounds/sel2.wav"/>
			<sound path="sounds/sel3.wav"/>
			<sound path="sounds/sel4.wav"/>
		</command-sounds>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="45"/>
			<animation path="models/brontosaurus_idle.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="harvest"/>
			<name value="mine_skill"/>		
			<ep-cost value="0"/>
			<speed value="2000"/>
			<anim-speed value="100"/>
			<animation path="models/brontosaurus_harvest.g3d"/>
			<sound enabled="false">
			</sound>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation path="models/brontosaurus_attack_air.g3d"/>
			<sound enabled="true" start-time="0.47">
				<sound-file path="sounds/die1.wav"/>
				<sound-file path="sounds/sel4.wav"/>
			</sound> 
			<attack-strenght value="300"/>
			<attack-var value="200"/>
			<attack-range value="4"/>
			<attack-type value="slashing"/>
			<attack-fields>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.4"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>	

		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="30"/>
			<animation path="models/brontosaurus_walk.g3d"/>
			<sound enabled="true" start-time="0.47">
				<sound-file path="sounds/walking.wav"/>
			</sound> 
		</skill>

		<skill>
			<type value="move"/>
			<name value="charge_skill"/>		
			<ep-cost value="0"/>
			<speed value="200"/>
			<anim-speed value="100"/>
			<animation path="models/brontosaurus_walk.g3d"/>
			<sound enabled="true" start-time="0.47">
				<sound-file path="sounds/walking.wav"/>
			</sound> 
		</skill>

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

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="70"/>
			<anim-speed value="70"/>
			<animation path="models/brontosaurus_die.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/die1.wav"/>
				<sound-file path="sounds/die2.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>


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

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

		<command>
			<type value="harvest"/>
			<name value="gather"/>
			<image path="images/worker_mine.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<harvest-skill value="mine_skill"/>
			<stop-loaded-skill value="stop_skill"/>
			<move-loaded-skill value="move_skill"/>
			<harvested-resources>
				<resource name="wood"/>		
			</harvested-resources>
			<max-load value="250"/>
			<hits-per-unit value="1"/>				
		</command>

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

	</commands>
</unit>
