<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title>Bojovníci</title> </head> <body> <?php function nactiTridu($trida) { require "{$trida}.php"; } spl_autoload_register("nactiTridu"); $gandalf = new Kouzelnik("Gandalf", 100, 70, 70, 100); $zalgoren = new Bojovnik("Zalgoren", 100, 60, 60); $arena = new Arena(); $arena->vloz($zalgoren, $gandalf); $arena->boj(); ?> </body> </html>