OSDN Git Service

9fd61d7b489efc2543b44446a968840dfaec675b
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / GdxCollisionObjectBridge.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.10
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8
9 package com.badlogic.gdx.physics.bullet;
10
11 import com.badlogic.gdx.math.Vector3;
12 import com.badlogic.gdx.math.Quaternion;
13 import com.badlogic.gdx.math.Matrix3;
14 import com.badlogic.gdx.math.Matrix4;
15
16 public class GdxCollisionObjectBridge extends BulletBase {
17         private long swigCPtr;
18         
19         protected GdxCollisionObjectBridge(final String className, long cPtr, boolean cMemoryOwn) {
20                 super(className, cPtr, cMemoryOwn);
21                 swigCPtr = cPtr;
22         }
23         
24         protected GdxCollisionObjectBridge(long cPtr, boolean cMemoryOwn) {
25                 this("GdxCollisionObjectBridge", cPtr, cMemoryOwn);
26                 construct();
27         }
28         
29         public static long getCPtr(GdxCollisionObjectBridge obj) {
30                 return (obj == null) ? 0 : obj.swigCPtr;
31         }
32
33         @Override
34         protected void finalize() throws Throwable {
35                 if (!destroyed)
36                         destroy();
37                 super.finalize();
38         }
39
40   @Override protected synchronized void delete() {
41                 if (swigCPtr != 0) {
42                         if (swigCMemOwn) {
43                                 swigCMemOwn = false;
44                                 gdxBulletJNI.delete_GdxCollisionObjectBridge(swigCPtr);
45                         }
46                         swigCPtr = 0;
47                 }
48                 super.delete();
49         }
50
51   public void setUserValue(int value) {
52     gdxBulletJNI.GdxCollisionObjectBridge_userValue_set(swigCPtr, this, value);
53   }
54
55   public int getUserValue() {
56     return gdxBulletJNI.GdxCollisionObjectBridge_userValue_get(swigCPtr, this);
57   }
58
59   public void setContactCallbackFlag(int value) {
60     gdxBulletJNI.GdxCollisionObjectBridge_contactCallbackFlag_set(swigCPtr, this, value);
61   }
62
63   public int getContactCallbackFlag() {
64     return gdxBulletJNI.GdxCollisionObjectBridge_contactCallbackFlag_get(swigCPtr, this);
65   }
66
67   public void setContactCallbackFilter(int value) {
68     gdxBulletJNI.GdxCollisionObjectBridge_contactCallbackFilter_set(swigCPtr, this, value);
69   }
70
71   public int getContactCallbackFilter() {
72     return gdxBulletJNI.GdxCollisionObjectBridge_contactCallbackFilter_get(swigCPtr, this);
73   }
74
75   public GdxCollisionObjectBridge() {
76     this(gdxBulletJNI.new_GdxCollisionObjectBridge(), true);
77   }
78
79 }