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

<unit>
	<parameters>
		<size value="5" />
		<height value="5" />
		<max-hp value="5000" regeneration="8"/>
		<max-ep value="0" />
		<armor value="0" />
		<armor-type value="wood"/>				
		<sight value="15" />
		<time value="300" />
		<multi-selection value="true" />
		<cellmap value="false"/>
		<levels/>
		<fields>
			<field value="land" />
		</fields>
		<properties/>
			<!--property value="burnable"/>
		</properties-->
		<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements />
		<resource-requirements>
			<resource name="gold" amount="500" />
			<resource name="stone" amount="60" />
			<resource name="wood" amount="1000" />
		</resource-requirements>
		<resources-stored/>
		<image path="images/castle.bmp" />
		<image-cancel path="images/tech_cancel.bmp"/>
		<meeting-point value="false" image-path="images/meeting_point.bmp"/>
		<selection-sounds enabled="true">
			<sound path="sounds/tech_click.wav" />
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/tech_click.wav" />
		</command-sounds>
	</parameters>
	
	<!-- *** skills *** -->
	<skills>

		<skill>
			<type value="stop" />
			<name value="stop_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="100" />
			<animation path="models/ship_sit.g3d" />
			<sound enabled="false" />
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="150"/>
			<animation path="models/ship_sit.g3d"/>
			<sound enabled="true" start-time="0.1">
				<sound-file path="sounds/catapult_walk1.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/ship_sit.g3d" />
			<sound enabled="false" />
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation path="models/ship_attack.g3d"/>
			<sound enabled="true" start-time="0.1">
				<sound-file path="sounds/catapult_attack1.wav"/>
				<sound-file path="sounds/catapult_attack2.wav"/>
			</sound> 
			<attack-strenght value="200"/>
			<attack-var value="10"/>
			<attack-range value="10"/>
			<attack-type value="impact"/>
			<attack-start-time value="0.7"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="/sounds/catapult_hit1.wav"/>
					<sound-file path="/sounds/catapult_hit2.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="2"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>	
		
		<skill>
			<type value="produce" />
			<name value="produce_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="50" />
			<animation path="models/ship_sit.g3d" />
			<sound enabled="false" />
		</skill>	
		
		<skill>
			<type value="die" />
			<name value="die_skill"/>		
			<ep-cost value="0" />
			<speed value="300" />
			<anim-speed value="50" />
			<animation path="models/ship_die.g3d" />
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/tech_building_fall2.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>

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

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

		<command>
			<type value="attack"/>
			<name value="fire_ball"/>
			<image path="images/catapult_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="../pistol_man/images/tech_hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

		<command>
			<type value="produce"/>
			<name value="produce_long_boat" />
			<image path="../long_boat/images/castle.bmp" />
			<unit-requirements />
			<upgrade-requirements />
			<produce-skill value="produce_skill"/>
			<produced-unit name="long_boat"/>
		</command>	

	</commands>
</unit>
