public function startGame() { parent::startGame(); $this->round = self::STATUS_IN_ROUND; }
public static function isSameGame(XcelGame $game, XcelGame $game2) { return $game->getServerId() === $game2->getServerId() && $game->getUniqueGameName() === $game2->getUniqueGameName(); }
public function resetGame() { for ($x = -1; $x <= 12; $x++) { for ($z = -$this->zCount; $z <= $this->zCount; $z++) { $this->getWorld()->setBlock(new Position($x, $this->configs["y"], $z, $this->getWorld()), Block::get(Block::AIR)); } } parent::resetGame(); $this->getWorld()->setSpawnLocation(new Position(0, $this->configs["y"] + 2, 0, $this->getWorld())); $this->getWorld()->setBlock(new Position(0, $this->configs["y"], 0, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(1, $this->configs["y"], 0, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(-1, $this->configs["y"], 0, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(0, $this->configs["y"], 1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(1, $this->configs["y"], 1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(-1, $this->configs["y"], 1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(0, $this->configs["y"], -1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(1, $this->configs["y"], -1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(-1, $this->configs["y"], -1, $this->getWorld()), Block::get(Block::WOOD)); }