@newkrok/nape-js 3.4.1 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1318,6 +1318,53 @@ _ZPP_Flags.ArbiterType_SENSOR = null;
1318
1318
  _ZPP_Flags.ArbiterType_FLUID = null;
1319
1319
  // --- Internal flag ---
1320
1320
  _ZPP_Flags.internal = false;
1321
+ // --- ID constants (numeric bitmasks / enum ordinals) ---
1322
+ _ZPP_Flags.id_ImmState_ACCEPT = 1;
1323
+ _ZPP_Flags.id_ImmState_IGNORE = 2;
1324
+ _ZPP_Flags.id_ImmState_ALWAYS = 4;
1325
+ _ZPP_Flags.id_GravMassMode_DEFAULT = 0;
1326
+ _ZPP_Flags.id_GravMassMode_FIXED = 1;
1327
+ _ZPP_Flags.id_GravMassMode_SCALED = 2;
1328
+ _ZPP_Flags.id_InertiaMode_DEFAULT = 0;
1329
+ _ZPP_Flags.id_InertiaMode_FIXED = 1;
1330
+ _ZPP_Flags.id_MassMode_DEFAULT = 0;
1331
+ _ZPP_Flags.id_MassMode_FIXED = 1;
1332
+ _ZPP_Flags.id_BodyType_STATIC = 1;
1333
+ _ZPP_Flags.id_BodyType_DYNAMIC = 2;
1334
+ _ZPP_Flags.id_BodyType_KINEMATIC = 3;
1335
+ _ZPP_Flags.id_ListenerType_BODY = 0;
1336
+ _ZPP_Flags.id_ListenerType_CONSTRAINT = 1;
1337
+ _ZPP_Flags.id_ListenerType_INTERACTION = 2;
1338
+ _ZPP_Flags.id_ListenerType_PRE = 3;
1339
+ _ZPP_Flags.id_PreFlag_ACCEPT = 1;
1340
+ _ZPP_Flags.id_PreFlag_IGNORE = 2;
1341
+ _ZPP_Flags.id_PreFlag_ACCEPT_ONCE = 3;
1342
+ _ZPP_Flags.id_PreFlag_IGNORE_ONCE = 4;
1343
+ _ZPP_Flags.id_CbEvent_BEGIN = 0;
1344
+ _ZPP_Flags.id_CbEvent_END = 1;
1345
+ _ZPP_Flags.id_CbEvent_WAKE = 2;
1346
+ _ZPP_Flags.id_CbEvent_SLEEP = 3;
1347
+ _ZPP_Flags.id_CbEvent_BREAK = 4;
1348
+ _ZPP_Flags.id_CbEvent_PRE = 5;
1349
+ _ZPP_Flags.id_CbEvent_ONGOING = 6;
1350
+ _ZPP_Flags.id_InteractionType_COLLISION = 1;
1351
+ _ZPP_Flags.id_InteractionType_SENSOR = 2;
1352
+ _ZPP_Flags.id_InteractionType_FLUID = 4;
1353
+ _ZPP_Flags.id_InteractionType_ANY = 7;
1354
+ _ZPP_Flags.id_Winding_UNDEFINED = 0;
1355
+ _ZPP_Flags.id_Winding_CLOCKWISE = 1;
1356
+ _ZPP_Flags.id_Winding_ANTICLOCKWISE = 2;
1357
+ _ZPP_Flags.id_ValidationResult_VALID = 0;
1358
+ _ZPP_Flags.id_ValidationResult_DEGENERATE = 1;
1359
+ _ZPP_Flags.id_ValidationResult_CONCAVE = 2;
1360
+ _ZPP_Flags.id_ValidationResult_SELF_INTERSECTING = 3;
1361
+ _ZPP_Flags.id_ShapeType_CIRCLE = 0;
1362
+ _ZPP_Flags.id_ShapeType_POLYGON = 1;
1363
+ _ZPP_Flags.id_Broadphase_DYNAMIC_AABB_TREE = 0;
1364
+ _ZPP_Flags.id_Broadphase_SWEEP_AND_PRUNE = 1;
1365
+ _ZPP_Flags.id_ArbiterType_COLLISION = 1;
1366
+ _ZPP_Flags.id_ArbiterType_SENSOR = 2;
1367
+ _ZPP_Flags.id_ArbiterType_FLUID = 4;
1321
1368
  var ZPP_Flags = _ZPP_Flags;
1322
1369
 
1323
1370
  // src/native/callbacks/ZPP_CbType.ts
@@ -1348,6 +1395,15 @@ var _ZPP_CbType = class _ZPP_CbType {
1348
1395
  this.interactors = new zpp8.util.ZNPList_ZPP_Interactor();
1349
1396
  this.cbsets = new zpp8.util.ZNPList_ZPP_CbSet();
1350
1397
  }
1398
+ /**
1399
+ * Initialize ANY_* singleton CbTypes. Called once from compiled factory.
1400
+ */
1401
+ static _initEnums(nape67) {
1402
+ _ZPP_CbType.ANY_SHAPE = new nape67.callbacks.CbType();
1403
+ _ZPP_CbType.ANY_BODY = new nape67.callbacks.CbType();
1404
+ _ZPP_CbType.ANY_COMPOUND = new nape67.callbacks.CbType();
1405
+ _ZPP_CbType.ANY_CONSTRAINT = new nape67.callbacks.CbType();
1406
+ }
1351
1407
  /** Sort comparator by id. */
1352
1408
  static setlt(a, b) {
1353
1409
  return a.id < b.id;
@@ -1526,6 +1582,11 @@ var _ZPP_CbType = class _ZPP_CbType {
1526
1582
  _ZPP_CbType.__name__ = ["zpp_nape", "callbacks", "ZPP_CbType"];
1527
1583
  // --- Static: namespace references ---
1528
1584
  _ZPP_CbType._zpp = null;
1585
+ // --- Static: ANY_* singleton CbType instances (set by _initEnums) ---
1586
+ _ZPP_CbType.ANY_SHAPE = null;
1587
+ _ZPP_CbType.ANY_BODY = null;
1588
+ _ZPP_CbType.ANY_COMPOUND = null;
1589
+ _ZPP_CbType.ANY_CONSTRAINT = null;
1529
1590
  var ZPP_CbType = _ZPP_CbType;
1530
1591
 
1531
1592
  // src/native/util/ZPP_ID.ts
@@ -2350,6 +2411,37 @@ var _ZPP_Listener = class _ZPP_Listener {
2350
2411
  }
2351
2412
  removedFromSpace() {
2352
2413
  }
2414
+ /**
2415
+ * Initialize singleton enum arrays. Called once from compiled factory after
2416
+ * nape.callbacks.ListenerType and nape.callbacks.CbEvent stubs exist.
2417
+ */
2418
+ static _initEnums(nape67, ZPP_Flags2) {
2419
+ const mkLT = () => {
2420
+ ZPP_Flags2.internal = true;
2421
+ const o = new nape67.callbacks.ListenerType();
2422
+ ZPP_Flags2.internal = false;
2423
+ return o;
2424
+ };
2425
+ if (ZPP_Flags2.ListenerType_BODY == null) ZPP_Flags2.ListenerType_BODY = mkLT();
2426
+ if (ZPP_Flags2.ListenerType_CONSTRAINT == null) ZPP_Flags2.ListenerType_CONSTRAINT = mkLT();
2427
+ if (ZPP_Flags2.ListenerType_INTERACTION == null) ZPP_Flags2.ListenerType_INTERACTION = mkLT();
2428
+ if (ZPP_Flags2.ListenerType_PRE == null) ZPP_Flags2.ListenerType_PRE = mkLT();
2429
+ _ZPP_Listener.types = [ZPP_Flags2.ListenerType_BODY, ZPP_Flags2.ListenerType_CONSTRAINT, ZPP_Flags2.ListenerType_INTERACTION, ZPP_Flags2.ListenerType_PRE];
2430
+ const mkCE = () => {
2431
+ ZPP_Flags2.internal = true;
2432
+ const o = new nape67.callbacks.CbEvent();
2433
+ ZPP_Flags2.internal = false;
2434
+ return o;
2435
+ };
2436
+ if (ZPP_Flags2.CbEvent_BEGIN == null) ZPP_Flags2.CbEvent_BEGIN = mkCE();
2437
+ if (ZPP_Flags2.CbEvent_END == null) ZPP_Flags2.CbEvent_END = mkCE();
2438
+ if (ZPP_Flags2.CbEvent_WAKE == null) ZPP_Flags2.CbEvent_WAKE = mkCE();
2439
+ if (ZPP_Flags2.CbEvent_SLEEP == null) ZPP_Flags2.CbEvent_SLEEP = mkCE();
2440
+ if (ZPP_Flags2.CbEvent_BREAK == null) ZPP_Flags2.CbEvent_BREAK = mkCE();
2441
+ if (ZPP_Flags2.CbEvent_PRE == null) ZPP_Flags2.CbEvent_PRE = mkCE();
2442
+ if (ZPP_Flags2.CbEvent_ONGOING == null) ZPP_Flags2.CbEvent_ONGOING = mkCE();
2443
+ _ZPP_Listener.events = [ZPP_Flags2.CbEvent_BEGIN, ZPP_Flags2.CbEvent_END, ZPP_Flags2.CbEvent_WAKE, ZPP_Flags2.CbEvent_SLEEP, ZPP_Flags2.CbEvent_BREAK, ZPP_Flags2.CbEvent_PRE, ZPP_Flags2.CbEvent_ONGOING];
2444
+ }
2353
2445
  };
2354
2446
  // --- Static: Haxe metadata ---
2355
2447
  _ZPP_Listener.__name__ = ["zpp_nape", "callbacks", "ZPP_Listener"];
@@ -3073,6 +3165,17 @@ var _ZPP_InteractionListener = class _ZPP_InteractionListener extends ZPP_Listen
3073
3165
  }
3074
3166
  return ret;
3075
3167
  }
3168
+ /**
3169
+ * Initialize static working lists. Called once from compiled factory.
3170
+ */
3171
+ static _initStatics(zpp_nape) {
3172
+ _ZPP_InteractionListener.UCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
3173
+ _ZPP_InteractionListener.VCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
3174
+ _ZPP_InteractionListener.WCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
3175
+ _ZPP_InteractionListener.UCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
3176
+ _ZPP_InteractionListener.VCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
3177
+ _ZPP_InteractionListener.WCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
3178
+ }
3076
3179
  };
3077
3180
  _ZPP_InteractionListener.__name__ = ["zpp_nape", "callbacks", "ZPP_InteractionListener"];
3078
3181
  // --- Static: working lists for set operations (initialized at engine init time) ---
@@ -5855,6 +5958,21 @@ var _ZPP_Body = class _ZPP_Body {
5855
5958
  }
5856
5959
  }
5857
5960
  }
5961
+ /**
5962
+ * Initialize BodyType singleton enums. Called once from compiled factory.
5963
+ */
5964
+ static _initEnums(nape67, ZPP_Flags2) {
5965
+ const mk = () => {
5966
+ ZPP_Flags2.internal = true;
5967
+ const o = new nape67.phys.BodyType();
5968
+ ZPP_Flags2.internal = false;
5969
+ return o;
5970
+ };
5971
+ if (ZPP_Flags2.BodyType_STATIC == null) ZPP_Flags2.BodyType_STATIC = mk();
5972
+ if (ZPP_Flags2.BodyType_DYNAMIC == null) ZPP_Flags2.BodyType_DYNAMIC = mk();
5973
+ if (ZPP_Flags2.BodyType_KINEMATIC == null) ZPP_Flags2.BodyType_KINEMATIC = mk();
5974
+ _ZPP_Body.types = [null, ZPP_Flags2.BodyType_STATIC, ZPP_Flags2.BodyType_DYNAMIC, ZPP_Flags2.BodyType_KINEMATIC];
5975
+ }
5858
5976
  };
5859
5977
  // --- Static: Haxe metadata ---
5860
5978
  _ZPP_Body.__name__ = ["zpp_nape", "phys", "ZPP_Body"];
@@ -6824,6 +6942,21 @@ var _ZPP_Arbiter = class _ZPP_Arbiter {
6824
6942
  this.hnext = null;
6825
6943
  this.outer = null;
6826
6944
  }
6945
+ /**
6946
+ * Initialize ArbiterType singleton enums. Called once from compiled factory.
6947
+ */
6948
+ static _initEnums(nape67, ZPP_Flags2) {
6949
+ const mk = () => {
6950
+ ZPP_Flags2.internal = true;
6951
+ const o = new nape67.dynamics.ArbiterType();
6952
+ ZPP_Flags2.internal = false;
6953
+ return o;
6954
+ };
6955
+ if (ZPP_Flags2.ArbiterType_COLLISION == null) ZPP_Flags2.ArbiterType_COLLISION = mk();
6956
+ if (ZPP_Flags2.ArbiterType_SENSOR == null) ZPP_Flags2.ArbiterType_SENSOR = mk();
6957
+ if (ZPP_Flags2.ArbiterType_FLUID == null) ZPP_Flags2.ArbiterType_FLUID = mk();
6958
+ _ZPP_Arbiter.types = [null, ZPP_Flags2.ArbiterType_COLLISION, ZPP_Flags2.ArbiterType_SENSOR, null, ZPP_Flags2.ArbiterType_FLUID];
6959
+ }
6827
6960
  // ========== Wrapper ==========
