New automation

+Separated Automation.php from the UI and users classes

NOTE: This is only a test, it'll not absolutely be as it is in this commit in the final version.
This commit is contained in:
iopietro
2018-05-22 23:37:28 +02:00
parent edeee02333
commit f41666cabc
5 changed files with 31 additions and 3 deletions
+20
View File
@@ -16,6 +16,26 @@
## ##
#################################################################################
include_once("Database.php");
include_once("Data/buidata.php");
include_once("Data/unitdata.php");
include_once("Data/hero_full.php");
include_once("Units.php");
include_once("Battle.php");
include_once("Technology.php");
include_once("Ranking.php");
include_once("Generator.php");
include_once("Multisort.php");
$autoprefix = '';
for ($i = 0; $i < 5; $i++) {
$autoprefix = str_repeat('../', $i);
if (file_exists($autoprefix.'autoloader.php')) {
// we have our path, let's leave
break;
}
}
class Automation {
private $bountyresarray = [];
+1 -1
View File
@@ -317,5 +317,5 @@ class Village {
};
$village = new Village;
$building = new Building;
include_once("Automation.php");
//include_once("Automation.php");
?>