diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-09-24 13:40:25 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-09-24 13:40:25 +0200 |
commit | fa00b957378a393f8edbfc98ef111d35d18ecb09 (patch) | |
tree | 654e7dc5414f7f2795dbe996d3e1570793a5b1b8 /src/Model/Unit |
initial commit
Diffstat (limited to 'src/Model/Unit')
-rw-r--r-- | src/Model/Unit/Farmer.php | 15 | ||||
-rw-r--r-- | src/Model/Unit/Miner.php | 15 | ||||
-rw-r--r-- | src/Model/Unit/PitWorker.php | 15 | ||||
-rw-r--r-- | src/Model/Unit/WoodCutter.php | 15 |
4 files changed, 60 insertions, 0 deletions
diff --git a/src/Model/Unit/Farmer.php b/src/Model/Unit/Farmer.php new file mode 100644 index 0000000..de37802 --- /dev/null +++ b/src/Model/Unit/Farmer.php @@ -0,0 +1,15 @@ +<?php + +namespace App\Model\Unit; + +use App\Model\Unit; + +class Farmer extends Unit +{ + public string $buildingType = 'Farm'; + public int $travelTime = 1; + public int $populationDemandFactor = 1; + public array $resourceRequirements = [ + 'wood' => 1.0, + ]; +} diff --git a/src/Model/Unit/Miner.php b/src/Model/Unit/Miner.php new file mode 100644 index 0000000..ae6c00a --- /dev/null +++ b/src/Model/Unit/Miner.php @@ -0,0 +1,15 @@ +<?php + +namespace App\Model\Unit; + +use App\Model\Unit; + +class Miner extends Unit +{ + public string $buildingType = 'IronMine'; + public int $travelTime = 1; + public int $populationDemandFactor = 1; + public array $resourceRequirements = [ + 'wood' => 1.0, + ]; +} diff --git a/src/Model/Unit/PitWorker.php b/src/Model/Unit/PitWorker.php new file mode 100644 index 0000000..4f873b4 --- /dev/null +++ b/src/Model/Unit/PitWorker.php @@ -0,0 +1,15 @@ +<?php + +namespace App\Model\Unit; + +use App\Model\Unit; + +class PitWorker extends Unit +{ + public string $buildingType = 'ClayPit'; + public int $travelTime = 1; + public int $populationDemandFactor = 1; + public array $resourceRequirements = [ + 'wood' => 1.0, + ]; +} diff --git a/src/Model/Unit/WoodCutter.php b/src/Model/Unit/WoodCutter.php new file mode 100644 index 0000000..17923ca --- /dev/null +++ b/src/Model/Unit/WoodCutter.php @@ -0,0 +1,15 @@ +<?php + +namespace App\Model\Unit; + +use App\Model\Unit; + +class WoodCutter extends Unit +{ + public string $buildingType = 'WoodCutter'; + public int $travelTime = 1; + public int $populationDemandFactor = 1; + public array $resourceRequirements = [ + 'wood' => 1.0, + ]; +} |