<?php
require_once('../include/header.php');
require_once('displayFunction.php');
?>

<h2>Unit Index</h2>
<p>
<a href="#ground">Ground Units</a><br/>
<a href="#air">Air Units</a><br/>
<a href="#sea">Sea Units</a><br/>
<a href="#buildings">Stationary Units</a><br/>
</p>

<?
// POSSIBLE MOVEMENT : 1=grass, 2=Wood, 3=Mountain, 4=holes, 5=rails, 6= sea, 7=deepsea
print "<a name=\"ground\"></a>";
print "<h2>Ground Units</h2>";

displayUnitInfo($name="Infantry", $img="infantry.png", 
		$move=6, $armour=10, $transporter="-",
		$ground=10, $ground_range=null, 
		$air="8", $air_range=null,
		$sea=10,$sea_range=null,
		$possible_movement="12345",
		$strategy="");

displayUnitInfo($name="Scouts", $img="scout.png", 
		$move=10, $armour=10, $transporter="-",
		$ground=15, $ground_range="1-2", 
		$air="-", $air_range=null,
		$sea=12,$sea_range="1-2",
		$possible_movement="145",
		$strategy=null);

displayUnitInfo($name="Medium Tanks", $img="medium_tank.png", 
		$move=8, $armour=15, $transporter="-",
		$ground=15, $ground_range=null, 
		$air="-", $air_range=null,
		$sea=15,$sea_range=null,
		$possible_movement="1245",
		$strategy=null);
		
displayUnitInfo($name="Heavy Tanks", $img="heavy_tank.png", 
		$move=7, $armour=20, $transporter="-",
		$ground=20, $ground_range=null, 
		$air=10, $air_range=null,
		$sea=20,$sea_range=null,
		$possible_movement="1245",
		$strategy=null);
		
displayUnitInfo($name="Anti-Aircraft Tanks", $img="antiaircraft_tank.png", 
		$move=9, $armour=15, $transporter="-",
		$ground=12, $ground_range=null, 
		$air=25, $air_range=null,
		$sea=12,$sea_range=null,
		$possible_movement="12345",
		$strategy=null);

displayUnitInfo($name="Anti-Aircraft Guns", $img="antiaircraft_gun.png", 
		$move=5, $armour=7, $transporter="-",
		$ground="-", $ground_range=null, 
		$air=30, $air_range="2-6",
		$sea="-",$sea_range=null,
		$possible_movement="1",
		$strategy=null);

displayUnitInfo($name="Artillery", $img="artillery.png", 
		$move=5, $armour=7, $transporter="-",
		$ground=25, $ground_range="1-2", 
		$air="-", $air_range=null,
		$sea=25,$sea_range="2-6",
		$possible_movement="1",
		$strategy=null);

displayUnitInfo($name="Armoured Train", $img="armoured_train.png", 
		$move=10, $armour=22, $transporter="-",
		$ground=20, $ground_range="1-2", 
		$air=12, $air_range="1-2",
		$sea=20,$sea_range="1-2",
		$possible_movement="5",
		$strategy=null);

displayUnitInfo($name="Rail Guns", $img="rail_gun.png", 
		$move=8, $armour=22, $transporter="-",
		$ground=20, $ground_range="2-7", 
		$air="-", $air_range=null,
		$sea=20,$sea_range="2-7",
		$possible_movement="5",
		$strategy=null);
		
displayUnitInfo($name="Troop Train", $img="troop_train.png", 
		$move=10, $armour=16, $transporter="Yes",
		$ground="-", $ground_range=null, 
		$air="-", $air_range=null,
		$sea="-",$sea_range=null,
		$possible_movement="5",
		$strategy=null);

displayUnitInfo($name="Personnel Carriers", $img="personnel_carrier.png", 
		$move=9, $armour=12, $transporter="Yes",
		$ground=8, $ground_range=null, 
		$air="6", $air_range=null,
		$sea=8,$sea_range=null,
		$possible_movement="15",
		$strategy=null);
		
