src/Neuron/GameServer.php
public function getWindow ($sWindow)
	{
		$objWindow = $this->objGame->getWindow ($sWindow);
		if ($objWindow instanceof Neuron_GameServer_Interfaces_Window)
		{
			$window = $objWindow;
		}
		else
		{
			$sClassName = 'Neuron_GameServer_Windows_'.ucfirst ($sWindow);
			if (class_exists ($sClassName))
			{
				$window = new $sClassName ();
			}
			else
			{
				throw new Neuron_Core_Error ('Window not found: '.$sWindow);
			}
		}

		$window->setServer ($this);

		return $window;
	}
public function getWindow ($sWindow)
	{
		$objWindow = $this->objGame->getWindow ($sWindow);
		if ($objWindow instanceof Neuron_GameServer_Interfaces_Window)
		{
			$window = $objWindow;
		}
		else
		{
			$sClassName = 'Neuron_GameServer_Windows_'.ucfirst ($sWindow);
			if (class_exists ($sClassName))
			{
				$window = new $sClassName ();
			}
			else
			{
				throw new Neuron_Core_Error ('Window not found: '.$sWindow);
			}
		}

		$window->setServer ($this);

		return $window;
	}
/*
Return the right window object