OSDN Git Service

swig generated java files
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btGhostObject.java
index 2cf5f17..b465747 100644 (file)
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.8
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package com.badlogic.gdx.physics.bullet;
-
-import com.badlogic.gdx.math.Vector3;
-import com.badlogic.gdx.math.Quaternion;
-import com.badlogic.gdx.math.Matrix3;
-import com.badlogic.gdx.math.Matrix4;
-
-public class btGhostObject extends btCollisionObject {
-  private long swigCPtr;
-
-  protected btGhostObject(long cPtr, boolean cMemoryOwn) {
-    super(gdxBulletJNI.btGhostObject_SWIGUpcast(cPtr), cMemoryOwn);
-    swigCPtr = cPtr;
-  }
-
-  public static long getCPtr(btGhostObject obj) {
-    return (obj == null) ? 0 : obj.swigCPtr;
-  }
-
-  protected void finalize() {
-    delete();
-  }
-
-  public synchronized void delete() {
-    if (swigCPtr != 0) {
-      if (swigCMemOwn) {
-        swigCMemOwn = false;
-        gdxBulletJNI.delete_btGhostObject(swigCPtr);
-      }
-      swigCPtr = 0;
-    }
-    super.delete();
-  }
-
-  public btGhostObject() {
-    this(gdxBulletJNI.new_btGhostObject(), true);
-  }
-
-  public void convexSweepTest(btConvexShape castShape, Matrix4 convexFromWorld, Matrix4 convexToWorld, ConvexResultCallback resultCallback, float allowedCcdPenetration) {
-    gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_0(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, convexFromWorld, convexToWorld, ConvexResultCallback.getCPtr(resultCallback), resultCallback, allowedCcdPenetration);
-  }
-
-  public void convexSweepTest(btConvexShape castShape, Matrix4 convexFromWorld, Matrix4 convexToWorld, ConvexResultCallback resultCallback) {
-    gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_1(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, convexFromWorld, convexToWorld, ConvexResultCallback.getCPtr(resultCallback), resultCallback);
-  }
-
-  public void rayTest(Vector3 rayFromWorld, Vector3 rayToWorld, RayResultCallback resultCallback) {
-    gdxBulletJNI.btGhostObject_rayTest(swigCPtr, this, rayFromWorld, rayToWorld, RayResultCallback.getCPtr(resultCallback), resultCallback);
-  }
-
-  public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy, btBroadphaseProxy thisProxy) {
-    gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);
-  }
-
-  public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy) {
-    gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy);
-  }
-
-  public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher, btBroadphaseProxy thisProxy) {
-    gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);
-  }
-
-  public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher) {
-    gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher);
-  }
-
-  public int getNumOverlappingObjects() {
-    return gdxBulletJNI.btGhostObject_getNumOverlappingObjects(swigCPtr, this);
-  }
-
-  public btCollisionObject getOverlappingObject(int index) {
-       long cPtr = gdxBulletJNI.btGhostObject_getOverlappingObject__SWIG_0(swigCPtr, this, index);
-       return (cPtr == 0) ? null : btCollisionObject.getInstance(cPtr, false);
-}
-
-  public btCollisionObjectArray getOverlappingPairs() {
-    return new btCollisionObjectArray(gdxBulletJNI.btGhostObject_getOverlappingPairs__SWIG_0(swigCPtr, this), false);
-  }
-
-  public static btGhostObject upcast(btCollisionObject colObj) {
-    long cPtr = gdxBulletJNI.btGhostObject_upcast__SWIG_0(btCollisionObject.getCPtr(colObj), colObj);
-    return (cPtr == 0) ? null : new btGhostObject(cPtr, false);
-  }
-
-}
+/* ----------------------------------------------------------------------------\r
+ * This file was automatically generated by SWIG (http://www.swig.org).\r
+ * Version 2.0.10\r
+ *\r
+ * Do not make changes to this file unless you know what you are doing--modify\r
+ * the SWIG interface file instead.\r
+ * ----------------------------------------------------------------------------- */\r
+\r
+package com.badlogic.gdx.physics.bullet;\r
+\r
+import com.badlogic.gdx.math.Vector3;\r
+import com.badlogic.gdx.math.Quaternion;\r
+import com.badlogic.gdx.math.Matrix3;\r
+import com.badlogic.gdx.math.Matrix4;\r
+\r
+public class btGhostObject extends btCollisionObject {\r
+       private long swigCPtr;\r
+       \r
+       protected btGhostObject(final String className, long cPtr, boolean cMemoryOwn) {\r
+               super(className, gdxBulletJNI.btGhostObject_SWIGUpcast(cPtr), cMemoryOwn);\r
+               swigCPtr = cPtr;\r
+       }\r
+       \r
+       protected btGhostObject(long cPtr, boolean cMemoryOwn) {\r
+               this("btGhostObject", cPtr, cMemoryOwn);\r
+               construct();\r
+       }\r
+       \r
+       @Override\r
+       protected void reset(long cPtr, boolean cMemoryOwn) {\r
+               if (!destroyed)\r
+                       destroy();\r
+               super.reset(gdxBulletJNI.btGhostObject_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn);\r
+       }\r
+       \r
+       public static long getCPtr(btGhostObject 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_btGhostObject(swigCPtr);\r
+                       }\r
+                       swigCPtr = 0;\r
+               }\r
+               super.delete();\r
+       }\r
+\r
+  public btGhostObject() {\r
+    this(gdxBulletJNI.new_btGhostObject(), true);\r
+  }\r
+\r
+  public void convexSweepTest(btConvexShape castShape, Matrix4 convexFromWorld, Matrix4 convexToWorld, ConvexResultCallback resultCallback, float allowedCcdPenetration) {\r
+    gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_0(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, convexFromWorld, convexToWorld, ConvexResultCallback.getCPtr(resultCallback), resultCallback, allowedCcdPenetration);\r
+  }\r
+\r
+  public void convexSweepTest(btConvexShape castShape, Matrix4 convexFromWorld, Matrix4 convexToWorld, ConvexResultCallback resultCallback) {\r
+    gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_1(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, convexFromWorld, convexToWorld, ConvexResultCallback.getCPtr(resultCallback), resultCallback);\r
+  }\r
+\r
+  public void rayTest(Vector3 rayFromWorld, Vector3 rayToWorld, RayResultCallback resultCallback) {\r
+    gdxBulletJNI.btGhostObject_rayTest(swigCPtr, this, rayFromWorld, rayToWorld, RayResultCallback.getCPtr(resultCallback), resultCallback);\r
+  }\r
+\r
+  public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy, btBroadphaseProxy thisProxy) {\r
+    gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);\r
+  }\r
+\r
+  public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy) {\r
+    gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy);\r
+  }\r
+\r
+  public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher, btBroadphaseProxy thisProxy) {\r
+    gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);\r
+  }\r
+\r
+  public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher) {\r
+    gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher);\r
+  }\r
+\r
+  public int getNumOverlappingObjects() {\r
+    return gdxBulletJNI.btGhostObject_getNumOverlappingObjects(swigCPtr, this);\r
+  }\r
+\r
+  public btCollisionObject getOverlappingObject(int index) {\r
+       return btCollisionObject.getInstance(gdxBulletJNI.btGhostObject_getOverlappingObject__SWIG_0(swigCPtr, this, index), false);\r
+}\r
+\r
+  public btCollisionObjectArray getOverlappingPairs() {\r
+    return new btCollisionObjectArray(gdxBulletJNI.btGhostObject_getOverlappingPairs__SWIG_0(swigCPtr, this), false);\r
+  }\r
+\r
+  public static btGhostObject upcast(btCollisionObject colObj) {\r
+    long cPtr = gdxBulletJNI.btGhostObject_upcast__SWIG_0(btCollisionObject.getCPtr(colObj), colObj);\r
+    return (cPtr == 0) ? null : new btGhostObject(cPtr, false);\r
+  }\r
+\r
+}\r