示例#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'}();
 }