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

<unit>
	<parameters>
		<size value="4"/>
		<height value="6"/>
		<max-hp value="7000" regeneration="0"/>
		<max-ep value="0"/>
		<armor value="20"/>	
		<armor-type value="wood"/>			
		<sight value="16"/>
		<time value="140"/>	
		<multi-selection value="false"/>
		<cellmap value="true">
			<row value="0110"/>
			<row value="0110"/>
			<row value="0110"/>
			<row value="0110"/>
		</cellmap>
		<levels/>	
		<fields>
			<field value="land"/>
		</fields>	
		<properties>
		</properties>
		<light enabled="false"/>
		<damage-particles value="true">
			<particle-file path="damage_particles.xml"/>
			<particle-file path="damage2_particles.xml"/>
		</damage-particles>
		<unit-requirements>
			<unit name="obelisk"/>
		</unit-requirements>
		<upgrade-requirements>
			<!--upgrade name="advanced_architecture"/-->
		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="250"/>
			<resource name="wood" amount="250"/>			
		</resource-requirements>
		<resources-stored/>
		<image path="images/sphinx.bmp"/>
		<image-cancel path="../spearman/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/tech_click.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/tech_click.wav"/>
		</command-sounds>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="300"/>
			<anim-speed value="100"/>
			<animation path="models/sphinx.g3d"/>
			<sound enabled="false"/>
		</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/sphinx_construction.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="80"/>
			<anim-speed value="90"/>
			<animation path="models/sphinx.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/defense_tower_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/defense_tower_attack2.wav"/>
			</sound>
			<attack-strenght value="120"/>
			<attack-var value="50"/>
			<attack-range value="12"/>
			<attack-type value="piercing"/>
			<attack-start-time value="0.3"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit1.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit2.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit3.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit4.wav"/>
					<!--sound-file path="$COMMONDATAPATH/sounds/archmage_hit1.wav"/-->
				</sound>
			</projectile>
			<splash value="true">
				<radius value="4"/>
				<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="300"/>
			<anim-speed value="300"/>
			<animation path="models/sphinx_destroyed.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/tech_building_fall5.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>

	</skills>
	
	<commands>

		<command>
			<type value="stop"/>
			<name value="attack_off"/>
			<image path="images/sphinx_attack_off.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value="attack_stopped"/>
			<name value="attack_on"/>
			<image path="images/sphinx_attack.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<attack-skill value="attack_skill"/>
                        <stop-skill value="stop_skill"/>
		</command>

	</commands>
</unit>
