Scenario\Nation 클래스 초기화

- 버그 수정
This commit is contained in:
2018-03-28 17:48:05 +09:00
parent f442ae3b97
commit b7237140c8
4 changed files with 63 additions and 3 deletions
+3 -1
View File
@@ -2,5 +2,7 @@
namespace sammo\Scenario;
class NPC{
public function build($env=[]){
}
}
+35 -1
View File
@@ -2,5 +2,39 @@
namespace sammo\Scenario;
class Nation{
private $id;
private $name;
private $color;
private $gold;
private $rice;
private $infoText;
private $tech;
private $type;
private $nationLevel;
private $cities = [];
private $generals = [];
public function __construct(
int $id = null,
string $name = '국가',
string $color = '#ffffff',
int $gold = 0,
int $rice = 2000,
string $infoText = '국가 설명',
int $tech = 0,
string $type = '유가',
int $nationLevel = 0,
array $cities = []
){
}
public function setID(int $id){
$this->id = $id;
}
public function build($env=[]){
}
}