public Scene getCurrentScene()
  {
    if (this.currentScene == null)
    {
      this.currentScene = this.world.getCurrentScene();
      if (this.currentScene == null)
        this.currentScene = this.world.getNextScene();
      if (this.currentScene != null)
      {
        Vector localVector = this.currentScene.getObjects();
        Enumeration localEnumeration = localVector.elements();
        while (localEnumeration.hasMoreElements())
        {
          PhysicalObject localPhysicalObject = (PhysicalObject)localEnumeration.nextElement();

          if (!(localPhysicalObject instanceof Trigger)) {
            continue;
          }
          ((Trigger)localPhysicalObject).setGameState(this);
        }
      }
    }

    return this.currentScene;
  }