OSDN Git Service

Swig generated files
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btSoftBodyCollisionShape.java
index 6ae42e7..6fde730 100755 (executable)
@@ -14,38 +14,46 @@ import com.badlogic.gdx.math.Matrix3;
 import com.badlogic.gdx.math.Matrix4;\r
 \r
 public class btSoftBodyCollisionShape extends btConcaveShape {\r
-  private long swigCPtr;\r
+       private long swigCPtr;\r
+       \r
+       protected btSoftBodyCollisionShape(final String className, long cPtr, boolean cMemoryOwn) {\r
+               super(className, gdxBulletJNI.btSoftBodyCollisionShape_SWIGUpcast(cPtr), cMemoryOwn);\r
+               swigCPtr = cPtr;\r
+       }\r
+       \r
+       protected btSoftBodyCollisionShape(long cPtr, boolean cMemoryOwn) {\r
+               this("btSoftBodyCollisionShape", cPtr, cMemoryOwn);\r
+               construct();\r
+       }\r
+       \r
+       public static long getCPtr(btSoftBodyCollisionShape obj) {\r
+               return (obj == null) ? 0 : obj.swigCPtr;\r
+       }\r
 \r
-  protected btSoftBodyCollisionShape(long cPtr, boolean cMemoryOwn) {\r
-    super(gdxBulletJNI.btSoftBodyCollisionShape_SWIGUpcast(cPtr), cMemoryOwn);\r
-    swigCPtr = cPtr;\r
-  }\r
-\r
-  public static long getCPtr(btSoftBodyCollisionShape obj) {\r
-    return (obj == null) ? 0 : obj.swigCPtr;\r
-  }\r
+       @Override\r
+       protected void finalize() throws Throwable {\r
+               if (!destroyed)\r
+                       destroy();\r
+               super.finalize();\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_btSoftBodyCollisionShape(swigCPtr);\r
-      }\r
-      swigCPtr = 0;\r
-    }\r
-    super.delete();\r
-  }\r
+  @Override protected synchronized void delete() {\r
+               if (swigCPtr != 0) {\r
+                       if (swigCMemOwn) {\r
+                               swigCMemOwn = false;\r
+                               gdxBulletJNI.delete_btSoftBodyCollisionShape(swigCPtr);\r
+                       }\r
+                       swigCPtr = 0;\r
+               }\r
+               super.delete();\r
+       }\r
 \r
-  public void setM_body(btSoftBody value) {\r
-    gdxBulletJNI.btSoftBodyCollisionShape_m_body_set(swigCPtr, this, btSoftBody.getCPtr(value), value);\r
+  public void setBody(btSoftBody value) {\r
+    gdxBulletJNI.btSoftBodyCollisionShape_body_set(swigCPtr, this, btSoftBody.getCPtr(value), value);\r
   }\r
 \r
-  public btSoftBody getM_body() {\r
-    long cPtr = gdxBulletJNI.btSoftBodyCollisionShape_m_body_get(swigCPtr, this);\r
+  public btSoftBody getBody() {\r
+    long cPtr = gdxBulletJNI.btSoftBodyCollisionShape_body_get(swigCPtr, this);\r
     return (cPtr == 0) ? null : new btSoftBody(cPtr, false);\r
   }\r
 \r