npc 처리용 새 클래스 준비중

This commit is contained in:
2018-10-06 01:52:14 +09:00
parent f7b59f0140
commit b94081c45b
3 changed files with 126 additions and 81 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace sammo;
class GeneralAI{
protected $general;
protected $nation;
protected $dipState;
protected $genType;
protected $env;
public function __construct(General $general){
$db = DB::db();
$this->general = $general;
if($general->getRawCity() === null){
$general->setRawCity($db->queryFirstRow('SELECT * FROM city WHERE city = %i', $general->getCityID()));
}
}
public function chooseNationTurn($nationCommand, $nationArg):array{
}
public function chooseGeneralTurn($generalCommand, $generalArg):array{
}
}