• R/O
  • SSH
  • HTTPS

jinrousiki: コミット


コミットメタ情報

リビジョン1955 (tree)
日時2017-04-12 21:42:07
作者umethyl

ログメッセージ

Role_priest::GetPriestResultRole()

変更サマリ

差分

--- trunk/include/role/counter_decide.php (revision 1954)
+++ trunk/include/role/counter_decide.php (revision 1955)
@@ -13,7 +13,7 @@
1313 public function DecideVoteKill() {
1414 if ($this->IsVoteKill()) return;
1515
16- $stack = $this->GetVotePossible();
16+ $stack = $this->GetVotePossible();
1717 foreach ($this->GetStack() as $actor => $target) {
1818 if (in_array($actor, $stack) && in_array($target, $stack)) {
1919 $this->SetVoteKill($this->GetCounterDecideTarget($actor, $target));
--- trunk/include/role/high_priest.php (revision 1954)
+++ trunk/include/role/high_priest.php (revision 1955)
@@ -10,7 +10,7 @@
1010 return DB::$ROOM->date < 5;
1111 }
1212
13- protected function GetOutputPriestRole() {
13+ protected function GetPriestResultRole() {
1414 return DB::$ROOM->date % 2 == 0 ? 'priest' : 'bishop_priest';
1515 }
1616
--- trunk/include/role/priest.php (revision 1954)
+++ trunk/include/role/priest.php (revision 1955)
@@ -17,16 +17,11 @@
1717
1818 //司祭結果表示 (Mixin あり)
1919 protected function OutputPriestResult() {
20- RoleHTML::OutputResult($this->GetResult($this->GetOutputPriestRole()));
20+ RoleHTML::OutputResult($this->GetPriestResultType($this->GetPriestResultRole()));
2121 }
2222
23- //司祭結果表示役職取得
24- protected function GetOutputPriestRole() {
25- return $this->role;
26- }
27-
28- //イベント名取得
29- final protected function GetResult($role = null) {
23+ //司祭結果表示能力取得
24+ final protected function GetPriestResultType($role = null) {
3025 if (is_null($role)) {
3126 $role = $this->role;
3227 }
@@ -33,6 +28,11 @@
3328 return strtoupper($role) . '_RESULT';
3429 }
3530
31+ //司祭結果表示役職取得
32+ protected function GetPriestResultRole() {
33+ return $this->role;
34+ }
35+
3636 //司祭情報収集
3737 final public function AggregatePriest() {
3838 //-- 初期化 --//
旧リポジトリブラウザで表示