6828
6961
  wrapper() {
6829
6962
  if (this.outer == null) {
@@ -6982,7 +7115,7 @@ _ZPP_Arbiter.internal = false;
6982
7115
  _ZPP_Arbiter.COL = 1;
6983
7116
  _ZPP_Arbiter.FLUID = 4;
6984
7117
  _ZPP_Arbiter.SENSOR = 2;
6985
- // --- Static: arbiter type enum lookup (set at init time by compiled code) ---
7118
+ // --- Static: arbiter type enum lookup (populated by _initEnums) ---
6986
7119
  _ZPP_Arbiter.types = [];
6987
7120
  var ZPP_Arbiter = _ZPP_Arbiter;
6988
7121
 
@@ -13991,6 +14124,20 @@ var _ZPP_Shape = class _ZPP_Shape {
13991
14124
  this._initShape(type);
13992
14125
  }
13993
14126
  }
14127
+ /**
14128
+ * Initialize ShapeType singleton enums. Called once from compiled factory.
14129
+ */
14130
+ static _initEnums(nape67, ZPP_Flags2) {
14131
+ const mk = () => {
14132
+ ZPP_Flags2.internal = true;
14133
+ const o = new nape67.shape.ShapeType();
14134
+ ZPP_Flags2.internal = false;
14135
+ return o;
14136
+ };
14137
+ if (ZPP_Flags2.ShapeType_CIRCLE == null) ZPP_Flags2.ShapeType_CIRCLE = mk();
14138
+ if (ZPP_Flags2.ShapeType_POLYGON == null) ZPP_Flags2.ShapeType_POLYGON = mk();
14139
+ _ZPP_Shape.types = [ZPP_Flags2.ShapeType_CIRCLE, ZPP_Flags2.ShapeType_POLYGON];
14140
+ }
13994
14141
  /**
13995
14142
  * Initialize shape state. Separated from constructor so that compiled
13996
14143
  * subclass constructors can call `ZPP_Shape.call(this, type)` which
@@ -14356,12 +14503,7 @@ var _ZPP_Shape = class _ZPP_Shape {
14356
14503
  ret.fluidEnabled = this.fluidEnabled;
14357
14504
  ret.sensorEnabled = this.sensorEnabled;
14358
14505
  if (this.userData != null) {
14359
- const Reflect2 = nape67.__Reflect || _ZPP_Shape._zpp.__Reflect;
14360
- if (Reflect2 && Reflect2.copy) {
14361
- ret.userData = Reflect2.copy(this.userData);
14362
- } else {
14363
- ret.userData = Object.assign({}, this.userData);
14364
- }
14506
+ ret.userData = Object.assign({}, this.userData);
14365
14507
  }
14366
14508
  this.copyto(ret.outer);
14367
14509
  return ret.outer;
@@ -14373,7 +14515,7 @@ _ZPP_Shape.__super__ = null;
14373
14515
  // --- Static: namespace references ---
14374
14516
  _ZPP_Shape._nape = null;
14375
14517
  _ZPP_Shape._zpp = null;
14376
- // --- Static: shape type enum lookup ---
14518
+ // --- Static: shape type enum lookup (populated by _initEnums) ---
14377
14519
  _ZPP_Shape.types = [];
14378
14520
  // --- Static: init guard ---
14379
14521
  _ZPP_Shape._initialized = false;
@@ -20904,6 +21046,199 @@ var _ZPP_SimpleSweep = class _ZPP_SimpleSweep {
20904
21046
  _ZPP_SimpleSweep.__name__ = ["zpp_nape", "geom", "ZPP_SimpleSweep"];
20905
21047
  var ZPP_SimpleSweep = _ZPP_SimpleSweep;
20906
21048
 
21049
+ // src/native/util/Hashable2_Boolfalse.ts
21050
+ var _Hashable2_Boolfalse = class _Hashable2_Boolfalse {
21051
+ constructor() {
21052
+ this.value = false;
21053
+ this.next = null;
21054
+ this.hnext = null;
21055
+ this.id = 0;
21056
+ this.di = 0;
21057
+ this.__class__ = _Hashable2_Boolfalse;
21058
+ }
21059
+ static _alloc() {
21060
+ if (_Hashable2_Boolfalse.zpp_pool == null) {
21061
+ return new _Hashable2_Boolfalse();
21062
+ }
21063
+ const ret = _Hashable2_Boolfalse.zpp_pool;
21064
+ _Hashable2_Boolfalse.zpp_pool = ret.next;
21065
+ ret.next = null;
21066
+ return ret;
21067
+ }
21068
+ static get(id, di, val) {
21069
+ const ret = _Hashable2_Boolfalse._alloc();
21070
+ ret.id = id;
21071
+ ret.di = di;
21072
+ ret.value = val;
21073
+ return ret;
21074
+ }
21075
+ static getpersist(id, di) {
21076
+ const ret = _Hashable2_Boolfalse._alloc();
21077
+ ret.id = id;
21078
+ ret.di = di;
21079
+ return ret;
21080
+ }
21081
+ static ordered_get(id, di, val) {
21082
+ if (id <= di) {
21083
+ const ret = _Hashable2_Boolfalse._alloc();
21084
+ ret.id = id;
21085
+ ret.di = di;
21086
+ ret.value = val;
21087
+ return ret;
21088
+ } else {
21089
+ const ret = _Hashable2_Boolfalse._alloc();
21090
+ ret.id = di;
21091
+ ret.di = id;
21092
+ ret.value = val;
21093
+ return ret;
21094
+ }
21095
+ }
21096
+ static ordered_get_persist(id, di) {
21097
+ if (id <= di) {
21098
+ const ret = _Hashable2_Boolfalse._alloc();
21099
+ ret.id = id;
21100
+ ret.di = di;
21101
+ return ret;
21102
+ } else {
21103
+ const ret = _Hashable2_Boolfalse._alloc();
21104
+ ret.id = di;
21105
+ ret.di = id;
21106
+ return ret;
21107
+ }
21108
+ }
21109
+ free() {
21110
+ }
21111
+ alloc() {
21112
+ }
21113
+ };
21114
+ _Hashable2_Boolfalse.__name__ = ["zpp_nape", "util", "Hashable2_Boolfalse"];
21115
+ _Hashable2_Boolfalse.zpp_pool = null;
21116
+ var Hashable2_Boolfalse = _Hashable2_Boolfalse;
21117
+
21118
+ // src/native/util/FastHash2_Hashable2_Boolfalse.ts
21119
+ var TABLE_SIZE = 1048576;
21120
+ var TABLE_MASK = 1048575;
21121
+ var HASH_MULT = 106039;
21122
+ var _FastHash2_Hashable2_Boolfalse = class _FastHash2_Hashable2_Boolfalse {
21123
+ constructor() {
21124
+ this.cnt = 0;
21125
+ this.__class__ = _FastHash2_Hashable2_Boolfalse;
21126
+ this.cnt = 0;
21127
+ this.table = new Array(TABLE_SIZE).fill(null);
21128
+ }
21129
+ empty() {
21130
+ return this.cnt == 0;
21131
+ }
21132
+ clear() {
21133
+ for (let i = 0; i < this.table.length; i++) {
21134
+ let n = this.table[i];
21135
+ if (n == null) continue;
21136
+ while (n != null) {
21137
+ const t = n.hnext;
21138
+ n.hnext = null;
21139
+ n = t;
21140
+ }
21141
+ this.table[i] = null;
21142
+ }
21143
+ }
21144
+ get(id, di) {
21145
+ let n = this.table[id * HASH_MULT + di & TABLE_MASK];
21146
+ if (n == null) {
21147
+ return null;
21148
+ } else if (n.id == id && n.di == di) {
21149
+ return n;
21150
+ } else {
21151
+ while (true) {
21152
+ n = n.hnext;
21153
+ if (!(n != null && (n.id != id || n.di != di))) break;
21154
+ }
21155
+ return n;
21156
+ }
21157
+ }
21158
+ ordered_get(id, di) {
21159
+ if (id > di) {
21160
+ const t = id;
21161
+ id = di;
21162
+ di = t;
21163
+ }
21164
+ let n = this.table[id * HASH_MULT + di & TABLE_MASK];
21165
+ if (n == null) {
21166
+ return null;
21167
+ } else if (n.id == id && n.di == di) {
21168
+ return n;
21169
+ } else {
21170
+ while (true) {
21171
+ n = n.hnext;
21172
+ if (!(n != null && (n.id != id || n.di != di))) break;
21173
+ }
21174
+ return n;
21175
+ }
21176
+ }
21177
+ has(id, di) {
21178
+ let n = this.table[id * HASH_MULT + di & TABLE_MASK];
21179
+ if (n == null) {
21180
+ return false;
21181
+ } else if (n.id == id && n.di == di) {
21182
+ return true;
21183
+ } else {
21184
+ while (true) {
21185
+ n = n.hnext;
21186
+ if (!(n != null && (n.id != id || n.di != di))) break;
21187
+ }
21188
+ return n != null;
21189
+ }
21190
+ }
21191
+ maybeAdd(arb) {
21192
+ const h = arb.id * HASH_MULT + arb.di & TABLE_MASK;
21193
+ const n = this.table[h];
21194
+ const cont = true;
21195
+ if (n == null) {
21196
+ this.table[h] = arb;
21197
+ arb.hnext = null;
21198
+ } else if (cont) {
21199
+ arb.hnext = n.hnext;
21200
+ n.hnext = arb;
21201
+ }
21202
+ if (cont) {
21203
+ this.cnt++;
21204
+ }
21205
+ }
21206
+ add(arb) {
21207
+ const h = arb.id * HASH_MULT + arb.di & TABLE_MASK;
21208
+ const n = this.table[h];
21209
+ if (n == null) {
21210
+ this.table[h] = arb;
21211
+ arb.hnext = null;
21212
+ } else {
21213
+ arb.hnext = n.hnext;
21214
+ n.hnext = arb;
21215
+ }
21216
+ this.cnt++;
21217
+ }
21218
+ remove(arb) {
21219
+ const h = arb.id * HASH_MULT + arb.di & TABLE_MASK;
21220
+ let n = this.table[h];
21221
+ if (n == arb) {
21222
+ this.table[h] = n.hnext;
21223
+ } else if (n != null) {
21224
+ let pre;
21225
+ while (true) {
21226
+ pre = n;
21227
+ n = n.hnext;
21228
+ if (!(n != null && n != arb)) break;
21229
+ }
21230
+ pre.hnext = n.hnext;
21231
+ }
21232
+ arb.hnext = null;
21233
+ this.cnt--;
21234
+ }
21235
+ hash(id, di) {
21236
+ return id * HASH_MULT + di & TABLE_MASK;
21237
+ }
21238
+ };
21239
+ _FastHash2_Hashable2_Boolfalse.__name__ = ["zpp_nape", "util", "FastHash2_Hashable2_Boolfalse"];
21240
+ var FastHash2_Hashable2_Boolfalse = _FastHash2_Hashable2_Boolfalse;
21241
+
20907
21242
  // src/native/geom/ZPP_Simple.ts
20908
21243
  var _ZPP_Simple = class _ZPP_Simple {
20909
21244
  constructor() {
@@ -20913,7 +21248,7 @@ var _ZPP_Simple = class _ZPP_Simple {
20913
21248
  const zpp8 = getNape().__zpp;
20914
21249
  if (_ZPP_Simple.sweep == null) {
20915
21250
  _ZPP_Simple.sweep = new ZPP_SimpleSweep();
20916
- _ZPP_Simple.inthash = new zpp8.util.FastHash2_Hashable2_Boolfalse();
21251
+ _ZPP_Simple.inthash = new FastHash2_Hashable2_Boolfalse();
20917
21252
  }
20918
21253
  if (_ZPP_Simple.vertices == null) {
20919
21254
  if (zpp8.util.ZPP_Set_ZPP_SimpleVert.zpp_pool == null) {
@@ -21121,11 +21456,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21121
21456
  const id = s.next.id;
21122
21457
  const di = s.id;
21123
21458
  let ret5;
21124
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21125
- ret5 = new zpp8.util.Hashable2_Boolfalse();
21459
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21460
+ ret5 = new Hashable2_Boolfalse();
21126
21461
  } else {
21127
- ret5 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21128
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret5.next;
21462
+ ret5 = Hashable2_Boolfalse.zpp_pool;
21463
+ Hashable2_Boolfalse.zpp_pool = ret5.next;
21129
21464
  ret5.next = null;
21130
21465
  }
21131
21466
  ret5.id = id;
@@ -21138,11 +21473,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21138
21473
  const id1 = s.id;
21139
21474
  const di1 = s.next.id;
21140
21475
  let ret7;
21141
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21142
- ret7 = new zpp8.util.Hashable2_Boolfalse();
21476
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21477
+ ret7 = new Hashable2_Boolfalse();
21143
21478
  } else {
21144
- ret7 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21145
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret7.next;
21479
+ ret7 = Hashable2_Boolfalse.zpp_pool;
21480
+ Hashable2_Boolfalse.zpp_pool = ret7.next;
21146
21481
  ret7.next = null;
21147
21482
  }
21148
21483
  ret7.id = id1;
@@ -21229,11 +21564,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21229
21564
  const id2 = s.id;
21230
21565
  const di2 = s.prev.id;
21231
21566
  let ret9;
21232
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21233
- ret9 = new zpp8.util.Hashable2_Boolfalse();
21567
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21568
+ ret9 = new Hashable2_Boolfalse();
21234
21569
  } else {
21235
- ret9 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21236
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret9.next;
21570
+ ret9 = Hashable2_Boolfalse.zpp_pool;
21571
+ Hashable2_Boolfalse.zpp_pool = ret9.next;
21237
21572
  ret9.next = null;
21238
21573
  }
21239
21574
  ret9.id = id2;
@@ -21246,11 +21581,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21246
21581
  const id3 = s.prev.id;
21247
21582
  const di3 = s.id;
21248
21583
  let ret11;
21249
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21250
- ret11 = new zpp8.util.Hashable2_Boolfalse();
21584
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21585
+ ret11 = new Hashable2_Boolfalse();
21251
21586
  } else {
21252
- ret11 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21253
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret11.next;
21587
+ ret11 = Hashable2_Boolfalse.zpp_pool;
21588
+ Hashable2_Boolfalse.zpp_pool = ret11.next;
21254
21589
  ret11.next = null;
21255
21590
  }
21256
21591
  ret11.id = id3;
@@ -21350,11 +21685,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21350
21685
  const id4 = nxt.id;
21351
21686
  const di4 = pre1.id;
21352
21687
  let ret13;
21353
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21354
- ret13 = new zpp8.util.Hashable2_Boolfalse();
21688
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21689
+ ret13 = new Hashable2_Boolfalse();
21355
21690
  } else {
21356
- ret13 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21357
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret13.next;
21691
+ ret13 = Hashable2_Boolfalse.zpp_pool;
21692
+ Hashable2_Boolfalse.zpp_pool = ret13.next;
21358
21693
  ret13.next = null;
21359
21694
  }
21360
21695
  ret13.id = id4;
@@ -21367,11 +21702,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21367
21702
  const id5 = pre1.id;
21368
21703
  const di5 = nxt.id;
21369
21704
  let ret15;
21370
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21371
- ret15 = new zpp8.util.Hashable2_Boolfalse();
21705
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21706
+ ret15 = new Hashable2_Boolfalse();
21372
21707
  } else {
21373
- ret15 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21374
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret15.next;
21708
+ ret15 = Hashable2_Boolfalse.zpp_pool;
21709
+ Hashable2_Boolfalse.zpp_pool = ret15.next;
21375
21710
  ret15.next = null;
21376
21711
  }
21377
21712
  ret15.id = id5;
@@ -21549,11 +21884,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21549
21884
  const id6 = b.next.id;
21550
21885
  const di6 = b.id;
21551
21886
  let ret17;
21552
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21553
- ret17 = new zpp8.util.Hashable2_Boolfalse();
21887
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21888
+ ret17 = new Hashable2_Boolfalse();
21554
21889
  } else {
21555
- ret17 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21556
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret17.next;
21890
+ ret17 = Hashable2_Boolfalse.zpp_pool;
21891
+ Hashable2_Boolfalse.zpp_pool = ret17.next;
21557
21892
  ret17.next = null;
21558
21893
  }
21559
21894
  ret17.id = id6;
@@ -21566,11 +21901,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21566
21901
  const id7 = b.id;
21567
21902
  const di7 = b.next.id;
21568
21903
  let ret19;
21569
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21570
- ret19 = new zpp8.util.Hashable2_Boolfalse();
21904
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21905
+ ret19 = new Hashable2_Boolfalse();
21571
21906
  } else {
21572
- ret19 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21573
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret19.next;
21907
+ ret19 = Hashable2_Boolfalse.zpp_pool;
21908
+ Hashable2_Boolfalse.zpp_pool = ret19.next;
21574
21909
  ret19.next = null;
21575
21910
  }
21576
21911
  ret19.id = id7;
@@ -21657,11 +21992,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21657
21992
  const id8 = a.id;
21658
21993
  const di8 = a.prev.id;
21659
21994
  let ret21;
21660
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21661
- ret21 = new zpp8.util.Hashable2_Boolfalse();
21995
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21996
+ ret21 = new Hashable2_Boolfalse();
21662
21997
  } else {
21663
- ret21 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21664
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret21.next;
21998
+ ret21 = Hashable2_Boolfalse.zpp_pool;
21999
+ Hashable2_Boolfalse.zpp_pool = ret21.next;
21665
22000
  ret21.next = null;
21666
22001
  }
21667
22002
  ret21.id = id8;
@@ -21674,11 +22009,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21674
22009
  const id9 = a.prev.id;
21675
22010
  const di9 = a.id;
21676
22011
  let ret23;
21677
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21678
- ret23 = new zpp8.util.Hashable2_Boolfalse();
22012
+ if (Hashable2_Boolfalse.zpp_pool == null) {
22013
+ ret23 = new Hashable2_Boolfalse();
21679
22014
  } else {
21680
- ret23 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21681
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret23.next;
22015
+ ret23 = Hashable2_Boolfalse.zpp_pool;
22016
+ Hashable2_Boolfalse.zpp_pool = ret23.next;
21682
22017
  ret23.next = null;
21683
22018
  }
21684
22019
  ret23.id = id9;
@@ -21742,8 +22077,8 @@ var _ZPP_Simple = class _ZPP_Simple {
21742
22077
  const t1 = n.hnext;
21743
22078
  n.hnext = null;
21744
22079
  const o28 = n;
21745
- o28.next = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21746
- zpp8.util.Hashable2_Boolfalse.zpp_pool = o28;
22080
+ o28.next = Hashable2_Boolfalse.zpp_pool;
22081
+ Hashable2_Boolfalse.zpp_pool = o28;
21747
22082
  n = t1;
21748
22083
  }
21749
22084
  _ZPP_Simple.inthash.table[i] = null;
@@ -21916,7 +22251,7 @@ var _ZPP_Simple = class _ZPP_Simple {
21916
22251
  const zpp8 = getNape().__zpp;
21917
22252
  if (_ZPP_Simple.sweep == null) {
21918
22253
  _ZPP_Simple.sweep = new ZPP_SimpleSweep();
21919
- _ZPP_Simple.inthash = new zpp8.util.FastHash2_Hashable2_Boolfalse();
22254
+ _ZPP_Simple.inthash = new FastHash2_Hashable2_Boolfalse();
21920
22255
  }
21921
22256
  let vertices = _ZPP_Simple.list_vertices;
21922
22257
  if (vertices == null) {
@@ -22863,6 +23198,13 @@ var _ZPP_Collide = class _ZPP_Collide {
22863
23198
  constructor() {
22864
23199
  this.__class__ = _ZPP_Collide;
22865
23200
  }
23201
+ /**
23202
+ * Initialize static working lists. Called once from compiled factory.
23203
+ */
23204
+ static _initStatics(zpp_nape) {
23205
+ _ZPP_Collide.flowpoly = new zpp_nape.util.ZNPList_ZPP_Vec2();
23206
+ _ZPP_Collide.flowsegs = new zpp_nape.util.ZNPList_ZPP_Vec2();
23207
+ }
22866
23208
  static circleContains(c, p) {
22867
23209
  const dx = p.x - c.worldCOMx;
22868
23210
  const dy = p.y - c.worldCOMy;
@@ -29892,12 +30234,12 @@ var _ZPP_CallbackSet = class _ZPP_CallbackSet {
29892
30234
  if (!ret) {
29893
30235
  const _this = this.arbiters;
29894
30236
  let ret1;
29895
- const ZNPNode = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
29896
- if (ZNPNode.zpp_pool == null) {
29897
- ret1 = new ZNPNode();
30237
+ const ZNPNode2 = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
30238
+ if (ZNPNode2.zpp_pool == null) {
30239
+ ret1 = new ZNPNode2();
29898
30240
  } else {
29899
- ret1 = ZNPNode.zpp_pool;
29900
- ZNPNode.zpp_pool = ret1.next;
30241
+ ret1 = ZNPNode2.zpp_pool;
30242
+ ZNPNode2.zpp_pool = ret1.next;
29901
30243
  ret1.next = null;
29902
30244
  }
29903
30245
  ret1.elt = x;
@@ -29937,9 +30279,9 @@ var _ZPP_CallbackSet = class _ZPP_CallbackSet {
29937
30279
  }
29938
30280
  const o = old;
29939
30281
  o.elt = null;
29940
- const ZNPNode = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
29941
- o.next = ZNPNode.zpp_pool;
29942
- ZNPNode.zpp_pool = o;
30282
+ const ZNPNode2 = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
30283
+ o.next = ZNPNode2.zpp_pool;
30284
+ ZNPNode2.zpp_pool = o;
29943
30285
  _this.modified = true;
29944
30286
  _this.length--;
29945
30287
  _this.pushmod = true;
@@ -29976,9 +30318,9 @@ var _ZPP_CallbackSet = class _ZPP_CallbackSet {
29976
30318
  }
29977
30319
  const o = old;
29978
30320
  o.elt = null;
29979
- const ZNPNode = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
29980
- o.next = ZNPNode.zpp_pool;
29981
- ZNPNode.zpp_pool = o;
30321
+ const ZNPNode2 = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
30322
+ o.next = ZNPNode2.zpp_pool;
30323
+ ZNPNode2.zpp_pool = o;
29982
30324
  _this.modified = true;
29983
30325
  _this.length--;
29984
30326
  _this.pushmod = true;
@@ -30472,6 +30814,12 @@ var _ZPP_AABBTree = class _ZPP_AABBTree {
30472
30814
  // --- Instance: Haxe class reference ---
30473
30815
  this.__class__ = _ZPP_AABBTree;
30474
30816
  }
30817
+ /**
30818
+ * Initialize static instances. Called once from compiled factory.
30819
+ */
30820
+ static _initStatics() {
30821
+ _ZPP_AABBTree.tmpaabb = new ZPP_AABB();
30822
+ }
30475
30823
  // ========== clear ==========
30476
30824
  clear() {
30477
30825
  if (this.root == null) {
@@ -50335,6 +50683,38 @@ _ZPP_Space._zpp = null;
50335
50683
  _ZPP_Space._nape = null;
50336
50684
  var ZPP_Space = _ZPP_Space;
50337
50685
 
50686
+ // src/native/util/ZNPArray2.ts
50687
+ var ZNPArray2 = class {
50688
+ constructor(width, _height) {
50689
+ this.list = [];
50690
+ this.width = 0;
50691
+ this.width = width;
50692
+ this.list = [];
50693
+ }
50694
+ resize(width, height, def) {
50695
+ this.width = width;
50696
+ const len = width * height;
50697
+ for (let i = 0; i < len; i++) {
50698
+ this.list[i] = def;
50699
+ }
50700
+ }
50701
+ get(x, y) {
50702
+ return this.list[y * this.width + x];
50703
+ }
50704
+ set(x, y, obj) {
50705
+ return this.list[y * this.width + x] = obj;
50706
+ }
50707
+ };
50708
+ var ZNPArray2_Float = class extends ZNPArray2 {
50709
+ };
50710
+ ZNPArray2_Float.__name__ = ["zpp_nape", "util", "ZNPArray2_Float"];
50711
+ var ZNPArray2_ZPP_GeomVert = class extends ZNPArray2 {
50712
+ };
50713
+ ZNPArray2_ZPP_GeomVert.__name__ = ["zpp_nape", "util", "ZNPArray2_ZPP_GeomVert"];
50714
+ var ZNPArray2_ZPP_MarchPair = class extends ZNPArray2 {
50715
+ };
50716
+ ZNPArray2_ZPP_MarchPair.__name__ = ["zpp_nape", "util", "ZNPArray2_ZPP_MarchPair"];
50717
+
50338
50718
  // src/native/geom/ZPP_MarchingSquares.ts
50339
50719
  var _ZPP_MarchingSquares = class _ZPP_MarchingSquares {
50340
50720
  constructor() {
@@ -50343,6 +50723,8 @@ var _ZPP_MarchingSquares = class _ZPP_MarchingSquares {
50343
50723
  static _init(zpp8, nape67) {
50344
50724
  _ZPP_MarchingSquares._zpp = zpp8;
50345
50725
  _ZPP_MarchingSquares._nape = nape67;
50726
+ _ZPP_MarchingSquares.me = new _ZPP_MarchingSquares();
50727
+ _ZPP_MarchingSquares.look_march = [-1, 224, 56, 216, 14, -1, 54, 214, 131, 99, -1, 91, 141, 109, 181, 85];
50346
50728
  }
50347
50729
  // ---------------------------------------------------------------------------
50348
50730
  // Helper: allocate a ZPP_GeomVert from pool
@@ -50543,13 +50925,13 @@ var _ZPP_MarchingSquares = class _ZPP_MarchingSquares {
50543
50925
  }
50544
50926
  if (combine) {
50545
50927
  if (_ZPP_MarchingSquares.map == null) {
50546
- _ZPP_MarchingSquares.map = new _ZPP_MarchingSquares._zpp.util.ZNPArray2_ZPP_MarchPair(xn, yn);
50928
+ _ZPP_MarchingSquares.map = new ZNPArray2_ZPP_MarchPair(xn, yn);
50547
50929
  } else {
50548
50930
  _ZPP_MarchingSquares.map.resize(xn, yn, null);
50549
50931
  }
50550
50932
  }
50551
50933
  if (_ZPP_MarchingSquares.isos == null) {
50552
- _ZPP_MarchingSquares.isos = new _ZPP_MarchingSquares._zpp.util.ZNPArray2_Float(xn + 1, yn + 1);
50934
+ _ZPP_MarchingSquares.isos = new ZNPArray2_Float(xn + 1, yn + 1);
50553
50935
  } else {
50554
50936
  _ZPP_MarchingSquares.isos.resize(xn + 1, yn + 1, 0);
50555
50937
  }
@@ -50591,7 +50973,7 @@ var _ZPP_MarchingSquares = class _ZPP_MarchingSquares {
50591
50973
  }
50592
50974
  }
50593
50975
  if (_ZPP_MarchingSquares.ints == null) {
50594
- _ZPP_MarchingSquares.ints = new _ZPP_MarchingSquares._zpp.util.ZNPArray2_ZPP_GeomVert(xn + 1, (yn << 1) + 1);
50976
+ _ZPP_MarchingSquares.ints = new ZNPArray2_ZPP_GeomVert(xn + 1, (yn << 1) + 1);
50595
50977
  } else {
50596
50978
  _ZPP_MarchingSquares.ints.resize(xn + 1, (yn << 1) + 1, null);
50597
50979
  }
@@ -51696,176 +52078,923 @@ _ZPP_MarchingSquares._zpp = null;
51696
52078
  _ZPP_MarchingSquares._nape = null;
51697
52079
  var ZPP_MarchingSquares = _ZPP_MarchingSquares;
51698
52080
 
51699
- // src/core/nape-compiled.js
51700
- var _nape;
51701
- var define = function(factory) {
51702
- _nape = factory();
52081
+ // src/native/util/ZNPNode.ts
52082
+ var ZNPNode = class {
52083
+ constructor() {
52084
+ this.elt = null;
52085
+ this.next = null;
52086
+ }
52087
+ alloc() {
52088
+ }
52089
+ free() {
52090
+ this.elt = null;
52091
+ }
52092
+ elem() {
52093
+ return this.elt;
52094
+ }
51703
52095
  };
51704
- define(function() {
51705
- "use strict";
51706
- var nape67, zpp_nape, js, Std, Reflect2, StringTools, sandbox;
51707
- var $_, $hxClasses = $hxClasses || {}, $estr = function() {
51708
- return js.Boot.__string_rec(this, "");
51709
- };
51710
- function $bind(o, m) {
51711
- var f = function() {
51712
- return f.method.apply(f.scope, arguments);
51713
- };
51714
- f.scope = o;
51715
- f.method = m;
51716
- return f;
52096
+ ZNPNode.zpp_pool = null;
52097
+
52098
+ // src/native/util/ZNPList.ts
52099
+ var ZNPList = class {
52100
+ constructor() {
52101
+ this.head = null;
52102
+ this.length = 0;
52103
+ this.modified = false;
52104
+ this.pushmod = false;
51717
52105
  }
51718
- Reflect2 = $hxClasses["Reflect"] = function() {
51719
- };
51720
- Reflect2.__name__ = ["Reflect"];
51721
- Reflect2.field = function(o, field) {
51722
- try {
51723
- return o[field];
51724
- } catch (e) {
51725
- var e1 = e instanceof js._Boot.HaxeError ? e.val : e;
51726
- return null;
52106
+ _allocNode() {
52107
+ const N = this.constructor._NodeClass;
52108
+ let ret;
52109
+ if (N.zpp_pool == null) {
52110
+ ret = new N();
52111
+ } else {
52112
+ ret = N.zpp_pool;
52113
+ N.zpp_pool = ret.next;
52114
+ ret.next = null;
51727
52115
  }
51728
- };
51729
- Reflect2.fields = function(o) {
51730
- var a = [];
51731
- if (o != null) {
51732
- var hasOwnProperty = Object.prototype.hasOwnProperty;
51733
- for (var f in o) {
51734
- if (f != "__id__" && f != "hx__closures__" && hasOwnProperty.call(o, f)) {
51735
- a.push(f);
52116
+ return ret;
52117
+ }
52118
+ _freeNode(node) {
52119
+ const N = this.constructor._NodeClass;
52120
+ node.elt = null;
52121
+ node.next = N.zpp_pool;
52122
+ N.zpp_pool = node;
52123
+ }
52124
+ begin() {
52125
+ return this.head;
52126
+ }
52127
+ setbegin(i) {
52128
+ this.head = i;
52129
+ this.modified = true;
52130
+ this.pushmod = true;
52131
+ }
52132
+ add(o) {
52133
+ const node = this._allocNode();
52134
+ node.elt = o;
52135
+ node.next = this.head;
52136
+ this.head = node;
52137
+ this.modified = true;
52138
+ this.length++;
52139
+ return o;
52140
+ }
52141
+ addAll(x) {
52142
+ let cx_ite = x.head;
52143
+ while (cx_ite != null) {
52144
+ this.add(cx_ite.elt);
52145
+ cx_ite = cx_ite.next;
52146
+ }
52147
+ }
52148
+ insert(cur, o) {
52149
+ const node = this._allocNode();
52150
+ node.elt = o;
52151
+ if (cur == null) {
52152
+ node.next = this.head;
52153
+ this.head = node;
52154
+ } else {
52155
+ node.next = cur.next;
52156
+ cur.next = node;
52157
+ }
52158
+ this.pushmod = this.modified = true;
52159
+ this.length++;
52160
+ return node;
52161
+ }
52162
+ pop() {
52163
+ const ret = this.head;
52164
+ this.head = ret.next;
52165
+ this._freeNode(ret);
52166
+ if (this.head == null) {
52167
+ this.pushmod = true;
52168
+ }
52169
+ this.modified = true;
52170
+ this.length--;
52171
+ }
52172
+ pop_unsafe() {
52173
+ const ret = this.head.elt;
52174
+ this.pop();
52175
+ return ret;
52176
+ }
52177
+ erase(pre) {
52178
+ let old;
52179
+ let ret;
52180
+ if (pre == null) {
52181
+ old = this.head;
52182
+ ret = old.next;
52183
+ this.head = ret;
52184
+ if (this.head == null) {
52185
+ this.pushmod = true;
52186
+ }
52187
+ } else {
52188
+ old = pre.next;
52189
+ ret = old.next;
52190
+ pre.next = ret;
52191
+ if (ret == null) {
52192
+ this.pushmod = true;
52193
+ }
52194
+ }
52195
+ this._freeNode(old);
52196
+ this.modified = true;
52197
+ this.length--;
52198
+ this.pushmod = true;
52199
+ return ret;
52200
+ }
52201
+ remove(obj) {
52202
+ let pre = null;
52203
+ let cur = this.head;
52204
+ while (cur != null) {
52205
+ if (cur.elt == obj) {
52206
+ this.erase(pre);
52207
+ break;
52208
+ }
52209
+ pre = cur;
52210
+ cur = cur.next;
52211
+ }
52212
+ }
52213
+ try_remove(obj) {
52214
+ let pre = null;
52215
+ let cur = this.head;
52216
+ let ret = false;
52217
+ while (cur != null) {
52218
+ if (cur.elt == obj) {
52219
+ this.erase(pre);
52220
+ ret = true;
52221
+ break;
52222
+ }
52223
+ pre = cur;
52224
+ cur = cur.next;
52225
+ }
52226
+ return ret;
52227
+ }
52228
+ splice(pre, n) {
52229
+ while (n-- > 0 && pre.next != null) this.erase(pre);
52230
+ return pre.next;
52231
+ }
52232
+ clear() {
52233
+ while (this.head != null) {
52234
+ const ret = this.head;
52235
+ this.head = ret.next;
52236
+ this._freeNode(ret);
52237
+ if (this.head == null) {
52238
+ this.pushmod = true;
52239
+ }
52240
+ this.modified = true;
52241
+ this.length--;
52242
+ }
52243
+ this.pushmod = true;
52244
+ }
52245
+ reverse() {
52246
+ let cur = this.head;
52247
+ let pre = null;
52248
+ while (cur != null) {
52249
+ const nx = cur.next;
52250
+ cur.next = pre;
52251
+ this.head = cur;
52252
+ pre = cur;
52253
+ cur = nx;
52254
+ }
52255
+ this.modified = true;
52256
+ this.pushmod = true;
52257
+ }
52258
+ empty() {
52259
+ return this.head == null;
52260
+ }
52261
+ size() {
52262
+ return this.length;
52263
+ }
52264
+ has(obj) {
52265
+ let cx_ite = this.head;
52266
+ while (cx_ite != null) {
52267
+ if (cx_ite.elt == obj) return true;
52268
+ cx_ite = cx_ite.next;
52269
+ }
52270
+ return false;
52271
+ }
52272
+ front() {
52273
+ return this.head.elt;
52274
+ }
52275
+ back() {
52276
+ let ret = this.head;
52277
+ let cur = ret;
52278
+ while (cur != null) {
52279
+ ret = cur;
52280
+ cur = cur.next;
52281
+ }
52282
+ return ret.elt;
52283
+ }
52284
+ iterator_at(ind) {
52285
+ let ret = this.head;
52286
+ while (ind-- > 0 && ret != null) ret = ret.next;
52287
+ return ret;
52288
+ }
52289
+ at(ind) {
52290
+ const it = this.iterator_at(ind);
52291
+ return it != null ? it.elt : null;
52292
+ }
52293
+ };
52294
+ ZNPList.prototype.inlined_add = ZNPList.prototype.add;
52295
+ ZNPList.prototype.inlined_insert = ZNPList.prototype.insert;
52296
+ ZNPList.prototype.inlined_pop = ZNPList.prototype.pop;
52297
+ ZNPList.prototype.inlined_pop_unsafe = ZNPList.prototype.pop_unsafe;
52298
+ ZNPList.prototype.inlined_erase = ZNPList.prototype.erase;
52299
+ ZNPList.prototype.inlined_remove = ZNPList.prototype.remove;
52300
+ ZNPList.prototype.inlined_try_remove = ZNPList.prototype.try_remove;
52301
+ ZNPList.prototype.inlined_clear = ZNPList.prototype.clear;
52302
+ ZNPList.prototype.inlined_has = ZNPList.prototype.has;
52303
+
52304
+ // src/native/util/ZPP_Set.ts
52305
+ var ZPP_Set = class {
52306
+ constructor() {
52307
+ this.colour = 0;
52308
+ this.parent = null;
52309
+ this.next = null;
52310
+ this.prev = null;
52311
+ this.data = null;
52312
+ this.swapped = null;
52313
+ this.lt = null;
52314
+ }
52315
+ _allocNode() {
52316
+ const Cls = this.constructor;
52317
+ let x;
52318
+ if (Cls.zpp_pool == null) {
52319
+ x = new Cls();
52320
+ } else {
52321
+ x = Cls.zpp_pool;
52322
+ Cls.zpp_pool = x.next;
52323
+ x.next = null;
52324
+ }
52325
+ return x;
52326
+ }
52327
+ _freeNode(node) {
52328
+ const Cls = this.constructor;
52329
+ node.data = null;
52330
+ node.lt = null;
52331
+ node.swapped = null;
52332
+ node.next = Cls.zpp_pool;
52333
+ Cls.zpp_pool = node;
52334
+ }
52335
+ free() {
52336
+ this.data = null;
52337
+ this.lt = null;
52338
+ this.swapped = null;
52339
+ }
52340
+ alloc() {
52341
+ }
52342
+ verify() {
52343
+ if (!this.empty()) {
52344
+ let set_ite = this.parent;
52345
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52346
+ while (set_ite != null) {
52347
+ const i = set_ite.data;
52348
+ let prei = true;
52349
+ if (!this.empty()) {
52350
+ let set_ite1 = this.parent;
52351
+ while (set_ite1.prev != null) set_ite1 = set_ite1.prev;
52352
+ while (set_ite1 != null) {
52353
+ const j = set_ite1.data;
52354
+ if (!prei) {
52355
+ if (!this.lt(i, j) && this.lt(j, i)) return false;
52356
+ } else if (i == j) {
52357
+ prei = false;
52358
+ } else if (!this.lt(j, i) && this.lt(i, j)) return false;
52359
+ if (set_ite1.next != null) {
52360
+ set_ite1 = set_ite1.next;
52361
+ while (set_ite1.prev != null) set_ite1 = set_ite1.prev;
52362
+ } else {
52363
+ while (set_ite1.parent != null && set_ite1 == set_ite1.parent.next)
52364
+ set_ite1 = set_ite1.parent;
52365
+ set_ite1 = set_ite1.parent;
52366
+ }
52367
+ }
52368
+ }
52369
+ if (set_ite.next != null) {
52370
+ set_ite = set_ite.next;
52371
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52372
+ } else {
52373
+ while (set_ite.parent != null && set_ite == set_ite.parent.next)
52374
+ set_ite = set_ite.parent;
52375
+ set_ite = set_ite.parent;
51736
52376
  }
51737
52377
  }
51738
52378
  }
51739
- return a;
51740
- };
51741
- Reflect2.copy = function(o) {
51742
- if (o == null) {
51743
- return null;
52379
+ return true;
52380
+ }
52381
+ empty() {
52382
+ return this.parent == null;
52383
+ }
52384
+ singular() {
52385
+ if (this.parent != null && this.parent.prev == null) return this.parent.next == null;
52386
+ return false;
52387
+ }
52388
+ size() {
52389
+ let ret = 0;
52390
+ if (!this.empty()) {
52391
+ let set_ite = this.parent;
52392
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52393
+ while (set_ite != null) {
52394
+ ++ret;
52395
+ if (set_ite.next != null) {
52396
+ set_ite = set_ite.next;
52397
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52398
+ } else {
52399
+ while (set_ite.parent != null && set_ite == set_ite.parent.next)
52400
+ set_ite = set_ite.parent;
52401
+ set_ite = set_ite.parent;
52402
+ }
52403
+ }
51744
52404
  }
51745
- var o2 = {};
51746
- var _g = 0;
51747
- var _g1 = Reflect2.fields(o);
51748
- while (_g < _g1.length) {
51749
- var f = _g1[_g];
51750
- ++_g;
51751
- o2[f] = Reflect2.field(o, f);
52405
+ return ret;
52406
+ }
52407
+ has(obj) {
52408
+ return this.find(obj) != null;
52409
+ }
52410
+ find(obj) {
52411
+ let cur = this.parent;
52412
+ while (cur != null && cur.data != obj) {
52413
+ if (this.lt(obj, cur.data)) cur = cur.prev;
52414
+ else cur = cur.next;
51752
52415
  }
51753
- return o2;
51754
- };
51755
- Reflect2.prototype.__class__ = Reflect2;
51756
- Std = $hxClasses["Std"] = function() {
51757
- };
51758
- Std.__name__ = ["Std"];
51759
- Std.string = function(s) {
51760
- return js.Boot.__string_rec(s, "");
51761
- };
51762
- Std.prototype.__class__ = Std;
51763
- StringTools = $hxClasses["StringTools"] = function() {
51764
- };
51765
- StringTools.__name__ = ["StringTools"];
51766
- StringTools.hex = function(n, digits) {
51767
- var s = "";
51768
- var hexChars = "0123456789ABCDEF";
52416
+ return cur;
52417
+ }
52418
+ has_weak(obj) {
52419
+ return this.find_weak(obj) != null;
52420
+ }
52421
+ find_weak(obj) {
52422
+ let cur = this.parent;
52423
+ while (cur != null) {
52424
+ if (this.lt(obj, cur.data)) cur = cur.prev;
52425
+ else if (this.lt(cur.data, obj)) cur = cur.next;
52426
+ else break;
52427
+ }
52428
+ return cur;
52429
+ }
52430
+ lower_bound(obj) {
52431
+ let ret = null;
52432
+ if (!this.empty()) {
52433
+ let set_ite = this.parent;
52434
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52435
+ while (set_ite != null) {
52436
+ if (!this.lt(set_ite.data, obj)) {
52437
+ ret = set_ite.data;
52438
+ break;
52439
+ }
52440
+ if (set_ite.next != null) {
52441
+ set_ite = set_ite.next;
52442
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52443
+ } else {
52444
+ while (set_ite.parent != null && set_ite == set_ite.parent.next)
52445
+ set_ite = set_ite.parent;
52446
+ set_ite = set_ite.parent;
52447
+ }
52448
+ }
52449
+ }
52450
+ return ret;
52451
+ }
52452
+ first() {
52453
+ let cur = this.parent;
52454
+ while (cur.prev != null) cur = cur.prev;
52455
+ return cur.data;
52456
+ }
52457
+ pop_front() {
52458
+ let cur = this.parent;
52459
+ while (cur.prev != null) cur = cur.prev;
52460
+ const ret = cur.data;
52461
+ this.remove_node(cur);
52462
+ return ret;
52463
+ }
52464
+ remove(obj) {
52465
+ this.remove_node(this.find(obj));
52466
+ }
52467
+ successor_node(cur) {
52468
+ if (cur.next != null) {
52469
+ cur = cur.next;
52470
+ while (cur.prev != null) cur = cur.prev;
52471
+ } else {
52472
+ let pre = cur;
52473
+ cur = cur.parent;
52474
+ while (cur != null && cur.prev != pre) {
52475
+ pre = cur;
52476
+ cur = cur.parent;
52477
+ }
52478
+ }
52479
+ return cur;
52480
+ }
52481
+ predecessor_node(cur) {
52482
+ if (cur.prev != null) {
52483
+ cur = cur.prev;
52484
+ while (cur.next != null) cur = cur.next;
52485
+ } else {
52486
+ let pre = cur;
52487
+ cur = cur.parent;
52488
+ while (cur != null && cur.next != pre) {
52489
+ pre = cur;
52490
+ cur = cur.parent;
52491
+ }
52492
+ }
52493
+ return cur;
52494
+ }
52495
+ successor(obj) {
52496
+ const node = this.successor_node(this.find(obj));
52497
+ return node == null ? null : node.data;
52498
+ }
52499
+ predecessor(obj) {
52500
+ const node = this.predecessor_node(this.find(obj));
52501
+ return node == null ? null : node.data;
52502
+ }
52503
+ remove_node(cur) {
52504
+ if (cur.next != null && cur.prev != null) {
52505
+ let sm = cur.next;
52506
+ while (sm.prev != null) sm = sm.prev;
52507
+ const t = cur.data;
52508
+ cur.data = sm.data;
52509
+ sm.data = t;
52510
+ if (this.swapped != null) this.swapped(cur.data, sm.data);
52511
+ cur = sm;
52512
+ }
52513
+ const child = cur.prev == null ? cur.next : cur.prev;
52514
+ if (cur.colour == 1) {
52515
+ if (cur.prev != null || cur.next != null) {
52516
+ child.colour = 1;
52517
+ } else if (cur.parent != null) {
52518
+ let parent = cur.parent;
52519
+ while (true) {
52520
+ parent.colour++;
52521
+ parent.prev.colour--;
52522
+ parent.next.colour--;
52523
+ const child1 = parent.prev;
52524
+ if (child1.colour == -1) {
52525
+ this.__fix_neg_red(child1);
52526
+ break;
52527
+ } else if (child1.colour == 0) {
52528
+ if (child1.prev != null && child1.prev.colour == 0) {
52529
+ this.__fix_dbl_red(child1.prev);
52530
+ break;
52531
+ }
52532
+ if (child1.next != null && child1.next.colour == 0) {
52533
+ this.__fix_dbl_red(child1.next);
52534
+ break;
52535
+ }
52536
+ }
52537
+ const child2 = parent.next;
52538
+ if (child2.colour == -1) {
52539
+ this.__fix_neg_red(child2);
52540
+ break;
52541
+ } else if (child2.colour == 0) {
52542
+ if (child2.prev != null && child2.prev.colour == 0) {
52543
+ this.__fix_dbl_red(child2.prev);
52544
+ break;
52545
+ }
52546
+ if (child2.next != null && child2.next.colour == 0) {
52547
+ this.__fix_dbl_red(child2.next);
52548
+ break;
52549
+ }
52550
+ }
52551
+ if (parent.colour == 2) {
52552
+ if (parent.parent == null) {
52553
+ parent.colour = 1;
52554
+ } else {
52555
+ parent = parent.parent;
52556
+ continue;
52557
+ }
52558
+ }
52559
+ break;
52560
+ }
52561
+ }
52562
+ }
52563
+ const par = cur.parent;
52564
+ if (par == null) this.parent = child;
52565
+ else if (par.prev == cur) par.prev = child;
52566
+ else par.next = child;
52567
+ if (child != null) child.parent = par;
52568
+ cur.parent = cur.prev = cur.next = null;
52569
+ this._freeNode(cur);
52570
+ }
52571
+ clear() {
52572
+ if (this.parent != null) {
52573
+ let cur = this.parent;
52574
+ while (cur != null) {
52575
+ if (cur.prev != null) cur = cur.prev;
52576
+ else if (cur.next != null) cur = cur.next;
52577
+ else {
52578
+ const ret = cur.parent;
52579
+ if (ret != null) {
52580
+ if (cur == ret.prev) ret.prev = null;
52581
+ else ret.next = null;
52582
+ cur.parent = null;
52583
+ }
52584
+ this._freeNode(cur);
52585
+ cur = ret;
52586
+ }
52587
+ }
52588
+ this.parent = null;
52589
+ }
52590
+ }
52591
+ clear_with(lambda) {
52592
+ if (this.parent == null) return;
52593
+ let cur = this.parent;
52594
+ while (cur != null) {
52595
+ if (cur.prev != null) cur = cur.prev;
52596
+ else if (cur.next != null) cur = cur.next;
52597
+ else {
52598
+ lambda(cur.data);
52599
+ const ret = cur.parent;
52600
+ if (ret != null) {
52601
+ if (cur == ret.prev) ret.prev = null;
52602
+ else ret.next = null;
52603
+ cur.parent = null;
52604
+ }
52605
+ this._freeNode(cur);
52606
+ cur = ret;
52607
+ }
52608
+ }
52609
+ this.parent = null;
52610
+ }
52611
+ clear_node(node, lambda) {
52612
+ lambda(node.data);
52613
+ const ret = node.parent;
52614
+ if (ret != null) {
52615
+ if (node == ret.prev) ret.prev = null;
52616
+ else ret.next = null;
52617
+ node.parent = null;
52618
+ }
52619
+ this._freeNode(node);
52620
+ return ret;
52621
+ }
52622
+ __fix_neg_red(negred) {
52623
+ const parent = negred.parent;
52624
+ let child;
52625
+ if (parent.prev == negred) {
52626
+ const nl = negred.prev;
52627
+ const nr = negred.next;
52628
+ const trl = nr.prev;
52629
+ const trr = nr.next;
52630
+ nl.colour = 0;
52631
+ negred.colour = parent.colour = 1;
52632
+ negred.next = trl;
52633
+ if (trl != null) trl.parent = negred;
52634
+ const t = parent.data;
52635
+ parent.data = nr.data;
52636
+ nr.data = t;
52637
+ if (this.swapped != null) this.swapped(parent.data, nr.data);
52638
+ nr.prev = trr;
52639
+ if (trr != null) trr.parent = nr;
52640
+ nr.next = parent.next;
52641
+ if (parent.next != null) parent.next.parent = nr;
52642
+ parent.next = nr;
52643
+ if (nr != null) nr.parent = parent;
52644
+ child = nl;
52645
+ } else {
52646
+ const nl1 = negred.next;
52647
+ const nr1 = negred.prev;
52648
+ const trl1 = nr1.next;
52649
+ const trr1 = nr1.prev;
52650
+ nl1.colour = 0;
52651
+ negred.colour = parent.colour = 1;
52652
+ negred.prev = trl1;
52653
+ if (trl1 != null) trl1.parent = negred;
52654
+ const t1 = parent.data;
52655
+ parent.data = nr1.data;
52656
+ nr1.data = t1;
52657
+ if (this.swapped != null) this.swapped(parent.data, nr1.data);
52658
+ nr1.next = trr1;
52659
+ if (trr1 != null) trr1.parent = nr1;
52660
+ nr1.prev = parent.prev;
52661
+ if (parent.prev != null) parent.prev.parent = nr1;
52662
+ parent.prev = nr1;
52663
+ if (nr1 != null) nr1.parent = parent;
52664
+ child = nl1;
52665
+ }
52666
+ if (child.prev != null && child.prev.colour == 0) this.__fix_dbl_red(child.prev);
52667
+ else if (child.next != null && child.next.colour == 0) this.__fix_dbl_red(child.next);
52668
+ }
52669
+ __fix_dbl_red(x) {
51769
52670
  while (true) {
51770
- s = hexChars.charAt(n & 15) + s;
51771
- n >>>= 4;
51772
- if (!(n > 0)) {
52671
+ const par = x.parent;
52672
+ const g = par.parent;
52673
+ if (g == null) {
52674
+ par.colour = 1;
51773
52675
  break;
51774
52676
  }
52677
+ let n1, n2, n3;
52678
+ let t1, t2;
52679
+ let t3, t4;
52680
+ if (par == g.prev) {
52681
+ n3 = g;
52682
+ t4 = g.next;
52683
+ if (x == par.prev) {
52684
+ n1 = x;
52685
+ n2 = par;
52686
+ t1 = x.prev;
52687
+ t2 = x.next;
52688
+ t3 = par.next;
52689
+ } else {
52690
+ n1 = par;
52691
+ n2 = x;
52692
+ t1 = par.prev;
52693
+ t2 = x.prev;
52694
+ t3 = x.next;
52695
+ }
52696
+ } else {
52697
+ n1 = g;
52698
+ t1 = g.prev;
52699
+ if (x == par.prev) {
52700
+ n2 = x;
52701
+ n3 = par;
52702
+ t2 = x.prev;
52703
+ t3 = x.next;
52704
+ t4 = par.next;
52705
+ } else {
52706
+ n2 = par;
52707
+ n3 = x;
52708
+ t2 = par.prev;
52709
+ t3 = x.prev;
52710
+ t4 = x.next;
52711
+ }
52712
+ }
52713
+ const par1 = g.parent;
52714
+ if (par1 == null) this.parent = n2;
52715
+ else if (par1.prev == g) par1.prev = n2;
52716
+ else par1.next = n2;
52717
+ if (n2 != null) n2.parent = par1;
52718
+ n1.prev = t1;
52719
+ if (t1 != null) t1.parent = n1;
52720
+ n1.next = t2;
52721
+ if (t2 != null) t2.parent = n1;
52722
+ n2.prev = n1;
52723
+ if (n1 != null) n1.parent = n2;
52724
+ n2.next = n3;
52725
+ if (n3 != null) n3.parent = n2;
52726
+ n3.prev = t3;
52727
+ if (t3 != null) t3.parent = n3;
52728
+ n3.next = t4;
52729
+ if (t4 != null) t4.parent = n3;
52730
+ n2.colour = g.colour - 1;
52731
+ n1.colour = 1;
52732
+ n3.colour = 1;
52733
+ if (n2 == this.parent) {
52734
+ this.parent.colour = 1;
52735
+ } else if (n2.colour == 0 && n2.parent.colour == 0) {
52736
+ x = n2;
52737
+ continue;
52738
+ }
52739
+ break;
51775
52740
  }
51776
- if (digits != null) {
51777
- while (s.length < digits) s = "0" + s;
52741
+ }
52742
+ try_insert_bool(obj) {
52743
+ let x = null;
52744
+ if (this.parent == null) {
52745
+ x = this._allocNode();
52746
+ x.data = obj;
52747
+ this.parent = x;
52748
+ } else {
52749
+ let cur = this.parent;
52750
+ while (true) {
52751
+ if (this.lt(obj, cur.data)) {
52752
+ if (cur.prev == null) {
52753
+ x = this._allocNode();
52754
+ x.data = obj;
52755
+ cur.prev = x;
52756
+ x.parent = cur;
52757
+ break;
52758
+ } else cur = cur.prev;
52759
+ } else if (this.lt(cur.data, obj)) {
52760
+ if (cur.next == null) {
52761
+ x = this._allocNode();
52762
+ x.data = obj;
52763
+ cur.next = x;
52764
+ x.parent = cur;
52765
+ break;
52766
+ } else cur = cur.next;
52767
+ } else break;
52768
+ }
51778
52769
  }
51779
- return s;
51780
- };
51781
- StringTools.prototype.__class__ = StringTools;
51782
- if (typeof js == "undefined") js = {};
51783
- if (!js._Boot) js._Boot = {};
51784
- js._Boot.HaxeError = $hxClasses["js._Boot.HaxeError"] = function(val) {
51785
- Error.call(this);
52770
+ if (x == null) return false;
52771
+ if (x.parent == null) x.colour = 1;
52772
+ else {
52773
+ x.colour = 0;
52774
+ if (x.parent.colour == 0) this.__fix_dbl_red(x);
52775
+ }
52776
+ return true;
52777
+ }
52778
+ try_insert(obj) {
52779
+ let x = null;
52780
+ let cur = null;
52781
+ if (this.parent == null) {
52782
+ x = this._allocNode();
52783
+ x.data = obj;
52784
+ this.parent = x;
52785
+ } else {
52786
+ cur = this.parent;
52787
+ while (true) {
52788
+ if (this.lt(obj, cur.data)) {
52789
+ if (cur.prev == null) {
52790
+ x = this._allocNode();
52791
+ x.data = obj;
52792
+ cur.prev = x;
52793
+ x.parent = cur;
52794
+ break;
52795
+ } else cur = cur.prev;
52796
+ } else if (this.lt(cur.data, obj)) {
52797
+ if (cur.next == null) {
52798
+ x = this._allocNode();
52799
+ x.data = obj;
52800
+ cur.next = x;
52801
+ x.parent = cur;
52802
+ break;
52803
+ } else cur = cur.next;
52804
+ } else break;
52805
+ }
52806
+ }
52807
+ if (x == null) return cur;
52808
+ if (x.parent == null) x.colour = 1;
52809
+ else {
52810
+ x.colour = 0;
52811
+ if (x.parent.colour == 0) this.__fix_dbl_red(x);
52812
+ }
52813
+ return x;
52814
+ }
52815
+ insert(obj) {
52816
+ const x = this._allocNode();
52817
+ x.data = obj;
52818
+ if (this.parent == null) {
52819
+ this.parent = x;
52820
+ } else {
52821
+ let cur = this.parent;
52822
+ while (true) {
52823
+ if (this.lt(x.data, cur.data)) {
52824
+ if (cur.prev == null) {
52825
+ cur.prev = x;
52826
+ x.parent = cur;
52827
+ break;
52828
+ } else cur = cur.prev;
52829
+ } else if (cur.next == null) {
52830
+ cur.next = x;
52831
+ x.parent = cur;
52832
+ break;
52833
+ } else cur = cur.next;
52834
+ }
52835
+ }
52836
+ if (x.parent == null) x.colour = 1;
52837
+ else {
52838
+ x.colour = 0;
52839
+ if (x.parent.colour == 0) this.__fix_dbl_red(x);
52840
+ }
52841
+ return x;
52842
+ }
52843
+ };
52844
+ ZPP_Set.zpp_pool = null;
52845
+
52846
+ // src/core/HaxeShims.ts
52847
+ var $hxClasses = {};
52848
+ var Reflect2 = function() {
52849
+ };
52850
+ Reflect2.__name__ = ["Reflect"];
52851
+ Reflect2.field = function(o, field) {
52852
+ try {
52853
+ return o[field];
52854
+ } catch (_e) {
52855
+ return null;
52856
+ }
52857
+ };
52858
+ Reflect2.fields = function(o) {
52859
+ const a = [];
52860
+ if (o != null) {
52861
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
52862
+ for (const f in o) {
52863
+ if (f != "__id__" && f != "hx__closures__" && hasOwnProperty.call(o, f)) {
52864
+ a.push(f);
52865
+ }
52866
+ }
52867
+ }
52868
+ return a;
52869
+ };
52870
+ Reflect2.copy = function(o) {
52871
+ if (o == null) return null;
52872
+ const o2 = {};
52873
+ const fields = Reflect2.fields(o);
52874
+ for (let i = 0; i < fields.length; i++) {
52875
+ o2[fields[i]] = Reflect2.field(o, fields[i]);
52876
+ }
52877
+ return o2;
52878
+ };
52879
+ Reflect2.prototype.__class__ = Reflect2;
52880
+ var Std = function() {
52881
+ };
52882
+ Std.__name__ = ["Std"];
52883
+ Std.string = function(s) {
52884
+ return jsBoot.__string_rec(s, "");
52885
+ };
52886
+ Std.prototype.__class__ = Std;
52887
+ var StringTools = function() {
52888
+ };
52889
+ StringTools.__name__ = ["StringTools"];
52890
+ StringTools.hex = function(n, digits) {
52891
+ let s = "";
52892
+ const hexChars = "0123456789ABCDEF";
52893
+ do {
52894
+ s = hexChars.charAt(n & 15) + s;
52895
+ n >>>= 4;
52896
+ } while (n > 0);
52897
+ if (digits != null) {
52898
+ while (s.length < digits) s = "0" + s;
52899
+ }
52900
+ return s;
52901
+ };
52902
+ StringTools.prototype.__class__ = StringTools;
52903
+ var HaxeError = class _HaxeError extends Error {
52904
+ constructor(val) {
52905
+ super();
51786
52906
  this.val = val;
51787
52907
  if (Error.captureStackTrace) {
51788
- Error.captureStackTrace(this, js._Boot.HaxeError);
52908
+ Error.captureStackTrace(this, _HaxeError);
51789
52909
  }
51790
- };
51791
- js._Boot.HaxeError.__name__ = ["js", "_Boot", "HaxeError"];
51792
- js._Boot.HaxeError.__super__ = Error;
51793
- for (var k in Error.prototype)
51794
- js._Boot.HaxeError.prototype[k] = Error.prototype[k];
51795
- js._Boot.HaxeError.prototype.val = null;
51796
- js._Boot.HaxeError.prototype.__class__ = js._Boot.HaxeError;
51797
- js.Boot = $hxClasses["js.Boot"] = function() {
51798
- };
51799
- js.Boot.__name__ = ["js", "Boot"];
51800
- js.Boot.__string_rec = function(o, s) {
51801
- if (o == null) {
51802
- return "null";
51803
- }
51804
- if (s.length >= 5) {
51805
- return "<...>";
51806
- }
51807
- var t = typeof o;
51808
- if (t == "function" && (o.__name__ || o.__ename__)) {
51809
- t = "object";
51810
- }
51811
- switch (t) {
51812
- case "function":
51813
- return "<function>";
51814
- case "object":
51815
- if (o instanceof Array) {
51816
- var str = "[";
51817
- s += " ";
51818
- var _g3 = 0;
51819
- var _g11 = o.length;
51820
- while (_g3 < _g11) {
51821
- var i = _g3++;
51822
- str += (i > 0 ? "," : "") + js.Boot.__string_rec(o[i], s);
51823
- }
51824
- str += "]";
51825
- return str;
51826
- }
51827
- var tostr;
52910
+ }
52911
+ };
52912
+ HaxeError.__name__ = ["js", "_Boot", "HaxeError"];
52913
+ HaxeError.__super__ = Error;
52914
+ HaxeError.prototype.__class__ = HaxeError;
52915
+ var jsBoot = function() {
52916
+ };
52917
+ jsBoot.__name__ = ["js", "Boot"];
52918
+ jsBoot.__string_rec = function(o, s) {
52919
+ if (o == null) return "null";
52920
+ if (s.length >= 5) return "<...>";
52921
+ const t = typeof o;
52922
+ const effectiveType = t == "function" && (o.__name__ || o.__ename__) ? "object" : t;
52923
+ switch (effectiveType) {
52924
+ case "function":
52925
+ return "<function>";
52926
+ case "object":
52927
+ if (o instanceof Array) {
52928
+ let str = "[";
52929
+ s += " ";
52930
+ for (let i = 0; i < o.length; i++) {
52931
+ str += (i > 0 ? "," : "") + jsBoot.__string_rec(o[i], s);
52932
+ }
52933
+ str += "]";
52934
+ return str;
52935
+ }
52936
+ {
52937
+ let tostr;
51828
52938
  try {
51829
52939
  tostr = o.toString;
51830
- } catch (e1) {
51831
- var e2 = e1 instanceof js._Boot.HaxeError ? e1.val : e1;
52940
+ } catch (_e) {
51832
52941
  return "???";
51833
52942
  }
51834
52943
  if (tostr != null && tostr != Object.toString && typeof tostr == "function") {
51835
- var s2 = o.toString();
51836
- if (s2 != "[object Object]") {
51837
- return s2;
51838
- }
52944
+ const s2 = o.toString();
52945
+ if (s2 != "[object Object]") return s2;
51839
52946
  }
51840
- var str1 = "{\n";
52947
+ let str1 = "{\n";
51841
52948
  s += " ";
51842
- var hasp = o.hasOwnProperty != null;
51843
- var k2 = null;
51844
- for (k2 in o) {
51845
- if (hasp && !o.hasOwnProperty(k2)) {
51846
- continue;
51847
- }
51848
- if (k2 == "prototype" || k2 == "__class__" || k2 == "__super__" || k2 == "__interfaces__" || k2 == "__properties__") {
52949
+ const hasp = o.hasOwnProperty != null;
52950
+ for (const k in o) {
52951
+ if (hasp && !o.hasOwnProperty(k)) continue;
52952
+ if (k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__" || k == "__properties__")
51849
52953
  continue;
51850
- }
51851
- if (str1.length != 2) {
51852
- str1 += ", \n";
51853
- }
51854
- str1 += s + k2 + " : " + js.Boot.__string_rec(o[k2], s);
52954
+ if (str1.length != 2) str1 += ", \n";
52955
+ str1 += s + k + " : " + jsBoot.__string_rec(o[k], s);
51855
52956
  }
51856
52957
  s = s.substring(1);
51857
52958
  str1 += "\n" + s + "}";
51858
52959
  return str1;
51859
- case "string":
51860
- return o;
51861
- default:
51862
- return String(o);
51863
- }
51864
- };
51865
- js.Boot.__toStr = null;
51866
- js.Boot.prototype.__class__ = js.Boot;
52960
+ }
52961
+ case "string":
52962
+ return o;
52963
+ default:
52964
+ return String(o);
52965
+ }
52966
+ };
52967
+ jsBoot.__toStr = null;
52968
+ jsBoot.prototype.__class__ = jsBoot;
52969
+ var js = {
52970
+ _Boot: { HaxeError },
52971
+ Boot: jsBoot
52972
+ };
52973
+ function $estr() {
52974
+ return jsBoot.__string_rec(this, "");
52975
+ }
52976
+ $hxClasses["Reflect"] = Reflect2;
52977
+ $hxClasses["Std"] = Std;
52978
+ $hxClasses["StringTools"] = StringTools;
52979
+ $hxClasses["js._Boot.HaxeError"] = HaxeError;
52980
+ $hxClasses["js.Boot"] = jsBoot;
52981
+
52982
+ // src/core/nape-compiled.js
52983
+ var _nape;
52984
+ var define = function(factory) {
52985
+ _nape = factory();
52986
+ };
52987
+ define(function() {
52988
+ "use strict";
52989
+ var nape67, zpp_nape, sandbox;
52990
+ var $hxClasses2 = $hxClasses;
52991
+ var $estr2 = $estr;
52992
+ var js2 = js;
52993
+ var Reflect3 = Reflect2;
52994
+ var Std2 = Std;
52995
+ var StringTools2 = StringTools;
51867
52996
  if (typeof nape67 == "undefined") nape67 = {};
51868
- nape67.Config = $hxClasses["nape.Config"] = function() {
52997
+ nape67.Config = $hxClasses2["nape.Config"] = function() {
51869
52998
  };
51870
52999
  nape67.Config.__name__ = ["nape", "Config"];
51871
53000
  nape67.Config.prototype.__class__ = nape67.Config;
@@ -51873,7 +53002,7 @@ define(function() {
51873
53002
  nape67.callbacks.Callback = function() {
51874
53003
  this.zpp_inner = null;
51875
53004
  if (!zpp_nape.callbacks.ZPP_Callback.internal) {
51876
- throw new js._Boot.HaxeError("Error: Callback cannot be instantiated derp!");
53005
+ throw new js2._Boot.HaxeError("Error: Callback cannot be instantiated derp!");
51877
53006
  }
51878
53007
  };
51879
53008
  nape67.callbacks.Callback.__name__ = ["nape", "callbacks", "Callback"];
@@ -51888,7 +53017,7 @@ define(function() {
51888
53017
  nape67.callbacks.Listener = function() {
51889
53018
  this.zpp_inner = null;
51890
53019
  if (!zpp_nape.callbacks.ZPP_Listener.internal) {
51891
- throw new js._Boot.HaxeError("Error: Cannot instantiate Listener derp!");
53020
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate Listener derp!");
51892
53021
  }
51893
53022
  };
51894
53023
  nape67.callbacks.Listener.__name__ = ["nape", "callbacks", "Listener"];
@@ -51896,7 +53025,7 @@ define(function() {
51896
53025
  nape67.callbacks.Listener.prototype.__class__ = nape67.callbacks.Listener;
51897
53026
  nape67.callbacks.CbEvent = function() {
51898
53027
  if (!zpp_nape.util.ZPP_Flags.internal) {
51899
- throw new js._Boot.HaxeError("Error: Cannot instantiate CbEvent derp!");
53028
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate CbEvent derp!");
51900
53029
  }
51901
53030
  };
51902
53031
  nape67.callbacks.CbEvent.__name__ = ["nape", "callbacks", "CbEvent"];
@@ -51924,7 +53053,7 @@ define(function() {
51924
53053
  nape67.callbacks.InteractionCallback.prototype.__class__ = nape67.callbacks.InteractionCallback;
51925
53054
  nape67.callbacks.ListenerType = function() {
51926
53055
  if (!zpp_nape.util.ZPP_Flags.internal) {
51927
- throw new js._Boot.HaxeError(
53056
+ throw new js2._Boot.HaxeError(
51928
53057
  "Error: Cannot instantiate ListenerType derp!"
51929
53058
  );
51930
53059
  }
@@ -51960,48 +53089,48 @@ define(function() {
51960
53089
  nape67.callbacks.PreCallback.prototype = Object.create(nape67.callbacks.Callback.prototype);
51961
53090
  nape67.callbacks.PreCallback.prototype.__class__ = nape67.callbacks.PreCallback;
51962
53091
  if (!nape67.constraint) nape67.constraint = {};
51963
- nape67.constraint.Constraint = $hxClasses["nape.constraint.Constraint"] = function() {
53092
+ nape67.constraint.Constraint = $hxClasses2["nape.constraint.Constraint"] = function() {
51964
53093
  };
51965
53094
  nape67.constraint.Constraint.__name__ = ["nape", "constraint", "Constraint"];
51966
53095
  nape67.constraint.Constraint.prototype.__class__ = nape67.constraint.Constraint;
51967
- nape67.constraint.AngleJoint = $hxClasses["nape.constraint.AngleJoint"] = function() {
53096
+ nape67.constraint.AngleJoint = $hxClasses2["nape.constraint.AngleJoint"] = function() {
51968
53097
  };
51969
53098
  nape67.constraint.AngleJoint.__name__ = ["nape", "constraint", "AngleJoint"];
51970
53099
  nape67.constraint.AngleJoint.prototype.__class__ = nape67.constraint.AngleJoint;
51971
- nape67.constraint.DistanceJoint = $hxClasses["nape.constraint.DistanceJoint"] = function() {
53100
+ nape67.constraint.DistanceJoint = $hxClasses2["nape.constraint.DistanceJoint"] = function() {
51972
53101
  };
51973
53102
  nape67.constraint.DistanceJoint.__name__ = ["nape", "constraint", "DistanceJoint"];
51974
53103
  nape67.constraint.DistanceJoint.prototype.__class__ = nape67.constraint.DistanceJoint;
51975
- nape67.constraint.LineJoint = $hxClasses["nape.constraint.LineJoint"] = function() {
53104
+ nape67.constraint.LineJoint = $hxClasses2["nape.constraint.LineJoint"] = function() {
51976
53105
  };
51977
53106
  nape67.constraint.LineJoint.__name__ = ["nape", "constraint", "LineJoint"];
51978
53107
  nape67.constraint.LineJoint.prototype.__class__ = nape67.constraint.LineJoint;
51979
- nape67.constraint.MotorJoint = $hxClasses["nape.constraint.MotorJoint"] = function() {
53108
+ nape67.constraint.MotorJoint = $hxClasses2["nape.constraint.MotorJoint"] = function() {
51980
53109
  };
51981
53110
  nape67.constraint.MotorJoint.__name__ = ["nape", "constraint", "MotorJoint"];
51982
53111
  nape67.constraint.MotorJoint.prototype.__class__ = nape67.constraint.MotorJoint;
51983
- nape67.constraint.PivotJoint = $hxClasses["nape.constraint.PivotJoint"] = function() {
53112
+ nape67.constraint.PivotJoint = $hxClasses2["nape.constraint.PivotJoint"] = function() {
51984
53113
  };
51985
53114
  nape67.constraint.PivotJoint.__name__ = ["nape", "constraint", "PivotJoint"];
51986
53115
  nape67.constraint.PivotJoint.prototype.__class__ = nape67.constraint.PivotJoint;
51987
- nape67.constraint.PulleyJoint = $hxClasses["nape.constraint.PulleyJoint"] = function() {
53116
+ nape67.constraint.PulleyJoint = $hxClasses2["nape.constraint.PulleyJoint"] = function() {
51988
53117
  };
51989
53118
  nape67.constraint.PulleyJoint.__name__ = ["nape", "constraint", "PulleyJoint"];
51990
53119
  nape67.constraint.PulleyJoint.__super__ = nape67.constraint.Constraint;
51991
53120
  nape67.constraint.PulleyJoint.prototype.__class__ = nape67.constraint.PulleyJoint;
51992
- nape67.constraint.UserConstraint = $hxClasses["nape.constraint.UserConstraint"] = function() {
53121
+ nape67.constraint.UserConstraint = $hxClasses2["nape.constraint.UserConstraint"] = function() {
51993
53122
  };
51994
53123
  nape67.constraint.UserConstraint.__name__ = ["nape", "constraint", "UserConstraint"];
51995
53124
  nape67.constraint.UserConstraint.prototype.__class__ = nape67.constraint.UserConstraint;
51996
- nape67.constraint.WeldJoint = $hxClasses["nape.constraint.WeldJoint"] = function() {
53125
+ nape67.constraint.WeldJoint = $hxClasses2["nape.constraint.WeldJoint"] = function() {
51997
53126
  };
51998
53127
  nape67.constraint.WeldJoint.__name__ = ["nape", "constraint", "WeldJoint"];
51999
53128
  nape67.constraint.WeldJoint.prototype.__class__ = nape67.constraint.WeldJoint;
52000
53129
  if (!nape67.dynamics) nape67.dynamics = {};
52001
- nape67.dynamics.Arbiter = $hxClasses["nape.dynamics.Arbiter"] = function() {
53130
+ nape67.dynamics.Arbiter = $hxClasses2["nape.dynamics.Arbiter"] = function() {
52002
53131
  this.zpp_inner = null;
52003
53132
  if (!zpp_nape.dynamics.ZPP_Arbiter.internal) {
52004
- throw new js._Boot.HaxeError("Error: Cannot instantiate Arbiter derp!");
53133
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate Arbiter derp!");
52005
53134
  }
52006
53135
  };
52007
53136
  nape67.dynamics.Arbiter.__name__ = ["nape", "dynamics", "Arbiter"];
@@ -52013,16 +53142,16 @@ define(function() {
52013
53142
  nape67.dynamics.ArbiterList.prototype.zpp_inner = null;
52014
53143
  nape67.dynamics.ArbiterType = function() {
52015
53144
  if (!zpp_nape.util.ZPP_Flags.internal) {
52016
- throw new js._Boot.HaxeError(
53145
+ throw new js2._Boot.HaxeError(
52017
53146
  "Error: Cannot instantiate ArbiterType derp!"
52018
53147
  );
52019
53148
  }
52020
53149
  };
52021
53150
  nape67.dynamics.ArbiterType.__name__ = ["nape", "dynamics", "ArbiterType"];
52022
53151
  nape67.dynamics.ArbiterType.prototype.__class__ = nape67.dynamics.ArbiterType;
52023
- nape67.dynamics.CollisionArbiter = $hxClasses["nape.dynamics.CollisionArbiter"] = function() {
53152
+ nape67.dynamics.CollisionArbiter = $hxClasses2["nape.dynamics.CollisionArbiter"] = function() {
52024
53153
  if (!zpp_nape.dynamics.ZPP_Arbiter.internal) {
52025
- throw new js._Boot.HaxeError(
53154
+ throw new js2._Boot.HaxeError(
52026
53155
  "Error: Cannot instantiate CollisionArbiter derp!"
52027
53156
  );
52028
53157
  }
@@ -52036,12 +53165,12 @@ define(function() {
52036
53165
  nape67.dynamics.CollisionArbiter.__super__ = nape67.dynamics.Arbiter;
52037
53166
  for (var k in nape67.dynamics.Arbiter.prototype)
52038
53167
  nape67.dynamics.CollisionArbiter.prototype[k] = nape67.dynamics.Arbiter.prototype[k];
52039
- nape67.dynamics.ContactIterator = $hxClasses["nape.dynamics.ContactIterator"] = function() {
53168
+ nape67.dynamics.ContactIterator = $hxClasses2["nape.dynamics.ContactIterator"] = function() {
52040
53169
  };
52041
53170
  nape67.dynamics.ContactIterator.__name__ = ["nape", "dynamics", "ContactIterator"];
52042
53171
  nape67.dynamics.ContactIterator.zpp_pool = null;
52043
53172
  nape67.dynamics.ContactIterator.prototype.__class__ = nape67.dynamics.ContactIterator;
52044
- nape67.dynamics.ContactList = $hxClasses["nape.dynamics.ContactList"] = function() {
53173
+ nape67.dynamics.ContactList = $hxClasses2["nape.dynamics.ContactList"] = function() {
52045
53174
  this.zpp_inner = null;
52046
53175
  this.zpp_inner = new zpp_nape.util.ZPP_ContactList();
52047
53176
  this.zpp_inner.outer = this;
@@ -52049,9 +53178,9 @@ define(function() {
52049
53178
  nape67.dynamics.ContactList.__name__ = ["nape", "dynamics", "ContactList"];
52050
53179
  nape67.dynamics.ContactList.prototype.zpp_inner = null;
52051
53180
  nape67.dynamics.ContactList.prototype.__class__ = nape67.dynamics.ContactList;
52052
- nape67.dynamics.FluidArbiter = $hxClasses["nape.dynamics.FluidArbiter"] = function() {
53181
+ nape67.dynamics.FluidArbiter = $hxClasses2["nape.dynamics.FluidArbiter"] = function() {
52053
53182
  if (!zpp_nape.dynamics.ZPP_Arbiter.internal) {
52054
- throw new js._Boot.HaxeError(
53183
+ throw new js2._Boot.HaxeError(
52055
53184
  "Error: Cannot instantiate FluidArbiter derp!"
52056
53185
  );
52057
53186
  }
@@ -52062,26 +53191,26 @@ define(function() {
52062
53191
  for (var k in nape67.dynamics.Arbiter.prototype)
52063
53192
  nape67.dynamics.FluidArbiter.prototype[k] = nape67.dynamics.Arbiter.prototype[k];
52064
53193
  if (!nape67.geom) nape67.geom = {};
52065
- nape67.geom.Geom = $hxClasses["nape.geom.Geom"] = function() {
53194
+ nape67.geom.Geom = $hxClasses2["nape.geom.Geom"] = function() {
52066
53195
  };
52067
53196
  nape67.geom.Geom.__name__ = ["nape", "geom", "Geom"];
52068
53197
  nape67.geom.Geom.prototype.__class__ = nape67.geom.Geom;
52069
- nape67.geom.GeomVertexIterator = $hxClasses["nape.geom.GeomVertexIterator"] = function() {
53198
+ nape67.geom.GeomVertexIterator = $hxClasses2["nape.geom.GeomVertexIterator"] = function() {
52070
53199
  };
52071
53200
  nape67.geom.GeomVertexIterator.__name__ = ["nape", "geom", "GeomVertexIterator"];
52072
53201
  nape67.geom.GeomVertexIterator.prototype.zpp_inner = null;
52073
53202
  nape67.geom.GeomVertexIterator.prototype.__class__ = nape67.geom.GeomVertexIterator;
52074
53203
  nape67.geom.GeomVertexIterator;
52075
- nape67.geom.Ray = $hxClasses["nape.geom.Ray"] = function() {
53204
+ nape67.geom.Ray = $hxClasses2["nape.geom.Ray"] = function() {
52076
53205
  };
52077
53206
  nape67.geom.Ray.__name__ = ["nape", "geom", "Ray"];
52078
53207
  nape67.geom.Ray.prototype.__class__ = nape67.geom.Ray;
52079
- nape67.geom.Vec2Iterator = $hxClasses["nape.geom.Vec2Iterator"] = function() {
53208
+ nape67.geom.Vec2Iterator = $hxClasses2["nape.geom.Vec2Iterator"] = function() {
52080
53209
  };
52081
53210
  nape67.geom.Vec2Iterator.__name__ = ["nape", "geom", "Vec2Iterator"];
52082
53211
  nape67.geom.Vec2Iterator.zpp_pool = null;
52083
53212
  nape67.geom.Vec2Iterator.prototype.__class__ = nape67.geom.Vec2Iterator;
52084
- nape67.geom.Vec2List = $hxClasses["nape.geom.Vec2List"] = function() {
53213
+ nape67.geom.Vec2List = $hxClasses2["nape.geom.Vec2List"] = function() {
52085
53214
  this.zpp_inner = null;
52086
53215
  this.zpp_inner = new zpp_nape.util.ZPP_Vec2List();
52087
53216
  this.zpp_inner.outer = this;
@@ -52090,10 +53219,10 @@ define(function() {
52090
53219
  nape67.geom.Vec2List.prototype.zpp_inner = null;
52091
53220
  nape67.geom.Vec2List.prototype.__class__ = nape67.geom.Vec2List;
52092
53221
  if (!nape67.phys) nape67.phys = {};
52093
- nape67.phys.Interactor = $hxClasses["nape.phys.Interactor"] = function() {
53222
+ nape67.phys.Interactor = $hxClasses2["nape.phys.Interactor"] = function() {
52094
53223
  this.zpp_inner_i = null;
52095
53224
  if (!nape67.phys.Interactor.zpp_internalAlloc) {
52096
- throw new js._Boot.HaxeError(
53225
+ throw new js2._Boot.HaxeError(
52097
53226
  "Error: Cannot instantiate an Interactor, only Shape/Body/Compound"
52098
53227
  );
52099
53228
  }
@@ -52203,7 +53332,7 @@ define(function() {
52203
53332
  return "";
52204
53333
  };
52205
53334
  nape67.phys.Interactor.prototype.__class__ = nape67.phys.Interactor;
52206
- nape67.phys.Body = $hxClasses["nape.phys.Body"] = function() {
53335
+ nape67.phys.Body = $hxClasses2["nape.phys.Body"] = function() {
52207
53336
  };
52208
53337
  nape67.phys.Body.__name__ = ["nape", "phys", "Body"];
52209
53338
  nape67.phys.Body.__super__ = nape67.phys.Interactor;
@@ -52214,12 +53343,12 @@ define(function() {
52214
53343
  nape67.phys.Body.prototype.__class__ = nape67.phys.Body;
52215
53344
  nape67.phys.BodyType = function() {
52216
53345
  if (!zpp_nape.util.ZPP_Flags.internal) {
52217
- throw new js._Boot.HaxeError("Error: Cannot instantiate BodyType derp!");
53346
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate BodyType derp!");
52218
53347
  }
52219
53348
  };
52220
53349
  nape67.phys.BodyType.__name__ = ["nape", "phys", "BodyType"];
52221
53350
  nape67.phys.BodyType.prototype.__class__ = nape67.phys.BodyType;
52222
- nape67.phys.Compound = $hxClasses["nape.phys.Compound"] = function() {
53351
+ nape67.phys.Compound = $hxClasses2["nape.phys.Compound"] = function() {
52223
53352
  };
52224
53353
  nape67.phys.Compound.__name__ = ["nape", "phys", "Compound"];
52225
53354
  nape67.phys.Compound.__super__ = nape67.phys.Interactor;
@@ -52227,13 +53356,13 @@ define(function() {
52227
53356
  nape67.phys.Compound.prototype[k] = nape67.phys.Interactor.prototype[k];
52228
53357
  nape67.phys.Compound.prototype.__class__ = nape67.phys.Compound;
52229
53358
  if (!nape67.shape) nape67.shape = {};
52230
- nape67.shape.Shape = $hxClasses["nape.shape.Shape"] = function() {
53359
+ nape67.shape.Shape = $hxClasses2["nape.shape.Shape"] = function() {
52231
53360
  this.zpp_inner = null;
52232
53361
  nape67.phys.Interactor.zpp_internalAlloc = true;
52233
53362
  nape67.phys.Interactor.call(this);
52234
53363
  nape67.phys.Interactor.zpp_internalAlloc = false;
52235
53364
  if (!nape67.shape.Shape.zpp_internalAlloc) {
52236
- throw new js._Boot.HaxeError("Error: Shape cannot be instantiated derp!");
53365
+ throw new js2._Boot.HaxeError("Error: Shape cannot be instantiated derp!");
52237
53366
  }
52238
53367
  };
52239
53368
  nape67.shape.Shape.__name__ = ["nape", "shape", "Shape"];
@@ -52242,7 +53371,7 @@ define(function() {
52242
53371
  nape67.shape.Shape.prototype[k] = nape67.phys.Interactor.prototype[k];
52243
53372
  nape67.shape.Shape.prototype.zpp_inner = null;
52244
53373
  nape67.shape.Shape.prototype.__class__ = nape67.shape.Shape;
52245
- nape67.shape.Circle = $hxClasses["nape.shape.Circle"] = function() {
53374
+ nape67.shape.Circle = $hxClasses2["nape.shape.Circle"] = function() {
52246
53375
  };
52247
53376
  nape67.shape.Circle.__name__ = ["nape", "shape", "Circle"];
52248
53377
  nape67.shape.Circle.__super__ = nape67.shape.Shape;
@@ -52250,30 +53379,30 @@ define(function() {
52250
53379
  nape67.shape.Circle.prototype[k] = nape67.shape.Shape.prototype[k];
52251
53380
  nape67.shape.Circle.prototype.zpp_inner_zn = null;
52252
53381
  nape67.shape.Circle.prototype.__class__ = nape67.shape.Circle;
52253
- nape67.shape.Edge = $hxClasses["nape.shape.Edge"] = function() {
53382
+ nape67.shape.Edge = $hxClasses2["nape.shape.Edge"] = function() {
52254
53383
  this.zpp_inner = null;
52255
53384
  if (!zpp_nape.shape.ZPP_Edge.internal) {
52256
- throw new js._Boot.HaxeError("Error: Cannot instantiate an Edge derp!");
53385
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate an Edge derp!");
52257
53386
  }
52258
53387
  };
52259
53388
  nape67.shape.Edge.__name__ = ["nape", "shape", "Edge"];
52260
53389
  nape67.shape.Edge.prototype.zpp_inner = null;
52261
53390
  nape67.shape.Edge.prototype.__class__ = nape67.shape.Edge;
52262
- nape67.shape.Polygon = $hxClasses["nape.shape.Polygon"] = function() {
53391
+ nape67.shape.Polygon = $hxClasses2["nape.shape.Polygon"] = function() {
52263
53392
  };
52264
53393
  nape67.shape.Polygon.__name__ = ["nape", "shape", "Polygon"];
52265
53394
  nape67.shape.Polygon.__super__ = nape67.shape.Shape;
52266
53395
  nape67.shape.Polygon.prototype.__class__ = nape67.shape.Polygon;
52267
53396
  nape67.shape.ShapeType = function() {
52268
53397
  if (!zpp_nape.util.ZPP_Flags.internal) {
52269
- throw new js._Boot.HaxeError("Error: Cannot instantiate ShapeType derp!");
53398
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate ShapeType derp!");
52270
53399
  }
52271
53400
  };
52272
53401
  nape67.shape.ShapeType.__name__ = ["nape", "shape", "ShapeType"];
52273
53402
  nape67.shape.ShapeType.prototype.__class__ = nape67.shape.ShapeType;
52274
53403
  nape67.shape.ValidationResult = function() {
52275
53404
  if (!zpp_nape.util.ZPP_Flags.internal) {
52276
- throw new js._Boot.HaxeError("Error: Cannot instantiate ValidationResult derp!");
53405
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate ValidationResult derp!");
52277
53406
  }
52278
53407
  };
52279
53408
  nape67.shape.ValidationResult.__name__ = ["nape", "shape", "ValidationResult"];
@@ -52281,846 +53410,69 @@ define(function() {
52281
53410
  if (!nape67.space) nape67.space = {};
52282
53411
  nape67.space.Broadphase = function() {
52283
53412
  if (!zpp_nape.util.ZPP_Flags.internal) {
52284
- throw new js._Boot.HaxeError("Error: Cannot instantiate Broadphase derp!");
53413
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate Broadphase derp!");
52285
53414
  }
52286
53415
  };
52287
53416
  nape67.space.Broadphase.__name__ = ["nape", "space", "Broadphase"];
52288
53417
  nape67.space.Broadphase.prototype.__class__ = nape67.space.Broadphase;
52289
- nape67.space.Space = $hxClasses["nape.space.Space"] = function() {
53418
+ nape67.space.Space = $hxClasses2["nape.space.Space"] = function() {
52290
53419
  };
52291
53420
  nape67.space.Space.__name__ = ["nape", "space", "Space"];
52292
53421
  nape67.space.Space.prototype.__class__ = nape67.space.Space;
52293
53422
  if (!nape67.util) nape67.util = {};
52294
- nape67.util.Debug = $hxClasses["nape.util.Debug"] = function() {
53423
+ nape67.util.Debug = $hxClasses2["nape.util.Debug"] = function() {
52295
53424
  };
52296
53425
  nape67.util.Debug.__name__ = ["nape", "util", "Debug"];
52297
53426
  nape67.util.Debug.prototype.__class__ = nape67.util.Debug;
52298
53427
  if (typeof sandbox == "undefined") sandbox = {};
52299
- sandbox.Main = $hxClasses["sandbox.Main"] = function() {
53428
+ sandbox.Main = $hxClasses2["sandbox.Main"] = function() {
52300
53429
  };
52301
53430
  sandbox.Main.__name__ = ["sandbox", "Main"];
52302
53431
  sandbox.Main.main = function() {
52303
53432
  };
52304
53433
  sandbox.Main.prototype.__class__ = sandbox.Main;
52305
53434
  if (typeof zpp_nape == "undefined") zpp_nape = {};
52306
- zpp_nape.ZPP_Const = $hxClasses["zpp_nape.ZPP_Const"] = ZPP_Const;
53435
+ zpp_nape.ZPP_Const = $hxClasses2["zpp_nape.ZPP_Const"] = ZPP_Const;
52307
53436
  zpp_nape.ZPP_Const.prototype.__class__ = zpp_nape.ZPP_Const;
52308
- zpp_nape.ZPP_ID = $hxClasses["zpp_nape.ZPP_ID"] = ZPP_ID;
53437
+ zpp_nape.ZPP_ID = $hxClasses2["zpp_nape.ZPP_ID"] = ZPP_ID;
52309
53438
  zpp_nape.ZPP_ID.prototype.__class__ = zpp_nape.ZPP_ID;
52310
53439
  if (!zpp_nape.callbacks) zpp_nape.callbacks = {};
52311
53440
  ZPP_Callback._nape = nape67;
52312
53441
  ZPP_Callback._zpp = zpp_nape;
52313
- zpp_nape.callbacks.ZPP_Callback = $hxClasses["zpp_nape.callbacks.ZPP_Callback"] = ZPP_Callback;
53442
+ zpp_nape.callbacks.ZPP_Callback = $hxClasses2["zpp_nape.callbacks.ZPP_Callback"] = ZPP_Callback;
52314
53443
  zpp_nape.callbacks.ZPP_Callback.prototype.__class__ = zpp_nape.callbacks.ZPP_Callback;
52315
53444
  ZPP_CbSet._zpp = zpp_nape;
52316
- zpp_nape.callbacks.ZPP_CbSet = $hxClasses["zpp_nape.callbacks.ZPP_CbSet"] = ZPP_CbSet;
53445
+ zpp_nape.callbacks.ZPP_CbSet = $hxClasses2["zpp_nape.callbacks.ZPP_CbSet"] = ZPP_CbSet;
52317
53446
  zpp_nape.callbacks.ZPP_CbSet.prototype.__class__ = zpp_nape.callbacks.ZPP_CbSet;
52318
53447
  ZPP_CbSetPair._zpp = zpp_nape;
52319
- zpp_nape.callbacks.ZPP_CbSetPair = $hxClasses["zpp_nape.callbacks.ZPP_CbSetPair"] = ZPP_CbSetPair;
53448
+ zpp_nape.callbacks.ZPP_CbSetPair = $hxClasses2["zpp_nape.callbacks.ZPP_CbSetPair"] = ZPP_CbSetPair;
52320
53449
  zpp_nape.callbacks.ZPP_CbSetPair.prototype.__class__ = zpp_nape.callbacks.ZPP_CbSetPair;
52321
53450
  if (!zpp_nape.util) zpp_nape.util = {};
52322
53451
  function createZNPNode(typeName) {
52323
- var cls = $hxClasses["zpp_nape.util.ZNPNode_" + typeName] = function() {
52324
- this.elt = null;
52325
- this.next = null;
53452
+ var cls = class extends ZNPNode {
52326
53453
  };
52327
53454
  cls.__name__ = ["zpp_nape", "util", "ZNPNode_" + typeName];
52328
53455
  cls.zpp_pool = null;
52329
- cls.prototype.next = null;
52330
- cls.prototype.alloc = function() {
52331
- };
52332
- cls.prototype.free = function() {
52333
- this.elt = null;
52334
- };
52335
- cls.prototype.elt = null;
52336
- cls.prototype.elem = function() {
52337
- return this.elt;
52338
- };
52339
53456
  cls.prototype.__class__ = cls;
53457
+ $hxClasses2["zpp_nape.util.ZNPNode_" + typeName] = cls;
52340
53458
  return cls;
52341
53459
  }
52342
53460
  function createZNPList(typeName, N) {
52343
- var cls = $hxClasses["zpp_nape.util.ZNPList_" + typeName] = function() {
52344
- this.length = 0;
52345
- this.pushmod = false;
52346
- this.modified = false;
52347
- this.head = null;
53461
+ var cls = class extends ZNPList {
52348
53462
  };
52349
53463
  cls.__name__ = ["zpp_nape", "util", "ZNPList_" + typeName];
52350
- cls.prototype.head = null;
52351
- cls.prototype.begin = function() {
52352
- return this.head;
52353
- };
52354
- cls.prototype.modified = null;
52355
- cls.prototype.pushmod = null;
52356
- cls.prototype.length = null;
52357
- cls.prototype.setbegin = function(i) {
52358
- this.head = i;
52359
- this.modified = true;
52360
- this.pushmod = true;
52361
- };
52362
- cls.prototype.add = function(o) {
52363
- var ret;
52364
- if (N.zpp_pool == null) {
52365
- ret = new N();
52366
- } else {
52367
- ret = N.zpp_pool;
52368
- N.zpp_pool = ret.next;
52369
- ret.next = null;
52370
- }
52371
- ret.elt = o;
52372
- var temp = ret;
52373
- temp.next = this.head;
52374
- this.head = temp;
52375
- this.modified = true;
52376
- this.length++;
52377
- return o;
52378
- };
52379
- cls.prototype.inlined_add = cls.prototype.add;
52380
- cls.prototype.addAll = function(x) {
52381
- var cx_ite = x.head;
52382
- while (cx_ite != null) {
52383
- this.add(cx_ite.elt);
52384
- cx_ite = cx_ite.next;
52385
- }
52386
- };
52387
- cls.prototype.insert = function(cur, o) {
52388
- var ret;
52389
- if (N.zpp_pool == null) {
52390
- ret = new N();
52391
- } else {
52392
- ret = N.zpp_pool;
52393
- N.zpp_pool = ret.next;
52394
- ret.next = null;
52395
- }
52396
- ret.elt = o;
52397
- var temp = ret;
52398
- if (cur == null) {
52399
- temp.next = this.head;
52400
- this.head = temp;
52401
- } else {
52402
- temp.next = cur.next;
52403
- cur.next = temp;
52404
- }
52405
- this.pushmod = this.modified = true;
52406
- this.length++;
52407
- return temp;
52408
- };
52409
- cls.prototype.inlined_insert = cls.prototype.insert;
52410
- cls.prototype.pop = function() {
52411
- var ret = this.head;
52412
- this.head = ret.next;
52413
- var o = ret;
52414
- o.elt = null;
52415
- o.next = N.zpp_pool;
52416
- N.zpp_pool = o;
52417
- if (this.head == null) {
52418
- this.pushmod = true;
52419
- }
52420
- this.modified = true;
52421
- this.length--;
52422
- };
52423
- cls.prototype.inlined_pop = cls.prototype.pop;
52424
- cls.prototype.pop_unsafe = function() {
52425
- var ret = this.head.elt;
52426
- this.pop();
52427
- return ret;
52428
- };
52429
- cls.prototype.inlined_pop_unsafe = cls.prototype.pop_unsafe;
52430
- cls.prototype.erase = function(pre) {
52431
- var old, ret;
52432
- if (pre == null) {
52433
- old = this.head;
52434
- ret = old.next;
52435
- this.head = ret;
52436
- if (this.head == null) {
52437
- this.pushmod = true;
52438
- }
52439
- } else {
52440
- old = pre.next;
52441
- ret = old.next;
52442
- pre.next = ret;
52443
- if (ret == null) {
52444
- this.pushmod = true;
52445
- }
52446
- }
52447
- var o = old;
52448
- o.elt = null;
52449
- o.next = N.zpp_pool;
52450
- N.zpp_pool = o;
52451
- this.modified = true;
52452
- this.length--;
52453
- this.pushmod = true;
52454
- return ret;
52455
- };
52456
- cls.prototype.inlined_erase = cls.prototype.erase;
52457
- cls.prototype.remove = function(obj) {
52458
- var pre = null, cur = this.head;
52459
- while (cur != null) {
52460
- if (cur.elt == obj) {
52461
- this.erase(pre);
52462
- break;
52463
- }
52464
- pre = cur;
52465
- cur = cur.next;
52466
- }
52467
- };
52468
- cls.prototype.inlined_remove = cls.prototype.remove;
52469
- cls.prototype.try_remove = function(obj) {
52470
- var pre = null, cur = this.head, ret = false;
52471
- while (cur != null) {
52472
- if (cur.elt == obj) {
52473
- this.erase(pre);
52474
- ret = true;
52475
- break;
52476
- }
52477
- pre = cur;
52478
- cur = cur.next;
52479
- }
52480
- return ret;
52481
- };
52482
- cls.prototype.inlined_try_remove = cls.prototype.try_remove;
52483
- cls.prototype.splice = function(pre, n) {
52484
- while (n-- > 0 && pre.next != null) this.erase(pre);
52485
- return pre.next;
52486
- };
52487
- cls.prototype.clear = function() {
52488
- while (this.head != null) {
52489
- var ret = this.head;
52490
- this.head = ret.next;
52491
- var o = ret;
52492
- o.elt = null;
52493
- o.next = N.zpp_pool;
52494
- N.zpp_pool = o;
52495
- if (this.head == null) {
52496
- this.pushmod = true;
52497
- }
52498
- this.modified = true;
52499
- this.length--;
52500
- }
52501
- this.pushmod = true;
52502
- };
52503
- cls.prototype.inlined_clear = cls.prototype.clear;
52504
- cls.prototype.reverse = function() {
52505
- var cur = this.head, pre = null;
52506
- while (cur != null) {
52507
- var nx = cur.next;
52508
- cur.next = pre;
52509
- this.head = cur;
52510
- pre = cur;
52511
- cur = nx;
52512
- }
52513
- this.modified = true;
52514
- this.pushmod = true;
52515
- };
52516
- cls.prototype.empty = function() {
52517
- return this.head == null;
52518
- };
52519
- cls.prototype.size = function() {
52520
- return this.length;
52521
- };
52522
- cls.prototype.has = function(obj) {
52523
- var cx_ite = this.head;
52524
- while (cx_ite != null) {
52525
- if (cx_ite.elt == obj) return true;
52526
- cx_ite = cx_ite.next;
52527
- }
52528
- return false;
52529
- };
52530
- cls.prototype.inlined_has = cls.prototype.has;
52531
- cls.prototype.front = function() {
52532
- return this.head.elt;
52533
- };
52534
- cls.prototype.back = function() {
52535
- var ret = this.head, cur = ret;
52536
- while (cur != null) {
52537
- ret = cur;
52538
- cur = cur.next;
52539
- }
52540
- return ret.elt;
52541
- };
52542
- cls.prototype.iterator_at = function(ind) {
52543
- var ret = this.head;
52544
- while (ind-- > 0 && ret != null) ret = ret.next;
52545
- return ret;
52546
- };
52547
- cls.prototype.at = function(ind) {
52548
- var it = this.iterator_at(ind);
52549
- return it != null ? it.elt : null;
52550
- };
53464
+ cls._NodeClass = N;
52551
53465
  cls.prototype.__class__ = cls;
53466
+ $hxClasses2["zpp_nape.util.ZNPList_" + typeName] = cls;
52552
53467
  return cls;
52553
53468
  }
52554
53469
  function createZPPSet(typeName) {
52555
- var cls = $hxClasses["zpp_nape.util.ZPP_Set_" + typeName] = function() {
52556
- this.colour = 0;
52557
- this.parent = null;
52558
- this.next = null;
52559
- this.prev = null;
52560
- this.data = null;
52561
- this.swapped = null;
52562
- this.lt = null;
53470
+ var cls = class extends ZPP_Set {
52563
53471
  };
52564
53472
  cls.__name__ = ["zpp_nape", "util", "ZPP_Set_" + typeName];
52565
53473
  cls.zpp_pool = null;
52566
- cls.prototype.free = function() {
52567
- this.data = null;
52568
- this.lt = null;
52569
- this.swapped = null;
52570
- };
52571
- cls.prototype.alloc = function() {
52572
- };
52573
- cls.prototype.lt = null;
52574
- cls.prototype.swapped = null;
52575
- cls.prototype.data = null;
52576
- cls.prototype.prev = null;
52577
- cls.prototype.next = null;
52578
- cls.prototype.parent = null;
52579
- cls.prototype.colour = null;
52580
- cls.prototype.verify = function() {
52581
- if (!this.empty()) {
52582
- var set_ite = this.parent;
52583
- while (set_ite.prev != null) set_ite = set_ite.prev;
52584
- while (set_ite != null) {
52585
- var i = set_ite.data;
52586
- var prei = true;
52587
- if (!this.empty()) {
52588
- var set_ite1 = this.parent;
52589
- while (set_ite1.prev != null) set_ite1 = set_ite1.prev;
52590
- while (set_ite1 != null) {
52591
- var j = set_ite1.data;
52592
- if (!prei) {
52593
- if (!this.lt(i, j) && this.lt(j, i)) return false;
52594
- } else if (i == j) {
52595
- prei = false;
52596
- } else if (!this.lt(j, i) && this.lt(i, j)) return false;
52597
- if (set_ite1.next != null) {
52598
- set_ite1 = set_ite1.next;
52599
- while (set_ite1.prev != null) set_ite1 = set_ite1.prev;
52600
- } else {
52601
- while (set_ite1.parent != null && set_ite1 == set_ite1.parent.next) set_ite1 = set_ite1.parent;
52602
- set_ite1 = set_ite1.parent;
52603
- }
52604
- }
52605
- }
52606
- if (set_ite.next != null) {
52607
- set_ite = set_ite.next;
52608
- while (set_ite.prev != null) set_ite = set_ite.prev;
52609
- } else {
52610
- while (set_ite.parent != null && set_ite == set_ite.parent.next) set_ite = set_ite.parent;
52611
- set_ite = set_ite.parent;
52612
- }
52613
- }
52614
- }
52615
- return true;
52616
- };
52617
- cls.prototype.empty = function() {
52618
- return this.parent == null;
52619
- };
52620
- cls.prototype.singular = function() {
52621
- if (this.parent != null && this.parent.prev == null) return this.parent.next == null;
52622
- return false;
52623
- };
52624
- cls.prototype.size = function() {
52625
- var ret = 0;
52626
- if (!this.empty()) {
52627
- var set_ite = this.parent;
52628
- while (set_ite.prev != null) set_ite = set_ite.prev;
52629
- while (set_ite != null) {
52630
- ++ret;
52631
- if (set_ite.next != null) {
52632
- set_ite = set_ite.next;
52633
- while (set_ite.prev != null) set_ite = set_ite.prev;
52634
- } else {
52635
- while (set_ite.parent != null && set_ite == set_ite.parent.next) set_ite = set_ite.parent;
52636
- set_ite = set_ite.parent;
52637
- }
52638
- }
52639
- }
52640
- return ret;
52641
- };
52642
- cls.prototype.has = function(obj) {
52643
- return this.find(obj) != null;
52644
- };
52645
- cls.prototype.find = function(obj) {
52646
- var cur = this.parent;
52647
- while (cur != null && cur.data != obj) {
52648
- if (this.lt(obj, cur.data)) cur = cur.prev;
52649
- else cur = cur.next;
52650
- }
52651
- return cur;
52652
- };
52653
- cls.prototype.has_weak = function(obj) {
52654
- return this.find_weak(obj) != null;
52655
- };
52656
- cls.prototype.find_weak = function(obj) {
52657
- var cur = this.parent;
52658
- while (cur != null) {
52659
- if (this.lt(obj, cur.data)) cur = cur.prev;
52660
- else if (this.lt(cur.data, obj)) cur = cur.next;
52661
- else break;
52662
- }
52663
- return cur;
52664
- };
52665
- cls.prototype.lower_bound = function(obj) {
52666
- var ret = null;
52667
- if (!this.empty()) {
52668
- var set_ite = this.parent;
52669
- while (set_ite.prev != null) set_ite = set_ite.prev;
52670
- while (set_ite != null) {
52671
- if (!this.lt(set_ite.data, obj)) {
52672
- ret = set_ite.data;
52673
- break;
52674
- }
52675
- if (set_ite.next != null) {
52676
- set_ite = set_ite.next;
52677
- while (set_ite.prev != null) set_ite = set_ite.prev;
52678
- } else {
52679
- while (set_ite.parent != null && set_ite == set_ite.parent.next) set_ite = set_ite.parent;
52680
- set_ite = set_ite.parent;
52681
- }
52682
- }
52683
- }
52684
- return ret;
52685
- };
52686
- cls.prototype.first = function() {
52687
- var cur = this.parent;
52688
- while (cur.prev != null) cur = cur.prev;
52689
- return cur.data;
52690
- };
52691
- cls.prototype.pop_front = function() {
52692
- var cur = this.parent;
52693
- while (cur.prev != null) cur = cur.prev;
52694
- var ret = cur.data;
52695
- this.remove_node(cur);
52696
- return ret;
52697
- };
52698
- cls.prototype.remove = function(obj) {
52699
- this.remove_node(this.find(obj));
52700
- };
52701
- cls.prototype.successor_node = function(cur) {
52702
- if (cur.next != null) {
52703
- cur = cur.next;
52704
- while (cur.prev != null) cur = cur.prev;
52705
- } else {
52706
- var pre = cur;
52707
- cur = cur.parent;
52708
- while (cur != null && cur.prev != pre) {
52709
- pre = cur;
52710
- cur = cur.parent;
52711
- }
52712
- }
52713
- return cur;
52714
- };
52715
- cls.prototype.predecessor_node = function(cur) {
52716
- if (cur.prev != null) {
52717
- cur = cur.prev;
52718
- while (cur.next != null) cur = cur.next;
52719
- } else {
52720
- var pre = cur;
52721
- cur = cur.parent;
52722
- while (cur != null && cur.next != pre) {
52723
- pre = cur;
52724
- cur = cur.parent;
52725
- }
52726
- }
52727
- return cur;
52728
- };
52729
- cls.prototype.successor = function(obj) {
52730
- var node = this.successor_node(this.find(obj));
52731
- return node == null ? null : node.data;
52732
- };
52733
- cls.prototype.predecessor = function(obj) {
52734
- var node = this.predecessor_node(this.find(obj));
52735
- return node == null ? null : node.data;
52736
- };
52737
- cls.prototype.remove_node = function(cur) {
52738
- if (cur.next != null && cur.prev != null) {
52739
- var sm = cur.next;
52740
- while (sm.prev != null) sm = sm.prev;
52741
- var t = cur.data;
52742
- cur.data = sm.data;
52743
- sm.data = t;
52744
- if (this.swapped != null) this.swapped(cur.data, sm.data);
52745
- cur = sm;
52746
- }
52747
- var child = cur.prev == null ? cur.next : cur.prev;
52748
- if (cur.colour == 1) {
52749
- if (cur.prev != null || cur.next != null) {
52750
- child.colour = 1;
52751
- } else if (cur.parent != null) {
52752
- var parent = cur.parent;
52753
- while (true) {
52754
- parent.colour++;
52755
- parent.prev.colour--;
52756
- parent.next.colour--;
52757
- var child1 = parent.prev;
52758
- if (child1.colour == -1) {
52759
- this.__fix_neg_red(child1);
52760
- break;
52761
- } else if (child1.colour == 0) {
52762
- if (child1.prev != null && child1.prev.colour == 0) {
52763
- this.__fix_dbl_red(child1.prev);
52764
- break;
52765
- }
52766
- if (child1.next != null && child1.next.colour == 0) {
52767
- this.__fix_dbl_red(child1.next);
52768
- break;
52769
- }
52770
- }
52771
- var child2 = parent.next;
52772
- if (child2.colour == -1) {
52773
- this.__fix_neg_red(child2);
52774
- break;
52775
- } else if (child2.colour == 0) {
52776
- if (child2.prev != null && child2.prev.colour == 0) {
52777
- this.__fix_dbl_red(child2.prev);
52778
- break;
52779
- }
52780
- if (child2.next != null && child2.next.colour == 0) {
52781
- this.__fix_dbl_red(child2.next);
52782
- break;
52783
- }
52784
- }
52785
- if (parent.colour == 2) {
52786
- if (parent.parent == null) {
52787
- parent.colour = 1;
52788
- } else {
52789
- parent = parent.parent;
52790
- continue;
52791
- }
52792
- }
52793
- break;
52794
- }
52795
- }
52796
- }
52797
- var par = cur.parent;
52798
- if (par == null) this.parent = child;
52799
- else if (par.prev == cur) par.prev = child;
52800
- else par.next = child;
52801
- if (child != null) child.parent = par;
52802
- cur.parent = cur.prev = cur.next = null;
52803
- var o = cur;
52804
- o.data = null;
52805
- o.lt = null;
52806
- o.swapped = null;
52807
- o.next = cls.zpp_pool;
52808
- cls.zpp_pool = o;
52809
- };
52810
- cls.prototype.clear = function() {
52811
- if (this.parent != null) {
52812
- var cur = this.parent;
52813
- while (cur != null) {
52814
- if (cur.prev != null) cur = cur.prev;
52815
- else if (cur.next != null) cur = cur.next;
52816
- else {
52817
- var ret = cur.parent;
52818
- if (ret != null) {
52819
- if (cur == ret.prev) ret.prev = null;
52820
- else ret.next = null;
52821
- cur.parent = null;
52822
- }
52823
- var o = cur;
52824
- o.data = null;
52825
- o.lt = null;
52826
- o.swapped = null;
52827
- o.next = cls.zpp_pool;
52828
- cls.zpp_pool = o;
52829
- cur = ret;
52830
- }
52831
- }
52832
- this.parent = null;
52833
- }
52834
- };
52835
- cls.prototype.clear_with = function(lambda) {
52836
- if (this.parent == null) return;
52837
- var cur = this.parent;
52838
- while (cur != null) {
52839
- if (cur.prev != null) cur = cur.prev;
52840
- else if (cur.next != null) cur = cur.next;
52841
- else {
52842
- lambda(cur.data);
52843
- var ret = cur.parent;
52844
- if (ret != null) {
52845
- if (cur == ret.prev) ret.prev = null;
52846
- else ret.next = null;
52847
- cur.parent = null;
52848
- }
52849
- var o = cur;
52850
- o.data = null;
52851
- o.lt = null;
52852
- o.swapped = null;
52853
- o.next = cls.zpp_pool;
52854
- cls.zpp_pool = o;
52855
- cur = ret;
52856
- }
52857
- }
52858
- this.parent = null;
52859
- };
52860
- cls.prototype.clear_node = function(node, lambda) {
52861
- lambda(node.data);
52862
- var ret = node.parent;
52863
- if (ret != null) {
52864
- if (node == ret.prev) ret.prev = null;
52865
- else ret.next = null;
52866
- node.parent = null;
52867
- }
52868
- var o = node;
52869
- o.data = null;
52870
- o.lt = null;
52871
- o.swapped = null;
52872
- o.next = cls.zpp_pool;
52873
- cls.zpp_pool = o;
52874
- return ret;
52875
- };
52876
- cls.prototype.__fix_neg_red = function(negred) {
52877
- var parent = negred.parent;
52878
- var child;
52879
- if (parent.prev == negred) {
52880
- var nl = negred.prev, nr = negred.next, trl = nr.prev, trr = nr.next;
52881
- nl.colour = 0;
52882
- negred.colour = parent.colour = 1;
52883
- negred.next = trl;
52884
- if (trl != null) trl.parent = negred;
52885
- var t = parent.data;
52886
- parent.data = nr.data;
52887
- nr.data = t;
52888
- if (this.swapped != null) this.swapped(parent.data, nr.data);
52889
- nr.prev = trr;
52890
- if (trr != null) trr.parent = nr;
52891
- nr.next = parent.next;
52892
- if (parent.next != null) parent.next.parent = nr;
52893
- parent.next = nr;
52894
- if (nr != null) nr.parent = parent;
52895
- child = nl;
52896
- } else {
52897
- var nl1 = negred.next, nr1 = negred.prev, trl1 = nr1.next, trr1 = nr1.prev;
52898
- nl1.colour = 0;
52899
- negred.colour = parent.colour = 1;
52900
- negred.prev = trl1;
52901
- if (trl1 != null) trl1.parent = negred;
52902
- var t1 = parent.data;
52903
- parent.data = nr1.data;
52904
- nr1.data = t1;
52905
- if (this.swapped != null) this.swapped(parent.data, nr1.data);
52906
- nr1.next = trr1;
52907
- if (trr1 != null) trr1.parent = nr1;
52908
- nr1.prev = parent.prev;
52909
- if (parent.prev != null) parent.prev.parent = nr1;
52910
- parent.prev = nr1;
52911
- if (nr1 != null) nr1.parent = parent;
52912
- child = nl1;
52913
- }
52914
- if (child.prev != null && child.prev.colour == 0) this.__fix_dbl_red(child.prev);
52915
- else if (child.next != null && child.next.colour == 0) this.__fix_dbl_red(child.next);
52916
- };
52917
- cls.prototype.__fix_dbl_red = function(x) {
52918
- while (true) {
52919
- var par = x.parent, g = par.parent;
52920
- if (g == null) {
52921
- par.colour = 1;
52922
- break;
52923
- }
52924
- var n1, n2, n3, t1, t2, t3, t4;
52925
- if (par == g.prev) {
52926
- n3 = g;
52927
- t4 = g.next;
52928
- if (x == par.prev) {
52929
- n1 = x;
52930
- n2 = par;
52931
- t1 = x.prev;
52932
- t2 = x.next;
52933
- t3 = par.next;
52934
- } else {
52935
- n1 = par;
52936
- n2 = x;
52937
- t1 = par.prev;
52938
- t2 = x.prev;
52939
- t3 = x.next;
52940
- }
52941
- } else {
52942
- n1 = g;
52943
- t1 = g.prev;
52944
- if (x == par.prev) {
52945
- n2 = x;
52946
- n3 = par;
52947
- t2 = x.prev;
52948
- t3 = x.next;
52949
- t4 = par.next;
52950
- } else {
52951
- n2 = par;
52952
- n3 = x;
52953
- t2 = par.prev;
52954
- t3 = x.prev;
52955
- t4 = x.next;
52956
- }
52957
- }
52958
- var par1 = g.parent;
52959
- if (par1 == null) this.parent = n2;
52960
- else if (par1.prev == g) par1.prev = n2;
52961
- else par1.next = n2;
52962
- if (n2 != null) n2.parent = par1;
52963
- n1.prev = t1;
52964
- if (t1 != null) t1.parent = n1;
52965
- n1.next = t2;
52966
- if (t2 != null) t2.parent = n1;
52967
- n2.prev = n1;
52968
- if (n1 != null) n1.parent = n2;
52969
- n2.next = n3;
52970
- if (n3 != null) n3.parent = n2;
52971
- n3.prev = t3;
52972
- if (t3 != null) t3.parent = n3;
52973
- n3.next = t4;
52974
- if (t4 != null) t4.parent = n3;
52975
- n2.colour = g.colour - 1;
52976
- n1.colour = 1;
52977
- n3.colour = 1;
52978
- if (n2 == this.parent) {
52979
- this.parent.colour = 1;
52980
- } else if (n2.colour == 0 && n2.parent.colour == 0) {
52981
- x = n2;
52982
- continue;
52983
- }
52984
- break;
52985
- }
52986
- };
52987
- cls.prototype.try_insert_bool = function(obj) {
52988
- var x = null, cur = null;
52989
- if (this.parent == null) {
52990
- if (cls.zpp_pool == null) x = new cls();
52991
- else {
52992
- x = cls.zpp_pool;
52993
- cls.zpp_pool = x.next;
52994
- x.next = null;
52995
- }
52996
- x.data = obj;
52997
- this.parent = x;
52998
- } else {
52999
- cur = this.parent;
53000
- while (true) {
53001
- if (this.lt(obj, cur.data)) {
53002
- if (cur.prev == null) {
53003
- if (cls.zpp_pool == null) x = new cls();
53004
- else {
53005
- x = cls.zpp_pool;
53006
- cls.zpp_pool = x.next;
53007
- x.next = null;
53008
- }
53009
- x.data = obj;
53010
- cur.prev = x;
53011
- x.parent = cur;
53012
- break;
53013
- } else cur = cur.prev;
53014
- } else if (this.lt(cur.data, obj)) {
53015
- if (cur.next == null) {
53016
- if (cls.zpp_pool == null) x = new cls();
53017
- else {
53018
- x = cls.zpp_pool;
53019
- cls.zpp_pool = x.next;
53020
- x.next = null;
53021
- }
53022
- x.data = obj;
53023
- cur.next = x;
53024
- x.parent = cur;
53025
- break;
53026
- } else cur = cur.next;
53027
- } else break;
53028
- }
53029
- }
53030
- if (x == null) return false;
53031
- if (x.parent == null) x.colour = 1;
53032
- else {
53033
- x.colour = 0;
53034
- if (x.parent.colour == 0) this.__fix_dbl_red(x);
53035
- }
53036
- return true;
53037
- };
53038
- cls.prototype.try_insert = function(obj) {
53039
- var x = null, cur = null;
53040
- if (this.parent == null) {
53041
- if (cls.zpp_pool == null) x = new cls();
53042
- else {
53043
- x = cls.zpp_pool;
53044
- cls.zpp_pool = x.next;
53045
- x.next = null;
53046
- }
53047
- x.data = obj;
53048
- this.parent = x;
53049
- } else {
53050
- cur = this.parent;
53051
- while (true) {
53052
- if (this.lt(obj, cur.data)) {
53053
- if (cur.prev == null) {
53054
- if (cls.zpp_pool == null) x = new cls();
53055
- else {
53056
- x = cls.zpp_pool;
53057
- cls.zpp_pool = x.next;
53058
- x.next = null;
53059
- }
53060
- x.data = obj;
53061
- cur.prev = x;
53062
- x.parent = cur;
53063
- break;
53064
- } else cur = cur.prev;
53065
- } else if (this.lt(cur.data, obj)) {
53066
- if (cur.next == null) {
53067
- if (cls.zpp_pool == null) x = new cls();
53068
- else {
53069
- x = cls.zpp_pool;
53070
- cls.zpp_pool = x.next;
53071
- x.next = null;
53072
- }
53073
- x.data = obj;
53074
- cur.next = x;
53075
- x.parent = cur;
53076
- break;
53077
- } else cur = cur.next;
53078
- } else break;
53079
- }
53080
- }
53081
- if (x == null) return cur;
53082
- if (x.parent == null) x.colour = 1;
53083
- else {
53084
- x.colour = 0;
53085
- if (x.parent.colour == 0) this.__fix_dbl_red(x);
53086
- }
53087
- return x;
53088
- };
53089
- cls.prototype.insert = function(obj) {
53090
- var x;
53091
- if (cls.zpp_pool == null) x = new cls();
53092
- else {
53093
- x = cls.zpp_pool;
53094
- cls.zpp_pool = x.next;
53095
- x.next = null;
53096
- }
53097
- x.data = obj;
53098
- if (this.parent == null) {
53099
- this.parent = x;
53100
- } else {
53101
- var cur = this.parent;
53102
- while (true) {
53103
- if (this.lt(x.data, cur.data)) {
53104
- if (cur.prev == null) {
53105
- cur.prev = x;
53106
- x.parent = cur;
53107
- break;
53108
- } else cur = cur.prev;
53109
- } else if (cur.next == null) {
53110
- cur.next = x;
53111
- x.parent = cur;
53112
- break;
53113
- } else cur = cur.next;
53114
- }
53115
- }
53116
- if (x.parent == null) x.colour = 1;
53117
- else {
53118
- x.colour = 0;
53119
- if (x.parent.colour == 0) this.__fix_dbl_red(x);
53120
- }
53121
- return x;
53122
- };
53123
53474
  cls.prototype.__class__ = cls;
53475
+ $hxClasses2["zpp_nape.util.ZPP_Set_" + typeName] = cls;
53124
53476
  return cls;
53125
53477
  }
53126
53478
  zpp_nape.util.ZNPNode_ZPP_CbType = createZNPNode("ZPP_CbType");
@@ -53202,582 +53554,250 @@ define(function() {
53202
53554
  zpp_nape.util.ZPP_Set_ZPP_SimpleEvent = createZPPSet("ZPP_SimpleEvent");
53203
53555
  zpp_nape.util.ZPP_Set_ZPP_CbSet = createZPPSet("ZPP_CbSet");
53204
53556
  ZPP_CbType._zpp = zpp_nape;
53205
- zpp_nape.callbacks.ZPP_CbType = $hxClasses["zpp_nape.callbacks.ZPP_CbType"] = ZPP_CbType;
53557
+ zpp_nape.callbacks.ZPP_CbType = $hxClasses2["zpp_nape.callbacks.ZPP_CbType"] = ZPP_CbType;
53206
53558
  zpp_nape.callbacks.ZPP_CbType.prototype.__class__ = zpp_nape.callbacks.ZPP_CbType;
53207
- zpp_nape.util.ZPP_Flags = $hxClasses["zpp_nape.util.ZPP_Flags"] = ZPP_Flags;
53559
+ zpp_nape.util.ZPP_Flags = $hxClasses2["zpp_nape.util.ZPP_Flags"] = ZPP_Flags;
53208
53560
  zpp_nape.util.ZPP_Flags.prototype.__class__ = zpp_nape.util.ZPP_Flags;
53209
53561
  ZPP_Listener._nape = nape67;
53210
53562
  ZPP_Listener._zpp = zpp_nape;
53211
- zpp_nape.callbacks.ZPP_Listener = $hxClasses["zpp_nape.callbacks.ZPP_Listener"] = ZPP_Listener;
53563
+ zpp_nape.callbacks.ZPP_Listener = $hxClasses2["zpp_nape.callbacks.ZPP_Listener"] = ZPP_Listener;
53212
53564
  zpp_nape.callbacks.ZPP_Listener.prototype.__class__ = zpp_nape.callbacks.ZPP_Listener;
53213
- zpp_nape.callbacks.ZPP_BodyListener = $hxClasses["zpp_nape.callbacks.ZPP_BodyListener"] = ZPP_BodyListener;
53565
+ zpp_nape.callbacks.ZPP_BodyListener = $hxClasses2["zpp_nape.callbacks.ZPP_BodyListener"] = ZPP_BodyListener;
53214
53566
  zpp_nape.callbacks.ZPP_BodyListener.prototype.__class__ = zpp_nape.callbacks.ZPP_BodyListener;
53215
- zpp_nape.callbacks.ZPP_ConstraintListener = $hxClasses["zpp_nape.callbacks.ZPP_ConstraintListener"] = ZPP_ConstraintListener;
53567
+ zpp_nape.callbacks.ZPP_ConstraintListener = $hxClasses2["zpp_nape.callbacks.ZPP_ConstraintListener"] = ZPP_ConstraintListener;
53216
53568
  zpp_nape.callbacks.ZPP_ConstraintListener.prototype.__class__ = zpp_nape.callbacks.ZPP_ConstraintListener;
53217
- zpp_nape.callbacks.ZPP_InteractionListener = $hxClasses["zpp_nape.callbacks.ZPP_InteractionListener"] = ZPP_InteractionListener;
53569
+ zpp_nape.callbacks.ZPP_InteractionListener = $hxClasses2["zpp_nape.callbacks.ZPP_InteractionListener"] = ZPP_InteractionListener;
53218
53570
  zpp_nape.callbacks.ZPP_InteractionListener.prototype.__class__ = zpp_nape.callbacks.ZPP_InteractionListener;
53219
53571
  ZPP_OptionType._nape = nape67;
53220
53572
  ZPP_OptionType._zpp = zpp_nape;
53221
- zpp_nape.callbacks.ZPP_OptionType = $hxClasses["zpp_nape.callbacks.ZPP_OptionType"] = ZPP_OptionType;
53573
+ zpp_nape.callbacks.ZPP_OptionType = $hxClasses2["zpp_nape.callbacks.ZPP_OptionType"] = ZPP_OptionType;
53222
53574
  zpp_nape.callbacks.ZPP_OptionType.prototype.__class__ = zpp_nape.callbacks.ZPP_OptionType;
53223
53575
  if (!zpp_nape.constraint) zpp_nape.constraint = {};
53224
53576
  ZPP_Constraint._nape = nape67;
53225
53577
  ZPP_Constraint._zpp = zpp_nape;
53226
- zpp_nape.constraint.ZPP_Constraint = $hxClasses["zpp_nape.constraint.ZPP_Constraint"] = ZPP_Constraint;
53578
+ zpp_nape.constraint.ZPP_Constraint = $hxClasses2["zpp_nape.constraint.ZPP_Constraint"] = ZPP_Constraint;
53227
53579
  zpp_nape.constraint.ZPP_Constraint.__name__ = ZPP_Constraint.__name__;
53228
53580
  zpp_nape.constraint.ZPP_Constraint.prototype.__class__ = zpp_nape.constraint.ZPP_Constraint;
53229
- zpp_nape.constraint.ZPP_AngleJoint = $hxClasses["zpp_nape.constraint.ZPP_AngleJoint"] = ZPP_AngleJoint;
53581
+ zpp_nape.constraint.ZPP_AngleJoint = $hxClasses2["zpp_nape.constraint.ZPP_AngleJoint"] = ZPP_AngleJoint;
53230
53582
  zpp_nape.constraint.ZPP_AngleJoint.__name__ = ZPP_AngleJoint.__name__;
53231
53583
  zpp_nape.constraint.ZPP_AngleJoint.prototype.__class__ = zpp_nape.constraint.ZPP_AngleJoint;
53232
- zpp_nape.constraint.ZPP_CopyHelper = $hxClasses["zpp_nape.constraint.ZPP_CopyHelper"] = ZPP_CopyHelper;
53584
+ zpp_nape.constraint.ZPP_CopyHelper = $hxClasses2["zpp_nape.constraint.ZPP_CopyHelper"] = ZPP_CopyHelper;
53233
53585
  zpp_nape.constraint.ZPP_CopyHelper.prototype.__class__ = zpp_nape.constraint.ZPP_CopyHelper;
53234
- zpp_nape.constraint.ZPP_DistanceJoint = $hxClasses["zpp_nape.constraint.ZPP_DistanceJoint"] = ZPP_DistanceJoint;
53586
+ zpp_nape.constraint.ZPP_DistanceJoint = $hxClasses2["zpp_nape.constraint.ZPP_DistanceJoint"] = ZPP_DistanceJoint;
53235
53587
  zpp_nape.constraint.ZPP_DistanceJoint.__name__ = ZPP_DistanceJoint.__name__;
53236
53588
  zpp_nape.constraint.ZPP_DistanceJoint.prototype.__class__ = zpp_nape.constraint.ZPP_DistanceJoint;
53237
- zpp_nape.constraint.ZPP_LineJoint = $hxClasses["zpp_nape.constraint.ZPP_LineJoint"] = ZPP_LineJoint;
53589
+ zpp_nape.constraint.ZPP_LineJoint = $hxClasses2["zpp_nape.constraint.ZPP_LineJoint"] = ZPP_LineJoint;
53238
53590
  zpp_nape.constraint.ZPP_LineJoint.__name__ = ZPP_LineJoint.__name__;
53239
53591
  zpp_nape.constraint.ZPP_LineJoint.prototype.__class__ = zpp_nape.constraint.ZPP_LineJoint;
53240
- zpp_nape.constraint.ZPP_MotorJoint = $hxClasses["zpp_nape.constraint.ZPP_MotorJoint"] = ZPP_MotorJoint;
53592
+ zpp_nape.constraint.ZPP_MotorJoint = $hxClasses2["zpp_nape.constraint.ZPP_MotorJoint"] = ZPP_MotorJoint;
53241
53593
  zpp_nape.constraint.ZPP_MotorJoint.__name__ = ZPP_MotorJoint.__name__;
53242
53594
  zpp_nape.constraint.ZPP_MotorJoint.prototype.__class__ = zpp_nape.constraint.ZPP_MotorJoint;
53243
- zpp_nape.constraint.ZPP_PivotJoint = $hxClasses["zpp_nape.constraint.ZPP_PivotJoint"] = ZPP_PivotJoint;
53595
+ zpp_nape.constraint.ZPP_PivotJoint = $hxClasses2["zpp_nape.constraint.ZPP_PivotJoint"] = ZPP_PivotJoint;
53244
53596
  zpp_nape.constraint.ZPP_PivotJoint.__name__ = ZPP_PivotJoint.__name__;
53245
53597
  zpp_nape.constraint.ZPP_PivotJoint.prototype.__class__ = zpp_nape.constraint.ZPP_PivotJoint;
53246
- zpp_nape.constraint.ZPP_PulleyJoint = $hxClasses["zpp_nape.constraint.ZPP_PulleyJoint"] = ZPP_PulleyJoint;
53598
+ zpp_nape.constraint.ZPP_PulleyJoint = $hxClasses2["zpp_nape.constraint.ZPP_PulleyJoint"] = ZPP_PulleyJoint;
53247
53599
  zpp_nape.constraint.ZPP_PulleyJoint.__name__ = ZPP_PulleyJoint.__name__;
53248
53600
  zpp_nape.constraint.ZPP_PulleyJoint.prototype.__class__ = zpp_nape.constraint.ZPP_PulleyJoint;
53249
- zpp_nape.constraint.ZPP_UserConstraint = $hxClasses["zpp_nape.constraint.ZPP_UserConstraint"] = ZPP_UserConstraint;
53601
+ zpp_nape.constraint.ZPP_UserConstraint = $hxClasses2["zpp_nape.constraint.ZPP_UserConstraint"] = ZPP_UserConstraint;
53250
53602
  zpp_nape.constraint.ZPP_UserConstraint.__name__ = ZPP_UserConstraint.__name__;
53251
53603
  zpp_nape.constraint.ZPP_UserConstraint.prototype.__class__ = zpp_nape.constraint.ZPP_UserConstraint;
53252
- zpp_nape.constraint.ZPP_UserBody = $hxClasses["zpp_nape.constraint.ZPP_UserBody"] = ZPP_UserBody;
53604
+ zpp_nape.constraint.ZPP_UserBody = $hxClasses2["zpp_nape.constraint.ZPP_UserBody"] = ZPP_UserBody;
53253
53605
  zpp_nape.constraint.ZPP_UserBody.prototype.__class__ = zpp_nape.constraint.ZPP_UserBody;
53254
- zpp_nape.constraint.ZPP_WeldJoint = $hxClasses["zpp_nape.constraint.ZPP_WeldJoint"] = ZPP_WeldJoint;
53606
+ zpp_nape.constraint.ZPP_WeldJoint = $hxClasses2["zpp_nape.constraint.ZPP_WeldJoint"] = ZPP_WeldJoint;
53255
53607
  zpp_nape.constraint.ZPP_WeldJoint.__name__ = ZPP_WeldJoint.__name__;
53256
53608
  zpp_nape.constraint.ZPP_WeldJoint.prototype.__class__ = zpp_nape.constraint.ZPP_WeldJoint;
53257
53609
  if (!zpp_nape.dynamics) zpp_nape.dynamics = {};
53258
53610
  ZPP_Arbiter._nape = nape67;
53259
53611
  ZPP_Arbiter._zpp = zpp_nape;
53260
- zpp_nape.dynamics.ZPP_Arbiter = $hxClasses["zpp_nape.dynamics.ZPP_Arbiter"] = ZPP_Arbiter;
53612
+ zpp_nape.dynamics.ZPP_Arbiter = $hxClasses2["zpp_nape.dynamics.ZPP_Arbiter"] = ZPP_Arbiter;
53261
53613
  zpp_nape.dynamics.ZPP_Arbiter.prototype.__class__ = zpp_nape.dynamics.ZPP_Arbiter;
53262
- zpp_nape.dynamics.ZPP_SensorArbiter = $hxClasses["zpp_nape.dynamics.ZPP_SensorArbiter"] = ZPP_SensorArbiter;
53614
+ zpp_nape.dynamics.ZPP_SensorArbiter = $hxClasses2["zpp_nape.dynamics.ZPP_SensorArbiter"] = ZPP_SensorArbiter;
53263
53615
  zpp_nape.dynamics.ZPP_SensorArbiter.prototype.__class__ = zpp_nape.dynamics.ZPP_SensorArbiter;
53264
53616
  ZPP_FluidArbiter._nape = nape67;
53265
53617
  ZPP_FluidArbiter._zpp = zpp_nape;
53266
- zpp_nape.dynamics.ZPP_FluidArbiter = $hxClasses["zpp_nape.dynamics.ZPP_FluidArbiter"] = ZPP_FluidArbiter;
53618
+ zpp_nape.dynamics.ZPP_FluidArbiter = $hxClasses2["zpp_nape.dynamics.ZPP_FluidArbiter"] = ZPP_FluidArbiter;
53267
53619
  zpp_nape.dynamics.ZPP_FluidArbiter.prototype.__class__ = zpp_nape.dynamics.ZPP_FluidArbiter;
53268
53620
  ZPP_ColArbiter._nape = nape67;
53269
53621
  ZPP_ColArbiter._zpp = zpp_nape;
53270
- zpp_nape.dynamics.ZPP_ColArbiter = $hxClasses["zpp_nape.dynamics.ZPP_ColArbiter"] = ZPP_ColArbiter;
53622
+ zpp_nape.dynamics.ZPP_ColArbiter = $hxClasses2["zpp_nape.dynamics.ZPP_ColArbiter"] = ZPP_ColArbiter;
53271
53623
  zpp_nape.dynamics.ZPP_ColArbiter.prototype.__class__ = zpp_nape.dynamics.ZPP_ColArbiter;
53272
- zpp_nape.dynamics.ZPP_IContact = $hxClasses["zpp_nape.dynamics.ZPP_IContact"] = ZPP_IContact;
53624
+ zpp_nape.dynamics.ZPP_IContact = $hxClasses2["zpp_nape.dynamics.ZPP_IContact"] = ZPP_IContact;
53273
53625
  zpp_nape.dynamics.ZPP_IContact.prototype.__class__ = zpp_nape.dynamics.ZPP_IContact;
53274
53626
  ZPP_Contact._nape = nape67;
53275
53627
  ZPP_Contact._zpp = zpp_nape;
53276
- zpp_nape.dynamics.ZPP_Contact = $hxClasses["zpp_nape.dynamics.ZPP_Contact"] = ZPP_Contact;
53628
+ zpp_nape.dynamics.ZPP_Contact = $hxClasses2["zpp_nape.dynamics.ZPP_Contact"] = ZPP_Contact;
53277
53629
  zpp_nape.dynamics.ZPP_Contact.prototype.__class__ = zpp_nape.dynamics.ZPP_Contact;
53278
53630
  ZPP_InteractionFilter._nape = nape67;
53279
53631
  ZPP_InteractionFilter._zpp = zpp_nape;
53280
- zpp_nape.dynamics.ZPP_InteractionFilter = $hxClasses["zpp_nape.dynamics.ZPP_InteractionFilter"] = ZPP_InteractionFilter;
53632
+ zpp_nape.dynamics.ZPP_InteractionFilter = $hxClasses2["zpp_nape.dynamics.ZPP_InteractionFilter"] = ZPP_InteractionFilter;
53281
53633
  zpp_nape.dynamics.ZPP_InteractionFilter.prototype.__class__ = zpp_nape.dynamics.ZPP_InteractionFilter;
53282
53634
  ZPP_InteractionGroup._zpp = zpp_nape;
53283
- zpp_nape.dynamics.ZPP_InteractionGroup = $hxClasses["zpp_nape.dynamics.ZPP_InteractionGroup"] = ZPP_InteractionGroup;
53635
+ zpp_nape.dynamics.ZPP_InteractionGroup = $hxClasses2["zpp_nape.dynamics.ZPP_InteractionGroup"] = ZPP_InteractionGroup;
53284
53636
  zpp_nape.dynamics.ZPP_InteractionGroup.prototype.__class__ = zpp_nape.dynamics.ZPP_InteractionGroup;
53285
53637
  ZPP_SpaceArbiterList._nape = nape67;
53286
53638
  ZPP_SpaceArbiterList._zpp = zpp_nape;
53287
53639
  ZPP_SpaceArbiterList._init();
53288
- zpp_nape.dynamics.ZPP_SpaceArbiterList = $hxClasses["zpp_nape.dynamics.ZPP_SpaceArbiterList"] = ZPP_SpaceArbiterList;
53640
+ zpp_nape.dynamics.ZPP_SpaceArbiterList = $hxClasses2["zpp_nape.dynamics.ZPP_SpaceArbiterList"] = ZPP_SpaceArbiterList;
53289
53641
  zpp_nape.dynamics.ZPP_SpaceArbiterList.prototype.__class__ = zpp_nape.dynamics.ZPP_SpaceArbiterList;
53290
53642
  if (!zpp_nape.geom) zpp_nape.geom = {};
53291
53643
  ZPP_AABB._nape = nape67;
53292
53644
  ZPP_AABB._zpp = zpp_nape;
53293
- zpp_nape.geom.ZPP_AABB = $hxClasses["zpp_nape.geom.ZPP_AABB"] = ZPP_AABB;
53645
+ zpp_nape.geom.ZPP_AABB = $hxClasses2["zpp_nape.geom.ZPP_AABB"] = ZPP_AABB;
53294
53646
  zpp_nape.geom.ZPP_AABB.prototype.__class__ = zpp_nape.geom.ZPP_AABB;
53295
- zpp_nape.geom.ZPP_Collide = $hxClasses["zpp_nape.geom.ZPP_Collide"] = ZPP_Collide;
53647
+ zpp_nape.geom.ZPP_Collide = $hxClasses2["zpp_nape.geom.ZPP_Collide"] = ZPP_Collide;
53296
53648
  zpp_nape.geom.ZPP_Collide.prototype.__class__ = zpp_nape.geom.ZPP_Collide;
53297
- zpp_nape.geom.ZPP_Convex = $hxClasses["zpp_nape.geom.ZPP_Convex"] = ZPP_Convex;
53649
+ zpp_nape.geom.ZPP_Convex = $hxClasses2["zpp_nape.geom.ZPP_Convex"] = ZPP_Convex;
53298
53650
  zpp_nape.geom.ZPP_Convex.prototype.__class__ = zpp_nape.geom.ZPP_Convex;
53299
- zpp_nape.geom.ZPP_ConvexRayResult = $hxClasses["zpp_nape.geom.ZPP_ConvexRayResult"] = ZPP_ConvexRayResult;
53651
+ zpp_nape.geom.ZPP_ConvexRayResult = $hxClasses2["zpp_nape.geom.ZPP_ConvexRayResult"] = ZPP_ConvexRayResult;
53300
53652
  zpp_nape.geom.ZPP_ConvexRayResult.prototype.__class__ = zpp_nape.geom.ZPP_ConvexRayResult;
53301
- zpp_nape.geom.ZPP_CutVert = $hxClasses["zpp_nape.geom.ZPP_CutVert"] = ZPP_CutVert;
53653
+ zpp_nape.geom.ZPP_CutVert = $hxClasses2["zpp_nape.geom.ZPP_CutVert"] = ZPP_CutVert;
53302
53654
  zpp_nape.geom.ZPP_CutVert.prototype.__class__ = zpp_nape.geom.ZPP_CutVert;
53303
- zpp_nape.geom.ZPP_CutInt = $hxClasses["zpp_nape.geom.ZPP_CutInt"] = ZPP_CutInt;
53655
+ zpp_nape.geom.ZPP_CutInt = $hxClasses2["zpp_nape.geom.ZPP_CutInt"] = ZPP_CutInt;
53304
53656
  zpp_nape.geom.ZPP_CutInt.prototype.__class__ = zpp_nape.geom.ZPP_CutInt;
53305
- zpp_nape.geom.ZPP_Cutter = $hxClasses["zpp_nape.geom.ZPP_Cutter"] = ZPP_Cutter;
53657
+ zpp_nape.geom.ZPP_Cutter = $hxClasses2["zpp_nape.geom.ZPP_Cutter"] = ZPP_Cutter;
53306
53658
  zpp_nape.geom.ZPP_Cutter.prototype.__class__ = zpp_nape.geom.ZPP_Cutter;
53307
- zpp_nape.geom.ZPP_Geom = $hxClasses["zpp_nape.geom.ZPP_Geom"] = ZPP_Geom;
53659
+ zpp_nape.geom.ZPP_Geom = $hxClasses2["zpp_nape.geom.ZPP_Geom"] = ZPP_Geom;
53308
53660
  zpp_nape.geom.ZPP_Geom.prototype.__class__ = zpp_nape.geom.ZPP_Geom;
53309
- zpp_nape.geom.ZPP_GeomVert = $hxClasses["zpp_nape.geom.ZPP_GeomVert"] = ZPP_GeomVert;
53661
+ zpp_nape.geom.ZPP_GeomVert = $hxClasses2["zpp_nape.geom.ZPP_GeomVert"] = ZPP_GeomVert;
53310
53662
  zpp_nape.geom.ZPP_GeomVert.prototype.__class__ = zpp_nape.geom.ZPP_GeomVert;
53311
53663
  ZPP_GeomVert._createVec2Fn = function() {
53312
53664
  return new nape67.geom.Vec2();
53313
53665
  };
53314
- zpp_nape.geom.ZPP_GeomPoly = $hxClasses["zpp_nape.geom.ZPP_GeomPoly"] = ZPP_GeomPoly;
53666
+ zpp_nape.geom.ZPP_GeomPoly = $hxClasses2["zpp_nape.geom.ZPP_GeomPoly"] = ZPP_GeomPoly;
53315
53667
  zpp_nape.geom.ZPP_GeomPoly.prototype.__class__ = zpp_nape.geom.ZPP_GeomPoly;
53316
- zpp_nape.geom.ZPP_MarchSpan = $hxClasses["zpp_nape.geom.ZPP_MarchSpan"] = ZPP_MarchSpan;
53668
+ zpp_nape.geom.ZPP_MarchSpan = $hxClasses2["zpp_nape.geom.ZPP_MarchSpan"] = ZPP_MarchSpan;
53317
53669
  zpp_nape.geom.ZPP_MarchSpan.prototype.__class__ = zpp_nape.geom.ZPP_MarchSpan;
53318
- zpp_nape.geom.ZPP_MarchPair = $hxClasses["zpp_nape.geom.ZPP_MarchPair"] = ZPP_MarchPair;
53670
+ zpp_nape.geom.ZPP_MarchPair = $hxClasses2["zpp_nape.geom.ZPP_MarchPair"] = ZPP_MarchPair;
53319
53671
  zpp_nape.geom.ZPP_MarchPair.prototype.__class__ = zpp_nape.geom.ZPP_MarchPair;
53320
53672
  ZPP_MarchingSquares._init(zpp_nape, nape67);
53321
- zpp_nape.geom.ZPP_MarchingSquares = $hxClasses["zpp_nape.geom.ZPP_MarchingSquares"] = ZPP_MarchingSquares;
53673
+ zpp_nape.geom.ZPP_MarchingSquares = $hxClasses2["zpp_nape.geom.ZPP_MarchingSquares"] = ZPP_MarchingSquares;
53322
53674
  zpp_nape.geom.ZPP_MarchingSquares.prototype.__class__ = zpp_nape.geom.ZPP_MarchingSquares;
53323
53675
  ZPP_Mat23._nape = nape67;
53324
- zpp_nape.geom.ZPP_Mat23 = $hxClasses["zpp_nape.geom.ZPP_Mat23"] = ZPP_Mat23;
53676
+ zpp_nape.geom.ZPP_Mat23 = $hxClasses2["zpp_nape.geom.ZPP_Mat23"] = ZPP_Mat23;
53325
53677
  zpp_nape.geom.ZPP_Mat23.prototype.__class__ = zpp_nape.geom.ZPP_Mat23;
53326
- zpp_nape.geom.ZPP_MatMN = $hxClasses["zpp_nape.geom.ZPP_MatMN"] = ZPP_MatMN;
53678
+ zpp_nape.geom.ZPP_MatMN = $hxClasses2["zpp_nape.geom.ZPP_MatMN"] = ZPP_MatMN;
53327
53679
  zpp_nape.geom.ZPP_MatMN.prototype.__class__ = zpp_nape.geom.ZPP_MatMN;
53328
- zpp_nape.geom.ZPP_Monotone = $hxClasses["zpp_nape.geom.ZPP_Monotone"] = ZPP_Monotone;
53329
- zpp_nape.geom.ZPP_PartitionVertex = $hxClasses["zpp_nape.geom.ZPP_PartitionVertex"] = ZPP_PartitionVertex;
53680
+ zpp_nape.geom.ZPP_Monotone = $hxClasses2["zpp_nape.geom.ZPP_Monotone"] = ZPP_Monotone;
53681
+ zpp_nape.geom.ZPP_PartitionVertex = $hxClasses2["zpp_nape.geom.ZPP_PartitionVertex"] = ZPP_PartitionVertex;
53330
53682
  zpp_nape.geom.ZPP_PartitionVertex.prototype.__class__ = zpp_nape.geom.ZPP_PartitionVertex;
53331
- zpp_nape.geom.ZPP_PartitionedPoly = $hxClasses["zpp_nape.geom.ZPP_PartitionedPoly"] = ZPP_PartitionedPoly;
53683
+ zpp_nape.geom.ZPP_PartitionedPoly = $hxClasses2["zpp_nape.geom.ZPP_PartitionedPoly"] = ZPP_PartitionedPoly;
53332
53684
  zpp_nape.geom.ZPP_PartitionedPoly.prototype.__class__ = zpp_nape.geom.ZPP_PartitionedPoly;
53333
- zpp_nape.geom.ZPP_Ray = $hxClasses["zpp_nape.geom.ZPP_Ray"] = ZPP_Ray;
53685
+ zpp_nape.geom.ZPP_Ray = $hxClasses2["zpp_nape.geom.ZPP_Ray"] = ZPP_Ray;
53334
53686
  zpp_nape.geom.ZPP_Ray.prototype.__class__ = zpp_nape.geom.ZPP_Ray;
53335
- zpp_nape.geom.ZPP_SimpleVert = $hxClasses["zpp_nape.geom.ZPP_SimpleVert"] = ZPP_SimpleVert;
53687
+ zpp_nape.geom.ZPP_SimpleVert = $hxClasses2["zpp_nape.geom.ZPP_SimpleVert"] = ZPP_SimpleVert;
53336
53688
  zpp_nape.geom.ZPP_SimpleVert.prototype.__class__ = zpp_nape.geom.ZPP_SimpleVert;
53337
- zpp_nape.geom.ZPP_SimpleSeg = $hxClasses["zpp_nape.geom.ZPP_SimpleSeg"] = ZPP_SimpleSeg;
53689
+ zpp_nape.geom.ZPP_SimpleSeg = $hxClasses2["zpp_nape.geom.ZPP_SimpleSeg"] = ZPP_SimpleSeg;
53338
53690
  zpp_nape.geom.ZPP_SimpleSeg.prototype.__class__ = zpp_nape.geom.ZPP_SimpleSeg;
53339
- zpp_nape.geom.ZPP_SimpleEvent = $hxClasses["zpp_nape.geom.ZPP_SimpleEvent"] = ZPP_SimpleEvent;
53691
+ zpp_nape.geom.ZPP_SimpleEvent = $hxClasses2["zpp_nape.geom.ZPP_SimpleEvent"] = ZPP_SimpleEvent;
53340
53692
  zpp_nape.geom.ZPP_SimpleEvent.prototype.__class__ = zpp_nape.geom.ZPP_SimpleEvent;
53341
- zpp_nape.geom.ZPP_SimpleSweep = $hxClasses["zpp_nape.geom.ZPP_SimpleSweep"] = ZPP_SimpleSweep;
53693
+ zpp_nape.geom.ZPP_SimpleSweep = $hxClasses2["zpp_nape.geom.ZPP_SimpleSweep"] = ZPP_SimpleSweep;
53342
53694
  zpp_nape.geom.ZPP_SimpleSweep.prototype.__class__ = zpp_nape.geom.ZPP_SimpleSweep;
53343
- zpp_nape.geom.ZPP_Simple = $hxClasses["zpp_nape.geom.ZPP_Simple"] = ZPP_Simple;
53695
+ zpp_nape.geom.ZPP_Simple = $hxClasses2["zpp_nape.geom.ZPP_Simple"] = ZPP_Simple;
53344
53696
  zpp_nape.geom.ZPP_Simple.prototype.__class__ = zpp_nape.geom.ZPP_Simple;
53345
- zpp_nape.geom.ZPP_SimplifyV = $hxClasses["zpp_nape.geom.ZPP_SimplifyV"] = ZPP_SimplifyV;
53697
+ zpp_nape.geom.ZPP_SimplifyV = $hxClasses2["zpp_nape.geom.ZPP_SimplifyV"] = ZPP_SimplifyV;
53346
53698
  zpp_nape.geom.ZPP_SimplifyV.prototype.__class__ = zpp_nape.geom.ZPP_SimplifyV;
53347
- zpp_nape.geom.ZPP_SimplifyP = $hxClasses["zpp_nape.geom.ZPP_SimplifyP"] = ZPP_SimplifyP;
53699
+ zpp_nape.geom.ZPP_SimplifyP = $hxClasses2["zpp_nape.geom.ZPP_SimplifyP"] = ZPP_SimplifyP;
53348
53700
  zpp_nape.geom.ZPP_SimplifyP.prototype.__class__ = zpp_nape.geom.ZPP_SimplifyP;
53349
- zpp_nape.geom.ZPP_Simplify = $hxClasses["zpp_nape.geom.ZPP_Simplify"] = ZPP_Simplify;
53701
+ zpp_nape.geom.ZPP_Simplify = $hxClasses2["zpp_nape.geom.ZPP_Simplify"] = ZPP_Simplify;
53350
53702
  zpp_nape.geom.ZPP_Simplify.prototype.__class__ = zpp_nape.geom.ZPP_Simplify;
53351
- zpp_nape.geom.ZPP_ToiEvent = $hxClasses["zpp_nape.geom.ZPP_ToiEvent"] = ZPP_ToiEvent;
53703
+ zpp_nape.geom.ZPP_ToiEvent = $hxClasses2["zpp_nape.geom.ZPP_ToiEvent"] = ZPP_ToiEvent;
53352
53704
  zpp_nape.geom.ZPP_ToiEvent.prototype.__class__ = zpp_nape.geom.ZPP_ToiEvent;
53353
- zpp_nape.geom.ZPP_SweepDistance = $hxClasses["zpp_nape.geom.ZPP_SweepDistance"] = ZPP_SweepDistance;
53705
+ zpp_nape.geom.ZPP_SweepDistance = $hxClasses2["zpp_nape.geom.ZPP_SweepDistance"] = ZPP_SweepDistance;
53354
53706
  zpp_nape.geom.ZPP_SweepDistance.prototype.__class__ = zpp_nape.geom.ZPP_SweepDistance;
53355
- zpp_nape.geom.ZPP_PartitionPair = $hxClasses["zpp_nape.geom.ZPP_PartitionPair"] = ZPP_PartitionPair;
53707
+ zpp_nape.geom.ZPP_PartitionPair = $hxClasses2["zpp_nape.geom.ZPP_PartitionPair"] = ZPP_PartitionPair;
53356
53708
  zpp_nape.geom.ZPP_PartitionPair.prototype.__class__ = zpp_nape.geom.ZPP_PartitionPair;
53357
- zpp_nape.geom.ZPP_Triangular = $hxClasses["zpp_nape.geom.ZPP_Triangular"] = ZPP_Triangular;
53709
+ zpp_nape.geom.ZPP_Triangular = $hxClasses2["zpp_nape.geom.ZPP_Triangular"] = ZPP_Triangular;
53358
53710
  zpp_nape.geom.ZPP_Triangular.prototype.__class__ = zpp_nape.geom.ZPP_Triangular;
53359
- zpp_nape.geom.ZPP_Vec2 = $hxClasses["zpp_nape.geom.ZPP_Vec2"] = ZPP_Vec2;
53711
+ zpp_nape.geom.ZPP_Vec2 = $hxClasses2["zpp_nape.geom.ZPP_Vec2"] = ZPP_Vec2;
53360
53712
  zpp_nape.geom.ZPP_Vec2.prototype.__class__ = zpp_nape.geom.ZPP_Vec2;
53361
53713
  ZPP_Vec3._zpp = zpp_nape;
53362
- zpp_nape.geom.ZPP_Vec3 = $hxClasses["zpp_nape.geom.ZPP_Vec3"] = ZPP_Vec3;
53714
+ zpp_nape.geom.ZPP_Vec3 = $hxClasses2["zpp_nape.geom.ZPP_Vec3"] = ZPP_Vec3;
53363
53715
  zpp_nape.geom.ZPP_Vec3.prototype.__class__ = zpp_nape.geom.ZPP_Vec3;
53364
- zpp_nape.geom.ZPP_VecMath = $hxClasses["zpp_nape.geom.ZPP_VecMath"] = ZPP_VecMath;
53716
+ zpp_nape.geom.ZPP_VecMath = $hxClasses2["zpp_nape.geom.ZPP_VecMath"] = ZPP_VecMath;
53365
53717
  zpp_nape.geom.ZPP_VecMath.prototype.__class__ = zpp_nape.geom.ZPP_VecMath;
53366
53718
  if (!zpp_nape.phys) zpp_nape.phys = {};
53367
- zpp_nape.phys.ZPP_Interactor = $hxClasses["zpp_nape.phys.ZPP_Interactor"] = ZPP_Interactor;
53719
+ zpp_nape.phys.ZPP_Interactor = $hxClasses2["zpp_nape.phys.ZPP_Interactor"] = ZPP_Interactor;
53368
53720
  ZPP_Interactor._init(zpp_nape, nape67);
53369
53721
  zpp_nape.phys.ZPP_Interactor.prototype.__class__ = zpp_nape.phys.ZPP_Interactor;
53370
53722
  ZPP_Body._init(zpp_nape, nape67);
53371
- zpp_nape.phys.ZPP_Body = $hxClasses["zpp_nape.phys.ZPP_Body"] = ZPP_Body;
53723
+ zpp_nape.phys.ZPP_Body = $hxClasses2["zpp_nape.phys.ZPP_Body"] = ZPP_Body;
53372
53724
  zpp_nape.phys.ZPP_Body.prototype.__class__ = zpp_nape.phys.ZPP_Body;
53373
53725
  ZPP_Compound._nape = nape67;
53374
53726
  ZPP_Compound._zpp = zpp_nape;
53375
53727
  ZPP_Compound._init();
53376
- zpp_nape.phys.ZPP_Compound = $hxClasses["zpp_nape.phys.ZPP_Compound"] = ZPP_Compound;
53728
+ zpp_nape.phys.ZPP_Compound = $hxClasses2["zpp_nape.phys.ZPP_Compound"] = ZPP_Compound;
53377
53729
  zpp_nape.phys.ZPP_Compound.prototype.__class__ = zpp_nape.phys.ZPP_Compound;
53378
53730
  ZPP_FluidProperties._nape = nape67;
53379
53731
  ZPP_FluidProperties._zpp = zpp_nape;
53380
- zpp_nape.phys.ZPP_FluidProperties = $hxClasses["zpp_nape.phys.ZPP_FluidProperties"] = ZPP_FluidProperties;
53732
+ zpp_nape.phys.ZPP_FluidProperties = $hxClasses2["zpp_nape.phys.ZPP_FluidProperties"] = ZPP_FluidProperties;
53381
53733
  zpp_nape.phys.ZPP_FluidProperties.prototype.__class__ = zpp_nape.phys.ZPP_FluidProperties;
53382
53734
  ZPP_Material._nape = nape67;
53383
53735
  ZPP_Material._zpp = zpp_nape;
53384
- zpp_nape.phys.ZPP_Material = $hxClasses["zpp_nape.phys.ZPP_Material"] = ZPP_Material;
53736
+ zpp_nape.phys.ZPP_Material = $hxClasses2["zpp_nape.phys.ZPP_Material"] = ZPP_Material;
53385
53737
  zpp_nape.phys.ZPP_Material.prototype.__class__ = zpp_nape.phys.ZPP_Material;
53386
53738
  if (!zpp_nape.shape) zpp_nape.shape = {};
53387
53739
  ZPP_Shape._nape = nape67;
53388
53740
  ZPP_Shape._zpp = zpp_nape;
53389
53741
  ZPP_Shape._init();
53390
- zpp_nape.shape.ZPP_Shape = $hxClasses["zpp_nape.shape.ZPP_Shape"] = ZPP_Shape;
53742
+ zpp_nape.shape.ZPP_Shape = $hxClasses2["zpp_nape.shape.ZPP_Shape"] = ZPP_Shape;
53391
53743
  zpp_nape.shape.ZPP_Shape.prototype.__class__ = zpp_nape.shape.ZPP_Shape;
53392
53744
  ZPP_Circle._nape = nape67;
53393
53745
  ZPP_Circle._zpp = zpp_nape;
53394
53746
  ZPP_Circle._init();
53395
- zpp_nape.shape.ZPP_Circle = $hxClasses["zpp_nape.shape.ZPP_Circle"] = ZPP_Circle;
53747
+ zpp_nape.shape.ZPP_Circle = $hxClasses2["zpp_nape.shape.ZPP_Circle"] = ZPP_Circle;
53396
53748
  zpp_nape.shape.ZPP_Circle.prototype.__class__ = zpp_nape.shape.ZPP_Circle;
53397
53749
  ZPP_Edge._nape = nape67;
53398
53750
  ZPP_Edge._zpp = zpp_nape;
53399
- zpp_nape.shape.ZPP_Edge = $hxClasses["zpp_nape.shape.ZPP_Edge"] = ZPP_Edge;
53751
+ zpp_nape.shape.ZPP_Edge = $hxClasses2["zpp_nape.shape.ZPP_Edge"] = ZPP_Edge;
53400
53752
  zpp_nape.shape.ZPP_Edge.prototype.__class__ = zpp_nape.shape.ZPP_Edge;
53401
53753
  ZPP_Polygon._nape = nape67;
53402
53754
  ZPP_Polygon._zpp = zpp_nape;
53403
53755
  ZPP_Polygon._init();
53404
- zpp_nape.shape.ZPP_Polygon = $hxClasses["zpp_nape.shape.ZPP_Polygon"] = ZPP_Polygon;
53756
+ zpp_nape.shape.ZPP_Polygon = $hxClasses2["zpp_nape.shape.ZPP_Polygon"] = ZPP_Polygon;
53405
53757
  zpp_nape.shape.ZPP_Polygon.prototype.__class__ = zpp_nape.shape.ZPP_Polygon;
53406
53758
  if (!zpp_nape.space) zpp_nape.space = {};
53407
53759
  ZPP_Broadphase._zpp = zpp_nape;
53408
53760
  ZPP_Broadphase._nape = nape67;
53409
- zpp_nape.space.ZPP_Broadphase = $hxClasses["zpp_nape.space.ZPP_Broadphase"] = ZPP_Broadphase;
53761
+ zpp_nape.space.ZPP_Broadphase = $hxClasses2["zpp_nape.space.ZPP_Broadphase"] = ZPP_Broadphase;
53410
53762
  zpp_nape.space.ZPP_Broadphase.prototype.__class__ = zpp_nape.space.ZPP_Broadphase;
53411
- zpp_nape.space.ZPP_AABBNode = $hxClasses["zpp_nape.space.ZPP_AABBNode"] = ZPP_AABBNode;
53763
+ zpp_nape.space.ZPP_AABBNode = $hxClasses2["zpp_nape.space.ZPP_AABBNode"] = ZPP_AABBNode;
53412
53764
  zpp_nape.space.ZPP_AABBNode.prototype.__class__ = zpp_nape.space.ZPP_AABBNode;
53413
- zpp_nape.space.ZPP_AABBPair = $hxClasses["zpp_nape.space.ZPP_AABBPair"] = ZPP_AABBPair;
53765
+ zpp_nape.space.ZPP_AABBPair = $hxClasses2["zpp_nape.space.ZPP_AABBPair"] = ZPP_AABBPair;
53414
53766
  zpp_nape.space.ZPP_AABBPair.prototype.__class__ = zpp_nape.space.ZPP_AABBPair;
53415
- zpp_nape.space.ZPP_AABBTree = $hxClasses["zpp_nape.space.ZPP_AABBTree"] = ZPP_AABBTree;
53767
+ zpp_nape.space.ZPP_AABBTree = $hxClasses2["zpp_nape.space.ZPP_AABBTree"] = ZPP_AABBTree;
53416
53768
  zpp_nape.space.ZPP_AABBTree.prototype.__class__ = zpp_nape.space.ZPP_AABBTree;
53417
53769
  ZPP_DynAABBPhase._zpp = zpp_nape;
53418
53770
  ZPP_DynAABBPhase._nape = nape67;
53419
53771
  ZPP_DynAABBPhase._init();
53420
- zpp_nape.space.ZPP_DynAABBPhase = $hxClasses["zpp_nape.space.ZPP_DynAABBPhase"] = ZPP_DynAABBPhase;
53772
+ zpp_nape.space.ZPP_DynAABBPhase = $hxClasses2["zpp_nape.space.ZPP_DynAABBPhase"] = ZPP_DynAABBPhase;
53421
53773
  zpp_nape.space.ZPP_DynAABBPhase.prototype.__class__ = zpp_nape.space.ZPP_DynAABBPhase;
53422
53774
  ZPP_Island._zpp = zpp_nape;
53423
- zpp_nape.space.ZPP_Island = $hxClasses["zpp_nape.space.ZPP_Island"] = ZPP_Island;
53775
+ zpp_nape.space.ZPP_Island = $hxClasses2["zpp_nape.space.ZPP_Island"] = ZPP_Island;
53424
53776
  zpp_nape.space.ZPP_Island.prototype.__class__ = zpp_nape.space.ZPP_Island;
53425
- zpp_nape.space.ZPP_Component = $hxClasses["zpp_nape.space.ZPP_Component"] = ZPP_Component;
53777
+ zpp_nape.space.ZPP_Component = $hxClasses2["zpp_nape.space.ZPP_Component"] = ZPP_Component;
53426
53778
  zpp_nape.space.ZPP_Component.prototype.__class__ = zpp_nape.space.ZPP_Component;
53427
53779
  ZPP_CallbackSet._zpp = zpp_nape;
53428
- zpp_nape.space.ZPP_CallbackSet = $hxClasses["zpp_nape.space.ZPP_CallbackSet"] = ZPP_CallbackSet;
53780
+ zpp_nape.space.ZPP_CallbackSet = $hxClasses2["zpp_nape.space.ZPP_CallbackSet"] = ZPP_CallbackSet;
53429
53781
  zpp_nape.space.ZPP_CallbackSet.prototype.__class__ = zpp_nape.space.ZPP_CallbackSet;
53430
53782
  ZPP_CbSetManager._zpp = zpp_nape;
53431
- zpp_nape.space.ZPP_CbSetManager = $hxClasses["zpp_nape.space.ZPP_CbSetManager"] = ZPP_CbSetManager;
53783
+ zpp_nape.space.ZPP_CbSetManager = $hxClasses2["zpp_nape.space.ZPP_CbSetManager"] = ZPP_CbSetManager;
53432
53784
  zpp_nape.space.ZPP_CbSetManager.prototype.__class__ = zpp_nape.space.ZPP_CbSetManager;
53433
53785
  ZPP_Space._zpp = zpp_nape;
53434
53786
  ZPP_Space._nape = nape67;
53435
- zpp_nape.space.ZPP_Space = $hxClasses["zpp_nape.space.ZPP_Space"] = ZPP_Space;
53787
+ zpp_nape.space.ZPP_Space = $hxClasses2["zpp_nape.space.ZPP_Space"] = ZPP_Space;
53436
53788
  zpp_nape.space.ZPP_Space.prototype.__class__ = zpp_nape.space.ZPP_Space;
53437
- zpp_nape.space.ZPP_SweepData = $hxClasses["zpp_nape.space.ZPP_SweepData"] = ZPP_SweepData;
53789
+ zpp_nape.space.ZPP_SweepData = $hxClasses2["zpp_nape.space.ZPP_SweepData"] = ZPP_SweepData;
53438
53790
  zpp_nape.space.ZPP_SweepData.prototype.__class__ = zpp_nape.space.ZPP_SweepData;
53439
53791
  ZPP_SweepPhase._zpp = zpp_nape;
53440
53792
  ZPP_SweepPhase._nape = nape67;
53441
53793
  ZPP_SweepPhase._init();
53442
- zpp_nape.space.ZPP_SweepPhase = $hxClasses["zpp_nape.space.ZPP_SweepPhase"] = ZPP_SweepPhase;
53794
+ zpp_nape.space.ZPP_SweepPhase = $hxClasses2["zpp_nape.space.ZPP_SweepPhase"] = ZPP_SweepPhase;
53443
53795
  zpp_nape.space.ZPP_SweepPhase.prototype.__class__ = zpp_nape.space.ZPP_SweepPhase;
53444
- zpp_nape.util.ZNPArray2_Float = $hxClasses["zpp_nape.util.ZNPArray2_Float"] = function(width, height) {
53445
- this.width = 0;
53446
- this.list = null;
53447
- this.width = width;
53448
- this.list = [];
53449
- };
53450
- zpp_nape.util.ZNPArray2_Float.__name__ = [
53451
- "zpp_nape",
53452
- "util",
53453
- "ZNPArray2_Float"
53454
- ];
53455
- zpp_nape.util.ZNPArray2_Float.prototype.list = null;
53456
- zpp_nape.util.ZNPArray2_Float.prototype.width = null;
53457
- zpp_nape.util.ZNPArray2_Float.prototype.resize = function(width, height, def) {
53458
- this.width = width;
53459
- var _g = 0;
53460
- var _g1 = width * height;
53461
- while (_g < _g1) {
53462
- var i = _g++;
53463
- this.list[i] = def;
53464
- }
53465
- };
53466
- zpp_nape.util.ZNPArray2_Float.prototype.get = function(x, y) {
53467
- return this.list[y * this.width + x];
53468
- };
53469
- zpp_nape.util.ZNPArray2_Float.prototype.set = function(x, y, obj) {
53470
- return this.list[y * this.width + x] = obj;
53471
- };
53472
- zpp_nape.util.ZNPArray2_Float.prototype.__class__ = zpp_nape.util.ZNPArray2_Float;
53473
- zpp_nape.util.ZNPArray2_ZPP_GeomVert = $hxClasses["zpp_nape.util.ZNPArray2_ZPP_GeomVert"] = function(width, height) {
53474
- this.width = 0;
53475
- this.list = null;
53476
- this.width = width;
53477
- this.list = [];
53478
- };
53479
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.__name__ = [
53480
- "zpp_nape",
53481
- "util",
53482
- "ZNPArray2_ZPP_GeomVert"
53483
- ];
53484
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.list = null;
53485
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.width = null;
53486
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.resize = function(width, height, def) {
53487
- this.width = width;
53488
- var _g = 0;
53489
- var _g1 = width * height;
53490
- while (_g < _g1) {
53491
- var i = _g++;
53492
- this.list[i] = def;
53493
- }
53494
- };
53495
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.get = function(x, y) {
53496
- return this.list[y * this.width + x];
53497
- };
53498
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.set = function(x, y, obj) {
53499
- return this.list[y * this.width + x] = obj;
53500
- };
53501
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.__class__ = zpp_nape.util.ZNPArray2_ZPP_GeomVert;
53502
- zpp_nape.util.ZNPArray2_ZPP_MarchPair = $hxClasses["zpp_nape.util.ZNPArray2_ZPP_MarchPair"] = function(width, height) {
53503
- this.width = 0;
53504
- this.list = null;
53505
- this.width = width;
53506
- this.list = [];
53507
- };
53508
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.__name__ = [
53509
- "zpp_nape",
53510
- "util",
53511
- "ZNPArray2_ZPP_MarchPair"
53512
- ];
53513
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.list = null;
53514
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.width = null;
53515
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.resize = function(width, height, def) {
53516
- this.width = width;
53517
- var _g = 0;
53518
- var _g1 = width * height;
53519
- while (_g < _g1) {
53520
- var i = _g++;
53521
- this.list[i] = def;
53522
- }
53523
- };
53524
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.get = function(x, y) {
53525
- return this.list[y * this.width + x];
53526
- };
53527
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.set = function(x, y, obj) {
53528
- return this.list[y * this.width + x] = obj;
53529
- };
53530
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.__class__ = zpp_nape.util.ZNPArray2_ZPP_MarchPair;
53531
- zpp_nape.util.Hashable2_Boolfalse = $hxClasses["zpp_nape.util.Hashable2_Boolfalse"] = function() {
53532
- this.di = 0;
53533
- this.id = 0;
53534
- this.hnext = null;
53535
- this.next = null;
53536
- this.value = false;
53537
- };
53538
- zpp_nape.util.Hashable2_Boolfalse.__name__ = [
53539
- "zpp_nape",
53540
- "util",
53541
- "Hashable2_Boolfalse"
53542
- ];
53543
- zpp_nape.util.Hashable2_Boolfalse.get = function(id, di, val) {
53544
- var ret;
53545
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53546
- ret = new zpp_nape.util.Hashable2_Boolfalse();
53547
- } else {
53548
- ret = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53549
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret.next;
53550
- ret.next = null;
53551
- }
53552
- ret.id = id;
53553
- ret.di = di;
53554
- var ret1 = ret;
53555
- ret1.value = val;
53556
- return ret1;
53557
- };
53558
- zpp_nape.util.Hashable2_Boolfalse.getpersist = function(id, di) {
53559
- var ret;
53560
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53561
- ret = new zpp_nape.util.Hashable2_Boolfalse();
53562
- } else {
53563
- ret = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53564
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret.next;
53565
- ret.next = null;
53566
- }
53567
- ret.id = id;
53568
- ret.di = di;
53569
- return ret;
53570
- };
53571
- zpp_nape.util.Hashable2_Boolfalse.ordered_get = function(id, di, val) {
53572
- if (id <= di) {
53573
- var ret;
53574
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53575
- ret = new zpp_nape.util.Hashable2_Boolfalse();
53576
- } else {
53577
- ret = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53578
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret.next;
53579
- ret.next = null;
53580
- }
53581
- ret.id = id;
53582
- ret.di = di;
53583
- var ret1 = ret;
53584
- ret1.value = val;
53585
- return ret1;
53586
- } else {
53587
- var ret2;
53588
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53589
- ret2 = new zpp_nape.util.Hashable2_Boolfalse();
53590
- } else {
53591
- ret2 = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53592
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret2.next;
53593
- ret2.next = null;
53594
- }
53595
- ret2.id = di;
53596
- ret2.di = id;
53597
- var ret3 = ret2;
53598
- ret3.value = val;
53599
- return ret3;
53600
- }
53601
- };
53602
- zpp_nape.util.Hashable2_Boolfalse.ordered_get_persist = function(id, di) {
53603
- if (id <= di) {
53604
- var ret;
53605
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53606
- ret = new zpp_nape.util.Hashable2_Boolfalse();
53607
- } else {
53608
- ret = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53609
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret.next;
53610
- ret.next = null;
53611
- }
53612
- ret.id = id;
53613
- ret.di = di;
53614
- return ret;
53615
- } else {
53616
- var ret1;
53617
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53618
- ret1 = new zpp_nape.util.Hashable2_Boolfalse();
53619
- } else {
53620
- ret1 = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53621
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret1.next;
53622
- ret1.next = null;
53623
- }
53624
- ret1.id = di;
53625
- ret1.di = id;
53626
- return ret1;
53627
- }
53628
- };
53629
- zpp_nape.util.Hashable2_Boolfalse.prototype.value = null;
53630
- zpp_nape.util.Hashable2_Boolfalse.prototype.next = null;
53631
- zpp_nape.util.Hashable2_Boolfalse.prototype.hnext = null;
53632
- zpp_nape.util.Hashable2_Boolfalse.prototype.id = null;
53633
- zpp_nape.util.Hashable2_Boolfalse.prototype.di = null;
53634
- zpp_nape.util.Hashable2_Boolfalse.prototype.free = function() {
53635
- };
53636
- zpp_nape.util.Hashable2_Boolfalse.prototype.alloc = function() {
53637
- };
53638
- zpp_nape.util.Hashable2_Boolfalse.prototype.__class__ = zpp_nape.util.Hashable2_Boolfalse;
53639
- zpp_nape.util.FastHash2_Hashable2_Boolfalse = $hxClasses["zpp_nape.util.FastHash2_Hashable2_Boolfalse"] = function() {
53640
- this.cnt = 0;
53641
- this.table = null;
53642
- this.cnt = 0;
53643
- this.table = [];
53644
- var _g = 0;
53645
- var _g1 = 1048576;
53646
- while (_g < _g1) {
53647
- var i = _g++;
53648
- this.table.push(null);
53649
- }
53650
- };
53651
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.__name__ = [
53652
- "zpp_nape",
53653
- "util",
53654
- "FastHash2_Hashable2_Boolfalse"
53655
- ];
53656
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.table = null;
53657
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.cnt = null;
53658
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.empty = function() {
53659
- return this.cnt == 0;
53660
- };
53661
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.clear = function() {
53662
- var _g = 0;
53663
- var _g1 = this.table.length;
53664
- while (_g < _g1) {
53665
- var i = _g++;
53666
- var n = this.table[i];
53667
- if (n == null) {
53668
- continue;
53669
- }
53670
- while (n != null) {
53671
- var t = n.hnext;
53672
- n.hnext = null;
53673
- n = t;
53674
- }
53675
- this.table[i] = null;
53676
- }
53677
- };
53678
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.get = function(id, di) {
53679
- var n = this.table[id * 106039 + di & 1048575];
53680
- if (n == null) {
53681
- return null;
53682
- } else if (n.id == id && n.di == di) {
53683
- return n;
53684
- } else {
53685
- while (true) {
53686
- n = n.hnext;
53687
- if (!(n != null && (n.id != id || n.di != di))) {
53688
- break;
53689
- }
53690
- }
53691
- return n;
53692
- }
53693
- };
53694
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.ordered_get = function(id, di) {
53695
- if (id > di) {
53696
- var t = id;
53697
- id = di;
53698
- di = t;
53699
- }
53700
- var n = this.table[id * 106039 + di & 1048575];
53701
- if (n == null) {
53702
- return null;
53703
- } else if (n.id == id && n.di == di) {
53704
- return n;
53705
- } else {
53706
- while (true) {
53707
- n = n.hnext;
53708
- if (!(n != null && (n.id != id || n.di != di))) {
53709
- break;
53710
- }
53711
- }
53712
- return n;
53713
- }
53714
- };
53715
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.has = function(id, di) {
53716
- var n = this.table[id * 106039 + di & 1048575];
53717
- if (n == null) {
53718
- return false;
53719
- } else if (n.id == id && n.di == di) {
53720
- return true;
53721
- } else {
53722
- while (true) {
53723
- n = n.hnext;
53724
- if (!(n != null && (n.id != id || n.di != di))) {
53725
- break;
53726
- }
53727
- }
53728
- return n != null;
53729
- }
53730
- };
53731
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.maybeAdd = function(arb) {
53732
- var h = arb.id * 106039 + arb.di & 1048575;
53733
- var n = this.table[h];
53734
- var cont = true;
53735
- if (n == null) {
53736
- this.table[h] = arb;
53737
- arb.hnext = null;
53738
- } else if (cont) {
53739
- arb.hnext = n.hnext;
53740
- n.hnext = arb;
53741
- }
53742
- if (cont) {
53743
- this.cnt++;
53744
- }
53745
- };
53746
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.add = function(arb) {
53747
- var h = arb.id * 106039 + arb.di & 1048575;
53748
- var n = this.table[h];
53749
- if (n == null) {
53750
- this.table[h] = arb;
53751
- arb.hnext = null;
53752
- } else {
53753
- arb.hnext = n.hnext;
53754
- n.hnext = arb;
53755
- }
53756
- this.cnt++;
53757
- };
53758
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.remove = function(arb) {
53759
- var h = arb.id * 106039 + arb.di & 1048575;
53760
- var n = this.table[h];
53761
- if (n == arb) {
53762
- this.table[h] = n.hnext;
53763
- } else if (n != null) {
53764
- var pre;
53765
- while (true) {
53766
- pre = n;
53767
- n = n.hnext;
53768
- if (!(n != null && n != arb)) {
53769
- break;
53770
- }
53771
- }
53772
- pre.hnext = n.hnext;
53773
- }
53774
- arb.hnext = null;
53775
- this.cnt--;
53776
- };
53777
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.hash = function(id, di) {
53778
- return id * 106039 + di & 1048575;
53779
- };
53780
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.__class__ = zpp_nape.util.FastHash2_Hashable2_Boolfalse;
53796
+ zpp_nape.util.ZNPArray2_Float = ZNPArray2_Float;
53797
+ zpp_nape.util.ZNPArray2_ZPP_GeomVert = ZNPArray2_ZPP_GeomVert;
53798
+ zpp_nape.util.ZNPArray2_ZPP_MarchPair = ZNPArray2_ZPP_MarchPair;
53799
+ zpp_nape.util.Hashable2_Boolfalse = Hashable2_Boolfalse;
53800
+ zpp_nape.util.FastHash2_Hashable2_Boolfalse = FastHash2_Hashable2_Boolfalse;
53781
53801
  zpp_nape.util.ZNPNode_ZPP_CbType;
53782
53802
  zpp_nape.util.ZNPNode_ZPP_CallbackSet;
53783
53803
  zpp_nape.util.ZNPNode_ZPP_Shape;
@@ -53813,7 +53833,7 @@ define(function() {
53813
53833
  zpp_nape.util.ZNPNode_ConvexResult;
53814
53834
  zpp_nape.util.ZNPNode_ZPP_GeomPoly;
53815
53835
  zpp_nape.util.ZNPNode_RayResult;
53816
- zpp_nape.util.ZPP_MixVec2List = $hxClasses["zpp_nape.util.ZPP_MixVec2List"] = function() {
53836
+ zpp_nape.util.ZPP_MixVec2List = $hxClasses2["zpp_nape.util.ZPP_MixVec2List"] = function() {
53817
53837
  this.at_index = 0;
53818
53838
  this.at_ite = null;
53819
53839
  this.zip_length = false;
@@ -53872,7 +53892,7 @@ define(function() {
53872
53892
  zpp_nape.util.ZPP_MixVec2List.prototype.at = function(index) {
53873
53893
  this.zpp_vm();
53874
53894
  if (index < 0 || index >= this.zpp_gl()) {
53875
- throw new js._Boot.HaxeError("Error: Index out of bounds");
53895
+ throw new js2._Boot.HaxeError("Error: Index out of bounds");
53876
53896
  }
53877
53897
  if (this.zpp_inner.reverse_flag) {
53878
53898
  index = this.zpp_gl() - 1 - index;
@@ -53912,12 +53932,12 @@ define(function() {
53912
53932
  };
53913
53933
  zpp_nape.util.ZPP_MixVec2List.prototype.push = function(obj) {
53914
53934
  if (this.zpp_inner.immutable) {
53915
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
53935
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
53916
53936
  }
53917
53937
  this.zpp_inner.modify_test();
53918
53938
  this.zpp_vm();
53919
53939
  if (obj.zpp_inner._inuse) {
53920
- throw new js._Boot.HaxeError("Error: Vec2 is already in use");
53940
+ throw new js2._Boot.HaxeError("Error: Vec2 is already in use");
53921
53941
  }
53922
53942
  var cont = this.zpp_inner.adder != null ? this.zpp_inner.adder(obj) : true;
53923
53943
  if (cont) {
@@ -53936,12 +53956,12 @@ define(function() {
53936
53956
  };
53937
53957
  zpp_nape.util.ZPP_MixVec2List.prototype.unshift = function(obj) {
53938
53958
  if (this.zpp_inner.immutable) {
53939
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
53959
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
53940
53960
  }
53941
53961
  this.zpp_inner.modify_test();
53942
53962
  this.zpp_vm();
53943
53963
  if (obj.zpp_inner._inuse) {
53944
- throw new js._Boot.HaxeError("Error: Vec2 is already in use");
53964
+ throw new js2._Boot.HaxeError("Error: Vec2 is already in use");
53945
53965
  }
53946
53966
  var cont = this.zpp_inner.adder != null ? this.zpp_inner.adder(obj) : true;
53947
53967
  if (cont) {
@@ -53960,11 +53980,11 @@ define(function() {
53960
53980
  };
53961
53981
  zpp_nape.util.ZPP_MixVec2List.prototype.pop = function() {
53962
53982
  if (this.zpp_inner.immutable) {
53963
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
53983
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
53964
53984
  }
53965
53985
  this.zpp_inner.modify_test();
53966
53986
  if (this.empty()) {
53967
- throw new js._Boot.HaxeError("Error: Cannot remove from empty list");
53987
+ throw new js2._Boot.HaxeError("Error: Cannot remove from empty list");
53968
53988
  }
53969
53989
  this.zpp_vm();
53970
53990
  var ret = null;
@@ -54039,11 +54059,11 @@ define(function() {
54039
54059
  };
54040
54060
  zpp_nape.util.ZPP_MixVec2List.prototype.shift = function() {
54041
54061
  if (this.zpp_inner.immutable) {
54042
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
54062
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
54043
54063
  }
54044
54064
  this.zpp_inner.modify_test();
54045
54065
  if (this.empty()) {
54046
- throw new js._Boot.HaxeError("Error: Cannot remove from empty list");
54066
+ throw new js2._Boot.HaxeError("Error: Cannot remove from empty list");
54047
54067
  }
54048
54068
  this.zpp_vm();
54049
54069
  var ret = null;
@@ -54118,7 +54138,7 @@ define(function() {
54118
54138
  };
54119
54139
  zpp_nape.util.ZPP_MixVec2List.prototype.remove = function(obj) {
54120
54140
  if (this.zpp_inner.immutable) {
54121
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
54141
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
54122
54142
  }
54123
54143
  this.zpp_inner.modify_test();
54124
54144
  this.zpp_vm();
@@ -54146,7 +54166,7 @@ define(function() {
54146
54166
  };
54147
54167
  zpp_nape.util.ZPP_MixVec2List.prototype.clear = function() {
54148
54168
  if (this.zpp_inner.immutable) {
54149
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
54169
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
54150
54170
  }
54151
54171
  if (this.zpp_inner.reverse_flag) {
54152
54172
  while (!this.empty()) this.pop();
@@ -54155,354 +54175,28 @@ define(function() {
54155
54175
  }
54156
54176
  };
54157
54177
  zpp_nape.util.ZPP_MixVec2List.prototype.__class__ = zpp_nape.util.ZPP_MixVec2List;
54158
- zpp_nape.util.ZPP_Math = $hxClasses["zpp_nape.util.ZPP_Math"] = ZPP_Math;
54178
+ zpp_nape.util.ZPP_Math = $hxClasses2["zpp_nape.util.ZPP_Math"] = ZPP_Math;
54159
54179
  zpp_nape.util.ZPP_Math.prototype.__class__ = zpp_nape.util.ZPP_Math;
54160
- zpp_nape.util.ZPP_PubPool = $hxClasses["zpp_nape.util.ZPP_PubPool"] = ZPP_PubPool;
54180
+ zpp_nape.util.ZPP_PubPool = $hxClasses2["zpp_nape.util.ZPP_PubPool"] = ZPP_PubPool;
54161
54181
  zpp_nape.util.ZPP_PubPool.prototype.__class__ = zpp_nape.util.ZPP_PubPool;
54162
54182
  {
54163
54183
  String.__name__ = true;
54164
54184
  Array.__name__ = true;
54165
54185
  }
54166
- Object.defineProperty(js._Boot.HaxeError.prototype, "message", {
54186
+ Object.defineProperty(js2._Boot.HaxeError.prototype, "message", {
54167
54187
  get: function() {
54168
54188
  return String(this.val);
54169
54189
  }
54170
54190
  });
54171
- js.Boot.__toStr = {}.toString;
54172
- nape67.constraint.Constraint.zpp_internalAlloc = false;
54173
- nape67.dynamics.ContactIterator.zpp_pool = null;
54174
- nape67.geom.Vec2Iterator.zpp_pool = null;
54175
- nape67.phys.Interactor.zpp_internalAlloc = false;
54176
- nape67.shape.Shape.zpp_internalAlloc = false;
54177
- zpp_nape.callbacks.ZPP_CbType.ANY_SHAPE = new nape67.callbacks.CbType();
54178
- zpp_nape.callbacks.ZPP_CbType.ANY_BODY = new nape67.callbacks.CbType();
54179
- zpp_nape.callbacks.ZPP_CbType.ANY_COMPOUND = new nape67.callbacks.CbType();
54180
- zpp_nape.callbacks.ZPP_CbType.ANY_CONSTRAINT = new nape67.callbacks.CbType();
54181
- zpp_nape.util.ZPP_Flags.internal = false;
54182
- zpp_nape.util.ZPP_Flags.id_ImmState_ACCEPT = 1;
54183
- zpp_nape.util.ZPP_Flags.id_ImmState_IGNORE = 2;
54184
- zpp_nape.util.ZPP_Flags.id_ImmState_ALWAYS = 4;
54185
- zpp_nape.util.ZPP_Flags.id_GravMassMode_DEFAULT = 0;
54186
- zpp_nape.util.ZPP_Flags.id_GravMassMode_FIXED = 1;
54187
- zpp_nape.util.ZPP_Flags.id_GravMassMode_SCALED = 2;
54188
- zpp_nape.util.ZPP_Flags.id_InertiaMode_DEFAULT = 0;
54189
- zpp_nape.util.ZPP_Flags.id_InertiaMode_FIXED = 1;
54190
- zpp_nape.util.ZPP_Flags.id_MassMode_DEFAULT = 0;
54191
- zpp_nape.util.ZPP_Flags.id_MassMode_FIXED = 1;
54192
- zpp_nape.util.ZPP_Flags.id_BodyType_STATIC = 1;
54193
- zpp_nape.util.ZPP_Flags.id_BodyType_DYNAMIC = 2;
54194
- zpp_nape.util.ZPP_Flags.id_BodyType_KINEMATIC = 3;
54195
- zpp_nape.util.ZPP_Flags.id_ListenerType_BODY = 0;
54196
- zpp_nape.util.ZPP_Flags.id_PreFlag_ACCEPT = 1;
54197
- zpp_nape.util.ZPP_Flags.id_ListenerType_CONSTRAINT = 1;
54198
- zpp_nape.util.ZPP_Flags.id_PreFlag_IGNORE = 2;
54199
- zpp_nape.util.ZPP_Flags.id_ListenerType_INTERACTION = 2;
54200
- zpp_nape.util.ZPP_Flags.id_PreFlag_ACCEPT_ONCE = 3;
54201
- zpp_nape.util.ZPP_Flags.id_ListenerType_PRE = 3;
54202
- zpp_nape.util.ZPP_Flags.id_PreFlag_IGNORE_ONCE = 4;
54203
- zpp_nape.util.ZPP_Flags.id_CbEvent_BEGIN = 0;
54204
- zpp_nape.util.ZPP_Flags.id_InteractionType_COLLISION = 1;
54205
- zpp_nape.util.ZPP_Flags.id_CbEvent_ONGOING = 6;
54206
- zpp_nape.util.ZPP_Flags.id_InteractionType_SENSOR = 2;
54207
- zpp_nape.util.ZPP_Flags.id_CbEvent_END = 1;
54208
- zpp_nape.util.ZPP_Flags.id_InteractionType_FLUID = 4;
54209
- zpp_nape.util.ZPP_Flags.id_CbEvent_WAKE = 2;
54210
- zpp_nape.util.ZPP_Flags.id_InteractionType_ANY = 7;
54211
- zpp_nape.util.ZPP_Flags.id_CbEvent_SLEEP = 3;
54212
- zpp_nape.util.ZPP_Flags.id_CbEvent_BREAK = 4;
54213
- zpp_nape.util.ZPP_Flags.id_CbEvent_PRE = 5;
54214
- zpp_nape.util.ZPP_Flags.id_Winding_UNDEFINED = 0;
54215
- zpp_nape.util.ZPP_Flags.id_Winding_CLOCKWISE = 1;
54216
- zpp_nape.util.ZPP_Flags.id_Winding_ANTICLOCKWISE = 2;
54217
- zpp_nape.util.ZPP_Flags.id_ValidationResult_VALID = 0;
54218
- zpp_nape.util.ZPP_Flags.id_ValidationResult_DEGENERATE = 1;
54219
- zpp_nape.util.ZPP_Flags.id_ValidationResult_CONCAVE = 2;
54220
- zpp_nape.util.ZPP_Flags.id_ValidationResult_SELF_INTERSECTING = 3;
54221
- zpp_nape.util.ZPP_Flags.id_ShapeType_CIRCLE = 0;
54222
- zpp_nape.util.ZPP_Flags.id_ShapeType_POLYGON = 1;
54223
- zpp_nape.util.ZPP_Flags.id_Broadphase_DYNAMIC_AABB_TREE = 0;
54224
- zpp_nape.util.ZPP_Flags.id_Broadphase_SWEEP_AND_PRUNE = 1;
54225
- zpp_nape.util.ZPP_Flags.id_ArbiterType_COLLISION = 1;
54226
- zpp_nape.util.ZPP_Flags.id_ArbiterType_SENSOR = 2;
54227
- zpp_nape.util.ZPP_Flags.id_ArbiterType_FLUID = 4;
54228
- zpp_nape.callbacks.ZPP_Listener.internal = false;
54229
- zpp_nape.callbacks.ZPP_Listener.types = (function($this) {
54230
- var $r;
54231
- if (zpp_nape.util.ZPP_Flags.ListenerType_BODY == null) {
54232
- zpp_nape.util.ZPP_Flags.internal = true;
54233
- zpp_nape.util.ZPP_Flags.ListenerType_BODY = new nape67.callbacks.ListenerType();
54234
- zpp_nape.util.ZPP_Flags.internal = false;
54235
- }
54236
- var tmp = zpp_nape.util.ZPP_Flags.ListenerType_BODY;
54237
- if (zpp_nape.util.ZPP_Flags.ListenerType_CONSTRAINT == null) {
54238
- zpp_nape.util.ZPP_Flags.internal = true;
54239
- zpp_nape.util.ZPP_Flags.ListenerType_CONSTRAINT = new nape67.callbacks.ListenerType();
54240
- zpp_nape.util.ZPP_Flags.internal = false;
54241
- }
54242
- var tmp1 = zpp_nape.util.ZPP_Flags.ListenerType_CONSTRAINT;
54243
- if (zpp_nape.util.ZPP_Flags.ListenerType_INTERACTION == null) {
54244
- zpp_nape.util.ZPP_Flags.internal = true;
54245
- zpp_nape.util.ZPP_Flags.ListenerType_INTERACTION = new nape67.callbacks.ListenerType();
54246
- zpp_nape.util.ZPP_Flags.internal = false;
54247
- }
54248
- var tmp2 = zpp_nape.util.ZPP_Flags.ListenerType_INTERACTION;
54249
- if (zpp_nape.util.ZPP_Flags.ListenerType_PRE == null) {
54250
- zpp_nape.util.ZPP_Flags.internal = true;
54251
- zpp_nape.util.ZPP_Flags.ListenerType_PRE = new nape67.callbacks.ListenerType();
54252
- zpp_nape.util.ZPP_Flags.internal = false;
54253
- }
54254
- $r = [tmp, tmp1, tmp2, zpp_nape.util.ZPP_Flags.ListenerType_PRE];
54255
- return $r;
54256
- })(this);
54257
- zpp_nape.callbacks.ZPP_Listener.events = (function($this) {
54258
- var $r;
54259
- if (zpp_nape.util.ZPP_Flags.CbEvent_BEGIN == null) {
54260
- zpp_nape.util.ZPP_Flags.internal = true;
54261
- zpp_nape.util.ZPP_Flags.CbEvent_BEGIN = new nape67.callbacks.CbEvent();
54262
- zpp_nape.util.ZPP_Flags.internal = false;
54263
- }
54264
- var tmp = zpp_nape.util.ZPP_Flags.CbEvent_BEGIN;
54265
- if (zpp_nape.util.ZPP_Flags.CbEvent_END == null) {
54266
- zpp_nape.util.ZPP_Flags.internal = true;
54267
- zpp_nape.util.ZPP_Flags.CbEvent_END = new nape67.callbacks.CbEvent();
54268
- zpp_nape.util.ZPP_Flags.internal = false;
54269
- }
54270
- var tmp1 = zpp_nape.util.ZPP_Flags.CbEvent_END;
54271
- if (zpp_nape.util.ZPP_Flags.CbEvent_WAKE == null) {
54272
- zpp_nape.util.ZPP_Flags.internal = true;
54273
- zpp_nape.util.ZPP_Flags.CbEvent_WAKE = new nape67.callbacks.CbEvent();
54274
- zpp_nape.util.ZPP_Flags.internal = false;
54275
- }
54276
- var tmp2 = zpp_nape.util.ZPP_Flags.CbEvent_WAKE;
54277
- if (zpp_nape.util.ZPP_Flags.CbEvent_SLEEP == null) {
54278
- zpp_nape.util.ZPP_Flags.internal = true;
54279
- zpp_nape.util.ZPP_Flags.CbEvent_SLEEP = new nape67.callbacks.CbEvent();
54280
- zpp_nape.util.ZPP_Flags.internal = false;
54281
- }
54282
- var tmp3 = zpp_nape.util.ZPP_Flags.CbEvent_SLEEP;
54283
- if (zpp_nape.util.ZPP_Flags.CbEvent_BREAK == null) {
54284
- zpp_nape.util.ZPP_Flags.internal = true;
54285
- zpp_nape.util.ZPP_Flags.CbEvent_BREAK = new nape67.callbacks.CbEvent();
54286
- zpp_nape.util.ZPP_Flags.internal = false;
54287
- }
54288
- var tmp4 = zpp_nape.util.ZPP_Flags.CbEvent_BREAK;
54289
- if (zpp_nape.util.ZPP_Flags.CbEvent_PRE == null) {
54290
- zpp_nape.util.ZPP_Flags.internal = true;
54291
- zpp_nape.util.ZPP_Flags.CbEvent_PRE = new nape67.callbacks.CbEvent();
54292
- zpp_nape.util.ZPP_Flags.internal = false;
54293
- }
54294
- var tmp5 = zpp_nape.util.ZPP_Flags.CbEvent_PRE;
54295
- if (zpp_nape.util.ZPP_Flags.CbEvent_ONGOING == null) {
54296
- zpp_nape.util.ZPP_Flags.internal = true;
54297
- zpp_nape.util.ZPP_Flags.CbEvent_ONGOING = new nape67.callbacks.CbEvent();
54298
- zpp_nape.util.ZPP_Flags.internal = false;
54299
- }
54300
- $r = [
54301
- tmp,
54302
- tmp1,
54303
- tmp2,
54304
- tmp3,
54305
- tmp4,
54306
- tmp5,
54307
- zpp_nape.util.ZPP_Flags.CbEvent_ONGOING
54308
- ];
54309
- return $r;
54310
- })(this);
54311
- zpp_nape.callbacks.ZPP_InteractionListener.UCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
54312
- zpp_nape.callbacks.ZPP_InteractionListener.VCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
54313
- zpp_nape.callbacks.ZPP_InteractionListener.WCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
54314
- zpp_nape.callbacks.ZPP_InteractionListener.UCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
54315
- zpp_nape.callbacks.ZPP_InteractionListener.VCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
54316
- zpp_nape.callbacks.ZPP_InteractionListener.WCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
54317
- zpp_nape.dynamics.ZPP_Arbiter.internal = false;
54318
- zpp_nape.dynamics.ZPP_Arbiter.COL = 1;
54319
- zpp_nape.dynamics.ZPP_Arbiter.FLUID = 4;
54320
- zpp_nape.dynamics.ZPP_Arbiter.SENSOR = 2;
54321
- zpp_nape.dynamics.ZPP_Arbiter.types = (function($this) {
54322
- var $r;
54323
- if (zpp_nape.util.ZPP_Flags.ArbiterType_COLLISION == null) {
54324
- zpp_nape.util.ZPP_Flags.internal = true;
54325
- zpp_nape.util.ZPP_Flags.ArbiterType_COLLISION = new nape67.dynamics.ArbiterType();
54326
- zpp_nape.util.ZPP_Flags.internal = false;
54327
- }
54328
- var tmp = zpp_nape.util.ZPP_Flags.ArbiterType_COLLISION;
54329
- if (zpp_nape.util.ZPP_Flags.ArbiterType_SENSOR == null) {
54330
- zpp_nape.util.ZPP_Flags.internal = true;
54331
- zpp_nape.util.ZPP_Flags.ArbiterType_SENSOR = new nape67.dynamics.ArbiterType();
54332
- zpp_nape.util.ZPP_Flags.internal = false;
54333
- }
54334
- var tmp1 = zpp_nape.util.ZPP_Flags.ArbiterType_SENSOR;
54335
- if (zpp_nape.util.ZPP_Flags.ArbiterType_FLUID == null) {
54336
- zpp_nape.util.ZPP_Flags.internal = true;
54337
- zpp_nape.util.ZPP_Flags.ArbiterType_FLUID = new nape67.dynamics.ArbiterType();
54338
- zpp_nape.util.ZPP_Flags.internal = false;
54339
- }
54340
- $r = [null, tmp, tmp1, null, zpp_nape.util.ZPP_Flags.ArbiterType_FLUID];
54341
- return $r;
54342
- })(this);
54343
- zpp_nape.dynamics.ZPP_SensorArbiter.zpp_pool = null;
54344
- zpp_nape.dynamics.ZPP_FluidArbiter.zpp_pool = null;
54345
- zpp_nape.dynamics.ZPP_ColArbiter.FACE1 = 0;
54346
- zpp_nape.dynamics.ZPP_ColArbiter.FACE2 = 1;
54347
- zpp_nape.dynamics.ZPP_ColArbiter.CIRCLE = 2;
54348
- zpp_nape.dynamics.ZPP_ColArbiter.zpp_pool = null;
54349
- zpp_nape.dynamics.ZPP_Contact.internal = false;
54350
- zpp_nape.dynamics.ZPP_Contact.zpp_pool = null;
54351
- zpp_nape.dynamics.ZPP_InteractionFilter.zpp_pool = null;
54352
- zpp_nape.dynamics.ZPP_InteractionGroup.SHAPE = 1;
54353
- zpp_nape.dynamics.ZPP_InteractionGroup.BODY = 2;
54354
- zpp_nape.geom.ZPP_AABB.zpp_pool = null;
54355
- zpp_nape.geom.ZPP_Collide.flowpoly = new zpp_nape.util.ZNPList_ZPP_Vec2();
54356
- zpp_nape.geom.ZPP_Collide.flowsegs = new zpp_nape.util.ZNPList_ZPP_Vec2();
54357
- zpp_nape.geom.ZPP_Cutter.ints = null;
54358
- zpp_nape.geom.ZPP_Cutter.paths = null;
54359
- zpp_nape.geom.ZPP_GeomVert.zpp_pool = null;
54360
- zpp_nape.geom.ZPP_MarchingSquares.me = new zpp_nape.geom.ZPP_MarchingSquares();
54361
- zpp_nape.geom.ZPP_MarchingSquares.look_march = [
54362
- -1,
54363
- 224,
54364
- 56,
54365
- 216,
54366
- 14,
54367
- -1,
54368
- 54,
54369
- 214,
54370
- 131,
54371
- 99,
54372
- -1,
54373
- 91,
54374
- 141,
54375
- 109,
54376
- 181,
54377
- 85
54378
- ];
54379
- zpp_nape.geom.ZPP_Monotone.queue = null;
54380
- zpp_nape.geom.ZPP_Monotone.edges = null;
54381
- zpp_nape.geom.ZPP_PartitionVertex.nextId = 0;
54382
- zpp_nape.geom.ZPP_PartitionVertex.zpp_pool = null;
54383
- zpp_nape.geom.ZPP_PartitionedPoly.zpp_pool = null;
54384
- zpp_nape.geom.ZPP_Ray.internal = false;
54385
- zpp_nape.geom.ZPP_SimpleVert.zpp_pool = null;
54386
- zpp_nape.geom.ZPP_SimpleSeg.zpp_pool = null;
54387
- zpp_nape.geom.ZPP_SimpleEvent.zpp_pool = null;
54388
- zpp_nape.geom.ZPP_Simple.sweep = null;
54389
- zpp_nape.geom.ZPP_Simple.inthash = null;
54390
- zpp_nape.geom.ZPP_Simple.vertices = null;
54391
- zpp_nape.geom.ZPP_Simple.queue = null;
54392
- zpp_nape.geom.ZPP_Simple.ints = null;
54393
- zpp_nape.geom.ZPP_Simple.list_vertices = null;
54394
- zpp_nape.geom.ZPP_Simple.list_queue = null;
54395
- zpp_nape.geom.ZPP_SimplifyV.zpp_pool = null;
54396
- zpp_nape.geom.ZPP_SimplifyP.zpp_pool = null;
54397
- zpp_nape.geom.ZPP_Simplify.stack = null;
54398
- zpp_nape.geom.ZPP_ToiEvent.zpp_pool = null;
54399
- zpp_nape.geom.ZPP_PartitionPair.zpp_pool = null;
54400
- zpp_nape.geom.ZPP_Triangular.queue = null;
54401
- zpp_nape.geom.ZPP_Triangular.stack = null;
54402
- zpp_nape.geom.ZPP_Triangular.edgeSet = null;
54403
- zpp_nape.geom.ZPP_Vec2.zpp_pool = null;
54404
- zpp_nape.phys.ZPP_Body.types = (function($this) {
54405
- var $r;
54406
- if (zpp_nape.util.ZPP_Flags.BodyType_STATIC == null) {
54407
- zpp_nape.util.ZPP_Flags.internal = true;
54408
- zpp_nape.util.ZPP_Flags.BodyType_STATIC = new nape67.phys.BodyType();
54409
- zpp_nape.util.ZPP_Flags.internal = false;
54410
- }
54411
- var tmp = zpp_nape.util.ZPP_Flags.BodyType_STATIC;
54412
- if (zpp_nape.util.ZPP_Flags.BodyType_DYNAMIC == null) {
54413
- zpp_nape.util.ZPP_Flags.internal = true;
54414
- zpp_nape.util.ZPP_Flags.BodyType_DYNAMIC = new nape67.phys.BodyType();
54415
- zpp_nape.util.ZPP_Flags.internal = false;
54416
- }
54417
- var tmp1 = zpp_nape.util.ZPP_Flags.BodyType_DYNAMIC;
54418
- if (zpp_nape.util.ZPP_Flags.BodyType_KINEMATIC == null) {
54419
- zpp_nape.util.ZPP_Flags.internal = true;
54420
- zpp_nape.util.ZPP_Flags.BodyType_KINEMATIC = new nape67.phys.BodyType();
54421
- zpp_nape.util.ZPP_Flags.internal = false;
54422
- }
54423
- $r = [null, tmp, tmp1, zpp_nape.util.ZPP_Flags.BodyType_KINEMATIC];
54424
- return $r;
54425
- })(this);
54426
- zpp_nape.phys.ZPP_Body.bodystack = null;
54427
- zpp_nape.phys.ZPP_Body.bodyset = null;
54428
- zpp_nape.phys.ZPP_Body.cur_graph_depth = 0;
54429
- zpp_nape.phys.ZPP_FluidProperties.zpp_pool = null;
54430
- zpp_nape.phys.ZPP_Material.zpp_pool = null;
54431
- zpp_nape.phys.ZPP_Material.WAKE = 1;
54432
- zpp_nape.phys.ZPP_Material.PROPS = 2;
54433
- zpp_nape.phys.ZPP_Material.ANGDRAG = 4;
54434
- zpp_nape.phys.ZPP_Material.ARBITERS = 8;
54435
- zpp_nape.shape.ZPP_Shape.types = (function($this) {
54436
- var $r;
54437
- if (zpp_nape.util.ZPP_Flags.ShapeType_CIRCLE == null) {
54438
- zpp_nape.util.ZPP_Flags.internal = true;
54439
- zpp_nape.util.ZPP_Flags.ShapeType_CIRCLE = new nape67.shape.ShapeType();
54440
- zpp_nape.util.ZPP_Flags.internal = false;
54441
- }
54442
- var tmp = zpp_nape.util.ZPP_Flags.ShapeType_CIRCLE;
54443
- if (zpp_nape.util.ZPP_Flags.ShapeType_POLYGON == null) {
54444
- zpp_nape.util.ZPP_Flags.internal = true;
54445
- zpp_nape.util.ZPP_Flags.ShapeType_POLYGON = new nape67.shape.ShapeType();
54446
- zpp_nape.util.ZPP_Flags.internal = false;
54447
- }
54448
- $r = [tmp, zpp_nape.util.ZPP_Flags.ShapeType_POLYGON];
54449
- return $r;
54450
- })(this);
54451
- zpp_nape.shape.ZPP_Edge.zpp_pool = null;
54452
- zpp_nape.shape.ZPP_Edge.internal = false;
54453
- zpp_nape.space.ZPP_AABBNode.zpp_pool = null;
54454
- zpp_nape.space.ZPP_AABBPair.zpp_pool = null;
54455
- zpp_nape.space.ZPP_AABBTree.tmpaabb = new zpp_nape.geom.ZPP_AABB();
54456
- zpp_nape.space.ZPP_DynAABBPhase.FATTEN = 3;
54457
- zpp_nape.space.ZPP_DynAABBPhase.VEL_STEPS = 2;
54458
- zpp_nape.space.ZPP_Island.zpp_pool = null;
54459
- zpp_nape.space.ZPP_Component.zpp_pool = null;
54460
- zpp_nape.space.ZPP_CallbackSet.zpp_pool = null;
54461
- zpp_nape.space.ZPP_SweepData.zpp_pool = null;
54462
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = null;
54463
- zpp_nape.util.ZNPNode_ZPP_CbType.zpp_pool = null;
54464
- zpp_nape.util.ZNPNode_ZPP_CallbackSet.zpp_pool = null;
54465
- zpp_nape.util.ZNPNode_ZPP_Shape.zpp_pool = null;
54466
- zpp_nape.util.ZNPNode_ZPP_Body.zpp_pool = null;
54467
- zpp_nape.util.ZNPNode_ZPP_Constraint.zpp_pool = null;
54468
- zpp_nape.util.ZNPNode_ZPP_Compound.zpp_pool = null;
54469
- zpp_nape.util.ZNPNode_ZPP_Arbiter.zpp_pool = null;
54470
- zpp_nape.util.ZNPNode_ZPP_InteractionListener.zpp_pool = null;
54471
- zpp_nape.util.ZNPNode_ZPP_CbSet.zpp_pool = null;
54472
- zpp_nape.util.ZNPNode_ZPP_Interactor.zpp_pool = null;
54473
- zpp_nape.util.ZNPNode_ZPP_BodyListener.zpp_pool = null;
54474
- zpp_nape.util.ZNPNode_ZPP_CbSetPair.zpp_pool = null;
54475
- zpp_nape.util.ZNPNode_ZPP_ConstraintListener.zpp_pool = null;
54476
- zpp_nape.util.ZNPNode_ZPP_CutInt.zpp_pool = null;
54477
- zpp_nape.util.ZNPNode_ZPP_CutVert.zpp_pool = null;
54478
- zpp_nape.util.ZNPNode_ZPP_PartitionVertex.zpp_pool = null;
54479
- zpp_nape.util.ZNPNode_ZPP_SimplifyP.zpp_pool = null;
54480
- zpp_nape.util.ZNPNode_ZPP_PartitionedPoly.zpp_pool = null;
54481
- zpp_nape.util.ZNPNode_ZPP_GeomVert.zpp_pool = null;
54482
- zpp_nape.util.ZNPNode_ZPP_SimpleVert.zpp_pool = null;
54483
- zpp_nape.util.ZNPNode_ZPP_SimpleEvent.zpp_pool = null;
54484
- zpp_nape.util.ZNPNode_ZPP_Vec2.zpp_pool = null;
54485
- zpp_nape.util.ZNPNode_ZPP_AABBPair.zpp_pool = null;
54486
- zpp_nape.util.ZNPNode_ZPP_Edge.zpp_pool = null;
54487
- zpp_nape.util.ZNPNode_ZPP_AABBNode.zpp_pool = null;
54488
- zpp_nape.util.ZNPNode_ZPP_Component.zpp_pool = null;
54489
- zpp_nape.util.ZNPNode_ZPP_FluidArbiter.zpp_pool = null;
54490
- zpp_nape.util.ZNPNode_ZPP_SensorArbiter.zpp_pool = null;
54491
- zpp_nape.util.ZNPNode_ZPP_Listener.zpp_pool = null;
54492
- zpp_nape.util.ZNPNode_ZPP_ColArbiter.zpp_pool = null;
54493
- zpp_nape.util.ZNPNode_ZPP_InteractionGroup.zpp_pool = null;
54494
- zpp_nape.util.ZNPNode_ZPP_ToiEvent.zpp_pool = null;
54495
- zpp_nape.util.ZNPNode_ConvexResult.zpp_pool = null;
54496
- zpp_nape.util.ZNPNode_ZPP_GeomPoly.zpp_pool = null;
54497
- zpp_nape.util.ZNPNode_RayResult.zpp_pool = null;
54498
- zpp_nape.util.ZPP_Set_ZPP_Body.zpp_pool = null;
54499
- zpp_nape.util.ZPP_Set_ZPP_CbSetPair.zpp_pool = null;
54500
- zpp_nape.util.ZPP_Set_ZPP_PartitionVertex.zpp_pool = null;
54501
- zpp_nape.util.ZPP_Set_ZPP_PartitionPair.zpp_pool = null;
54502
- zpp_nape.util.ZPP_Set_ZPP_SimpleVert.zpp_pool = null;
54503
- zpp_nape.util.ZPP_Set_ZPP_SimpleSeg.zpp_pool = null;
54504
- zpp_nape.util.ZPP_Set_ZPP_SimpleEvent.zpp_pool = null;
54505
- zpp_nape.util.ZPP_Set_ZPP_CbSet.zpp_pool = null;
54191
+ js2.Boot.__toStr = {}.toString;
54192
+ zpp_nape.callbacks.ZPP_CbType._initEnums(nape67);
54193
+ zpp_nape.callbacks.ZPP_Listener._initEnums(nape67, zpp_nape.util.ZPP_Flags);
54194
+ zpp_nape.callbacks.ZPP_InteractionListener._initStatics(zpp_nape);
54195
+ zpp_nape.dynamics.ZPP_Arbiter._initEnums(nape67, zpp_nape.util.ZPP_Flags);
54196
+ zpp_nape.geom.ZPP_Collide._initStatics(zpp_nape);
54197
+ zpp_nape.phys.ZPP_Body._initEnums(nape67, zpp_nape.util.ZPP_Flags);
54198
+ zpp_nape.shape.ZPP_Shape._initEnums(nape67, zpp_nape.util.ZPP_Flags);
54199
+ zpp_nape.space.ZPP_AABBTree._initStatics();
54506
54200
  sandbox.Main.main();
54507
54201
  nape67.__zpp = zpp_nape;
54508
54202
  return nape67;
@@ -69544,7 +69238,7 @@ var zpp7 = nape66.__zpp;
69544
69238
  zpp7.constraint.ZPP_PulleyJoint = ZPP_PulleyJoint;
69545
69239
 
69546
69240
  // src/index.ts
69547
- var VERSION = "3.4.0";
69241
+ var VERSION = "3.4.1";
69548
69242
  // Annotate the CommonJS export names for ESM import in node:
69549
69243
  0 && (module.exports = {
69550
69244
  AABB,