OSDN Git Service

swig generated java files
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btActionInterface.java
old mode 100755 (executable)
new mode 100644 (file)
index 136a35b..03936a4
@@ -13,32 +13,47 @@ import com.badlogic.gdx.math.Quaternion;
 import com.badlogic.gdx.math.Matrix3;\r
 import com.badlogic.gdx.math.Matrix4;\r
 \r
-public class btActionInterface {\r
-  private long swigCPtr;\r
-  protected boolean swigCMemOwn;\r
+public class btActionInterface extends BulletBase {\r
+       private long swigCPtr;\r
+       \r
+       protected btActionInterface(final String className, long cPtr, boolean cMemoryOwn) {\r
+               super(className, cPtr, cMemoryOwn);\r
+               swigCPtr = cPtr;\r
+       }\r
+       \r
+       protected btActionInterface(long cPtr, boolean cMemoryOwn) {\r
+               this("btActionInterface", cPtr, cMemoryOwn);\r
+               construct();\r
+       }\r
+       \r
+       @Override\r
+       protected void reset(long cPtr, boolean cMemoryOwn) {\r
+               if (!destroyed)\r
+                       destroy();\r
+               super.reset(swigCPtr = cPtr, cMemoryOwn);\r
+       }\r
+       \r
+       public static long getCPtr(btActionInterface obj) {\r
+               return (obj == null) ? 0 : obj.swigCPtr;\r
+       }\r
 \r
-  protected btActionInterface(long cPtr, boolean cMemoryOwn) {\r
-    swigCMemOwn = cMemoryOwn;\r
-    swigCPtr = cPtr;\r
-  }\r
-\r
-  public static long getCPtr(btActionInterface 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_btActionInterface(swigCPtr);\r
-      }\r
-      swigCPtr = 0;\r
-    }\r
-  }\r
+  @Override protected synchronized void delete() {\r
+               if (swigCPtr != 0) {\r
+                       if (swigCMemOwn) {\r
+                               swigCMemOwn = false;\r
+                               gdxBulletJNI.delete_btActionInterface(swigCPtr);\r
+                       }\r
+                       swigCPtr = 0;\r
+               }\r
+               super.delete();\r
+       }\r
 \r
   public void updateAction(btCollisionWorld collisionWorld, float deltaTimeStep) {\r
     gdxBulletJNI.btActionInterface_updateAction(swigCPtr, this, btCollisionWorld.getCPtr(collisionWorld), collisionWorld, deltaTimeStep);\r