OSDN Git Service

a3147eea189f829d5c8e96195c0a597814613ab3
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / ContactListener.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 ContactListener extends BulletBase {
17         private long swigCPtr;
18         
19         protected ContactListener(final String className, long cPtr, boolean cMemoryOwn) {
20                 super(className, cPtr, cMemoryOwn);
21                 swigCPtr = cPtr;
22         }
23         
24         protected ContactListener(long cPtr, boolean cMemoryOwn) {
25                 this("ContactListener", cPtr, cMemoryOwn);
26                 construct();
27         }
28         
29         @Override
30         protected void reset(long cPtr, boolean cMemoryOwn) {
31                 if (!destroyed)
32                         destroy();
33                 super.reset(swigCPtr = cPtr, cMemoryOwn);
34         }
35         
36         public static long getCPtr(ContactListener obj) {
37                 return (obj == null) ? 0 : obj.swigCPtr;
38         }
39
40         @Override
41         protected void finalize() throws Throwable {
42                 if (!destroyed)
43                         destroy();
44                 super.finalize();
45         }
46
47   @Override protected synchronized void delete() {
48                 if (swigCPtr != 0) {
49                         if (swigCMemOwn) {
50                                 swigCMemOwn = false;
51                                 gdxBulletJNI.delete_ContactListener(swigCPtr);
52                         }
53                         swigCPtr = 0;
54                 }
55                 super.delete();
56         }
57
58   protected void swigDirectorDisconnect() {
59     swigCMemOwn = false;
60     delete();
61   }
62
63   public void swigReleaseOwnership() {
64     swigCMemOwn = false;
65     gdxBulletJNI.ContactListener_change_ownership(this, swigCPtr, false);
66   }
67
68   public void swigTakeOwnership() {
69     swigCMemOwn = true;
70     gdxBulletJNI.ContactListener_change_ownership(this, swigCPtr, true);
71   }
72
73         public ContactListener() {
74                 this(false);
75                 if (!setEvents())
76                         throw new com.badlogic.gdx.utils.GdxRuntimeException("Only one method per callback event can be overridden.");
77                 enable();
78         }
79
80   private ContactListener(boolean dummy) {
81     this(gdxBulletJNI.new_ContactListener(dummy), true);
82     gdxBulletJNI.ContactListener_director_connect(this, swigCPtr, swigCMemOwn, true);
83   }
84
85   public void enable() {
86     gdxBulletJNI.ContactListener_enable(swigCPtr, this);
87   }
88
89   public void disable() {
90     gdxBulletJNI.ContactListener_disable(swigCPtr, this);
91   }
92
93   public void enableOnAdded() {
94     gdxBulletJNI.ContactListener_enableOnAdded(swigCPtr, this);
95   }
96
97   public void disableOnAdded() {
98     gdxBulletJNI.ContactListener_disableOnAdded(swigCPtr, this);
99   }
100
101   public boolean isOnAddedEnabled() {
102     return gdxBulletJNI.ContactListener_isOnAddedEnabled(swigCPtr, this);
103   }
104
105   public boolean onContactAdded(btManifoldPoint cp, btCollisionObjectWrapper colObj0Wrap, int partId0, int index0, btCollisionObjectWrapper colObj1Wrap, int partId1, int index1) {
106     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_0(swigCPtr, this, cp, btCollisionObjectWrapper.getCPtr(colObj0Wrap), colObj0Wrap, partId0, index0, btCollisionObjectWrapper.getCPtr(colObj1Wrap), colObj1Wrap, partId1, index1);
107   }
108
109   public boolean onContactAdded(btManifoldPoint cp, btCollisionObject colObj0, int partId0, int index0, btCollisionObject colObj1, int partId1, int index1) {
110     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_1(swigCPtr, this, cp, btCollisionObject.getCPtr(colObj0), colObj0, partId0, index0, btCollisionObject.getCPtr(colObj1), colObj1, partId1, index1);
111   }
112
113   public boolean onContactAdded(btManifoldPoint cp, int userValue0, int partId0, int index0, int userValue1, int partId1, int index1) {
114     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_2(swigCPtr, this, cp, userValue0, partId0, index0, userValue1, partId1, index1);
115   }
116
117   public boolean onContactAdded(btManifoldPoint cp, btCollisionObjectWrapper colObj0Wrap, int partId0, int index0, boolean match0, btCollisionObjectWrapper colObj1Wrap, int partId1, int index1, boolean match1) {
118     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_3(swigCPtr, this, cp, btCollisionObjectWrapper.getCPtr(colObj0Wrap), colObj0Wrap, partId0, index0, match0, btCollisionObjectWrapper.getCPtr(colObj1Wrap), colObj1Wrap, partId1, index1, match1);
119   }
120
121   public boolean onContactAdded(btManifoldPoint cp, btCollisionObject colObj0, int partId0, int index0, boolean match0, btCollisionObject colObj1, int partId1, int index1, boolean match1) {
122     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_4(swigCPtr, this, cp, btCollisionObject.getCPtr(colObj0), colObj0, partId0, index0, match0, btCollisionObject.getCPtr(colObj1), colObj1, partId1, index1, match1);
123   }
124
125   public boolean onContactAdded(btManifoldPoint cp, int userValue0, int partId0, int index0, boolean match0, int userValue1, int partId1, int index1, boolean match1) {
126     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_5(swigCPtr, this, cp, userValue0, partId0, index0, match0, userValue1, partId1, index1, match1);
127   }
128
129   public boolean onContactAdded(btCollisionObjectWrapper colObj0Wrap, int partId0, int index0, btCollisionObjectWrapper colObj1Wrap, int partId1, int index1) {
130     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_6(swigCPtr, this, btCollisionObjectWrapper.getCPtr(colObj0Wrap), colObj0Wrap, partId0, index0, btCollisionObjectWrapper.getCPtr(colObj1Wrap), colObj1Wrap, partId1, index1);
131   }
132
133   public boolean onContactAdded(btCollisionObject colObj0, int partId0, int index0, btCollisionObject colObj1, int partId1, int index1) {
134     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_7(swigCPtr, this, btCollisionObject.getCPtr(colObj0), colObj0, partId0, index0, btCollisionObject.getCPtr(colObj1), colObj1, partId1, index1);
135   }
136
137   public boolean onContactAdded(int userValue0, int partId0, int index0, int userValue1, int partId1, int index1) {
138     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_8(swigCPtr, this, userValue0, partId0, index0, userValue1, partId1, index1);
139   }
140
141   public boolean onContactAdded(btCollisionObjectWrapper colObj0Wrap, int partId0, int index0, boolean match0, btCollisionObjectWrapper colObj1Wrap, int partId1, int index1, boolean match1) {
142     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_9(swigCPtr, this, btCollisionObjectWrapper.getCPtr(colObj0Wrap), colObj0Wrap, partId0, index0, match0, btCollisionObjectWrapper.getCPtr(colObj1Wrap), colObj1Wrap, partId1, index1, match1);
143   }
144
145   public boolean onContactAdded(btCollisionObject colObj0, int partId0, int index0, boolean match0, btCollisionObject colObj1, int partId1, int index1, boolean match1) {
146     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_10(swigCPtr, this, btCollisionObject.getCPtr(colObj0), colObj0, partId0, index0, match0, btCollisionObject.getCPtr(colObj1), colObj1, partId1, index1, match1);
147   }
148
149   public boolean onContactAdded(int userValue0, int partId0, int index0, boolean match0, int userValue1, int partId1, int index1, boolean match1) {
150     return gdxBulletJNI.ContactListener_onContactAdded__SWIG_11(swigCPtr, this, userValue0, partId0, index0, match0, userValue1, partId1, index1, match1);
151   }
152
153   public void enableOnProcessed() {
154     gdxBulletJNI.ContactListener_enableOnProcessed(swigCPtr, this);
155   }
156
157   public void disableOnProcessed() {
158     gdxBulletJNI.ContactListener_disableOnProcessed(swigCPtr, this);
159   }
160
161   public boolean isOnProcessedEnabled() {
162     return gdxBulletJNI.ContactListener_isOnProcessedEnabled(swigCPtr, this);
163   }
164
165   public void onContactProcessed(btManifoldPoint cp, btCollisionObject colObj0, btCollisionObject colObj1) {
166     gdxBulletJNI.ContactListener_onContactProcessed__SWIG_0(swigCPtr, this, cp, btCollisionObject.getCPtr(colObj0), colObj0, btCollisionObject.getCPtr(colObj1), colObj1);
167   }
168
169   public void onContactProcessed(btManifoldPoint cp, int userValue0, int userValue1) {
170     gdxBulletJNI.ContactListener_onContactProcessed__SWIG_1(swigCPtr, this, cp, userValue0, userValue1);
171   }
172
173   public void onContactProcessed(btManifoldPoint cp, btCollisionObject colObj0, boolean match0, btCollisionObject colObj1, boolean match1) {
174     gdxBulletJNI.ContactListener_onContactProcessed__SWIG_2(swigCPtr, this, cp, btCollisionObject.getCPtr(colObj0), colObj0, match0, btCollisionObject.getCPtr(colObj1), colObj1, match1);
175   }
176
177   public void onContactProcessed(btManifoldPoint cp, int userValue0, boolean match0, int userValue1, boolean match1) {
178     gdxBulletJNI.ContactListener_onContactProcessed__SWIG_3(swigCPtr, this, cp, userValue0, match0, userValue1, match1);
179   }
180
181   public void onContactProcessed(btCollisionObject colObj0, btCollisionObject colObj1) {
182     gdxBulletJNI.ContactListener_onContactProcessed__SWIG_4(swigCPtr, this, btCollisionObject.getCPtr(colObj0), colObj0, btCollisionObject.getCPtr(colObj1), colObj1);
183   }
184
185   public void onContactProcessed(int userValue0, int userValue1) {
186     gdxBulletJNI.ContactListener_onContactProcessed__SWIG_5(swigCPtr, this, userValue0, userValue1);
187   }
188
189   public void onContactProcessed(btCollisionObject colObj0, boolean match0, btCollisionObject colObj1, boolean match1) {
190     gdxBulletJNI.ContactListener_onContactProcessed__SWIG_6(swigCPtr, this, btCollisionObject.getCPtr(colObj0), colObj0, match0, btCollisionObject.getCPtr(colObj1), colObj1, match1);
191   }
192
193   public void onContactProcessed(int userValue0, boolean match0, int userValue1, boolean match1) {
194     gdxBulletJNI.ContactListener_onContactProcessed__SWIG_7(swigCPtr, this, userValue0, match0, userValue1, match1);
195   }
196
197   public void enableOnDestroyed() {
198     gdxBulletJNI.ContactListener_enableOnDestroyed(swigCPtr, this);
199   }
200
201   public void disableOnDestroyed() {
202     gdxBulletJNI.ContactListener_disableOnDestroyed(swigCPtr, this);
203   }
204
205   public boolean isOnDestroyedEnabled() {
206     return gdxBulletJNI.ContactListener_isOnDestroyedEnabled(swigCPtr, this);
207   }
208
209   public void onContactDestroyed(int manifoldPointUserValue) {
210     gdxBulletJNI.ContactListener_onContactDestroyed(swigCPtr, this, manifoldPointUserValue);
211   }
212
213   public void enableOnStarted() {
214     gdxBulletJNI.ContactListener_enableOnStarted(swigCPtr, this);
215   }
216
217   public void disableOnStarted() {
218     gdxBulletJNI.ContactListener_disableOnStarted(swigCPtr, this);
219   }
220
221   public boolean isOnStartedEnabled() {
222     return gdxBulletJNI.ContactListener_isOnStartedEnabled(swigCPtr, this);
223   }
224
225   public void onContactStarted(btPersistentManifold manifold) {
226     gdxBulletJNI.ContactListener_onContactStarted__SWIG_0(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold);
227   }
228
229   public void onContactStarted(btCollisionObject colObj0, btCollisionObject colObj1) {
230     gdxBulletJNI.ContactListener_onContactStarted__SWIG_1(swigCPtr, this, btCollisionObject.getCPtr(colObj0), colObj0, btCollisionObject.getCPtr(colObj1), colObj1);
231   }
232
233   public void onContactStarted(int userValue0, int userValue1) {
234     gdxBulletJNI.ContactListener_onContactStarted__SWIG_2(swigCPtr, this, userValue0, userValue1);
235   }
236
237   public void onContactStarted(btPersistentManifold manifold, boolean match0, boolean match1) {
238     gdxBulletJNI.ContactListener_onContactStarted__SWIG_3(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold, match0, match1);
239   }
240
241   public void onContactStarted(btCollisionObject colObj0, boolean match0, btCollisionObject colObj1, boolean match1) {
242     gdxBulletJNI.ContactListener_onContactStarted__SWIG_4(swigCPtr, this, btCollisionObject.getCPtr(colObj0), colObj0, match0, btCollisionObject.getCPtr(colObj1), colObj1, match1);
243   }
244
245   public void onContactStarted(int userValue0, boolean match0, int userValue1, boolean match1) {
246     gdxBulletJNI.ContactListener_onContactStarted__SWIG_5(swigCPtr, this, userValue0, match0, userValue1, match1);
247   }
248
249   public void enableOnEnded() {
250     gdxBulletJNI.ContactListener_enableOnEnded(swigCPtr, this);
251   }
252
253   public void disableOnEnded() {
254     gdxBulletJNI.ContactListener_disableOnEnded(swigCPtr, this);
255   }
256
257   public boolean isOnEndedEnabled() {
258     return gdxBulletJNI.ContactListener_isOnEndedEnabled(swigCPtr, this);
259   }
260
261   public void onContactEnded(btPersistentManifold manifold) {
262     gdxBulletJNI.ContactListener_onContactEnded__SWIG_0(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold);
263   }
264
265   public void onContactEnded(btCollisionObject colObj0, btCollisionObject colObj1) {
266     gdxBulletJNI.ContactListener_onContactEnded__SWIG_1(swigCPtr, this, btCollisionObject.getCPtr(colObj0), colObj0, btCollisionObject.getCPtr(colObj1), colObj1);
267   }
268
269   public void onContactEnded(int userValue0, int userValue1) {
270     gdxBulletJNI.ContactListener_onContactEnded__SWIG_2(swigCPtr, this, userValue0, userValue1);
271   }
272
273   public void onContactEnded(btPersistentManifold manifold, boolean match0, boolean match1) {
274     gdxBulletJNI.ContactListener_onContactEnded__SWIG_3(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold, match0, match1);
275   }
276
277   public void onContactEnded(btCollisionObject colObj0, boolean match0, btCollisionObject colObj1, boolean match1) {
278     gdxBulletJNI.ContactListener_onContactEnded__SWIG_4(swigCPtr, this, btCollisionObject.getCPtr(colObj0), colObj0, match0, btCollisionObject.getCPtr(colObj1), colObj1, match1);
279   }
280
281   public void onContactEnded(int userValue0, boolean match0, int userValue1, boolean match1) {
282     gdxBulletJNI.ContactListener_onContactEnded__SWIG_5(swigCPtr, this, userValue0, match0, userValue1, match1);
283   }
284
285   private boolean setEvents() {
286     return gdxBulletJNI.ContactListener_setEvents(swigCPtr, this);
287   }
288
289 }