도시와 병종에 대한 초기 값 클래스 추가

- 도시의 경우 DB 초기화를 위한 build() 함수 포함
This commit is contained in:
2018-03-31 03:57:16 +09:00
parent 63aa31cb92
commit a1d37e5697
4 changed files with 571 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
namespace sammo;
class CityInitialDetail{
public $id;
public $name;
public $level;
public $population;
public $agriculture;
public $commerce;
public $security;
public $defence;
public $wall;
public $region;
public $path;
public function __construct(
int $id,
string $name,
int $level,
int $population,
int $agriculture,
int $commerce,
int $security,
int $defence,
int $wall,
int $region,
int $path
){
$this->id = $id;
$this->name = $name;
$this->level = $level;
$this->population = $population;
$this->agriculture = $agriculture;
$this->commerce = $commerce;
$this->security = $security;
$this->defence = $defence;
$this->wall = $wall;
$this->region = $region;
$this->path = $path;
}
}