import jagdx.IDirect3DDevice;
import jagdx.IUnknown;

public class Class320 implements Interface41 {

   Class545_Sub2_Sub1 aClass545_Sub2_Sub1_4011;
   Class91 aClass91_4012;
   int anInt4013;
   int anInt4014;
   long aLong4015;


   public void method9() {
      if(this.aLong4015 != 0L) {
         IUnknown.Release(this.aLong4015);
         this.aLong4015 = 0L;
      }

      this.aClass545_Sub2_Sub1_4011.method15169(this);
   }

   public void method156() {
      if(this.aLong4015 != 0L) {
         this.aClass545_Sub2_Sub1_4011.method15858(this.aLong4015);
         this.aLong4015 = 0L;
      }

   }

   public int method29() {
      return this.anInt4014;
   }

   public long method81() {
      return this.aLong4015;
   }

   public void method10() {
      if(this.aLong4015 != 0L) {
         IUnknown.Release(this.aLong4015);
         this.aLong4015 = 0L;
      }

      this.aClass545_Sub2_Sub1_4011.method15169(this);
   }

   Class320(Class545_Sub2_Sub1 var1, Class91 var2, int var3, int var4, int var5) {
      this.aClass545_Sub2_Sub1_4011 = var1;
      this.anInt4013 = var3;
      this.anInt4014 = var4;
      this.aClass91_4012 = var2;
      this.aLong4015 = IDirect3DDevice.CreateDepthStencilSurface(this.aClass545_Sub2_Sub1_4011.aLong10294, var3, var4, Class545_Sub2_Sub1.method15856(this.aClass91_4012), 0 + var5, 0, false);
      this.aClass545_Sub2_Sub1_4011.method15120(this);
   }

   public void finalize() {
      this.method156();
   }

   public int method31() {
      return this.anInt4013;
   }

   public int method32() {
      return this.anInt4013;
   }

   public int method33() {
      return this.anInt4013;
   }

   public long method157() {
      return this.aLong4015;
   }

   public int method35() {
      return this.anInt4014;
   }

   public int method34() {
      return this.anInt4014;
   }

   public int method30() {
      return this.anInt4013;
   }

   void method5769() {
      this.method156();
   }

   void method5770() {
      this.method156();
   }

   void method5771() {
      this.method156();
   }

   public void method147() {
      if(this.aLong4015 != 0L) {
         this.aClass545_Sub2_Sub1_4011.method15858(this.aLong4015);
         this.aLong4015 = 0L;
      }

   }

   public void method8() {
      if(this.aLong4015 != 0L) {
         IUnknown.Release(this.aLong4015);
         this.aLong4015 = 0L;
      }

      this.aClass545_Sub2_Sub1_4011.method15169(this);
   }

   public long method155() {
      return this.aLong4015;
   }

   public void method153() {
      if(this.aLong4015 != 0L) {
         this.aClass545_Sub2_Sub1_4011.method15858(this.aLong4015);
         this.aLong4015 = 0L;
      }

   }

   public long method158() {
      return this.aLong4015;
   }

   public void method96() {
      if(this.aLong4015 != 0L) {
         this.aClass545_Sub2_Sub1_4011.method15858(this.aLong4015);
         this.aLong4015 = 0L;
      }

   }
}
