Esempio n. 1
0
<?php

include "view/pubs.php";
$ordre = "NOM ASC";
if (isset($_GET["ordre"])) {
    $ordre = $_GET["ordre"];
}
$nom = "";
if (isset($_GET["nom"])) {
    $nom = $_GET["nom"];
}
$listeAventurier = Aventurier::ListerMesAventuriers($ordre, $nom);
include "view/gestionAventuriers.php";
Esempio n. 2
0
     foreach ($_POST as $key => $value) {
         if (substr($key, 0, 3) == "mob") {
             for ($a = 0; $a < $value; $a++) {
                 $id = substr($key, 3);
                 $mob = new Mob($id);
                 $mob->getLoot();
                 $mobs[] = $mob;
             }
         }
     }
     $_SESSION["mobs"] = serialize($mobs);
     include "view/creation_fiche_mob.php";
 } else {
     if ($_GET["action"] == "simulation_combat") {
         $aventuriers = Aventurier::Lister();
         $mesAventuriers = Aventurier::ListerMesAventuriers("NOM", "");
         include "view/simulation_combat_aventuriers_selection.php";
     } else {
         if ($_GET["action"] == "simulation_combat_mobs_selection") {
             $ids = array();
             $aventuriers = array();
             for ($a = 1; $a <= $_POST["maxID"]; $a++) {
                 if (isset($_POST["aventurier" . $a])) {
                     $aventurier = new Aventurier($a);
                     $aventuriers[] = $aventurier;
                 }
             }
             $mobs = Mob::Lister();
             $_SESSION["sim_combat_aventuriers"] = serialize($aventuriers);
             include "view/simulation_combat_mobs_selection.php";
         } else {