'>
            <input type='button' value='version imprimable' style='width:200px;'/>
        </a>
    </div>
    <table>
        <tr>
            <td>
                <div style='float-left;border:1px #900000 solid;padding:10px;width:200px;background-image:url("image/bg3.png");'>
                    <div style='text-align:center;'><u>Initiative au combat</u></div>
                    <?php 
$chercher_des_noises = new Competence(14);
$prioritaires = array();
$ordre = array();
$indexOrdre = 0;
foreach ($listeAventuriers as $aventurier) {
    if ($aventurier->possedeCompetence($chercher_des_noises)) {
        $prioritaires[] = $aventurier;
    } else {
        $nonPrioritaires[] = $aventurier;
    }
}
for ($cou = 20; $cou > 0; $cou--) {
    $indexOrdre = count($ordre);
    foreach ($prioritaires as $aventurier) {
        if ($aventurier->COU == $cou) {
            $ordre[$indexOrdre][] = $aventurier;
        }
    }
}
for ($cou = 20; $cou > 0; $cou--) {
    $indexOrdre = count($ordre);
Beispiel #2
0
imagettftext($image, $fontSize, 0, 75, 525, $noir, $font, $aventurier->XP);
imagettftext($image, $fontSize, 0, 30, 843, $noir, $font, $aventurier->DESTIN);
imagettftext($image, $fontSize, 0, 85, 946, $noir, $font, $aventurier->OR);
imagettftext($image, $fontSize, 0, 85, 1066, $noir, $font, $aventurier->ARGENT);
imagettftext($image, $fontSize, 0, 85, 1185, $noir, $font, $aventurier->CUIVRE);
imagettftext($image, $fontSize, 0, 975, 362, $noir, $font, $aventurier->RESISTMAG);
if ($aventurier->PR_MAX == 0) {
    //echo "0 = ".$aventurier->PR_MAX;
    imagettftext($image, 15, 0, 895, 922, $noir, $font, "pas de limite");
} else {
    //echo "0 != ".$aventurier->PR_MAX;
    imagettftext($image, 15, 0, 914, 922, $noir, $font, "max : " . $aventurier->PR_MAX);
}
if ($aventurier->PR != 0) {
    $temp = $aventurier->PR;
    if ($aventurier->possedeCompetence(new Competence(49))) {
        $temp .= "+1";
    }
    imagettftext($image, $fontSize, 0, 928, 892, $noir, $font, $temp);
}
//MAGIEPHYS
if ($aventurier->MAGIEPHYS != 0) {
    imagettftext($image, $fontSize, 0, 490, 362, $noir, $font, $aventurier->MAGIEPHYS);
}
//MAGIEPSY
if ($aventurier->MAGIEPSY != 0) {
    imagettftext($image, $fontSize, 0, 695, 362, $noir, $font, $aventurier->MAGIEPSY);
}
$compte_arme = 0;
$modif = 0;
foreach ($aventurier->armes as $arme) {