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

<unit>

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

	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="5000" regeneration="0"/>
		<max-ep value="0"/>
		<armor value="0"/>
		<armor-type value="stone"/>					
		<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="stone" amount="30"/>
			<resource name="pieces" amount="1"/>			
		</resource-requirements>
		<resources-stored/>
		<image path="images/king.bmp"/>
		<image-cancel path="../rook/images/cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="../rook/sounds/click.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="../rook/sounds/click.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/king_idle.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="upgrade" />
			<name value="upgrade_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="150" />
			<animation path="models/king_idle.g3d" />
			<sound enabled="false" start-time="0.3">
				<!--sound-file path="sounds/anvil1.wav"/-->
			</sound>
		</skill>
		
		<skill>
			<type value="be_built" />
			<name value="be_built_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="300" />
			<animation path="models/king_idle.g3d" />
			<sound enabled="false" />
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="50"/>
			<animation path="models/king_move.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="../rook/sounds/walk.wav"/>
			</sound> 
		</skill>	

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="50"/>
			<anim-speed value="60"/>
			<animation path="models/king_action.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="../rook/sounds/air_attack.wav"/>
			</sound>
			<attack-strenght value="200"/>
			<attack-var value="150"/>
			<attack-range value="10"/>
			<attack-type value="impact"/>
			<attack-start-time value="0.4"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="false"/>
			</projectile>
			<splash value="true">
				<radius value="0"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>	
		
		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="90"/>
			<anim-speed value="90"/>
			<animation path="models/king_idle.g3d"/>
                        <sound enabled="true" start-time="0">
				<sound-file path="../rook/sounds/king_die.ogg"/>
			</sound>	
			<fade value="true"/>
		</skill>

		<skill>
			<type value="morph"/>
			<name value="rook"/>		
			<ep-cost value="0"/>
			<speed value="400"/>
			<anim-speed value="300"/>
			<animation path="models/king_idle.g3d"/>
			<sound enabled="false"/>
		</skill>					

	</skills>

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

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

		<command>
			<type value="attack"/>
			<name value="attack"/>
			<image path="images/attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="attack_skill"/>
		</command>
		
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="../rook/images/hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements>
			</upgrade-requirements>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>	

		<command>
			<type value="upgrade"/>
			<name value="upgrade_tactics" />
			<image path="../../upgrades/tactics/images/robotics.bmp" />
			<unit-requirements />
			<upgrade-requirements />
			<upgrade-skill value="upgrade_skill"/>
			<produced-upgrade name="tactics"/>
		</command>

		<command>
			<type value="upgrade"/>
			<name value="upgrade_advanced_tactics" />
			<image path="../../upgrades/advanced_tactics/images/robotics.bmp" />
			<unit-requirements />
			<upgrade-requirements />
			<upgrade-skill value="upgrade_skill"/>
			<produced-upgrade name="advanced_tactics"/>
		</command>

		<!--command>
			<type value="morph"/>
			<name value="promote_to_rook"/>
			<image path="../rook/images/rook.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<morph-skill value="rook"/>
			<morph-unit name= "rook"/>
			<discount value="0"/>
		</command-->

	</commands>
</unit>
