OSDN Git Service

Swig generated files
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btContinuousConvexCollision.java
index 35bfde7..89fcaf9 100755 (executable)
@@ -14,31 +14,39 @@ import com.badlogic.gdx.math.Matrix3;
 import com.badlogic.gdx.math.Matrix4;\r
 \r
 public class btContinuousConvexCollision extends btConvexCast {\r
-  private long swigCPtr;\r
-\r
-  protected btContinuousConvexCollision(long cPtr, boolean cMemoryOwn) {\r
-    super(gdxBulletJNI.btContinuousConvexCollision_SWIGUpcast(cPtr), cMemoryOwn);\r
-    swigCPtr = cPtr;\r
-  }\r
-\r
-  public static long getCPtr(btContinuousConvexCollision obj) {\r
-    return (obj == null) ? 0 : obj.swigCPtr;\r
-  }\r
-\r
-  protected void finalize() {\r
-    delete();\r
-  }\r
-\r
-  public synchronized void delete() {\r
-    if (swigCPtr != 0) {\r
-      if (swigCMemOwn) {\r
-        swigCMemOwn = false;\r
-        gdxBulletJNI.delete_btContinuousConvexCollision(swigCPtr);\r
-      }\r
-      swigCPtr = 0;\r
-    }\r
-    super.delete();\r
-  }\r
+       private long swigCPtr;\r
+       \r
+       protected btContinuousConvexCollision(final String className, long cPtr, boolean cMemoryOwn) {\r
+               super(className, gdxBulletJNI.btContinuousConvexCollision_SWIGUpcast(cPtr), cMemoryOwn);\r
+               swigCPtr = cPtr;\r
+       }\r
+       \r
+       protected btContinuousConvexCollision(long cPtr, boolean cMemoryOwn) {\r
+               this("btContinuousConvexCollision", cPtr, cMemoryOwn);\r
+               construct();\r
+       }\r
+       \r
+       public static long getCPtr(btContinuousConvexCollision obj) {\r
+               return (obj == null) ? 0 : obj.swigCPtr;\r
+       }\r
+\r
+       @Override\r
+       protected void finalize() throws Throwable {\r
+               if (!destroyed)\r
+                       destroy();\r
+               super.finalize();\r
+       }\r
+\r
+  @Override protected synchronized void delete() {\r
+               if (swigCPtr != 0) {\r
+                       if (swigCMemOwn) {\r
+                               swigCMemOwn = false;\r
+                               gdxBulletJNI.delete_btContinuousConvexCollision(swigCPtr);\r
+                       }\r
+                       swigCPtr = 0;\r
+               }\r
+               super.delete();\r
+       }\r
 \r
   public btContinuousConvexCollision(btConvexShape shapeA, btConvexShape shapeB, SWIGTYPE_p_btSimplexSolverInterface simplexSolver, btConvexPenetrationDepthSolver penetrationDepthSolver) {\r
     this(gdxBulletJNI.new_btContinuousConvexCollision__SWIG_0(btConvexShape.getCPtr(shapeA), shapeA, btConvexShape.getCPtr(shapeB), shapeB, SWIGTYPE_p_btSimplexSolverInterface.getCPtr(simplexSolver), btConvexPenetrationDepthSolver.getCPtr(penetrationDepthSolver), penetrationDepthSolver), true);\r