本文整理汇总了PHP中Card::isBasicLand方法的典型用法代码示例。如果您正苦于以下问题:PHP Card::isBasicLand方法的具体用法?PHP Card::isBasicLand怎么用?PHP Card::isBasicLand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Card
的用法示例。
在下文中一共展示了Card::isBasicLand方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getCardRenderer
public function getCardRenderer(Card $card)
{
global $config;
$renderer = array();
// Determine the correct CardRenderer.
if (strpos($card->title, "/") !== FALSE) {
$renderer[] = new SplitRenderer($this->setDB);
} else {
if (array_key_exists(strtolower($card->title), $this->titleToLevel)) {
$renderer[] = new LevelRenderer($this->setDB);
} else {
if (array_key_exists(strtolower($card->title), $this->titleToTransform) && strpos($card->legal, "\n-----\n") !== FALSE) {
$renderer[] = new TransformRenderer($this->setDB, $this->artDB, "day");
$renderer[] = new TransformRenderer($this->setDB, $this->artDB, "night");
} else {
if (strpos($card->legal, "\n-----\n") !== FALSE) {
$renderer[] = new EighthFlipRenderer($this->setDB);
} else {
if ($card->set == "VAN" && $config['render.vanguard']) {
$renderer[] = new VanguardRenderer($this->setDB);
} else {
if (strpos($card->title, "Jace, the Mind Sculptor") !== FALSE && $config['render.planeswalker']) {
$renderer[] = new PlanesWalker4Renderer($this->setDB);
} else {
if (strpos($card->englishType, "Planeswalker") !== FALSE && $config['render.planeswalker']) {
$renderer[] = new PlanesWalkerRenderer($this->setDB);
} else {
if (strpos($card->englishType, "Plane") !== FALSE && $config['render.plane']) {
$renderer[] = new PlaneRenderer($this->setDB);
} else {
$isPre8th = $this->setDB->isPre8th($card->set) && !$card->promo;
if ($isPre8th && !$config['render.preEighth.basic.land.frames'] && $card->isBasicLand()) {
$isPre8th = false;
}
if ($config['render.preEighth'] && ($isPre8th || !$config['render.eighth'])) {
$renderer[] = new PreEighthRenderer($this->setDB);
} else {
if ($config['render.eighth']) {
$renderer[] = new EighthRenderer($this->setDB);
}
}
}
}
}
}
}
}
}
}
if (empty($renderer)) {
error('No renderer enabled for card: ' . $card);
}
foreach ($renderer as $r) {
$r->card = $card;
$r->writer = $this;
$r->outputDir = $config['output.directory'];
$r->outputName = $this->cleanOutputName($card, $r);
}
return $renderer;
}
示例2: getCardRenderer
public function getCardRenderer (Card $card) {
global $config;
// Determine the correct CardRenderer.
if (strpos($card->title, "/") !== FALSE)
$renderer = new SplitRenderer($this->setDB);
else if(strpos($card->legal, "\n-----\n") !== FALSE)
$renderer = new EighthFlipRenderer($this->setDB);
else if ($card->set == "VG" && $config['render.vanguard'])
$renderer = new VanguardRenderer($this->setDB);
else if (strpos($card->englishType, "Planeswalker")!== FALSE && $config['render.planeswalker'])
$renderer = new PlanesWalkerRenderer($this->setDB);
else if (strpos($card->englishType, "Plane")!== FALSE && $config['render.plane'])
$renderer = new PlaneRenderer($this->setDB);
else {
$isPre8th = $this->setDB->isPre8th($card->set) && !$card->promo;
if ($isPre8th && !$config['render.preEighth.basic.land.frames'] && $card->isBasicLand()) $isPre8th = false;
if ($config['render.preEighth'] && ($isPre8th || !$config['render.eighth']))
$renderer = new PreEighthRenderer($this->setDB);
else if ($config['render.eighth']){
$renderer = new EighthRenderer($this->setDB);
}
}
if (!$renderer) error('No renderer enabled for card: ' . $card);
$renderer->card = $card;
$renderer->writer = $this;
$renderer->outputDir = $config['output.directory'];
$outputName = $card->title;
if ($card->pic) $outputName .= ' (' . $card->pic . ')';
$outputName .= $config['output.suffix'];
// Filenames can't contain ".
if (strpos($outputName, '"') !== FALSE) $outputName = str_replace('"', '', $outputName);
$renderer->outputName = $outputName;
return $renderer;
}