public void initialize()
  {
    if (GameApplet.thisApplet != null)
    {
      Enumeration localEnumeration = getEnvironment().getObjects().elements();
      while (localEnumeration.hasMoreElements())
      {
        Object localObject = localEnumeration.nextElement();
        if (!(localObject instanceof Cannon))
          continue;
        this.shooter = ((Cannon)localObject);
        return;
      }
    }
  }