<?php
include("class_batiments_unités.php");
//Valeur du batiment (carriere de pierre)
$couts['population'] = array(1=>14, 2=>16, 3=>20, 4=>22, 5=>26, 6=>30, 7=>36, 8=>42, 9=>50, 10=>58, 11=>68, 12=>78, 13=>92, 14=>108, 15=>126, 16=>148, 17=>172, 18=>202, 19=>236, 20=>276);
$couts['bois'] = array(1=>400, 2=>504, 3=>636, 4=>800, 5=>1008, 6=>1270, 7=>1600, 8=>2016, 9=>2542, 10=>3212, 11=>4034, 12=>5084, 13=>6404, 14=>8070, 15=>10168, 16=>12812, 17=>16144, 18=>20340, 19=>25628, 20=>32292);
$couts['pierre'] = array(1=>340, 2=>436, 3=>558, 4=>714, 5=>912, 6=>1168, 7=>1496, 8=>1914, 9=>2450, 10=>3136, 11=>4014, 12=5138, 13=>6576, 14=>8418, 15=>10776, 16=>13792, 17=>17654, 18=>22596, 19=>28924, 20=>37022);
$couts['fer'] = array(1=>180, 2=>226, 3=>286, 4=>360, 5=>454, 6=>572, 7=>720, 8=>908, 9=>1144, 10=>1440, 11=>1816, 12=>2288, 13=>3632, 14=>4576, 15=>5766, 16=>7264, 17=>9154, 18=>11534, 19=>14532, 20=>18310);
$points = array(1=>32, 2=>38, 3=>46, 4=>56, 5=>66, 6=>80, 7=96, 8=>114, 9=>138, 10=>166, 11=>198, 12=>238, 13=>286, 14=>342, 15=>410, 16=>494, 17=>592, 18=>710, 19=>852, 20=>1022);
$diminution_temps = array(1=>1, 2=>2, 3=>3, 4=>4, 5=>5, 6=>6, 7=>7, 8=>8, 9=>9, 10=>10, 11=>11, 12=>12, 13=>13, 14=>14, 15=>15, 16=>16, 17=>17, 18=>18, 19=>19, 20=>20);
// Création du batiment:
$caserne= new BatimentUnites($couts, $points);
?>
Message d'erreur:Parse error: parse error, expecting `')'' in C:\wamp\www\aranhil\essaipage\caserne.php on line 8
Merci d'avance