displayUnitInfo($name="Hovercraft", $img="hovercraft.png", 
		$move=8, $armour=12, $transporter="Yes",
		$ground=12, $ground_range=null, 
		$air=8, $air_range=null,
		$sea=12,$sea_range=null,
		$possible_movement="1456",
		$strategy=null);
		

// AIR UNITS

print "<a name=\"air\"></a>";
print "<h2>Air Units</h2>";

displayUnitInfo($name="Gunships", $img="gunship.png", 
		$move=6, $armour=15, $transporter="-",
		$ground=20, $ground_range=null, 
		$air="12", $air_range=null,
		$sea=18,$sea_range=null,
		$possible_movement="12345",
		$strategy=null);

displayUnitInfo($name="Interceptors", $img="interceptor.png", 
		$move=9, $armour=12, $transporter="-",
		$ground="-", $ground_range=null, 
		$air="35", $air_range=null,
		$sea="-",$sea_range=null,
		$possible_movement="1234567",
		$strategy=null);

displayUnitInfo($name="Fighter Squadron", $img="fighter_squadron.png", 
		$move=8, $armour=12, $transporter="-",
		$ground="15", $ground_range=null, 
		$air="15", $air_range=null,
		$sea="15",$sea_range=null,
		$possible_movement="1234567",
		$strategy=null);
		
displayUnitInfo($name="Bomber Wing", $img="bomber_wing.png", 
		$move=7, $armour=12, $transporter="-",
		$ground="25", $ground_range=null, 
		$air="10", $air_range=null,
		$sea="25",$sea_range=null,
		$possible_movement="1234567",
		$strategy=null);
		
displayUnitInfo($name="Transport Planes", $img="transport_plane.png", 
		$move=7, $armour=10, $transporter="Yes",
		$ground="-", $ground_range=null, 
		$air="-", $air_range=null,
		$sea="-",$sea_range=null,
		$possible_movement="1234567",
		$strategy=null);

// SEA UNITS

print "<a name=\"sea\"></a>";
print "<h2>Sea Units</h2>";


displayUnitInfo($name="Patrol Boats", $img="patrol_boat.png", 
		$move=8, $armour=13, $transporter="Yes",
		$ground="12", $ground_range=null, 
		$air="8", $air_range=null,
		$sea="12",$sea_range=null,
		$possible_movement="67",
		$strategy=null);
		
displayUnitInfo($name="Torpedo Boats", $img="torpedo_boat.png", 
		$move=8, $armour=15, $transporter="-",
		$ground="8", $ground_range=null, 
		$air="-", $air_range=null,
		$sea="12",$sea_range="1-2",
		$possible_movement="67",
		$strategy=null);

displayUnitInfo($name="Submarines", $img="submarine.png", 
		$move=6, $armour=18, $transporter="-",
		$ground="5", $ground_range=null, 
		$air="-", $air_range=null,
		$sea="25",$sea_range="1-3",
		$possible_movement="7",
		$strategy=null);
		
displayUnitInfo($name="Aircraft Carriers", $img="aircraft_carrier.png", 
		$move=8, $armour=25, $transporter="Yes",
		$ground="-", $ground_range=null, 
		$air="20", $air_range="1-3",
		$sea="-",$sea_range=null,
		$possible_movement="7",
		$strategy=null);

displayUnitInfo($name="Troopships", $img="troopship.png", 
		$move=6, $armour=15, $transporter="Yes",
		$ground="-", $ground_range=null, 
		$air="-", $air_range=null,
		$sea="-",$sea_range=null,
		$possible_movement="67",
		$strategy=null);



// BUILDINGS

print "<a name=\"buildings\"></a>";
print "<h2>Stationary Units</h2>";

displayUnitInfo($name="Bunker", $img="bunker.png", 
		$move=0, $armour=22, $transporter="-",
		$ground="18", $ground_range="1-2", 
		$air="15", $air_range=null,
		$sea="18",$sea_range="1-2",
		$possible_movement="125",
		$strategy=null);



?>

<?php
require_once('../include/footer.php');
?>
