diff options
Diffstat (limited to 'src/Model/Unit')
-rw-r--r-- | src/Model/Unit/Diplomat.php | 18 | ||||
-rw-r--r-- | src/Model/Unit/Merchant.php | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/Model/Unit/Diplomat.php b/src/Model/Unit/Diplomat.php new file mode 100644 index 0000000..e263cd3 --- /dev/null +++ b/src/Model/Unit/Diplomat.php @@ -0,0 +1,18 @@ +<?php + +namespace App\Model\Unit; + +use App\Model\Unit; + +class Diplomat extends Unit +{ + public string $buildingType = 'Embassy'; + public int $travelTime = 1; + public int $populationDemandFactor = 1; + public array $resourceRequirements = [ + 'wood' => 5.0, + 'clay' => 5.0, + 'iron' => 5.0, + 'food' => 5.0, + ]; +} diff --git a/src/Model/Unit/Merchant.php b/src/Model/Unit/Merchant.php new file mode 100644 index 0000000..61e2090 --- /dev/null +++ b/src/Model/Unit/Merchant.php @@ -0,0 +1,18 @@ +<?php + +namespace App\Model\Unit; + +use App\Model\Unit; + +class Merchant extends Unit +{ + public string $buildingType = 'Marketplace'; + public int $travelTime = 1; + public int $populationDemandFactor = 1; + public array $resourceRequirements = [ + 'wood' => 2.0, + 'clay' => 2.0, + 'iron' => 2.0, + 'food' => 2.0, + ]; +} |