コード例 #1
0
ファイル: Game.php プロジェクト: uhtoff/WotR
 /**
  * 
  * @param Side $side
  * @param string $type
  * @return CardGroup
  */
 public function getDeck(Side $side, $type)
 {
     $method = "get{$side->getAbbreviation()}{$type}Deck";
     return $this->{$method}();
 }
コード例 #2
0
ファイル: Battle.php プロジェクト: uhtoff/WotR
 public function getCombatant(Side $s)
 {
     if ($s->isShadow()) {
         return $this->getShadow();
     } else {
         return $this->getFP();
     }
 }
コード例 #3
0
ファイル: Scenario.php プロジェクト: uhtoff/WotR
 public function getStartDice(Side $side)
 {
     return $this->{'getStart' . $side->getAbbreviation() . 'Dice'}();
 }