@newkrok/nape-js 3.4.0 → 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.js CHANGED
@@ -1230,6 +1230,53 @@ _ZPP_Flags.ArbiterType_SENSOR = null;
1230
1230
  _ZPP_Flags.ArbiterType_FLUID = null;
1231
1231
  // --- Internal flag ---
1232
1232
  _ZPP_Flags.internal = false;
1233
+ // --- ID constants (numeric bitmasks / enum ordinals) ---
1234
+ _ZPP_Flags.id_ImmState_ACCEPT = 1;
1235
+ _ZPP_Flags.id_ImmState_IGNORE = 2;
1236
+ _ZPP_Flags.id_ImmState_ALWAYS = 4;
1237
+ _ZPP_Flags.id_GravMassMode_DEFAULT = 0;
1238
+ _ZPP_Flags.id_GravMassMode_FIXED = 1;
1239
+ _ZPP_Flags.id_GravMassMode_SCALED = 2;
1240
+ _ZPP_Flags.id_InertiaMode_DEFAULT = 0;
1241
+ _ZPP_Flags.id_InertiaMode_FIXED = 1;
1242
+ _ZPP_Flags.id_MassMode_DEFAULT = 0;
1243
+ _ZPP_Flags.id_MassMode_FIXED = 1;
1244
+ _ZPP_Flags.id_BodyType_STATIC = 1;
1245
+ _ZPP_Flags.id_BodyType_DYNAMIC = 2;
1246
+ _ZPP_Flags.id_BodyType_KINEMATIC = 3;
1247
+ _ZPP_Flags.id_ListenerType_BODY = 0;
1248
+ _ZPP_Flags.id_ListenerType_CONSTRAINT = 1;
1249
+ _ZPP_Flags.id_ListenerType_INTERACTION = 2;
1250
+ _ZPP_Flags.id_ListenerType_PRE = 3;
1251
+ _ZPP_Flags.id_PreFlag_ACCEPT = 1;
1252
+ _ZPP_Flags.id_PreFlag_IGNORE = 2;
1253
+ _ZPP_Flags.id_PreFlag_ACCEPT_ONCE = 3;
1254
+ _ZPP_Flags.id_PreFlag_IGNORE_ONCE = 4;
1255
+ _ZPP_Flags.id_CbEvent_BEGIN = 0;
1256
+ _ZPP_Flags.id_CbEvent_END = 1;
1257
+ _ZPP_Flags.id_CbEvent_WAKE = 2;
1258
+ _ZPP_Flags.id_CbEvent_SLEEP = 3;
1259
+ _ZPP_Flags.id_CbEvent_BREAK = 4;
1260
+ _ZPP_Flags.id_CbEvent_PRE = 5;
1261
+ _ZPP_Flags.id_CbEvent_ONGOING = 6;
1262
+ _ZPP_Flags.id_InteractionType_COLLISION = 1;
1263
+ _ZPP_Flags.id_InteractionType_SENSOR = 2;
1264
+ _ZPP_Flags.id_InteractionType_FLUID = 4;
1265
+ _ZPP_Flags.id_InteractionType_ANY = 7;
1266
+ _ZPP_Flags.id_Winding_UNDEFINED = 0;
1267
+ _ZPP_Flags.id_Winding_CLOCKWISE = 1;
1268
+ _ZPP_Flags.id_Winding_ANTICLOCKWISE = 2;
1269
+ _ZPP_Flags.id_ValidationResult_VALID = 0;
1270
+ _ZPP_Flags.id_ValidationResult_DEGENERATE = 1;
1271
+ _ZPP_Flags.id_ValidationResult_CONCAVE = 2;
1272
+ _ZPP_Flags.id_ValidationResult_SELF_INTERSECTING = 3;
1273
+ _ZPP_Flags.id_ShapeType_CIRCLE = 0;
1274
+ _ZPP_Flags.id_ShapeType_POLYGON = 1;
1275
+ _ZPP_Flags.id_Broadphase_DYNAMIC_AABB_TREE = 0;
1276
+ _ZPP_Flags.id_Broadphase_SWEEP_AND_PRUNE = 1;
1277
+ _ZPP_Flags.id_ArbiterType_COLLISION = 1;
1278
+ _ZPP_Flags.id_ArbiterType_SENSOR = 2;
1279
+ _ZPP_Flags.id_ArbiterType_FLUID = 4;
1233
1280
  var ZPP_Flags = _ZPP_Flags;
1234
1281
 
1235
1282
  // src/native/callbacks/ZPP_CbType.ts
@@ -1260,6 +1307,15 @@ var _ZPP_CbType = class _ZPP_CbType {
1260
1307
  this.interactors = new zpp8.util.ZNPList_ZPP_Interactor();
1261
1308
  this.cbsets = new zpp8.util.ZNPList_ZPP_CbSet();
1262
1309
  }
1310
+ /**
1311
+ * Initialize ANY_* singleton CbTypes. Called once from compiled factory.
1312
+ */
1313
+ static _initEnums(nape67) {
1314
+ _ZPP_CbType.ANY_SHAPE = new nape67.callbacks.CbType();
1315
+ _ZPP_CbType.ANY_BODY = new nape67.callbacks.CbType();
1316
+ _ZPP_CbType.ANY_COMPOUND = new nape67.callbacks.CbType();
1317
+ _ZPP_CbType.ANY_CONSTRAINT = new nape67.callbacks.CbType();
1318
+ }
1263
1319
  /** Sort comparator by id. */
1264
1320
  static setlt(a, b) {
1265
1321
  return a.id < b.id;
@@ -1438,6 +1494,11 @@ var _ZPP_CbType = class _ZPP_CbType {
1438
1494
  _ZPP_CbType.__name__ = ["zpp_nape", "callbacks", "ZPP_CbType"];
1439
1495
  // --- Static: namespace references ---
1440
1496
  _ZPP_CbType._zpp = null;
1497
+ // --- Static: ANY_* singleton CbType instances (set by _initEnums) ---
1498
+ _ZPP_CbType.ANY_SHAPE = null;
1499
+ _ZPP_CbType.ANY_BODY = null;
1500
+ _ZPP_CbType.ANY_COMPOUND = null;
1501
+ _ZPP_CbType.ANY_CONSTRAINT = null;
1441
1502
  var ZPP_CbType = _ZPP_CbType;
1442
1503
 
1443
1504
  // src/native/util/ZPP_ID.ts
@@ -2262,6 +2323,37 @@ var _ZPP_Listener = class _ZPP_Listener {
2262
2323
  }
2263
2324
  removedFromSpace() {
2264
2325
  }
2326
+ /**
2327
+ * Initialize singleton enum arrays. Called once from compiled factory after
2328
+ * nape.callbacks.ListenerType and nape.callbacks.CbEvent stubs exist.
2329
+ */
2330
+ static _initEnums(nape67, ZPP_Flags2) {
2331
+ const mkLT = () => {
2332
+ ZPP_Flags2.internal = true;
2333
+ const o = new nape67.callbacks.ListenerType();
2334
+ ZPP_Flags2.internal = false;
2335
+ return o;
2336
+ };
2337
+ if (ZPP_Flags2.ListenerType_BODY == null) ZPP_Flags2.ListenerType_BODY = mkLT();
2338
+ if (ZPP_Flags2.ListenerType_CONSTRAINT == null) ZPP_Flags2.ListenerType_CONSTRAINT = mkLT();
2339
+ if (ZPP_Flags2.ListenerType_INTERACTION == null) ZPP_Flags2.ListenerType_INTERACTION = mkLT();
2340
+ if (ZPP_Flags2.ListenerType_PRE == null) ZPP_Flags2.ListenerType_PRE = mkLT();
2341
+ _ZPP_Listener.types = [ZPP_Flags2.ListenerType_BODY, ZPP_Flags2.ListenerType_CONSTRAINT, ZPP_Flags2.ListenerType_INTERACTION, ZPP_Flags2.ListenerType_PRE];
2342
+ const mkCE = () => {
2343
+ ZPP_Flags2.internal = true;
2344
+ const o = new nape67.callbacks.CbEvent();
2345
+ ZPP_Flags2.internal = false;
2346
+ return o;
2347
+ };
2348
+ if (ZPP_Flags2.CbEvent_BEGIN == null) ZPP_Flags2.CbEvent_BEGIN = mkCE();
2349
+ if (ZPP_Flags2.CbEvent_END == null) ZPP_Flags2.CbEvent_END = mkCE();
2350
+ if (ZPP_Flags2.CbEvent_WAKE == null) ZPP_Flags2.CbEvent_WAKE = mkCE();
2351
+ if (ZPP_Flags2.CbEvent_SLEEP == null) ZPP_Flags2.CbEvent_SLEEP = mkCE();
2352
+ if (ZPP_Flags2.CbEvent_BREAK == null) ZPP_Flags2.CbEvent_BREAK = mkCE();
2353
+ if (ZPP_Flags2.CbEvent_PRE == null) ZPP_Flags2.CbEvent_PRE = mkCE();
2354
+ if (ZPP_Flags2.CbEvent_ONGOING == null) ZPP_Flags2.CbEvent_ONGOING = mkCE();
2355
+ _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];
2356
+ }
2265
2357
  };
2266
2358
  // --- Static: Haxe metadata ---
2267
2359
  _ZPP_Listener.__name__ = ["zpp_nape", "callbacks", "ZPP_Listener"];
@@ -2985,6 +3077,17 @@ var _ZPP_InteractionListener = class _ZPP_InteractionListener extends ZPP_Listen
2985
3077
  }
2986
3078
  return ret;
2987
3079
  }
3080
+ /**
3081
+ * Initialize static working lists. Called once from compiled factory.
3082
+ */
3083
+ static _initStatics(zpp_nape) {
3084
+ _ZPP_InteractionListener.UCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
3085
+ _ZPP_InteractionListener.VCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
3086
+ _ZPP_InteractionListener.WCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
3087
+ _ZPP_InteractionListener.UCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
3088
+ _ZPP_InteractionListener.VCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
3089
+ _ZPP_InteractionListener.WCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
3090
+ }
2988
3091
  };
2989
3092
  _ZPP_InteractionListener.__name__ = ["zpp_nape", "callbacks", "ZPP_InteractionListener"];
2990
3093
  // --- Static: working lists for set operations (initialized at engine init time) ---
@@ -5767,6 +5870,21 @@ var _ZPP_Body = class _ZPP_Body {
5767
5870
  }
5768
5871
  }
5769
5872
  }
5873
+ /**
5874
+ * Initialize BodyType singleton enums. Called once from compiled factory.
5875
+ */
5876
+ static _initEnums(nape67, ZPP_Flags2) {
5877
+ const mk = () => {
5878
+ ZPP_Flags2.internal = true;
5879
+ const o = new nape67.phys.BodyType();
5880
+ ZPP_Flags2.internal = false;
5881
+ return o;
5882
+ };
5883
+ if (ZPP_Flags2.BodyType_STATIC == null) ZPP_Flags2.BodyType_STATIC = mk();
5884
+ if (ZPP_Flags2.BodyType_DYNAMIC == null) ZPP_Flags2.BodyType_DYNAMIC = mk();
5885
+ if (ZPP_Flags2.BodyType_KINEMATIC == null) ZPP_Flags2.BodyType_KINEMATIC = mk();
5886
+ _ZPP_Body.types = [null, ZPP_Flags2.BodyType_STATIC, ZPP_Flags2.BodyType_DYNAMIC, ZPP_Flags2.BodyType_KINEMATIC];
5887
+ }
5770
5888
  };
5771
5889
  // --- Static: Haxe metadata ---
5772
5890
  _ZPP_Body.__name__ = ["zpp_nape", "phys", "ZPP_Body"];
@@ -6736,6 +6854,21 @@ var _ZPP_Arbiter = class _ZPP_Arbiter {
6736
6854
  this.hnext = null;
6737
6855
  this.outer = null;
6738
6856
  }
6857
+ /**
6858
+ * Initialize ArbiterType singleton enums. Called once from compiled factory.
6859
+ */
6860
+ static _initEnums(nape67, ZPP_Flags2) {
6861
+ const mk = () => {
6862
+ ZPP_Flags2.internal = true;
6863
+ const o = new nape67.dynamics.ArbiterType();
6864
+ ZPP_Flags2.internal = false;
6865
+ return o;
6866
+ };
6867
+ if (ZPP_Flags2.ArbiterType_COLLISION == null) ZPP_Flags2.ArbiterType_COLLISION = mk();
6868
+ if (ZPP_Flags2.ArbiterType_SENSOR == null) ZPP_Flags2.ArbiterType_SENSOR = mk();
6869
+ if (ZPP_Flags2.ArbiterType_FLUID == null) ZPP_Flags2.ArbiterType_FLUID = mk();
6870
+ _ZPP_Arbiter.types = [null, ZPP_Flags2.ArbiterType_COLLISION, ZPP_Flags2.ArbiterType_SENSOR, null, ZPP_Flags2.ArbiterType_FLUID];
6871
+ }
6739
6872
  // ========== Wrapper ==========
6740
6873
  wrapper() {
6741
6874
  if (this.outer == null) {
@@ -6894,7 +7027,7 @@ _ZPP_Arbiter.internal = false;
6894
7027
  _ZPP_Arbiter.COL = 1;
6895
7028
  _ZPP_Arbiter.FLUID = 4;
6896
7029
  _ZPP_Arbiter.SENSOR = 2;
6897
- // --- Static: arbiter type enum lookup (set at init time by compiled code) ---
7030
+ // --- Static: arbiter type enum lookup (populated by _initEnums) ---
6898
7031
  _ZPP_Arbiter.types = [];
6899
7032
  var ZPP_Arbiter = _ZPP_Arbiter;
6900
7033
 
@@ -13903,6 +14036,20 @@ var _ZPP_Shape = class _ZPP_Shape {
13903
14036
  this._initShape(type);
13904
14037
  }
13905
14038
  }
14039
+ /**
14040
+ * Initialize ShapeType singleton enums. Called once from compiled factory.
14041
+ */
14042
+ static _initEnums(nape67, ZPP_Flags2) {
14043
+ const mk = () => {
14044
+ ZPP_Flags2.internal = true;
14045
+ const o = new nape67.shape.ShapeType();
14046
+ ZPP_Flags2.internal = false;
14047
+ return o;
14048
+ };
14049
+ if (ZPP_Flags2.ShapeType_CIRCLE == null) ZPP_Flags2.ShapeType_CIRCLE = mk();
14050
+ if (ZPP_Flags2.ShapeType_POLYGON == null) ZPP_Flags2.ShapeType_POLYGON = mk();
14051
+ _ZPP_Shape.types = [ZPP_Flags2.ShapeType_CIRCLE, ZPP_Flags2.ShapeType_POLYGON];
14052
+ }
13906
14053
  /**
13907
14054
  * Initialize shape state. Separated from constructor so that compiled
13908
14055
  * subclass constructors can call `ZPP_Shape.call(this, type)` which
@@ -14268,12 +14415,7 @@ var _ZPP_Shape = class _ZPP_Shape {
14268
14415
  ret.fluidEnabled = this.fluidEnabled;
14269
14416
  ret.sensorEnabled = this.sensorEnabled;
14270
14417
  if (this.userData != null) {
14271
- const Reflect = nape67.__Reflect || _ZPP_Shape._zpp.__Reflect;
14272
- if (Reflect && Reflect.copy) {
14273
- ret.userData = Reflect.copy(this.userData);
14274
- } else {
14275
- ret.userData = Object.assign({}, this.userData);
14276
- }
14418
+ ret.userData = Object.assign({}, this.userData);
14277
14419
  }
14278
14420
  this.copyto(ret.outer);
14279
14421
  return ret.outer;
@@ -14285,7 +14427,7 @@ _ZPP_Shape.__super__ = null;
14285
14427
  // --- Static: namespace references ---
14286
14428
  _ZPP_Shape._nape = null;
14287
14429
  _ZPP_Shape._zpp = null;
14288
- // --- Static: shape type enum lookup ---
14430
+ // --- Static: shape type enum lookup (populated by _initEnums) ---
14289
14431
  _ZPP_Shape.types = [];
14290
14432
  // --- Static: init guard ---
14291
14433
  _ZPP_Shape._initialized = false;
@@ -20816,6 +20958,199 @@ var _ZPP_SimpleSweep = class _ZPP_SimpleSweep {
20816
20958
  _ZPP_SimpleSweep.__name__ = ["zpp_nape", "geom", "ZPP_SimpleSweep"];
20817
20959
  var ZPP_SimpleSweep = _ZPP_SimpleSweep;
20818
20960
 
20961
+ // src/native/util/Hashable2_Boolfalse.ts
20962
+ var _Hashable2_Boolfalse = class _Hashable2_Boolfalse {
20963
+ constructor() {
20964
+ this.value = false;
20965
+ this.next = null;
20966
+ this.hnext = null;
20967
+ this.id = 0;
20968
+ this.di = 0;
20969
+ this.__class__ = _Hashable2_Boolfalse;
20970
+ }
20971
+ static _alloc() {
20972
+ if (_Hashable2_Boolfalse.zpp_pool == null) {
20973
+ return new _Hashable2_Boolfalse();
20974
+ }
20975
+ const ret = _Hashable2_Boolfalse.zpp_pool;
20976
+ _Hashable2_Boolfalse.zpp_pool = ret.next;
20977
+ ret.next = null;
20978
+ return ret;
20979
+ }
20980
+ static get(id, di, val) {
20981
+ const ret = _Hashable2_Boolfalse._alloc();
20982
+ ret.id = id;
20983
+ ret.di = di;
20984
+ ret.value = val;
20985
+ return ret;
20986
+ }
20987
+ static getpersist(id, di) {
20988
+ const ret = _Hashable2_Boolfalse._alloc();
20989
+ ret.id = id;
20990
+ ret.di = di;
20991
+ return ret;
20992
+ }
20993
+ static ordered_get(id, di, val) {
20994
+ if (id <= di) {
20995
+ const ret = _Hashable2_Boolfalse._alloc();
20996
+ ret.id = id;
20997
+ ret.di = di;
20998
+ ret.value = val;
20999
+ return ret;
21000
+ } else {
21001
+ const ret = _Hashable2_Boolfalse._alloc();
21002
+ ret.id = di;
21003
+ ret.di = id;
21004
+ ret.value = val;
21005
+ return ret;
21006
+ }
21007
+ }
21008
+ static ordered_get_persist(id, di) {
21009
+ if (id <= di) {
21010
+ const ret = _Hashable2_Boolfalse._alloc();
21011
+ ret.id = id;
21012
+ ret.di = di;
21013
+ return ret;
21014
+ } else {
21015
+ const ret = _Hashable2_Boolfalse._alloc();
21016
+ ret.id = di;
21017
+ ret.di = id;
21018
+ return ret;
21019
+ }
21020
+ }
21021
+ free() {
21022
+ }
21023
+ alloc() {
21024
+ }
21025
+ };
21026
+ _Hashable2_Boolfalse.__name__ = ["zpp_nape", "util", "Hashable2_Boolfalse"];
21027
+ _Hashable2_Boolfalse.zpp_pool = null;
21028
+ var Hashable2_Boolfalse = _Hashable2_Boolfalse;
21029
+
21030
+ // src/native/util/FastHash2_Hashable2_Boolfalse.ts
21031
+ var TABLE_SIZE = 1048576;
21032
+ var TABLE_MASK = 1048575;
21033
+ var HASH_MULT = 106039;
21034
+ var _FastHash2_Hashable2_Boolfalse = class _FastHash2_Hashable2_Boolfalse {
21035
+ constructor() {
21036
+ this.cnt = 0;
21037
+ this.__class__ = _FastHash2_Hashable2_Boolfalse;
21038
+ this.cnt = 0;
21039
+ this.table = new Array(TABLE_SIZE).fill(null);
21040
+ }
21041
+ empty() {
21042
+ return this.cnt == 0;
21043
+ }
21044
+ clear() {
21045
+ for (let i = 0; i < this.table.length; i++) {
21046
+ let n = this.table[i];
21047
+ if (n == null) continue;
21048
+ while (n != null) {
21049
+ const t = n.hnext;
21050
+ n.hnext = null;
21051
+ n = t;
21052
+ }
21053
+ this.table[i] = null;
21054
+ }
21055
+ }
21056
+ get(id, di) {
21057
+ let n = this.table[id * HASH_MULT + di & TABLE_MASK];
21058
+ if (n == null) {
21059
+ return null;
21060
+ } else if (n.id == id && n.di == di) {
21061
+ return n;
21062
+ } else {
21063
+ while (true) {
21064
+ n = n.hnext;
21065
+ if (!(n != null && (n.id != id || n.di != di))) break;
21066
+ }
21067
+ return n;
21068
+ }
21069
+ }
21070
+ ordered_get(id, di) {
21071
+ if (id > di) {
21072
+ const t = id;
21073
+ id = di;
21074
+ di = t;
21075
+ }
21076
+ let n = this.table[id * HASH_MULT + di & TABLE_MASK];
21077
+ if (n == null) {
21078
+ return null;
21079
+ } else if (n.id == id && n.di == di) {
21080
+ return n;
21081
+ } else {
21082
+ while (true) {
21083
+ n = n.hnext;
21084
+ if (!(n != null && (n.id != id || n.di != di))) break;
21085
+ }
21086
+ return n;
21087
+ }
21088
+ }
21089
+ has(id, di) {
21090
+ let n = this.table[id * HASH_MULT + di & TABLE_MASK];
21091
+ if (n == null) {
21092
+ return false;
21093
+ } else if (n.id == id && n.di == di) {
21094
+ return true;
21095
+ } else {
21096
+ while (true) {
21097
+ n = n.hnext;
21098
+ if (!(n != null && (n.id != id || n.di != di))) break;
21099
+ }
21100
+ return n != null;
21101
+ }
21102
+ }
21103
+ maybeAdd(arb) {
21104
+ const h = arb.id * HASH_MULT + arb.di & TABLE_MASK;
21105
+ const n = this.table[h];
21106
+ const cont = true;
21107
+ if (n == null) {
21108
+ this.table[h] = arb;
21109
+ arb.hnext = null;
21110
+ } else if (cont) {
21111
+ arb.hnext = n.hnext;
21112
+ n.hnext = arb;
21113
+ }
21114
+ if (cont) {
21115
+ this.cnt++;
21116
+ }
21117
+ }
21118
+ add(arb) {
21119
+ const h = arb.id * HASH_MULT + arb.di & TABLE_MASK;
21120
+ const n = this.table[h];
21121
+ if (n == null) {
21122
+ this.table[h] = arb;
21123
+ arb.hnext = null;
21124
+ } else {
21125
+ arb.hnext = n.hnext;
21126
+ n.hnext = arb;
21127
+ }
21128
+ this.cnt++;
21129
+ }
21130
+ remove(arb) {
21131
+ const h = arb.id * HASH_MULT + arb.di & TABLE_MASK;
21132
+ let n = this.table[h];
21133
+ if (n == arb) {
21134
+ this.table[h] = n.hnext;
21135
+ } else if (n != null) {
21136
+ let pre;
21137
+ while (true) {
21138
+ pre = n;
21139
+ n = n.hnext;
21140
+ if (!(n != null && n != arb)) break;
21141
+ }
21142
+ pre.hnext = n.hnext;
21143
+ }
21144
+ arb.hnext = null;
21145
+ this.cnt--;
21146
+ }
21147
+ hash(id, di) {
21148
+ return id * HASH_MULT + di & TABLE_MASK;
21149
+ }
21150
+ };
21151
+ _FastHash2_Hashable2_Boolfalse.__name__ = ["zpp_nape", "util", "FastHash2_Hashable2_Boolfalse"];
21152
+ var FastHash2_Hashable2_Boolfalse = _FastHash2_Hashable2_Boolfalse;
21153
+
20819
21154
  // src/native/geom/ZPP_Simple.ts
20820
21155
  var _ZPP_Simple = class _ZPP_Simple {
20821
21156
  constructor() {
@@ -20825,7 +21160,7 @@ var _ZPP_Simple = class _ZPP_Simple {
20825
21160
  const zpp8 = getNape().__zpp;
20826
21161
  if (_ZPP_Simple.sweep == null) {
20827
21162
  _ZPP_Simple.sweep = new ZPP_SimpleSweep();
20828
- _ZPP_Simple.inthash = new zpp8.util.FastHash2_Hashable2_Boolfalse();
21163
+ _ZPP_Simple.inthash = new FastHash2_Hashable2_Boolfalse();
20829
21164
  }
20830
21165
  if (_ZPP_Simple.vertices == null) {
20831
21166
  if (zpp8.util.ZPP_Set_ZPP_SimpleVert.zpp_pool == null) {
@@ -21033,11 +21368,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21033
21368
  const id = s.next.id;
21034
21369
  const di = s.id;
21035
21370
  let ret5;
21036
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21037
- ret5 = new zpp8.util.Hashable2_Boolfalse();
21371
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21372
+ ret5 = new Hashable2_Boolfalse();
21038
21373
  } else {
21039
- ret5 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21040
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret5.next;
21374
+ ret5 = Hashable2_Boolfalse.zpp_pool;
21375
+ Hashable2_Boolfalse.zpp_pool = ret5.next;
21041
21376
  ret5.next = null;
21042
21377
  }
21043
21378
  ret5.id = id;
@@ -21050,11 +21385,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21050
21385
  const id1 = s.id;
21051
21386
  const di1 = s.next.id;
21052
21387
  let ret7;
21053
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21054
- ret7 = new zpp8.util.Hashable2_Boolfalse();
21388
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21389
+ ret7 = new Hashable2_Boolfalse();
21055
21390
  } else {
21056
- ret7 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21057
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret7.next;
21391
+ ret7 = Hashable2_Boolfalse.zpp_pool;
21392
+ Hashable2_Boolfalse.zpp_pool = ret7.next;
21058
21393
  ret7.next = null;
21059
21394
  }
21060
21395
  ret7.id = id1;
@@ -21141,11 +21476,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21141
21476
  const id2 = s.id;
21142
21477
  const di2 = s.prev.id;
21143
21478
  let ret9;
21144
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21145
- ret9 = new zpp8.util.Hashable2_Boolfalse();
21479
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21480
+ ret9 = new Hashable2_Boolfalse();
21146
21481
  } else {
21147
- ret9 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21148
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret9.next;
21482
+ ret9 = Hashable2_Boolfalse.zpp_pool;
21483
+ Hashable2_Boolfalse.zpp_pool = ret9.next;
21149
21484
  ret9.next = null;
21150
21485
  }
21151
21486
  ret9.id = id2;
@@ -21158,11 +21493,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21158
21493
  const id3 = s.prev.id;
21159
21494
  const di3 = s.id;
21160
21495
  let ret11;
21161
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21162
- ret11 = new zpp8.util.Hashable2_Boolfalse();
21496
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21497
+ ret11 = new Hashable2_Boolfalse();
21163
21498
  } else {
21164
- ret11 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21165
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret11.next;
21499
+ ret11 = Hashable2_Boolfalse.zpp_pool;
21500
+ Hashable2_Boolfalse.zpp_pool = ret11.next;
21166
21501
  ret11.next = null;
21167
21502
  }
21168
21503
  ret11.id = id3;
@@ -21262,11 +21597,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21262
21597
  const id4 = nxt.id;
21263
21598
  const di4 = pre1.id;
21264
21599
  let ret13;
21265
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21266
- ret13 = new zpp8.util.Hashable2_Boolfalse();
21600
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21601
+ ret13 = new Hashable2_Boolfalse();
21267
21602
  } else {
21268
- ret13 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21269
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret13.next;
21603
+ ret13 = Hashable2_Boolfalse.zpp_pool;
21604
+ Hashable2_Boolfalse.zpp_pool = ret13.next;
21270
21605
  ret13.next = null;
21271
21606
  }
21272
21607
  ret13.id = id4;
@@ -21279,11 +21614,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21279
21614
  const id5 = pre1.id;
21280
21615
  const di5 = nxt.id;
21281
21616
  let ret15;
21282
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21283
- ret15 = new zpp8.util.Hashable2_Boolfalse();
21617
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21618
+ ret15 = new Hashable2_Boolfalse();
21284
21619
  } else {
21285
- ret15 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21286
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret15.next;
21620
+ ret15 = Hashable2_Boolfalse.zpp_pool;
21621
+ Hashable2_Boolfalse.zpp_pool = ret15.next;
21287
21622
  ret15.next = null;
21288
21623
  }
21289
21624
  ret15.id = id5;
@@ -21461,11 +21796,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21461
21796
  const id6 = b.next.id;
21462
21797
  const di6 = b.id;
21463
21798
  let ret17;
21464
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21465
- ret17 = new zpp8.util.Hashable2_Boolfalse();
21799
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21800
+ ret17 = new Hashable2_Boolfalse();
21466
21801
  } else {
21467
- ret17 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21468
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret17.next;
21802
+ ret17 = Hashable2_Boolfalse.zpp_pool;
21803
+ Hashable2_Boolfalse.zpp_pool = ret17.next;
21469
21804
  ret17.next = null;
21470
21805
  }
21471
21806
  ret17.id = id6;
@@ -21478,11 +21813,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21478
21813
  const id7 = b.id;
21479
21814
  const di7 = b.next.id;
21480
21815
  let ret19;
21481
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21482
- ret19 = new zpp8.util.Hashable2_Boolfalse();
21816
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21817
+ ret19 = new Hashable2_Boolfalse();
21483
21818
  } else {
21484
- ret19 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21485
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret19.next;
21819
+ ret19 = Hashable2_Boolfalse.zpp_pool;
21820
+ Hashable2_Boolfalse.zpp_pool = ret19.next;
21486
21821
  ret19.next = null;
21487
21822
  }
21488
21823
  ret19.id = id7;
@@ -21569,11 +21904,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21569
21904
  const id8 = a.id;
21570
21905
  const di8 = a.prev.id;
21571
21906
  let ret21;
21572
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21573
- ret21 = new zpp8.util.Hashable2_Boolfalse();
21907
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21908
+ ret21 = new Hashable2_Boolfalse();
21574
21909
  } else {
21575
- ret21 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21576
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret21.next;
21910
+ ret21 = Hashable2_Boolfalse.zpp_pool;
21911
+ Hashable2_Boolfalse.zpp_pool = ret21.next;
21577
21912
  ret21.next = null;
21578
21913
  }
21579
21914
  ret21.id = id8;
@@ -21586,11 +21921,11 @@ var _ZPP_Simple = class _ZPP_Simple {
21586
21921
  const id9 = a.prev.id;
21587
21922
  const di9 = a.id;
21588
21923
  let ret23;
21589
- if (zpp8.util.Hashable2_Boolfalse.zpp_pool == null) {
21590
- ret23 = new zpp8.util.Hashable2_Boolfalse();
21924
+ if (Hashable2_Boolfalse.zpp_pool == null) {
21925
+ ret23 = new Hashable2_Boolfalse();
21591
21926
  } else {
21592
- ret23 = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21593
- zpp8.util.Hashable2_Boolfalse.zpp_pool = ret23.next;
21927
+ ret23 = Hashable2_Boolfalse.zpp_pool;
21928
+ Hashable2_Boolfalse.zpp_pool = ret23.next;
21594
21929
  ret23.next = null;
21595
21930
  }
21596
21931
  ret23.id = id9;
@@ -21654,8 +21989,8 @@ var _ZPP_Simple = class _ZPP_Simple {
21654
21989
  const t1 = n.hnext;
21655
21990
  n.hnext = null;
21656
21991
  const o28 = n;
21657
- o28.next = zpp8.util.Hashable2_Boolfalse.zpp_pool;
21658
- zpp8.util.Hashable2_Boolfalse.zpp_pool = o28;
21992
+ o28.next = Hashable2_Boolfalse.zpp_pool;
21993
+ Hashable2_Boolfalse.zpp_pool = o28;
21659
21994
  n = t1;
21660
21995
  }
21661
21996
  _ZPP_Simple.inthash.table[i] = null;
@@ -21828,7 +22163,7 @@ var _ZPP_Simple = class _ZPP_Simple {
21828
22163
  const zpp8 = getNape().__zpp;
21829
22164
  if (_ZPP_Simple.sweep == null) {
21830
22165
  _ZPP_Simple.sweep = new ZPP_SimpleSweep();
21831
- _ZPP_Simple.inthash = new zpp8.util.FastHash2_Hashable2_Boolfalse();
22166
+ _ZPP_Simple.inthash = new FastHash2_Hashable2_Boolfalse();
21832
22167
  }
21833
22168
  let vertices = _ZPP_Simple.list_vertices;
21834
22169
  if (vertices == null) {
@@ -22775,6 +23110,13 @@ var _ZPP_Collide = class _ZPP_Collide {
22775
23110
  constructor() {
22776
23111
  this.__class__ = _ZPP_Collide;
22777
23112
  }
23113
+ /**
23114
+ * Initialize static working lists. Called once from compiled factory.
23115
+ */
23116
+ static _initStatics(zpp_nape) {
23117
+ _ZPP_Collide.flowpoly = new zpp_nape.util.ZNPList_ZPP_Vec2();
23118
+ _ZPP_Collide.flowsegs = new zpp_nape.util.ZNPList_ZPP_Vec2();
23119
+ }
22778
23120
  static circleContains(c, p) {
22779
23121
  const dx = p.x - c.worldCOMx;
22780
23122
  const dy = p.y - c.worldCOMy;
@@ -29804,12 +30146,12 @@ var _ZPP_CallbackSet = class _ZPP_CallbackSet {
29804
30146
  if (!ret) {
29805
30147
  const _this = this.arbiters;
29806
30148
  let ret1;
29807
- const ZNPNode = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
29808
- if (ZNPNode.zpp_pool == null) {
29809
- ret1 = new ZNPNode();
30149
+ const ZNPNode2 = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
30150
+ if (ZNPNode2.zpp_pool == null) {
30151
+ ret1 = new ZNPNode2();
29810
30152
  } else {
29811
- ret1 = ZNPNode.zpp_pool;
29812
- ZNPNode.zpp_pool = ret1.next;
30153
+ ret1 = ZNPNode2.zpp_pool;
30154
+ ZNPNode2.zpp_pool = ret1.next;
29813
30155
  ret1.next = null;
29814
30156
  }
29815
30157
  ret1.elt = x;
@@ -29849,9 +30191,9 @@ var _ZPP_CallbackSet = class _ZPP_CallbackSet {
29849
30191
  }
29850
30192
  const o = old;
29851
30193
  o.elt = null;
29852
- const ZNPNode = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
29853
- o.next = ZNPNode.zpp_pool;
29854
- ZNPNode.zpp_pool = o;
30194
+ const ZNPNode2 = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
30195
+ o.next = ZNPNode2.zpp_pool;
30196
+ ZNPNode2.zpp_pool = o;
29855
30197
  _this.modified = true;
29856
30198
  _this.length--;
29857
30199
  _this.pushmod = true;
@@ -29888,9 +30230,9 @@ var _ZPP_CallbackSet = class _ZPP_CallbackSet {
29888
30230
  }
29889
30231
  const o = old;
29890
30232
  o.elt = null;
29891
- const ZNPNode = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
29892
- o.next = ZNPNode.zpp_pool;
29893
- ZNPNode.zpp_pool = o;
30233
+ const ZNPNode2 = _ZPP_CallbackSet._zpp.util.ZNPNode_ZPP_Arbiter;
30234
+ o.next = ZNPNode2.zpp_pool;
30235
+ ZNPNode2.zpp_pool = o;
29894
30236
  _this.modified = true;
29895
30237
  _this.length--;
29896
30238
  _this.pushmod = true;
@@ -30384,6 +30726,12 @@ var _ZPP_AABBTree = class _ZPP_AABBTree {
30384
30726
  // --- Instance: Haxe class reference ---
30385
30727
  this.__class__ = _ZPP_AABBTree;
30386
30728
  }
30729
+ /**
30730
+ * Initialize static instances. Called once from compiled factory.
30731
+ */
30732
+ static _initStatics() {
30733
+ _ZPP_AABBTree.tmpaabb = new ZPP_AABB();
30734
+ }
30387
30735
  // ========== clear ==========
30388
30736
  clear() {
30389
30737
  if (this.root == null) {
@@ -50247,6 +50595,38 @@ _ZPP_Space._zpp = null;
50247
50595
  _ZPP_Space._nape = null;
50248
50596
  var ZPP_Space = _ZPP_Space;
50249
50597
 
50598
+ // src/native/util/ZNPArray2.ts
50599
+ var ZNPArray2 = class {
50600
+ constructor(width, _height) {
50601
+ this.list = [];
50602
+ this.width = 0;
50603
+ this.width = width;
50604
+ this.list = [];
50605
+ }
50606
+ resize(width, height, def) {
50607
+ this.width = width;
50608
+ const len = width * height;
50609
+ for (let i = 0; i < len; i++) {
50610
+ this.list[i] = def;
50611
+ }
50612
+ }
50613
+ get(x, y) {
50614
+ return this.list[y * this.width + x];
50615
+ }
50616
+ set(x, y, obj) {
50617
+ return this.list[y * this.width + x] = obj;
50618
+ }
50619
+ };
50620
+ var ZNPArray2_Float = class extends ZNPArray2 {
50621
+ };
50622
+ ZNPArray2_Float.__name__ = ["zpp_nape", "util", "ZNPArray2_Float"];
50623
+ var ZNPArray2_ZPP_GeomVert = class extends ZNPArray2 {
50624
+ };
50625
+ ZNPArray2_ZPP_GeomVert.__name__ = ["zpp_nape", "util", "ZNPArray2_ZPP_GeomVert"];
50626
+ var ZNPArray2_ZPP_MarchPair = class extends ZNPArray2 {
50627
+ };
50628
+ ZNPArray2_ZPP_MarchPair.__name__ = ["zpp_nape", "util", "ZNPArray2_ZPP_MarchPair"];
50629
+
50250
50630
  // src/native/geom/ZPP_MarchingSquares.ts
50251
50631
  var _ZPP_MarchingSquares = class _ZPP_MarchingSquares {
50252
50632
  constructor() {
@@ -50255,6 +50635,8 @@ var _ZPP_MarchingSquares = class _ZPP_MarchingSquares {
50255
50635
  static _init(zpp8, nape67) {
50256
50636
  _ZPP_MarchingSquares._zpp = zpp8;
50257
50637
  _ZPP_MarchingSquares._nape = nape67;
50638
+ _ZPP_MarchingSquares.me = new _ZPP_MarchingSquares();
50639
+ _ZPP_MarchingSquares.look_march = [-1, 224, 56, 216, 14, -1, 54, 214, 131, 99, -1, 91, 141, 109, 181, 85];
50258
50640
  }
50259
50641
  // ---------------------------------------------------------------------------
50260
50642
  // Helper: allocate a ZPP_GeomVert from pool
@@ -50455,13 +50837,13 @@ var _ZPP_MarchingSquares = class _ZPP_MarchingSquares {
50455
50837
  }
50456
50838
  if (combine) {
50457
50839
  if (_ZPP_MarchingSquares.map == null) {
50458
- _ZPP_MarchingSquares.map = new _ZPP_MarchingSquares._zpp.util.ZNPArray2_ZPP_MarchPair(xn, yn);
50840
+ _ZPP_MarchingSquares.map = new ZNPArray2_ZPP_MarchPair(xn, yn);
50459
50841
  } else {
50460
50842
  _ZPP_MarchingSquares.map.resize(xn, yn, null);
50461
50843
  }
50462
50844
  }
50463
50845
  if (_ZPP_MarchingSquares.isos == null) {
50464
- _ZPP_MarchingSquares.isos = new _ZPP_MarchingSquares._zpp.util.ZNPArray2_Float(xn + 1, yn + 1);
50846
+ _ZPP_MarchingSquares.isos = new ZNPArray2_Float(xn + 1, yn + 1);
50465
50847
  } else {
50466
50848
  _ZPP_MarchingSquares.isos.resize(xn + 1, yn + 1, 0);
50467
50849
  }
@@ -50503,7 +50885,7 @@ var _ZPP_MarchingSquares = class _ZPP_MarchingSquares {
50503
50885
  }
50504
50886
  }
50505
50887
  if (_ZPP_MarchingSquares.ints == null) {
50506
- _ZPP_MarchingSquares.ints = new _ZPP_MarchingSquares._zpp.util.ZNPArray2_ZPP_GeomVert(xn + 1, (yn << 1) + 1);
50888
+ _ZPP_MarchingSquares.ints = new ZNPArray2_ZPP_GeomVert(xn + 1, (yn << 1) + 1);
50507
50889
  } else {
50508
50890
  _ZPP_MarchingSquares.ints.resize(xn + 1, (yn << 1) + 1, null);
50509
50891
  }
@@ -51608,176 +51990,923 @@ _ZPP_MarchingSquares._zpp = null;
51608
51990
  _ZPP_MarchingSquares._nape = null;
51609
51991
  var ZPP_MarchingSquares = _ZPP_MarchingSquares;
51610
51992
 
51611
- // src/core/nape-compiled.js
51612
- var _nape;
51613
- var define = function(factory) {
51614
- _nape = factory();
51993
+ // src/native/util/ZNPNode.ts
51994
+ var ZNPNode = class {
51995
+ constructor() {
51996
+ this.elt = null;
51997
+ this.next = null;
51998
+ }
51999
+ alloc() {
52000
+ }
52001
+ free() {
52002
+ this.elt = null;
52003
+ }
52004
+ elem() {
52005
+ return this.elt;
52006
+ }
51615
52007
  };
51616
- define(function() {
51617
- "use strict";
51618
- var nape67, zpp_nape, js, Std, Reflect, StringTools, sandbox;
51619
- var $_, $hxClasses = $hxClasses || {}, $estr = function() {
51620
- return js.Boot.__string_rec(this, "");
51621
- };
51622
- function $bind(o, m) {
51623
- var f = function() {
51624
- return f.method.apply(f.scope, arguments);
51625
- };
51626
- f.scope = o;
51627
- f.method = m;
51628
- return f;
52008
+ ZNPNode.zpp_pool = null;
52009
+
52010
+ // src/native/util/ZNPList.ts
52011
+ var ZNPList = class {
52012
+ constructor() {
52013
+ this.head = null;
52014
+ this.length = 0;
52015
+ this.modified = false;
52016
+ this.pushmod = false;
51629
52017
  }
51630
- Reflect = $hxClasses["Reflect"] = function() {
51631
- };
51632
- Reflect.__name__ = ["Reflect"];
51633
- Reflect.field = function(o, field) {
51634
- try {
51635
- return o[field];
51636
- } catch (e) {
51637
- var e1 = e instanceof js._Boot.HaxeError ? e.val : e;
51638
- return null;
52018
+ _allocNode() {
52019
+ const N = this.constructor._NodeClass;
52020
+ let ret;
52021
+ if (N.zpp_pool == null) {
52022
+ ret = new N();
52023
+ } else {
52024
+ ret = N.zpp_pool;
52025
+ N.zpp_pool = ret.next;
52026
+ ret.next = null;
51639
52027
  }
51640
- };
51641
- Reflect.fields = function(o) {
51642
- var a = [];
51643
- if (o != null) {
51644
- var hasOwnProperty = Object.prototype.hasOwnProperty;
51645
- for (var f in o) {
51646
- if (f != "__id__" && f != "hx__closures__" && hasOwnProperty.call(o, f)) {
51647
- a.push(f);
52028
+ return ret;
52029
+ }
52030
+ _freeNode(node) {
52031
+ const N = this.constructor._NodeClass;
52032
+ node.elt = null;
52033
+ node.next = N.zpp_pool;
52034
+ N.zpp_pool = node;
52035
+ }
52036
+ begin() {
52037
+ return this.head;
52038
+ }
52039
+ setbegin(i) {
52040
+ this.head = i;
52041
+ this.modified = true;
52042
+ this.pushmod = true;
52043
+ }
52044
+ add(o) {
52045
+ const node = this._allocNode();
52046
+ node.elt = o;
52047
+ node.next = this.head;
52048
+ this.head = node;
52049
+ this.modified = true;
52050
+ this.length++;
52051
+ return o;
52052
+ }
52053
+ addAll(x) {
52054
+ let cx_ite = x.head;
52055
+ while (cx_ite != null) {
52056
+ this.add(cx_ite.elt);
52057
+ cx_ite = cx_ite.next;
52058
+ }
52059
+ }
52060
+ insert(cur, o) {
52061
+ const node = this._allocNode();
52062
+ node.elt = o;
52063
+ if (cur == null) {
52064
+ node.next = this.head;
52065
+ this.head = node;
52066
+ } else {
52067
+ node.next = cur.next;
52068
+ cur.next = node;
52069
+ }
52070
+ this.pushmod = this.modified = true;
52071
+ this.length++;
52072
+ return node;
52073
+ }
52074
+ pop() {
52075
+ const ret = this.head;
52076
+ this.head = ret.next;
52077
+ this._freeNode(ret);
52078
+ if (this.head == null) {
52079
+ this.pushmod = true;
52080
+ }
52081
+ this.modified = true;
52082
+ this.length--;
52083
+ }
52084
+ pop_unsafe() {
52085
+ const ret = this.head.elt;
52086
+ this.pop();
52087
+ return ret;
52088
+ }
52089
+ erase(pre) {
52090
+ let old;
52091
+ let ret;
52092
+ if (pre == null) {
52093
+ old = this.head;
52094
+ ret = old.next;
52095
+ this.head = ret;
52096
+ if (this.head == null) {
52097
+ this.pushmod = true;
52098
+ }
52099
+ } else {
52100
+ old = pre.next;
52101
+ ret = old.next;
52102
+ pre.next = ret;
52103
+ if (ret == null) {
52104
+ this.pushmod = true;
52105
+ }
52106
+ }
52107
+ this._freeNode(old);
52108
+ this.modified = true;
52109
+ this.length--;
52110
+ this.pushmod = true;
52111
+ return ret;
52112
+ }
52113
+ remove(obj) {
52114
+ let pre = null;
52115
+ let cur = this.head;
52116
+ while (cur != null) {
52117
+ if (cur.elt == obj) {
52118
+ this.erase(pre);
52119
+ break;
52120
+ }
52121
+ pre = cur;
52122
+ cur = cur.next;
52123
+ }
52124
+ }
52125
+ try_remove(obj) {
52126
+ let pre = null;
52127
+ let cur = this.head;
52128
+ let ret = false;
52129
+ while (cur != null) {
52130
+ if (cur.elt == obj) {
52131
+ this.erase(pre);
52132
+ ret = true;
52133
+ break;
52134
+ }
52135
+ pre = cur;
52136
+ cur = cur.next;
52137
+ }
52138
+ return ret;
52139
+ }
52140
+ splice(pre, n) {
52141
+ while (n-- > 0 && pre.next != null) this.erase(pre);
52142
+ return pre.next;
52143
+ }
52144
+ clear() {
52145
+ while (this.head != null) {
52146
+ const ret = this.head;
52147
+ this.head = ret.next;
52148
+ this._freeNode(ret);
52149
+ if (this.head == null) {
52150
+ this.pushmod = true;
52151
+ }
52152
+ this.modified = true;
52153
+ this.length--;
52154
+ }
52155
+ this.pushmod = true;
52156
+ }
52157
+ reverse() {
52158
+ let cur = this.head;
52159
+ let pre = null;
52160
+ while (cur != null) {
52161
+ const nx = cur.next;
52162
+ cur.next = pre;
52163
+ this.head = cur;
52164
+ pre = cur;
52165
+ cur = nx;
52166
+ }
52167
+ this.modified = true;
52168
+ this.pushmod = true;
52169
+ }
52170
+ empty() {
52171
+ return this.head == null;
52172
+ }
52173
+ size() {
52174
+ return this.length;
52175
+ }
52176
+ has(obj) {
52177
+ let cx_ite = this.head;
52178
+ while (cx_ite != null) {
52179
+ if (cx_ite.elt == obj) return true;
52180
+ cx_ite = cx_ite.next;
52181
+ }
52182
+ return false;
52183
+ }
52184
+ front() {
52185
+ return this.head.elt;
52186
+ }
52187
+ back() {
52188
+ let ret = this.head;
52189
+ let cur = ret;
52190
+ while (cur != null) {
52191
+ ret = cur;
52192
+ cur = cur.next;
52193
+ }
52194
+ return ret.elt;
52195
+ }
52196
+ iterator_at(ind) {
52197
+ let ret = this.head;
52198
+ while (ind-- > 0 && ret != null) ret = ret.next;
52199
+ return ret;
52200
+ }
52201
+ at(ind) {
52202
+ const it = this.iterator_at(ind);
52203
+ return it != null ? it.elt : null;
52204
+ }
52205
+ };
52206
+ ZNPList.prototype.inlined_add = ZNPList.prototype.add;
52207
+ ZNPList.prototype.inlined_insert = ZNPList.prototype.insert;
52208
+ ZNPList.prototype.inlined_pop = ZNPList.prototype.pop;
52209
+ ZNPList.prototype.inlined_pop_unsafe = ZNPList.prototype.pop_unsafe;
52210
+ ZNPList.prototype.inlined_erase = ZNPList.prototype.erase;
52211
+ ZNPList.prototype.inlined_remove = ZNPList.prototype.remove;
52212
+ ZNPList.prototype.inlined_try_remove = ZNPList.prototype.try_remove;
52213
+ ZNPList.prototype.inlined_clear = ZNPList.prototype.clear;
52214
+ ZNPList.prototype.inlined_has = ZNPList.prototype.has;
52215
+
52216
+ // src/native/util/ZPP_Set.ts
52217
+ var ZPP_Set = class {
52218
+ constructor() {
52219
+ this.colour = 0;
52220
+ this.parent = null;
52221
+ this.next = null;
52222
+ this.prev = null;
52223
+ this.data = null;
52224
+ this.swapped = null;
52225
+ this.lt = null;
52226
+ }
52227
+ _allocNode() {
52228
+ const Cls = this.constructor;
52229
+ let x;
52230
+ if (Cls.zpp_pool == null) {
52231
+ x = new Cls();
52232
+ } else {
52233
+ x = Cls.zpp_pool;
52234
+ Cls.zpp_pool = x.next;
52235
+ x.next = null;
52236
+ }
52237
+ return x;
52238
+ }
52239
+ _freeNode(node) {
52240
+ const Cls = this.constructor;
52241
+ node.data = null;
52242
+ node.lt = null;
52243
+ node.swapped = null;
52244
+ node.next = Cls.zpp_pool;
52245
+ Cls.zpp_pool = node;
52246
+ }
52247
+ free() {
52248
+ this.data = null;
52249
+ this.lt = null;
52250
+ this.swapped = null;
52251
+ }
52252
+ alloc() {
52253
+ }
52254
+ verify() {
52255
+ if (!this.empty()) {
52256
+ let set_ite = this.parent;
52257
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52258
+ while (set_ite != null) {
52259
+ const i = set_ite.data;
52260
+ let prei = true;
52261
+ if (!this.empty()) {
52262
+ let set_ite1 = this.parent;
52263
+ while (set_ite1.prev != null) set_ite1 = set_ite1.prev;
52264
+ while (set_ite1 != null) {
52265
+ const j = set_ite1.data;
52266
+ if (!prei) {
52267
+ if (!this.lt(i, j) && this.lt(j, i)) return false;
52268
+ } else if (i == j) {
52269
+ prei = false;
52270
+ } else if (!this.lt(j, i) && this.lt(i, j)) return false;
52271
+ if (set_ite1.next != null) {
52272
+ set_ite1 = set_ite1.next;
52273
+ while (set_ite1.prev != null) set_ite1 = set_ite1.prev;
52274
+ } else {
52275
+ while (set_ite1.parent != null && set_ite1 == set_ite1.parent.next)
52276
+ set_ite1 = set_ite1.parent;
52277
+ set_ite1 = set_ite1.parent;
52278
+ }
52279
+ }
52280
+ }
52281
+ if (set_ite.next != null) {
52282
+ set_ite = set_ite.next;
52283
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52284
+ } else {
52285
+ while (set_ite.parent != null && set_ite == set_ite.parent.next)
52286
+ set_ite = set_ite.parent;
52287
+ set_ite = set_ite.parent;
51648
52288
  }
51649
52289
  }
51650
52290
  }
51651
- return a;
51652
- };
51653
- Reflect.copy = function(o) {
51654
- if (o == null) {
51655
- return null;
52291
+ return true;
52292
+ }
52293
+ empty() {
52294
+ return this.parent == null;
52295
+ }
52296
+ singular() {
52297
+ if (this.parent != null && this.parent.prev == null) return this.parent.next == null;
52298
+ return false;
52299
+ }
52300
+ size() {
52301
+ let ret = 0;
52302
+ if (!this.empty()) {
52303
+ let set_ite = this.parent;
52304
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52305
+ while (set_ite != null) {
52306
+ ++ret;
52307
+ if (set_ite.next != null) {
52308
+ set_ite = set_ite.next;
52309
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52310
+ } else {
52311
+ while (set_ite.parent != null && set_ite == set_ite.parent.next)
52312
+ set_ite = set_ite.parent;
52313
+ set_ite = set_ite.parent;
52314
+ }
52315
+ }
51656
52316
  }
51657
- var o2 = {};
51658
- var _g = 0;
51659
- var _g1 = Reflect.fields(o);
51660
- while (_g < _g1.length) {
51661
- var f = _g1[_g];
51662
- ++_g;
51663
- o2[f] = Reflect.field(o, f);
52317
+ return ret;
52318
+ }
52319
+ has(obj) {
52320
+ return this.find(obj) != null;
52321
+ }
52322
+ find(obj) {
52323
+ let cur = this.parent;
52324
+ while (cur != null && cur.data != obj) {
52325
+ if (this.lt(obj, cur.data)) cur = cur.prev;
52326
+ else cur = cur.next;
51664
52327
  }
51665
- return o2;
51666
- };
51667
- Reflect.prototype.__class__ = Reflect;
51668
- Std = $hxClasses["Std"] = function() {
51669
- };
51670
- Std.__name__ = ["Std"];
51671
- Std.string = function(s) {
51672
- return js.Boot.__string_rec(s, "");
51673
- };
51674
- Std.prototype.__class__ = Std;
51675
- StringTools = $hxClasses["StringTools"] = function() {
51676
- };
51677
- StringTools.__name__ = ["StringTools"];
51678
- StringTools.hex = function(n, digits) {
51679
- var s = "";
51680
- var hexChars = "0123456789ABCDEF";
52328
+ return cur;
52329
+ }
52330
+ has_weak(obj) {
52331
+ return this.find_weak(obj) != null;
52332
+ }
52333
+ find_weak(obj) {
52334
+ let cur = this.parent;
52335
+ while (cur != null) {
52336
+ if (this.lt(obj, cur.data)) cur = cur.prev;
52337
+ else if (this.lt(cur.data, obj)) cur = cur.next;
52338
+ else break;
52339
+ }
52340
+ return cur;
52341
+ }
52342
+ lower_bound(obj) {
52343
+ let ret = null;
52344
+ if (!this.empty()) {
52345
+ let set_ite = this.parent;
52346
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52347
+ while (set_ite != null) {
52348
+ if (!this.lt(set_ite.data, obj)) {
52349
+ ret = set_ite.data;
52350
+ break;
52351
+ }
52352
+ if (set_ite.next != null) {
52353
+ set_ite = set_ite.next;
52354
+ while (set_ite.prev != null) set_ite = set_ite.prev;
52355
+ } else {
52356
+ while (set_ite.parent != null && set_ite == set_ite.parent.next)
52357
+ set_ite = set_ite.parent;
52358
+ set_ite = set_ite.parent;
52359
+ }
52360
+ }
52361
+ }
52362
+ return ret;
52363
+ }
52364
+ first() {
52365
+ let cur = this.parent;
52366
+ while (cur.prev != null) cur = cur.prev;
52367
+ return cur.data;
52368
+ }
52369
+ pop_front() {
52370
+ let cur = this.parent;
52371
+ while (cur.prev != null) cur = cur.prev;
52372
+ const ret = cur.data;
52373
+ this.remove_node(cur);
52374
+ return ret;
52375
+ }
52376
+ remove(obj) {
52377
+ this.remove_node(this.find(obj));
52378
+ }
52379
+ successor_node(cur) {
52380
+ if (cur.next != null) {
52381
+ cur = cur.next;
52382
+ while (cur.prev != null) cur = cur.prev;
52383
+ } else {
52384
+ let pre = cur;
52385
+ cur = cur.parent;
52386
+ while (cur != null && cur.prev != pre) {
52387
+ pre = cur;
52388
+ cur = cur.parent;
52389
+ }
52390
+ }
52391
+ return cur;
52392
+ }
52393
+ predecessor_node(cur) {
52394
+ if (cur.prev != null) {
52395
+ cur = cur.prev;
52396
+ while (cur.next != null) cur = cur.next;
52397
+ } else {
52398
+ let pre = cur;
52399
+ cur = cur.parent;
52400
+ while (cur != null && cur.next != pre) {
52401
+ pre = cur;
52402
+ cur = cur.parent;
52403
+ }
52404
+ }
52405
+ return cur;
52406
+ }
52407
+ successor(obj) {
52408
+ const node = this.successor_node(this.find(obj));
52409
+ return node == null ? null : node.data;
52410
+ }
52411
+ predecessor(obj) {
52412
+ const node = this.predecessor_node(this.find(obj));
52413
+ return node == null ? null : node.data;
52414
+ }
52415
+ remove_node(cur) {
52416
+ if (cur.next != null && cur.prev != null) {
52417
+ let sm = cur.next;
52418
+ while (sm.prev != null) sm = sm.prev;
52419
+ const t = cur.data;
52420
+ cur.data = sm.data;
52421
+ sm.data = t;
52422
+ if (this.swapped != null) this.swapped(cur.data, sm.data);
52423
+ cur = sm;
52424
+ }
52425
+ const child = cur.prev == null ? cur.next : cur.prev;
52426
+ if (cur.colour == 1) {
52427
+ if (cur.prev != null || cur.next != null) {
52428
+ child.colour = 1;
52429
+ } else if (cur.parent != null) {
52430
+ let parent = cur.parent;
52431
+ while (true) {
52432
+ parent.colour++;
52433
+ parent.prev.colour--;
52434
+ parent.next.colour--;
52435
+ const child1 = parent.prev;
52436
+ if (child1.colour == -1) {
52437
+ this.__fix_neg_red(child1);
52438
+ break;
52439
+ } else if (child1.colour == 0) {
52440
+ if (child1.prev != null && child1.prev.colour == 0) {
52441
+ this.__fix_dbl_red(child1.prev);
52442
+ break;
52443
+ }
52444
+ if (child1.next != null && child1.next.colour == 0) {
52445
+ this.__fix_dbl_red(child1.next);
52446
+ break;
52447
+ }
52448
+ }
52449
+ const child2 = parent.next;
52450
+ if (child2.colour == -1) {
52451
+ this.__fix_neg_red(child2);
52452
+ break;
52453
+ } else if (child2.colour == 0) {
52454
+ if (child2.prev != null && child2.prev.colour == 0) {
52455
+ this.__fix_dbl_red(child2.prev);
52456
+ break;
52457
+ }
52458
+ if (child2.next != null && child2.next.colour == 0) {
52459
+ this.__fix_dbl_red(child2.next);
52460
+ break;
52461
+ }
52462
+ }
52463
+ if (parent.colour == 2) {
52464
+ if (parent.parent == null) {
52465
+ parent.colour = 1;
52466
+ } else {
52467
+ parent = parent.parent;
52468
+ continue;
52469
+ }
52470
+ }
52471
+ break;
52472
+ }
52473
+ }
52474
+ }
52475
+ const par = cur.parent;
52476
+ if (par == null) this.parent = child;
52477
+ else if (par.prev == cur) par.prev = child;
52478
+ else par.next = child;
52479
+ if (child != null) child.parent = par;
52480
+ cur.parent = cur.prev = cur.next = null;
52481
+ this._freeNode(cur);
52482
+ }
52483
+ clear() {
52484
+ if (this.parent != null) {
52485
+ let cur = this.parent;
52486
+ while (cur != null) {
52487
+ if (cur.prev != null) cur = cur.prev;
52488
+ else if (cur.next != null) cur = cur.next;
52489
+ else {
52490
+ const ret = cur.parent;
52491
+ if (ret != null) {
52492
+ if (cur == ret.prev) ret.prev = null;
52493
+ else ret.next = null;
52494
+ cur.parent = null;
52495
+ }
52496
+ this._freeNode(cur);
52497
+ cur = ret;
52498
+ }
52499
+ }
52500
+ this.parent = null;
52501
+ }
52502
+ }
52503
+ clear_with(lambda) {
52504
+ if (this.parent == null) return;
52505
+ let cur = this.parent;
52506
+ while (cur != null) {
52507
+ if (cur.prev != null) cur = cur.prev;
52508
+ else if (cur.next != null) cur = cur.next;
52509
+ else {
52510
+ lambda(cur.data);
52511
+ const ret = cur.parent;
52512
+ if (ret != null) {
52513
+ if (cur == ret.prev) ret.prev = null;
52514
+ else ret.next = null;
52515
+ cur.parent = null;
52516
+ }
52517
+ this._freeNode(cur);
52518
+ cur = ret;
52519
+ }
52520
+ }
52521
+ this.parent = null;
52522
+ }
52523
+ clear_node(node, lambda) {
52524
+ lambda(node.data);
52525
+ const ret = node.parent;
52526
+ if (ret != null) {
52527
+ if (node == ret.prev) ret.prev = null;
52528
+ else ret.next = null;
52529
+ node.parent = null;
52530
+ }
52531
+ this._freeNode(node);
52532
+ return ret;
52533
+ }
52534
+ __fix_neg_red(negred) {
52535
+ const parent = negred.parent;
52536
+ let child;
52537
+ if (parent.prev == negred) {
52538
+ const nl = negred.prev;
52539
+ const nr = negred.next;
52540
+ const trl = nr.prev;
52541
+ const trr = nr.next;
52542
+ nl.colour = 0;
52543
+ negred.colour = parent.colour = 1;
52544
+ negred.next = trl;
52545
+ if (trl != null) trl.parent = negred;
52546
+ const t = parent.data;
52547
+ parent.data = nr.data;
52548
+ nr.data = t;
52549
+ if (this.swapped != null) this.swapped(parent.data, nr.data);
52550
+ nr.prev = trr;
52551
+ if (trr != null) trr.parent = nr;
52552
+ nr.next = parent.next;
52553
+ if (parent.next != null) parent.next.parent = nr;
52554
+ parent.next = nr;
52555
+ if (nr != null) nr.parent = parent;
52556
+ child = nl;
52557
+ } else {
52558
+ const nl1 = negred.next;
52559
+ const nr1 = negred.prev;
52560
+ const trl1 = nr1.next;
52561
+ const trr1 = nr1.prev;
52562
+ nl1.colour = 0;
52563
+ negred.colour = parent.colour = 1;
52564
+ negred.prev = trl1;
52565
+ if (trl1 != null) trl1.parent = negred;
52566
+ const t1 = parent.data;
52567
+ parent.data = nr1.data;
52568
+ nr1.data = t1;
52569
+ if (this.swapped != null) this.swapped(parent.data, nr1.data);
52570
+ nr1.next = trr1;
52571
+ if (trr1 != null) trr1.parent = nr1;
52572
+ nr1.prev = parent.prev;
52573
+ if (parent.prev != null) parent.prev.parent = nr1;
52574
+ parent.prev = nr1;
52575
+ if (nr1 != null) nr1.parent = parent;
52576
+ child = nl1;
52577
+ }
52578
+ if (child.prev != null && child.prev.colour == 0) this.__fix_dbl_red(child.prev);
52579
+ else if (child.next != null && child.next.colour == 0) this.__fix_dbl_red(child.next);
52580
+ }
52581
+ __fix_dbl_red(x) {
51681
52582
  while (true) {
51682
- s = hexChars.charAt(n & 15) + s;
51683
- n >>>= 4;
51684
- if (!(n > 0)) {
52583
+ const par = x.parent;
52584
+ const g = par.parent;
52585
+ if (g == null) {
52586
+ par.colour = 1;
51685
52587
  break;
51686
52588
  }
52589
+ let n1, n2, n3;
52590
+ let t1, t2;
52591
+ let t3, t4;
52592
+ if (par == g.prev) {
52593
+ n3 = g;
52594
+ t4 = g.next;
52595
+ if (x == par.prev) {
52596
+ n1 = x;
52597
+ n2 = par;
52598
+ t1 = x.prev;
52599
+ t2 = x.next;
52600
+ t3 = par.next;
52601
+ } else {
52602
+ n1 = par;
52603
+ n2 = x;
52604
+ t1 = par.prev;
52605
+ t2 = x.prev;
52606
+ t3 = x.next;
52607
+ }
52608
+ } else {
52609
+ n1 = g;
52610
+ t1 = g.prev;
52611
+ if (x == par.prev) {
52612
+ n2 = x;
52613
+ n3 = par;
52614
+ t2 = x.prev;
52615
+ t3 = x.next;
52616
+ t4 = par.next;
52617
+ } else {
52618
+ n2 = par;
52619
+ n3 = x;
52620
+ t2 = par.prev;
52621
+ t3 = x.prev;
52622
+ t4 = x.next;
52623
+ }
52624
+ }
52625
+ const par1 = g.parent;
52626
+ if (par1 == null) this.parent = n2;
52627
+ else if (par1.prev == g) par1.prev = n2;
52628
+ else par1.next = n2;
52629
+ if (n2 != null) n2.parent = par1;
52630
+ n1.prev = t1;
52631
+ if (t1 != null) t1.parent = n1;
52632
+ n1.next = t2;
52633
+ if (t2 != null) t2.parent = n1;
52634
+ n2.prev = n1;
52635
+ if (n1 != null) n1.parent = n2;
52636
+ n2.next = n3;
52637
+ if (n3 != null) n3.parent = n2;
52638
+ n3.prev = t3;
52639
+ if (t3 != null) t3.parent = n3;
52640
+ n3.next = t4;
52641
+ if (t4 != null) t4.parent = n3;
52642
+ n2.colour = g.colour - 1;
52643
+ n1.colour = 1;
52644
+ n3.colour = 1;
52645
+ if (n2 == this.parent) {
52646
+ this.parent.colour = 1;
52647
+ } else if (n2.colour == 0 && n2.parent.colour == 0) {
52648
+ x = n2;
52649
+ continue;
52650
+ }
52651
+ break;
51687
52652
  }
51688
- if (digits != null) {
51689
- while (s.length < digits) s = "0" + s;
52653
+ }
52654
+ try_insert_bool(obj) {
52655
+ let x = null;
52656
+ if (this.parent == null) {
52657
+ x = this._allocNode();
52658
+ x.data = obj;
52659
+ this.parent = x;
52660
+ } else {
52661
+ let cur = this.parent;
52662
+ while (true) {
52663
+ if (this.lt(obj, cur.data)) {
52664
+ if (cur.prev == null) {
52665
+ x = this._allocNode();
52666
+ x.data = obj;
52667
+ cur.prev = x;
52668
+ x.parent = cur;
52669
+ break;
52670
+ } else cur = cur.prev;
52671
+ } else if (this.lt(cur.data, obj)) {
52672
+ if (cur.next == null) {
52673
+ x = this._allocNode();
52674
+ x.data = obj;
52675
+ cur.next = x;
52676
+ x.parent = cur;
52677
+ break;
52678
+ } else cur = cur.next;
52679
+ } else break;
52680
+ }
51690
52681
  }
51691
- return s;
51692
- };
51693
- StringTools.prototype.__class__ = StringTools;
51694
- if (typeof js == "undefined") js = {};
51695
- if (!js._Boot) js._Boot = {};
51696
- js._Boot.HaxeError = $hxClasses["js._Boot.HaxeError"] = function(val) {
51697
- Error.call(this);
52682
+ if (x == null) return false;
52683
+ if (x.parent == null) x.colour = 1;
52684
+ else {
52685
+ x.colour = 0;
52686
+ if (x.parent.colour == 0) this.__fix_dbl_red(x);
52687
+ }
52688
+ return true;
52689
+ }
52690
+ try_insert(obj) {
52691
+ let x = null;
52692
+ let cur = null;
52693
+ if (this.parent == null) {
52694
+ x = this._allocNode();
52695
+ x.data = obj;
52696
+ this.parent = x;
52697
+ } else {
52698
+ cur = this.parent;
52699
+ while (true) {
52700
+ if (this.lt(obj, cur.data)) {
52701
+ if (cur.prev == null) {
52702
+ x = this._allocNode();
52703
+ x.data = obj;
52704
+ cur.prev = x;
52705
+ x.parent = cur;
52706
+ break;
52707
+ } else cur = cur.prev;
52708
+ } else if (this.lt(cur.data, obj)) {
52709
+ if (cur.next == null) {
52710
+ x = this._allocNode();
52711
+ x.data = obj;
52712
+ cur.next = x;
52713
+ x.parent = cur;
52714
+ break;
52715
+ } else cur = cur.next;
52716
+ } else break;
52717
+ }
52718
+ }
52719
+ if (x == null) return cur;
52720
+ if (x.parent == null) x.colour = 1;
52721
+ else {
52722
+ x.colour = 0;
52723
+ if (x.parent.colour == 0) this.__fix_dbl_red(x);
52724
+ }
52725
+ return x;
52726
+ }
52727
+ insert(obj) {
52728
+ const x = this._allocNode();
52729
+ x.data = obj;
52730
+ if (this.parent == null) {
52731
+ this.parent = x;
52732
+ } else {
52733
+ let cur = this.parent;
52734
+ while (true) {
52735
+ if (this.lt(x.data, cur.data)) {
52736
+ if (cur.prev == null) {
52737
+ cur.prev = x;
52738
+ x.parent = cur;
52739
+ break;
52740
+ } else cur = cur.prev;
52741
+ } else if (cur.next == null) {
52742
+ cur.next = x;
52743
+ x.parent = cur;
52744
+ break;
52745
+ } else cur = cur.next;
52746
+ }
52747
+ }
52748
+ if (x.parent == null) x.colour = 1;
52749
+ else {
52750
+ x.colour = 0;
52751
+ if (x.parent.colour == 0) this.__fix_dbl_red(x);
52752
+ }
52753
+ return x;
52754
+ }
52755
+ };
52756
+ ZPP_Set.zpp_pool = null;
52757
+
52758
+ // src/core/HaxeShims.ts
52759
+ var $hxClasses = {};
52760
+ var Reflect = function() {
52761
+ };
52762
+ Reflect.__name__ = ["Reflect"];
52763
+ Reflect.field = function(o, field) {
52764
+ try {
52765
+ return o[field];
52766
+ } catch (_e) {
52767
+ return null;
52768
+ }
52769
+ };
52770
+ Reflect.fields = function(o) {
52771
+ const a = [];
52772
+ if (o != null) {
52773
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
52774
+ for (const f in o) {
52775
+ if (f != "__id__" && f != "hx__closures__" && hasOwnProperty.call(o, f)) {
52776
+ a.push(f);
52777
+ }
52778
+ }
52779
+ }
52780
+ return a;
52781
+ };
52782
+ Reflect.copy = function(o) {
52783
+ if (o == null) return null;
52784
+ const o2 = {};
52785
+ const fields = Reflect.fields(o);
52786
+ for (let i = 0; i < fields.length; i++) {
52787
+ o2[fields[i]] = Reflect.field(o, fields[i]);
52788
+ }
52789
+ return o2;
52790
+ };
52791
+ Reflect.prototype.__class__ = Reflect;
52792
+ var Std = function() {
52793
+ };
52794
+ Std.__name__ = ["Std"];
52795
+ Std.string = function(s) {
52796
+ return jsBoot.__string_rec(s, "");
52797
+ };
52798
+ Std.prototype.__class__ = Std;
52799
+ var StringTools = function() {
52800
+ };
52801
+ StringTools.__name__ = ["StringTools"];
52802
+ StringTools.hex = function(n, digits) {
52803
+ let s = "";
52804
+ const hexChars = "0123456789ABCDEF";
52805
+ do {
52806
+ s = hexChars.charAt(n & 15) + s;
52807
+ n >>>= 4;
52808
+ } while (n > 0);
52809
+ if (digits != null) {
52810
+ while (s.length < digits) s = "0" + s;
52811
+ }
52812
+ return s;
52813
+ };
52814
+ StringTools.prototype.__class__ = StringTools;
52815
+ var HaxeError = class _HaxeError extends Error {
52816
+ constructor(val) {
52817
+ super();
51698
52818
  this.val = val;
51699
52819
  if (Error.captureStackTrace) {
51700
- Error.captureStackTrace(this, js._Boot.HaxeError);
52820
+ Error.captureStackTrace(this, _HaxeError);
51701
52821
  }
51702
- };
51703
- js._Boot.HaxeError.__name__ = ["js", "_Boot", "HaxeError"];
51704
- js._Boot.HaxeError.__super__ = Error;
51705
- for (var k in Error.prototype)
51706
- js._Boot.HaxeError.prototype[k] = Error.prototype[k];
51707
- js._Boot.HaxeError.prototype.val = null;
51708
- js._Boot.HaxeError.prototype.__class__ = js._Boot.HaxeError;
51709
- js.Boot = $hxClasses["js.Boot"] = function() {
51710
- };
51711
- js.Boot.__name__ = ["js", "Boot"];
51712
- js.Boot.__string_rec = function(o, s) {
51713
- if (o == null) {
51714
- return "null";
51715
- }
51716
- if (s.length >= 5) {
51717
- return "<...>";
51718
- }
51719
- var t = typeof o;
51720
- if (t == "function" && (o.__name__ || o.__ename__)) {
51721
- t = "object";
51722
- }
51723
- switch (t) {
51724
- case "function":
51725
- return "<function>";
51726
- case "object":
51727
- if (o instanceof Array) {
51728
- var str = "[";
51729
- s += " ";
51730
- var _g3 = 0;
51731
- var _g11 = o.length;
51732
- while (_g3 < _g11) {
51733
- var i = _g3++;
51734
- str += (i > 0 ? "," : "") + js.Boot.__string_rec(o[i], s);
51735
- }
51736
- str += "]";
51737
- return str;
51738
- }
51739
- var tostr;
52822
+ }
52823
+ };
52824
+ HaxeError.__name__ = ["js", "_Boot", "HaxeError"];
52825
+ HaxeError.__super__ = Error;
52826
+ HaxeError.prototype.__class__ = HaxeError;
52827
+ var jsBoot = function() {
52828
+ };
52829
+ jsBoot.__name__ = ["js", "Boot"];
52830
+ jsBoot.__string_rec = function(o, s) {
52831
+ if (o == null) return "null";
52832
+ if (s.length >= 5) return "<...>";
52833
+ const t = typeof o;
52834
+ const effectiveType = t == "function" && (o.__name__ || o.__ename__) ? "object" : t;
52835
+ switch (effectiveType) {
52836
+ case "function":
52837
+ return "<function>";
52838
+ case "object":
52839
+ if (o instanceof Array) {
52840
+ let str = "[";
52841
+ s += " ";
52842
+ for (let i = 0; i < o.length; i++) {
52843
+ str += (i > 0 ? "," : "") + jsBoot.__string_rec(o[i], s);
52844
+ }
52845
+ str += "]";
52846
+ return str;
52847
+ }
52848
+ {
52849
+ let tostr;
51740
52850
  try {
51741
52851
  tostr = o.toString;
51742
- } catch (e1) {
51743
- var e2 = e1 instanceof js._Boot.HaxeError ? e1.val : e1;
52852
+ } catch (_e) {
51744
52853
  return "???";
51745
52854
  }
51746
52855
  if (tostr != null && tostr != Object.toString && typeof tostr == "function") {
51747
- var s2 = o.toString();
51748
- if (s2 != "[object Object]") {
51749
- return s2;
51750
- }
52856
+ const s2 = o.toString();
52857
+ if (s2 != "[object Object]") return s2;
51751
52858
  }
51752
- var str1 = "{\n";
52859
+ let str1 = "{\n";
51753
52860
  s += " ";
51754
- var hasp = o.hasOwnProperty != null;
51755
- var k2 = null;
51756
- for (k2 in o) {
51757
- if (hasp && !o.hasOwnProperty(k2)) {
51758
- continue;
51759
- }
51760
- if (k2 == "prototype" || k2 == "__class__" || k2 == "__super__" || k2 == "__interfaces__" || k2 == "__properties__") {
52861
+ const hasp = o.hasOwnProperty != null;
52862
+ for (const k in o) {
52863
+ if (hasp && !o.hasOwnProperty(k)) continue;
52864
+ if (k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__" || k == "__properties__")
51761
52865
  continue;
51762
- }
51763
- if (str1.length != 2) {
51764
- str1 += ", \n";
51765
- }
51766
- str1 += s + k2 + " : " + js.Boot.__string_rec(o[k2], s);
52866
+ if (str1.length != 2) str1 += ", \n";
52867
+ str1 += s + k + " : " + jsBoot.__string_rec(o[k], s);
51767
52868
  }
51768
52869
  s = s.substring(1);
51769
52870
  str1 += "\n" + s + "}";
51770
52871
  return str1;
51771
- case "string":
51772
- return o;
51773
- default:
51774
- return String(o);
51775
- }
51776
- };
51777
- js.Boot.__toStr = null;
51778
- js.Boot.prototype.__class__ = js.Boot;
52872
+ }
52873
+ case "string":
52874
+ return o;
52875
+ default:
52876
+ return String(o);
52877
+ }
52878
+ };
52879
+ jsBoot.__toStr = null;
52880
+ jsBoot.prototype.__class__ = jsBoot;
52881
+ var js = {
52882
+ _Boot: { HaxeError },
52883
+ Boot: jsBoot
52884
+ };
52885
+ function $estr() {
52886
+ return jsBoot.__string_rec(this, "");
52887
+ }
52888
+ $hxClasses["Reflect"] = Reflect;
52889
+ $hxClasses["Std"] = Std;
52890
+ $hxClasses["StringTools"] = StringTools;
52891
+ $hxClasses["js._Boot.HaxeError"] = HaxeError;
52892
+ $hxClasses["js.Boot"] = jsBoot;
52893
+
52894
+ // src/core/nape-compiled.js
52895
+ var _nape;
52896
+ var define = function(factory) {
52897
+ _nape = factory();
52898
+ };
52899
+ define(function() {
52900
+ "use strict";
52901
+ var nape67, zpp_nape, sandbox;
52902
+ var $hxClasses2 = $hxClasses;
52903
+ var $estr2 = $estr;
52904
+ var js2 = js;
52905
+ var Reflect2 = Reflect;
52906
+ var Std2 = Std;
52907
+ var StringTools2 = StringTools;
51779
52908
  if (typeof nape67 == "undefined") nape67 = {};
51780
- nape67.Config = $hxClasses["nape.Config"] = function() {
52909
+ nape67.Config = $hxClasses2["nape.Config"] = function() {
51781
52910
  };
51782
52911
  nape67.Config.__name__ = ["nape", "Config"];
51783
52912
  nape67.Config.prototype.__class__ = nape67.Config;
@@ -51785,7 +52914,7 @@ define(function() {
51785
52914
  nape67.callbacks.Callback = function() {
51786
52915
  this.zpp_inner = null;
51787
52916
  if (!zpp_nape.callbacks.ZPP_Callback.internal) {
51788
- throw new js._Boot.HaxeError("Error: Callback cannot be instantiated derp!");
52917
+ throw new js2._Boot.HaxeError("Error: Callback cannot be instantiated derp!");
51789
52918
  }
51790
52919
  };
51791
52920
  nape67.callbacks.Callback.__name__ = ["nape", "callbacks", "Callback"];
@@ -51800,7 +52929,7 @@ define(function() {
51800
52929
  nape67.callbacks.Listener = function() {
51801
52930
  this.zpp_inner = null;
51802
52931
  if (!zpp_nape.callbacks.ZPP_Listener.internal) {
51803
- throw new js._Boot.HaxeError("Error: Cannot instantiate Listener derp!");
52932
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate Listener derp!");
51804
52933
  }
51805
52934
  };
51806
52935
  nape67.callbacks.Listener.__name__ = ["nape", "callbacks", "Listener"];
@@ -51808,7 +52937,7 @@ define(function() {
51808
52937
  nape67.callbacks.Listener.prototype.__class__ = nape67.callbacks.Listener;
51809
52938
  nape67.callbacks.CbEvent = function() {
51810
52939
  if (!zpp_nape.util.ZPP_Flags.internal) {
51811
- throw new js._Boot.HaxeError("Error: Cannot instantiate CbEvent derp!");
52940
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate CbEvent derp!");
51812
52941
  }
51813
52942
  };
51814
52943
  nape67.callbacks.CbEvent.__name__ = ["nape", "callbacks", "CbEvent"];
@@ -51836,7 +52965,7 @@ define(function() {
51836
52965
  nape67.callbacks.InteractionCallback.prototype.__class__ = nape67.callbacks.InteractionCallback;
51837
52966
  nape67.callbacks.ListenerType = function() {
51838
52967
  if (!zpp_nape.util.ZPP_Flags.internal) {
51839
- throw new js._Boot.HaxeError(
52968
+ throw new js2._Boot.HaxeError(
51840
52969
  "Error: Cannot instantiate ListenerType derp!"
51841
52970
  );
51842
52971
  }
@@ -51872,48 +53001,48 @@ define(function() {
51872
53001
  nape67.callbacks.PreCallback.prototype = Object.create(nape67.callbacks.Callback.prototype);
51873
53002
  nape67.callbacks.PreCallback.prototype.__class__ = nape67.callbacks.PreCallback;
51874
53003
  if (!nape67.constraint) nape67.constraint = {};
51875
- nape67.constraint.Constraint = $hxClasses["nape.constraint.Constraint"] = function() {
53004
+ nape67.constraint.Constraint = $hxClasses2["nape.constraint.Constraint"] = function() {
51876
53005
  };
51877
53006
  nape67.constraint.Constraint.__name__ = ["nape", "constraint", "Constraint"];
51878
53007
  nape67.constraint.Constraint.prototype.__class__ = nape67.constraint.Constraint;
51879
- nape67.constraint.AngleJoint = $hxClasses["nape.constraint.AngleJoint"] = function() {
53008
+ nape67.constraint.AngleJoint = $hxClasses2["nape.constraint.AngleJoint"] = function() {
51880
53009
  };
51881
53010
  nape67.constraint.AngleJoint.__name__ = ["nape", "constraint", "AngleJoint"];
51882
53011
  nape67.constraint.AngleJoint.prototype.__class__ = nape67.constraint.AngleJoint;
51883
- nape67.constraint.DistanceJoint = $hxClasses["nape.constraint.DistanceJoint"] = function() {
53012
+ nape67.constraint.DistanceJoint = $hxClasses2["nape.constraint.DistanceJoint"] = function() {
51884
53013
  };
51885
53014
  nape67.constraint.DistanceJoint.__name__ = ["nape", "constraint", "DistanceJoint"];
51886
53015
  nape67.constraint.DistanceJoint.prototype.__class__ = nape67.constraint.DistanceJoint;
51887
- nape67.constraint.LineJoint = $hxClasses["nape.constraint.LineJoint"] = function() {
53016
+ nape67.constraint.LineJoint = $hxClasses2["nape.constraint.LineJoint"] = function() {
51888
53017
  };
51889
53018
  nape67.constraint.LineJoint.__name__ = ["nape", "constraint", "LineJoint"];
51890
53019
  nape67.constraint.LineJoint.prototype.__class__ = nape67.constraint.LineJoint;
51891
- nape67.constraint.MotorJoint = $hxClasses["nape.constraint.MotorJoint"] = function() {
53020
+ nape67.constraint.MotorJoint = $hxClasses2["nape.constraint.MotorJoint"] = function() {
51892
53021
  };
51893
53022
  nape67.constraint.MotorJoint.__name__ = ["nape", "constraint", "MotorJoint"];
51894
53023
  nape67.constraint.MotorJoint.prototype.__class__ = nape67.constraint.MotorJoint;
51895
- nape67.constraint.PivotJoint = $hxClasses["nape.constraint.PivotJoint"] = function() {
53024
+ nape67.constraint.PivotJoint = $hxClasses2["nape.constraint.PivotJoint"] = function() {
51896
53025
  };
51897
53026
  nape67.constraint.PivotJoint.__name__ = ["nape", "constraint", "PivotJoint"];
51898
53027
  nape67.constraint.PivotJoint.prototype.__class__ = nape67.constraint.PivotJoint;
51899
- nape67.constraint.PulleyJoint = $hxClasses["nape.constraint.PulleyJoint"] = function() {
53028
+ nape67.constraint.PulleyJoint = $hxClasses2["nape.constraint.PulleyJoint"] = function() {
51900
53029
  };
51901
53030
  nape67.constraint.PulleyJoint.__name__ = ["nape", "constraint", "PulleyJoint"];
51902
53031
  nape67.constraint.PulleyJoint.__super__ = nape67.constraint.Constraint;
51903
53032
  nape67.constraint.PulleyJoint.prototype.__class__ = nape67.constraint.PulleyJoint;
51904
- nape67.constraint.UserConstraint = $hxClasses["nape.constraint.UserConstraint"] = function() {
53033
+ nape67.constraint.UserConstraint = $hxClasses2["nape.constraint.UserConstraint"] = function() {
51905
53034
  };
51906
53035
  nape67.constraint.UserConstraint.__name__ = ["nape", "constraint", "UserConstraint"];
51907
53036
  nape67.constraint.UserConstraint.prototype.__class__ = nape67.constraint.UserConstraint;
51908
- nape67.constraint.WeldJoint = $hxClasses["nape.constraint.WeldJoint"] = function() {
53037
+ nape67.constraint.WeldJoint = $hxClasses2["nape.constraint.WeldJoint"] = function() {
51909
53038
  };
51910
53039
  nape67.constraint.WeldJoint.__name__ = ["nape", "constraint", "WeldJoint"];
51911
53040
  nape67.constraint.WeldJoint.prototype.__class__ = nape67.constraint.WeldJoint;
51912
53041
  if (!nape67.dynamics) nape67.dynamics = {};
51913
- nape67.dynamics.Arbiter = $hxClasses["nape.dynamics.Arbiter"] = function() {
53042
+ nape67.dynamics.Arbiter = $hxClasses2["nape.dynamics.Arbiter"] = function() {
51914
53043
  this.zpp_inner = null;
51915
53044
  if (!zpp_nape.dynamics.ZPP_Arbiter.internal) {
51916
- throw new js._Boot.HaxeError("Error: Cannot instantiate Arbiter derp!");
53045
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate Arbiter derp!");
51917
53046
  }
51918
53047
  };
51919
53048
  nape67.dynamics.Arbiter.__name__ = ["nape", "dynamics", "Arbiter"];
@@ -51925,16 +53054,16 @@ define(function() {
51925
53054
  nape67.dynamics.ArbiterList.prototype.zpp_inner = null;
51926
53055
  nape67.dynamics.ArbiterType = function() {
51927
53056
  if (!zpp_nape.util.ZPP_Flags.internal) {
51928
- throw new js._Boot.HaxeError(
53057
+ throw new js2._Boot.HaxeError(
51929
53058
  "Error: Cannot instantiate ArbiterType derp!"
51930
53059
  );
51931
53060
  }
51932
53061
  };
51933
53062
  nape67.dynamics.ArbiterType.__name__ = ["nape", "dynamics", "ArbiterType"];
51934
53063
  nape67.dynamics.ArbiterType.prototype.__class__ = nape67.dynamics.ArbiterType;
51935
- nape67.dynamics.CollisionArbiter = $hxClasses["nape.dynamics.CollisionArbiter"] = function() {
53064
+ nape67.dynamics.CollisionArbiter = $hxClasses2["nape.dynamics.CollisionArbiter"] = function() {
51936
53065
  if (!zpp_nape.dynamics.ZPP_Arbiter.internal) {
51937
- throw new js._Boot.HaxeError(
53066
+ throw new js2._Boot.HaxeError(
51938
53067
  "Error: Cannot instantiate CollisionArbiter derp!"
51939
53068
  );
51940
53069
  }
@@ -51948,12 +53077,12 @@ define(function() {
51948
53077
  nape67.dynamics.CollisionArbiter.__super__ = nape67.dynamics.Arbiter;
51949
53078
  for (var k in nape67.dynamics.Arbiter.prototype)
51950
53079
  nape67.dynamics.CollisionArbiter.prototype[k] = nape67.dynamics.Arbiter.prototype[k];
51951
- nape67.dynamics.ContactIterator = $hxClasses["nape.dynamics.ContactIterator"] = function() {
53080
+ nape67.dynamics.ContactIterator = $hxClasses2["nape.dynamics.ContactIterator"] = function() {
51952
53081
  };
51953
53082
  nape67.dynamics.ContactIterator.__name__ = ["nape", "dynamics", "ContactIterator"];
51954
53083
  nape67.dynamics.ContactIterator.zpp_pool = null;
51955
53084
  nape67.dynamics.ContactIterator.prototype.__class__ = nape67.dynamics.ContactIterator;
51956
- nape67.dynamics.ContactList = $hxClasses["nape.dynamics.ContactList"] = function() {
53085
+ nape67.dynamics.ContactList = $hxClasses2["nape.dynamics.ContactList"] = function() {
51957
53086
  this.zpp_inner = null;
51958
53087
  this.zpp_inner = new zpp_nape.util.ZPP_ContactList();
51959
53088
  this.zpp_inner.outer = this;
@@ -51961,9 +53090,9 @@ define(function() {
51961
53090
  nape67.dynamics.ContactList.__name__ = ["nape", "dynamics", "ContactList"];
51962
53091
  nape67.dynamics.ContactList.prototype.zpp_inner = null;
51963
53092
  nape67.dynamics.ContactList.prototype.__class__ = nape67.dynamics.ContactList;
51964
- nape67.dynamics.FluidArbiter = $hxClasses["nape.dynamics.FluidArbiter"] = function() {
53093
+ nape67.dynamics.FluidArbiter = $hxClasses2["nape.dynamics.FluidArbiter"] = function() {
51965
53094
  if (!zpp_nape.dynamics.ZPP_Arbiter.internal) {
51966
- throw new js._Boot.HaxeError(
53095
+ throw new js2._Boot.HaxeError(
51967
53096
  "Error: Cannot instantiate FluidArbiter derp!"
51968
53097
  );
51969
53098
  }
@@ -51974,26 +53103,26 @@ define(function() {
51974
53103
  for (var k in nape67.dynamics.Arbiter.prototype)
51975
53104
  nape67.dynamics.FluidArbiter.prototype[k] = nape67.dynamics.Arbiter.prototype[k];
51976
53105
  if (!nape67.geom) nape67.geom = {};
51977
- nape67.geom.Geom = $hxClasses["nape.geom.Geom"] = function() {
53106
+ nape67.geom.Geom = $hxClasses2["nape.geom.Geom"] = function() {
51978
53107
  };
51979
53108
  nape67.geom.Geom.__name__ = ["nape", "geom", "Geom"];
51980
53109
  nape67.geom.Geom.prototype.__class__ = nape67.geom.Geom;
51981
- nape67.geom.GeomVertexIterator = $hxClasses["nape.geom.GeomVertexIterator"] = function() {
53110
+ nape67.geom.GeomVertexIterator = $hxClasses2["nape.geom.GeomVertexIterator"] = function() {
51982
53111
  };
51983
53112
  nape67.geom.GeomVertexIterator.__name__ = ["nape", "geom", "GeomVertexIterator"];
51984
53113
  nape67.geom.GeomVertexIterator.prototype.zpp_inner = null;
51985
53114
  nape67.geom.GeomVertexIterator.prototype.__class__ = nape67.geom.GeomVertexIterator;
51986
53115
  nape67.geom.GeomVertexIterator;
51987
- nape67.geom.Ray = $hxClasses["nape.geom.Ray"] = function() {
53116
+ nape67.geom.Ray = $hxClasses2["nape.geom.Ray"] = function() {
51988
53117
  };
51989
53118
  nape67.geom.Ray.__name__ = ["nape", "geom", "Ray"];
51990
53119
  nape67.geom.Ray.prototype.__class__ = nape67.geom.Ray;
51991
- nape67.geom.Vec2Iterator = $hxClasses["nape.geom.Vec2Iterator"] = function() {
53120
+ nape67.geom.Vec2Iterator = $hxClasses2["nape.geom.Vec2Iterator"] = function() {
51992
53121
  };
51993
53122
  nape67.geom.Vec2Iterator.__name__ = ["nape", "geom", "Vec2Iterator"];
51994
53123
  nape67.geom.Vec2Iterator.zpp_pool = null;
51995
53124
  nape67.geom.Vec2Iterator.prototype.__class__ = nape67.geom.Vec2Iterator;
51996
- nape67.geom.Vec2List = $hxClasses["nape.geom.Vec2List"] = function() {
53125
+ nape67.geom.Vec2List = $hxClasses2["nape.geom.Vec2List"] = function() {
51997
53126
  this.zpp_inner = null;
51998
53127
  this.zpp_inner = new zpp_nape.util.ZPP_Vec2List();
51999
53128
  this.zpp_inner.outer = this;
@@ -52002,10 +53131,10 @@ define(function() {
52002
53131
  nape67.geom.Vec2List.prototype.zpp_inner = null;
52003
53132
  nape67.geom.Vec2List.prototype.__class__ = nape67.geom.Vec2List;
52004
53133
  if (!nape67.phys) nape67.phys = {};
52005
- nape67.phys.Interactor = $hxClasses["nape.phys.Interactor"] = function() {
53134
+ nape67.phys.Interactor = $hxClasses2["nape.phys.Interactor"] = function() {
52006
53135
  this.zpp_inner_i = null;
52007
53136
  if (!nape67.phys.Interactor.zpp_internalAlloc) {
52008
- throw new js._Boot.HaxeError(
53137
+ throw new js2._Boot.HaxeError(
52009
53138
  "Error: Cannot instantiate an Interactor, only Shape/Body/Compound"
52010
53139
  );
52011
53140
  }
@@ -52115,7 +53244,7 @@ define(function() {
52115
53244
  return "";
52116
53245
  };
52117
53246
  nape67.phys.Interactor.prototype.__class__ = nape67.phys.Interactor;
52118
- nape67.phys.Body = $hxClasses["nape.phys.Body"] = function() {
53247
+ nape67.phys.Body = $hxClasses2["nape.phys.Body"] = function() {
52119
53248
  };
52120
53249
  nape67.phys.Body.__name__ = ["nape", "phys", "Body"];
52121
53250
  nape67.phys.Body.__super__ = nape67.phys.Interactor;
@@ -52126,12 +53255,12 @@ define(function() {
52126
53255
  nape67.phys.Body.prototype.__class__ = nape67.phys.Body;
52127
53256
  nape67.phys.BodyType = function() {
52128
53257
  if (!zpp_nape.util.ZPP_Flags.internal) {
52129
- throw new js._Boot.HaxeError("Error: Cannot instantiate BodyType derp!");
53258
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate BodyType derp!");
52130
53259
  }
52131
53260
  };
52132
53261
  nape67.phys.BodyType.__name__ = ["nape", "phys", "BodyType"];
52133
53262
  nape67.phys.BodyType.prototype.__class__ = nape67.phys.BodyType;
52134
- nape67.phys.Compound = $hxClasses["nape.phys.Compound"] = function() {
53263
+ nape67.phys.Compound = $hxClasses2["nape.phys.Compound"] = function() {
52135
53264
  };
52136
53265
  nape67.phys.Compound.__name__ = ["nape", "phys", "Compound"];
52137
53266
  nape67.phys.Compound.__super__ = nape67.phys.Interactor;
@@ -52139,13 +53268,13 @@ define(function() {
52139
53268
  nape67.phys.Compound.prototype[k] = nape67.phys.Interactor.prototype[k];
52140
53269
  nape67.phys.Compound.prototype.__class__ = nape67.phys.Compound;
52141
53270
  if (!nape67.shape) nape67.shape = {};
52142
- nape67.shape.Shape = $hxClasses["nape.shape.Shape"] = function() {
53271
+ nape67.shape.Shape = $hxClasses2["nape.shape.Shape"] = function() {
52143
53272
  this.zpp_inner = null;
52144
53273
  nape67.phys.Interactor.zpp_internalAlloc = true;
52145
53274
  nape67.phys.Interactor.call(this);
52146
53275
  nape67.phys.Interactor.zpp_internalAlloc = false;
52147
53276
  if (!nape67.shape.Shape.zpp_internalAlloc) {
52148
- throw new js._Boot.HaxeError("Error: Shape cannot be instantiated derp!");
53277
+ throw new js2._Boot.HaxeError("Error: Shape cannot be instantiated derp!");
52149
53278
  }
52150
53279
  };
52151
53280
  nape67.shape.Shape.__name__ = ["nape", "shape", "Shape"];
@@ -52154,7 +53283,7 @@ define(function() {
52154
53283
  nape67.shape.Shape.prototype[k] = nape67.phys.Interactor.prototype[k];
52155
53284
  nape67.shape.Shape.prototype.zpp_inner = null;
52156
53285
  nape67.shape.Shape.prototype.__class__ = nape67.shape.Shape;
52157
- nape67.shape.Circle = $hxClasses["nape.shape.Circle"] = function() {
53286
+ nape67.shape.Circle = $hxClasses2["nape.shape.Circle"] = function() {
52158
53287
  };
52159
53288
  nape67.shape.Circle.__name__ = ["nape", "shape", "Circle"];
52160
53289
  nape67.shape.Circle.__super__ = nape67.shape.Shape;
@@ -52162,30 +53291,30 @@ define(function() {
52162
53291
  nape67.shape.Circle.prototype[k] = nape67.shape.Shape.prototype[k];
52163
53292
  nape67.shape.Circle.prototype.zpp_inner_zn = null;
52164
53293
  nape67.shape.Circle.prototype.__class__ = nape67.shape.Circle;
52165
- nape67.shape.Edge = $hxClasses["nape.shape.Edge"] = function() {
53294
+ nape67.shape.Edge = $hxClasses2["nape.shape.Edge"] = function() {
52166
53295
  this.zpp_inner = null;
52167
53296
  if (!zpp_nape.shape.ZPP_Edge.internal) {
52168
- throw new js._Boot.HaxeError("Error: Cannot instantiate an Edge derp!");
53297
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate an Edge derp!");
52169
53298
  }
52170
53299
  };
52171
53300
  nape67.shape.Edge.__name__ = ["nape", "shape", "Edge"];
52172
53301
  nape67.shape.Edge.prototype.zpp_inner = null;
52173
53302
  nape67.shape.Edge.prototype.__class__ = nape67.shape.Edge;
52174
- nape67.shape.Polygon = $hxClasses["nape.shape.Polygon"] = function() {
53303
+ nape67.shape.Polygon = $hxClasses2["nape.shape.Polygon"] = function() {
52175
53304
  };
52176
53305
  nape67.shape.Polygon.__name__ = ["nape", "shape", "Polygon"];
52177
53306
  nape67.shape.Polygon.__super__ = nape67.shape.Shape;
52178
53307
  nape67.shape.Polygon.prototype.__class__ = nape67.shape.Polygon;
52179
53308
  nape67.shape.ShapeType = function() {
52180
53309
  if (!zpp_nape.util.ZPP_Flags.internal) {
52181
- throw new js._Boot.HaxeError("Error: Cannot instantiate ShapeType derp!");
53310
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate ShapeType derp!");
52182
53311
  }
52183
53312
  };
52184
53313
  nape67.shape.ShapeType.__name__ = ["nape", "shape", "ShapeType"];
52185
53314
  nape67.shape.ShapeType.prototype.__class__ = nape67.shape.ShapeType;
52186
53315
  nape67.shape.ValidationResult = function() {
52187
53316
  if (!zpp_nape.util.ZPP_Flags.internal) {
52188
- throw new js._Boot.HaxeError("Error: Cannot instantiate ValidationResult derp!");
53317
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate ValidationResult derp!");
52189
53318
  }
52190
53319
  };
52191
53320
  nape67.shape.ValidationResult.__name__ = ["nape", "shape", "ValidationResult"];
@@ -52193,846 +53322,69 @@ define(function() {
52193
53322
  if (!nape67.space) nape67.space = {};
52194
53323
  nape67.space.Broadphase = function() {
52195
53324
  if (!zpp_nape.util.ZPP_Flags.internal) {
52196
- throw new js._Boot.HaxeError("Error: Cannot instantiate Broadphase derp!");
53325
+ throw new js2._Boot.HaxeError("Error: Cannot instantiate Broadphase derp!");
52197
53326
  }
52198
53327
  };
52199
53328
  nape67.space.Broadphase.__name__ = ["nape", "space", "Broadphase"];
52200
53329
  nape67.space.Broadphase.prototype.__class__ = nape67.space.Broadphase;
52201
- nape67.space.Space = $hxClasses["nape.space.Space"] = function() {
53330
+ nape67.space.Space = $hxClasses2["nape.space.Space"] = function() {
52202
53331
  };
52203
53332
  nape67.space.Space.__name__ = ["nape", "space", "Space"];
52204
53333
  nape67.space.Space.prototype.__class__ = nape67.space.Space;
52205
53334
  if (!nape67.util) nape67.util = {};
52206
- nape67.util.Debug = $hxClasses["nape.util.Debug"] = function() {
53335
+ nape67.util.Debug = $hxClasses2["nape.util.Debug"] = function() {
52207
53336
  };
52208
53337
  nape67.util.Debug.__name__ = ["nape", "util", "Debug"];
52209
53338
  nape67.util.Debug.prototype.__class__ = nape67.util.Debug;
52210
53339
  if (typeof sandbox == "undefined") sandbox = {};
52211
- sandbox.Main = $hxClasses["sandbox.Main"] = function() {
53340
+ sandbox.Main = $hxClasses2["sandbox.Main"] = function() {
52212
53341
  };
52213
53342
  sandbox.Main.__name__ = ["sandbox", "Main"];
52214
53343
  sandbox.Main.main = function() {
52215
53344
  };
52216
53345
  sandbox.Main.prototype.__class__ = sandbox.Main;
52217
53346
  if (typeof zpp_nape == "undefined") zpp_nape = {};
52218
- zpp_nape.ZPP_Const = $hxClasses["zpp_nape.ZPP_Const"] = ZPP_Const;
53347
+ zpp_nape.ZPP_Const = $hxClasses2["zpp_nape.ZPP_Const"] = ZPP_Const;
52219
53348
  zpp_nape.ZPP_Const.prototype.__class__ = zpp_nape.ZPP_Const;
52220
- zpp_nape.ZPP_ID = $hxClasses["zpp_nape.ZPP_ID"] = ZPP_ID;
53349
+ zpp_nape.ZPP_ID = $hxClasses2["zpp_nape.ZPP_ID"] = ZPP_ID;
52221
53350
  zpp_nape.ZPP_ID.prototype.__class__ = zpp_nape.ZPP_ID;
52222
53351
  if (!zpp_nape.callbacks) zpp_nape.callbacks = {};
52223
53352
  ZPP_Callback._nape = nape67;
52224
53353
  ZPP_Callback._zpp = zpp_nape;
52225
- zpp_nape.callbacks.ZPP_Callback = $hxClasses["zpp_nape.callbacks.ZPP_Callback"] = ZPP_Callback;
53354
+ zpp_nape.callbacks.ZPP_Callback = $hxClasses2["zpp_nape.callbacks.ZPP_Callback"] = ZPP_Callback;
52226
53355
  zpp_nape.callbacks.ZPP_Callback.prototype.__class__ = zpp_nape.callbacks.ZPP_Callback;
52227
53356
  ZPP_CbSet._zpp = zpp_nape;
52228
- zpp_nape.callbacks.ZPP_CbSet = $hxClasses["zpp_nape.callbacks.ZPP_CbSet"] = ZPP_CbSet;
53357
+ zpp_nape.callbacks.ZPP_CbSet = $hxClasses2["zpp_nape.callbacks.ZPP_CbSet"] = ZPP_CbSet;
52229
53358
  zpp_nape.callbacks.ZPP_CbSet.prototype.__class__ = zpp_nape.callbacks.ZPP_CbSet;
52230
53359
  ZPP_CbSetPair._zpp = zpp_nape;
52231
- zpp_nape.callbacks.ZPP_CbSetPair = $hxClasses["zpp_nape.callbacks.ZPP_CbSetPair"] = ZPP_CbSetPair;
53360
+ zpp_nape.callbacks.ZPP_CbSetPair = $hxClasses2["zpp_nape.callbacks.ZPP_CbSetPair"] = ZPP_CbSetPair;
52232
53361
  zpp_nape.callbacks.ZPP_CbSetPair.prototype.__class__ = zpp_nape.callbacks.ZPP_CbSetPair;
52233
53362
  if (!zpp_nape.util) zpp_nape.util = {};
52234
53363
  function createZNPNode(typeName) {
52235
- var cls = $hxClasses["zpp_nape.util.ZNPNode_" + typeName] = function() {
52236
- this.elt = null;
52237
- this.next = null;
53364
+ var cls = class extends ZNPNode {
52238
53365
  };
52239
53366
  cls.__name__ = ["zpp_nape", "util", "ZNPNode_" + typeName];
52240
53367
  cls.zpp_pool = null;
52241
- cls.prototype.next = null;
52242
- cls.prototype.alloc = function() {
52243
- };
52244
- cls.prototype.free = function() {
52245
- this.elt = null;
52246
- };
52247
- cls.prototype.elt = null;
52248
- cls.prototype.elem = function() {
52249
- return this.elt;
52250
- };
52251
53368
  cls.prototype.__class__ = cls;
53369
+ $hxClasses2["zpp_nape.util.ZNPNode_" + typeName] = cls;
52252
53370
  return cls;
52253
53371
  }
52254
53372
  function createZNPList(typeName, N) {
52255
- var cls = $hxClasses["zpp_nape.util.ZNPList_" + typeName] = function() {
52256
- this.length = 0;
52257
- this.pushmod = false;
52258
- this.modified = false;
52259
- this.head = null;
53373
+ var cls = class extends ZNPList {
52260
53374
  };
52261
53375
  cls.__name__ = ["zpp_nape", "util", "ZNPList_" + typeName];
52262
- cls.prototype.head = null;
52263
- cls.prototype.begin = function() {
52264
- return this.head;
52265
- };
52266
- cls.prototype.modified = null;
52267
- cls.prototype.pushmod = null;
52268
- cls.prototype.length = null;
52269
- cls.prototype.setbegin = function(i) {
52270
- this.head = i;
52271
- this.modified = true;
52272
- this.pushmod = true;
52273
- };
52274
- cls.prototype.add = function(o) {
52275
- var ret;
52276
- if (N.zpp_pool == null) {
52277
- ret = new N();
52278
- } else {
52279
- ret = N.zpp_pool;
52280
- N.zpp_pool = ret.next;
52281
- ret.next = null;
52282
- }
52283
- ret.elt = o;
52284
- var temp = ret;
52285
- temp.next = this.head;
52286
- this.head = temp;
52287
- this.modified = true;
52288
- this.length++;
52289
- return o;
52290
- };
52291
- cls.prototype.inlined_add = cls.prototype.add;
52292
- cls.prototype.addAll = function(x) {
52293
- var cx_ite = x.head;
52294
- while (cx_ite != null) {
52295
- this.add(cx_ite.elt);
52296
- cx_ite = cx_ite.next;
52297
- }
52298
- };
52299
- cls.prototype.insert = function(cur, o) {
52300
- var ret;
52301
- if (N.zpp_pool == null) {
52302
- ret = new N();
52303
- } else {
52304
- ret = N.zpp_pool;
52305
- N.zpp_pool = ret.next;
52306
- ret.next = null;
52307
- }
52308
- ret.elt = o;
52309
- var temp = ret;
52310
- if (cur == null) {
52311
- temp.next = this.head;
52312
- this.head = temp;
52313
- } else {
52314
- temp.next = cur.next;
52315
- cur.next = temp;
52316
- }
52317
- this.pushmod = this.modified = true;
52318
- this.length++;
52319
- return temp;
52320
- };
52321
- cls.prototype.inlined_insert = cls.prototype.insert;
52322
- cls.prototype.pop = function() {
52323
- var ret = this.head;
52324
- this.head = ret.next;
52325
- var o = ret;
52326
- o.elt = null;
52327
- o.next = N.zpp_pool;
52328
- N.zpp_pool = o;
52329
- if (this.head == null) {
52330
- this.pushmod = true;
52331
- }
52332
- this.modified = true;
52333
- this.length--;
52334
- };
52335
- cls.prototype.inlined_pop = cls.prototype.pop;
52336
- cls.prototype.pop_unsafe = function() {
52337
- var ret = this.head.elt;
52338
- this.pop();
52339
- return ret;
52340
- };
52341
- cls.prototype.inlined_pop_unsafe = cls.prototype.pop_unsafe;
52342
- cls.prototype.erase = function(pre) {
52343
- var old, ret;
52344
- if (pre == null) {
52345
- old = this.head;
52346
- ret = old.next;
52347
- this.head = ret;
52348
- if (this.head == null) {
52349
- this.pushmod = true;
52350
- }
52351
- } else {
52352
- old = pre.next;
52353
- ret = old.next;
52354
- pre.next = ret;
52355
- if (ret == null) {
52356
- this.pushmod = true;
52357
- }
52358
- }
52359
- var o = old;
52360
- o.elt = null;
52361
- o.next = N.zpp_pool;
52362
- N.zpp_pool = o;
52363
- this.modified = true;
52364
- this.length--;
52365
- this.pushmod = true;
52366
- return ret;
52367
- };
52368
- cls.prototype.inlined_erase = cls.prototype.erase;
52369
- cls.prototype.remove = function(obj) {
52370
- var pre = null, cur = this.head;
52371
- while (cur != null) {
52372
- if (cur.elt == obj) {
52373
- this.erase(pre);
52374
- break;
52375
- }
52376
- pre = cur;
52377
- cur = cur.next;
52378
- }
52379
- };
52380
- cls.prototype.inlined_remove = cls.prototype.remove;
52381
- cls.prototype.try_remove = function(obj) {
52382
- var pre = null, cur = this.head, ret = false;
52383
- while (cur != null) {
52384
- if (cur.elt == obj) {
52385
- this.erase(pre);
52386
- ret = true;
52387
- break;
52388
- }
52389
- pre = cur;
52390
- cur = cur.next;
52391
- }
52392
- return ret;
52393
- };
52394
- cls.prototype.inlined_try_remove = cls.prototype.try_remove;
52395
- cls.prototype.splice = function(pre, n) {
52396
- while (n-- > 0 && pre.next != null) this.erase(pre);
52397
- return pre.next;
52398
- };
52399
- cls.prototype.clear = function() {
52400
- while (this.head != null) {
52401
- var ret = this.head;
52402
- this.head = ret.next;
52403
- var o = ret;
52404
- o.elt = null;
52405
- o.next = N.zpp_pool;
52406
- N.zpp_pool = o;
52407
- if (this.head == null) {
52408
- this.pushmod = true;
52409
- }
52410
- this.modified = true;
52411
- this.length--;
52412
- }
52413
- this.pushmod = true;
52414
- };
52415
- cls.prototype.inlined_clear = cls.prototype.clear;
52416
- cls.prototype.reverse = function() {
52417
- var cur = this.head, pre = null;
52418
- while (cur != null) {
52419
- var nx = cur.next;
52420
- cur.next = pre;
52421
- this.head = cur;
52422
- pre = cur;
52423
- cur = nx;
52424
- }
52425
- this.modified = true;
52426
- this.pushmod = true;
52427
- };
52428
- cls.prototype.empty = function() {
52429
- return this.head == null;
52430
- };
52431
- cls.prototype.size = function() {
52432
- return this.length;
52433
- };
52434
- cls.prototype.has = function(obj) {
52435
- var cx_ite = this.head;
52436
- while (cx_ite != null) {
52437
- if (cx_ite.elt == obj) return true;
52438
- cx_ite = cx_ite.next;
52439
- }
52440
- return false;
52441
- };
52442
- cls.prototype.inlined_has = cls.prototype.has;
52443
- cls.prototype.front = function() {
52444
- return this.head.elt;
52445
- };
52446
- cls.prototype.back = function() {
52447
- var ret = this.head, cur = ret;
52448
- while (cur != null) {
52449
- ret = cur;
52450
- cur = cur.next;
52451
- }
52452
- return ret.elt;
52453
- };
52454
- cls.prototype.iterator_at = function(ind) {
52455
- var ret = this.head;
52456
- while (ind-- > 0 && ret != null) ret = ret.next;
52457
- return ret;
52458
- };
52459
- cls.prototype.at = function(ind) {
52460
- var it = this.iterator_at(ind);
52461
- return it != null ? it.elt : null;
52462
- };
53376
+ cls._NodeClass = N;
52463
53377
  cls.prototype.__class__ = cls;
53378
+ $hxClasses2["zpp_nape.util.ZNPList_" + typeName] = cls;
52464
53379
  return cls;
52465
53380
  }
52466
53381
  function createZPPSet(typeName) {
52467
- var cls = $hxClasses["zpp_nape.util.ZPP_Set_" + typeName] = function() {
52468
- this.colour = 0;
52469
- this.parent = null;
52470
- this.next = null;
52471
- this.prev = null;
52472
- this.data = null;
52473
- this.swapped = null;
52474
- this.lt = null;
53382
+ var cls = class extends ZPP_Set {
52475
53383
  };
52476
53384
  cls.__name__ = ["zpp_nape", "util", "ZPP_Set_" + typeName];
52477
53385
  cls.zpp_pool = null;
52478
- cls.prototype.free = function() {
52479
- this.data = null;
52480
- this.lt = null;
52481
- this.swapped = null;
52482
- };
52483
- cls.prototype.alloc = function() {
52484
- };
52485
- cls.prototype.lt = null;
52486
- cls.prototype.swapped = null;
52487
- cls.prototype.data = null;
52488
- cls.prototype.prev = null;
52489
- cls.prototype.next = null;
52490
- cls.prototype.parent = null;
52491
- cls.prototype.colour = null;
52492
- cls.prototype.verify = function() {
52493
- if (!this.empty()) {
52494
- var set_ite = this.parent;
52495
- while (set_ite.prev != null) set_ite = set_ite.prev;
52496
- while (set_ite != null) {
52497
- var i = set_ite.data;
52498
- var prei = true;
52499
- if (!this.empty()) {
52500
- var set_ite1 = this.parent;
52501
- while (set_ite1.prev != null) set_ite1 = set_ite1.prev;
52502
- while (set_ite1 != null) {
52503
- var j = set_ite1.data;
52504
- if (!prei) {
52505
- if (!this.lt(i, j) && this.lt(j, i)) return false;
52506
- } else if (i == j) {
52507
- prei = false;
52508
- } else if (!this.lt(j, i) && this.lt(i, j)) return false;
52509
- if (set_ite1.next != null) {
52510
- set_ite1 = set_ite1.next;
52511
- while (set_ite1.prev != null) set_ite1 = set_ite1.prev;
52512
- } else {
52513
- while (set_ite1.parent != null && set_ite1 == set_ite1.parent.next) set_ite1 = set_ite1.parent;
52514
- set_ite1 = set_ite1.parent;
52515
- }
52516
- }
52517
- }
52518
- if (set_ite.next != null) {
52519
- set_ite = set_ite.next;
52520
- while (set_ite.prev != null) set_ite = set_ite.prev;
52521
- } else {
52522
- while (set_ite.parent != null && set_ite == set_ite.parent.next) set_ite = set_ite.parent;
52523
- set_ite = set_ite.parent;
52524
- }
52525
- }
52526
- }
52527
- return true;
52528
- };
52529
- cls.prototype.empty = function() {
52530
- return this.parent == null;
52531
- };
52532
- cls.prototype.singular = function() {
52533
- if (this.parent != null && this.parent.prev == null) return this.parent.next == null;
52534
- return false;
52535
- };
52536
- cls.prototype.size = function() {
52537
- var ret = 0;
52538
- if (!this.empty()) {
52539
- var set_ite = this.parent;
52540
- while (set_ite.prev != null) set_ite = set_ite.prev;
52541
- while (set_ite != null) {
52542
- ++ret;
52543
- if (set_ite.next != null) {
52544
- set_ite = set_ite.next;
52545
- while (set_ite.prev != null) set_ite = set_ite.prev;
52546
- } else {
52547
- while (set_ite.parent != null && set_ite == set_ite.parent.next) set_ite = set_ite.parent;
52548
- set_ite = set_ite.parent;
52549
- }
52550
- }
52551
- }
52552
- return ret;
52553
- };
52554
- cls.prototype.has = function(obj) {
52555
- return this.find(obj) != null;
52556
- };
52557
- cls.prototype.find = function(obj) {
52558
- var cur = this.parent;
52559
- while (cur != null && cur.data != obj) {
52560
- if (this.lt(obj, cur.data)) cur = cur.prev;
52561
- else cur = cur.next;
52562
- }
52563
- return cur;
52564
- };
52565
- cls.prototype.has_weak = function(obj) {
52566
- return this.find_weak(obj) != null;
52567
- };
52568
- cls.prototype.find_weak = function(obj) {
52569
- var cur = this.parent;
52570
- while (cur != null) {
52571
- if (this.lt(obj, cur.data)) cur = cur.prev;
52572
- else if (this.lt(cur.data, obj)) cur = cur.next;
52573
- else break;
52574
- }
52575
- return cur;
52576
- };
52577
- cls.prototype.lower_bound = function(obj) {
52578
- var ret = null;
52579
- if (!this.empty()) {
52580
- var set_ite = this.parent;
52581
- while (set_ite.prev != null) set_ite = set_ite.prev;
52582
- while (set_ite != null) {
52583
- if (!this.lt(set_ite.data, obj)) {
52584
- ret = set_ite.data;
52585
- break;
52586
- }
52587
- if (set_ite.next != null) {
52588
- set_ite = set_ite.next;
52589
- while (set_ite.prev != null) set_ite = set_ite.prev;
52590
- } else {
52591
- while (set_ite.parent != null && set_ite == set_ite.parent.next) set_ite = set_ite.parent;
52592
- set_ite = set_ite.parent;
52593
- }
52594
- }
52595
- }
52596
- return ret;
52597
- };
52598
- cls.prototype.first = function() {
52599
- var cur = this.parent;
52600
- while (cur.prev != null) cur = cur.prev;
52601
- return cur.data;
52602
- };
52603
- cls.prototype.pop_front = function() {
52604
- var cur = this.parent;
52605
- while (cur.prev != null) cur = cur.prev;
52606
- var ret = cur.data;
52607
- this.remove_node(cur);
52608
- return ret;
52609
- };
52610
- cls.prototype.remove = function(obj) {
52611
- this.remove_node(this.find(obj));
52612
- };
52613
- cls.prototype.successor_node = function(cur) {
52614
- if (cur.next != null) {
52615
- cur = cur.next;
52616
- while (cur.prev != null) cur = cur.prev;
52617
- } else {
52618
- var pre = cur;
52619
- cur = cur.parent;
52620
- while (cur != null && cur.prev != pre) {
52621
- pre = cur;
52622
- cur = cur.parent;
52623
- }
52624
- }
52625
- return cur;
52626
- };
52627
- cls.prototype.predecessor_node = function(cur) {
52628
- if (cur.prev != null) {
52629
- cur = cur.prev;
52630
- while (cur.next != null) cur = cur.next;
52631
- } else {
52632
- var pre = cur;
52633
- cur = cur.parent;
52634
- while (cur != null && cur.next != pre) {
52635
- pre = cur;
52636
- cur = cur.parent;
52637
- }
52638
- }
52639
- return cur;
52640
- };
52641
- cls.prototype.successor = function(obj) {
52642
- var node = this.successor_node(this.find(obj));
52643
- return node == null ? null : node.data;
52644
- };
52645
- cls.prototype.predecessor = function(obj) {
52646
- var node = this.predecessor_node(this.find(obj));
52647
- return node == null ? null : node.data;
52648
- };
52649
- cls.prototype.remove_node = function(cur) {
52650
- if (cur.next != null && cur.prev != null) {
52651
- var sm = cur.next;
52652
- while (sm.prev != null) sm = sm.prev;
52653
- var t = cur.data;
52654
- cur.data = sm.data;
52655
- sm.data = t;
52656
- if (this.swapped != null) this.swapped(cur.data, sm.data);
52657
- cur = sm;
52658
- }
52659
- var child = cur.prev == null ? cur.next : cur.prev;
52660
- if (cur.colour == 1) {
52661
- if (cur.prev != null || cur.next != null) {
52662
- child.colour = 1;
52663
- } else if (cur.parent != null) {
52664
- var parent = cur.parent;
52665
- while (true) {
52666
- parent.colour++;
52667
- parent.prev.colour--;
52668
- parent.next.colour--;
52669
- var child1 = parent.prev;
52670
- if (child1.colour == -1) {
52671
- this.__fix_neg_red(child1);
52672
- break;
52673
- } else if (child1.colour == 0) {
52674
- if (child1.prev != null && child1.prev.colour == 0) {
52675
- this.__fix_dbl_red(child1.prev);
52676
- break;
52677
- }
52678
- if (child1.next != null && child1.next.colour == 0) {
52679
- this.__fix_dbl_red(child1.next);
52680
- break;
52681
- }
52682
- }
52683
- var child2 = parent.next;
52684
- if (child2.colour == -1) {
52685
- this.__fix_neg_red(child2);
52686
- break;
52687
- } else if (child2.colour == 0) {
52688
- if (child2.prev != null && child2.prev.colour == 0) {
52689
- this.__fix_dbl_red(child2.prev);
52690
- break;
52691
- }
52692
- if (child2.next != null && child2.next.colour == 0) {
52693
- this.__fix_dbl_red(child2.next);
52694
- break;
52695
- }
52696
- }
52697
- if (parent.colour == 2) {
52698
- if (parent.parent == null) {
52699
- parent.colour = 1;
52700
- } else {
52701
- parent = parent.parent;
52702
- continue;
52703
- }
52704
- }
52705
- break;
52706
- }
52707
- }
52708
- }
52709
- var par = cur.parent;
52710
- if (par == null) this.parent = child;
52711
- else if (par.prev == cur) par.prev = child;
52712
- else par.next = child;
52713
- if (child != null) child.parent = par;
52714
- cur.parent = cur.prev = cur.next = null;
52715
- var o = cur;
52716
- o.data = null;
52717
- o.lt = null;
52718
- o.swapped = null;
52719
- o.next = cls.zpp_pool;
52720
- cls.zpp_pool = o;
52721
- };
52722
- cls.prototype.clear = function() {
52723
- if (this.parent != null) {
52724
- var cur = this.parent;
52725
- while (cur != null) {
52726
- if (cur.prev != null) cur = cur.prev;
52727
- else if (cur.next != null) cur = cur.next;
52728
- else {
52729
- var ret = cur.parent;
52730
- if (ret != null) {
52731
- if (cur == ret.prev) ret.prev = null;
52732
- else ret.next = null;
52733
- cur.parent = null;
52734
- }
52735
- var o = cur;
52736
- o.data = null;
52737
- o.lt = null;
52738
- o.swapped = null;
52739
- o.next = cls.zpp_pool;
52740
- cls.zpp_pool = o;
52741
- cur = ret;
52742
- }
52743
- }
52744
- this.parent = null;
52745
- }
52746
- };
52747
- cls.prototype.clear_with = function(lambda) {
52748
- if (this.parent == null) return;
52749
- var cur = this.parent;
52750
- while (cur != null) {
52751
- if (cur.prev != null) cur = cur.prev;
52752
- else if (cur.next != null) cur = cur.next;
52753
- else {
52754
- lambda(cur.data);
52755
- var ret = cur.parent;
52756
- if (ret != null) {
52757
- if (cur == ret.prev) ret.prev = null;
52758
- else ret.next = null;
52759
- cur.parent = null;
52760
- }
52761
- var o = cur;
52762
- o.data = null;
52763
- o.lt = null;
52764
- o.swapped = null;
52765
- o.next = cls.zpp_pool;
52766
- cls.zpp_pool = o;
52767
- cur = ret;
52768
- }
52769
- }
52770
- this.parent = null;
52771
- };
52772
- cls.prototype.clear_node = function(node, lambda) {
52773
- lambda(node.data);
52774
- var ret = node.parent;
52775
- if (ret != null) {
52776
- if (node == ret.prev) ret.prev = null;
52777
- else ret.next = null;
52778
- node.parent = null;
52779
- }
52780
- var o = node;
52781
- o.data = null;
52782
- o.lt = null;
52783
- o.swapped = null;
52784
- o.next = cls.zpp_pool;
52785
- cls.zpp_pool = o;
52786
- return ret;
52787
- };
52788
- cls.prototype.__fix_neg_red = function(negred) {
52789
- var parent = negred.parent;
52790
- var child;
52791
- if (parent.prev == negred) {
52792
- var nl = negred.prev, nr = negred.next, trl = nr.prev, trr = nr.next;
52793
- nl.colour = 0;
52794
- negred.colour = parent.colour = 1;
52795
- negred.next = trl;
52796
- if (trl != null) trl.parent = negred;
52797
- var t = parent.data;
52798
- parent.data = nr.data;
52799
- nr.data = t;
52800
- if (this.swapped != null) this.swapped(parent.data, nr.data);
52801
- nr.prev = trr;
52802
- if (trr != null) trr.parent = nr;
52803
- nr.next = parent.next;
52804
- if (parent.next != null) parent.next.parent = nr;
52805
- parent.next = nr;
52806
- if (nr != null) nr.parent = parent;
52807
- child = nl;
52808
- } else {
52809
- var nl1 = negred.next, nr1 = negred.prev, trl1 = nr1.next, trr1 = nr1.prev;
52810
- nl1.colour = 0;
52811
- negred.colour = parent.colour = 1;
52812
- negred.prev = trl1;
52813
- if (trl1 != null) trl1.parent = negred;
52814
- var t1 = parent.data;
52815
- parent.data = nr1.data;
52816
- nr1.data = t1;
52817
- if (this.swapped != null) this.swapped(parent.data, nr1.data);
52818
- nr1.next = trr1;
52819
- if (trr1 != null) trr1.parent = nr1;
52820
- nr1.prev = parent.prev;
52821
- if (parent.prev != null) parent.prev.parent = nr1;
52822
- parent.prev = nr1;
52823
- if (nr1 != null) nr1.parent = parent;
52824
- child = nl1;
52825
- }
52826
- if (child.prev != null && child.prev.colour == 0) this.__fix_dbl_red(child.prev);
52827
- else if (child.next != null && child.next.colour == 0) this.__fix_dbl_red(child.next);
52828
- };
52829
- cls.prototype.__fix_dbl_red = function(x) {
52830
- while (true) {
52831
- var par = x.parent, g = par.parent;
52832
- if (g == null) {
52833
- par.colour = 1;
52834
- break;
52835
- }
52836
- var n1, n2, n3, t1, t2, t3, t4;
52837
- if (par == g.prev) {
52838
- n3 = g;
52839
- t4 = g.next;
52840
- if (x == par.prev) {
52841
- n1 = x;
52842
- n2 = par;
52843
- t1 = x.prev;
52844
- t2 = x.next;
52845
- t3 = par.next;
52846
- } else {
52847
- n1 = par;
52848
- n2 = x;
52849
- t1 = par.prev;
52850
- t2 = x.prev;
52851
- t3 = x.next;
52852
- }
52853
- } else {
52854
- n1 = g;
52855
- t1 = g.prev;
52856
- if (x == par.prev) {
52857
- n2 = x;
52858
- n3 = par;
52859
- t2 = x.prev;
52860
- t3 = x.next;
52861
- t4 = par.next;
52862
- } else {
52863
- n2 = par;
52864
- n3 = x;
52865
- t2 = par.prev;
52866
- t3 = x.prev;
52867
- t4 = x.next;
52868
- }
52869
- }
52870
- var par1 = g.parent;
52871
- if (par1 == null) this.parent = n2;
52872
- else if (par1.prev == g) par1.prev = n2;
52873
- else par1.next = n2;
52874
- if (n2 != null) n2.parent = par1;
52875
- n1.prev = t1;
52876
- if (t1 != null) t1.parent = n1;
52877
- n1.next = t2;
52878
- if (t2 != null) t2.parent = n1;
52879
- n2.prev = n1;
52880
- if (n1 != null) n1.parent = n2;
52881
- n2.next = n3;
52882
- if (n3 != null) n3.parent = n2;
52883
- n3.prev = t3;
52884
- if (t3 != null) t3.parent = n3;
52885
- n3.next = t4;
52886
- if (t4 != null) t4.parent = n3;
52887
- n2.colour = g.colour - 1;
52888
- n1.colour = 1;
52889
- n3.colour = 1;
52890
- if (n2 == this.parent) {
52891
- this.parent.colour = 1;
52892
- } else if (n2.colour == 0 && n2.parent.colour == 0) {
52893
- x = n2;
52894
- continue;
52895
- }
52896
- break;
52897
- }
52898
- };
52899
- cls.prototype.try_insert_bool = function(obj) {
52900
- var x = null, cur = null;
52901
- if (this.parent == null) {
52902
- if (cls.zpp_pool == null) x = new cls();
52903
- else {
52904
- x = cls.zpp_pool;
52905
- cls.zpp_pool = x.next;
52906
- x.next = null;
52907
- }
52908
- x.data = obj;
52909
- this.parent = x;
52910
- } else {
52911
- cur = this.parent;
52912
- while (true) {
52913
- if (this.lt(obj, cur.data)) {
52914
- if (cur.prev == null) {
52915
- if (cls.zpp_pool == null) x = new cls();
52916
- else {
52917
- x = cls.zpp_pool;
52918
- cls.zpp_pool = x.next;
52919
- x.next = null;
52920
- }
52921
- x.data = obj;
52922
- cur.prev = x;
52923
- x.parent = cur;
52924
- break;
52925
- } else cur = cur.prev;
52926
- } else if (this.lt(cur.data, obj)) {
52927
- if (cur.next == null) {
52928
- if (cls.zpp_pool == null) x = new cls();
52929
- else {
52930
- x = cls.zpp_pool;
52931
- cls.zpp_pool = x.next;
52932
- x.next = null;
52933
- }
52934
- x.data = obj;
52935
- cur.next = x;
52936
- x.parent = cur;
52937
- break;
52938
- } else cur = cur.next;
52939
- } else break;
52940
- }
52941
- }
52942
- if (x == null) return false;
52943
- if (x.parent == null) x.colour = 1;
52944
- else {
52945
- x.colour = 0;
52946
- if (x.parent.colour == 0) this.__fix_dbl_red(x);
52947
- }
52948
- return true;
52949
- };
52950
- cls.prototype.try_insert = function(obj) {
52951
- var x = null, cur = null;
52952
- if (this.parent == null) {
52953
- if (cls.zpp_pool == null) x = new cls();
52954
- else {
52955
- x = cls.zpp_pool;
52956
- cls.zpp_pool = x.next;
52957
- x.next = null;
52958
- }
52959
- x.data = obj;
52960
- this.parent = x;
52961
- } else {
52962
- cur = this.parent;
52963
- while (true) {
52964
- if (this.lt(obj, cur.data)) {
52965
- if (cur.prev == null) {
52966
- if (cls.zpp_pool == null) x = new cls();
52967
- else {
52968
- x = cls.zpp_pool;
52969
- cls.zpp_pool = x.next;
52970
- x.next = null;
52971
- }
52972
- x.data = obj;
52973
- cur.prev = x;
52974
- x.parent = cur;
52975
- break;
52976
- } else cur = cur.prev;
52977
- } else if (this.lt(cur.data, obj)) {
52978
- if (cur.next == null) {
52979
- if (cls.zpp_pool == null) x = new cls();
52980
- else {
52981
- x = cls.zpp_pool;
52982
- cls.zpp_pool = x.next;
52983
- x.next = null;
52984
- }
52985
- x.data = obj;
52986
- cur.next = x;
52987
- x.parent = cur;
52988
- break;
52989
- } else cur = cur.next;
52990
- } else break;
52991
- }
52992
- }
52993
- if (x == null) return cur;
52994
- if (x.parent == null) x.colour = 1;
52995
- else {
52996
- x.colour = 0;
52997
- if (x.parent.colour == 0) this.__fix_dbl_red(x);
52998
- }
52999
- return x;
53000
- };
53001
- cls.prototype.insert = function(obj) {
53002
- var x;
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
- if (this.parent == null) {
53011
- this.parent = x;
53012
- } else {
53013
- var cur = this.parent;
53014
- while (true) {
53015
- if (this.lt(x.data, cur.data)) {
53016
- if (cur.prev == null) {
53017
- cur.prev = x;
53018
- x.parent = cur;
53019
- break;
53020
- } else cur = cur.prev;
53021
- } else if (cur.next == null) {
53022
- cur.next = x;
53023
- x.parent = cur;
53024
- break;
53025
- } else cur = cur.next;
53026
- }
53027
- }
53028
- if (x.parent == null) x.colour = 1;
53029
- else {
53030
- x.colour = 0;
53031
- if (x.parent.colour == 0) this.__fix_dbl_red(x);
53032
- }
53033
- return x;
53034
- };
53035
53386
  cls.prototype.__class__ = cls;
53387
+ $hxClasses2["zpp_nape.util.ZPP_Set_" + typeName] = cls;
53036
53388
  return cls;
53037
53389
  }
53038
53390
  zpp_nape.util.ZNPNode_ZPP_CbType = createZNPNode("ZPP_CbType");
@@ -53114,582 +53466,250 @@ define(function() {
53114
53466
  zpp_nape.util.ZPP_Set_ZPP_SimpleEvent = createZPPSet("ZPP_SimpleEvent");
53115
53467
  zpp_nape.util.ZPP_Set_ZPP_CbSet = createZPPSet("ZPP_CbSet");
53116
53468
  ZPP_CbType._zpp = zpp_nape;
53117
- zpp_nape.callbacks.ZPP_CbType = $hxClasses["zpp_nape.callbacks.ZPP_CbType"] = ZPP_CbType;
53469
+ zpp_nape.callbacks.ZPP_CbType = $hxClasses2["zpp_nape.callbacks.ZPP_CbType"] = ZPP_CbType;
53118
53470
  zpp_nape.callbacks.ZPP_CbType.prototype.__class__ = zpp_nape.callbacks.ZPP_CbType;
53119
- zpp_nape.util.ZPP_Flags = $hxClasses["zpp_nape.util.ZPP_Flags"] = ZPP_Flags;
53471
+ zpp_nape.util.ZPP_Flags = $hxClasses2["zpp_nape.util.ZPP_Flags"] = ZPP_Flags;
53120
53472
  zpp_nape.util.ZPP_Flags.prototype.__class__ = zpp_nape.util.ZPP_Flags;
53121
53473
  ZPP_Listener._nape = nape67;
53122
53474
  ZPP_Listener._zpp = zpp_nape;
53123
- zpp_nape.callbacks.ZPP_Listener = $hxClasses["zpp_nape.callbacks.ZPP_Listener"] = ZPP_Listener;
53475
+ zpp_nape.callbacks.ZPP_Listener = $hxClasses2["zpp_nape.callbacks.ZPP_Listener"] = ZPP_Listener;
53124
53476
  zpp_nape.callbacks.ZPP_Listener.prototype.__class__ = zpp_nape.callbacks.ZPP_Listener;
53125
- zpp_nape.callbacks.ZPP_BodyListener = $hxClasses["zpp_nape.callbacks.ZPP_BodyListener"] = ZPP_BodyListener;
53477
+ zpp_nape.callbacks.ZPP_BodyListener = $hxClasses2["zpp_nape.callbacks.ZPP_BodyListener"] = ZPP_BodyListener;
53126
53478
  zpp_nape.callbacks.ZPP_BodyListener.prototype.__class__ = zpp_nape.callbacks.ZPP_BodyListener;
53127
- zpp_nape.callbacks.ZPP_ConstraintListener = $hxClasses["zpp_nape.callbacks.ZPP_ConstraintListener"] = ZPP_ConstraintListener;
53479
+ zpp_nape.callbacks.ZPP_ConstraintListener = $hxClasses2["zpp_nape.callbacks.ZPP_ConstraintListener"] = ZPP_ConstraintListener;
53128
53480
  zpp_nape.callbacks.ZPP_ConstraintListener.prototype.__class__ = zpp_nape.callbacks.ZPP_ConstraintListener;
53129
- zpp_nape.callbacks.ZPP_InteractionListener = $hxClasses["zpp_nape.callbacks.ZPP_InteractionListener"] = ZPP_InteractionListener;
53481
+ zpp_nape.callbacks.ZPP_InteractionListener = $hxClasses2["zpp_nape.callbacks.ZPP_InteractionListener"] = ZPP_InteractionListener;
53130
53482
  zpp_nape.callbacks.ZPP_InteractionListener.prototype.__class__ = zpp_nape.callbacks.ZPP_InteractionListener;
53131
53483
  ZPP_OptionType._nape = nape67;
53132
53484
  ZPP_OptionType._zpp = zpp_nape;
53133
- zpp_nape.callbacks.ZPP_OptionType = $hxClasses["zpp_nape.callbacks.ZPP_OptionType"] = ZPP_OptionType;
53485
+ zpp_nape.callbacks.ZPP_OptionType = $hxClasses2["zpp_nape.callbacks.ZPP_OptionType"] = ZPP_OptionType;
53134
53486
  zpp_nape.callbacks.ZPP_OptionType.prototype.__class__ = zpp_nape.callbacks.ZPP_OptionType;
53135
53487
  if (!zpp_nape.constraint) zpp_nape.constraint = {};
53136
53488
  ZPP_Constraint._nape = nape67;
53137
53489
  ZPP_Constraint._zpp = zpp_nape;
53138
- zpp_nape.constraint.ZPP_Constraint = $hxClasses["zpp_nape.constraint.ZPP_Constraint"] = ZPP_Constraint;
53490
+ zpp_nape.constraint.ZPP_Constraint = $hxClasses2["zpp_nape.constraint.ZPP_Constraint"] = ZPP_Constraint;
53139
53491
  zpp_nape.constraint.ZPP_Constraint.__name__ = ZPP_Constraint.__name__;
53140
53492
  zpp_nape.constraint.ZPP_Constraint.prototype.__class__ = zpp_nape.constraint.ZPP_Constraint;
53141
- zpp_nape.constraint.ZPP_AngleJoint = $hxClasses["zpp_nape.constraint.ZPP_AngleJoint"] = ZPP_AngleJoint;
53493
+ zpp_nape.constraint.ZPP_AngleJoint = $hxClasses2["zpp_nape.constraint.ZPP_AngleJoint"] = ZPP_AngleJoint;
53142
53494
  zpp_nape.constraint.ZPP_AngleJoint.__name__ = ZPP_AngleJoint.__name__;
53143
53495
  zpp_nape.constraint.ZPP_AngleJoint.prototype.__class__ = zpp_nape.constraint.ZPP_AngleJoint;
53144
- zpp_nape.constraint.ZPP_CopyHelper = $hxClasses["zpp_nape.constraint.ZPP_CopyHelper"] = ZPP_CopyHelper;
53496
+ zpp_nape.constraint.ZPP_CopyHelper = $hxClasses2["zpp_nape.constraint.ZPP_CopyHelper"] = ZPP_CopyHelper;
53145
53497
  zpp_nape.constraint.ZPP_CopyHelper.prototype.__class__ = zpp_nape.constraint.ZPP_CopyHelper;
53146
- zpp_nape.constraint.ZPP_DistanceJoint = $hxClasses["zpp_nape.constraint.ZPP_DistanceJoint"] = ZPP_DistanceJoint;
53498
+ zpp_nape.constraint.ZPP_DistanceJoint = $hxClasses2["zpp_nape.constraint.ZPP_DistanceJoint"] = ZPP_DistanceJoint;
53147
53499
  zpp_nape.constraint.ZPP_DistanceJoint.__name__ = ZPP_DistanceJoint.__name__;
53148
53500
  zpp_nape.constraint.ZPP_DistanceJoint.prototype.__class__ = zpp_nape.constraint.ZPP_DistanceJoint;
53149
- zpp_nape.constraint.ZPP_LineJoint = $hxClasses["zpp_nape.constraint.ZPP_LineJoint"] = ZPP_LineJoint;
53501
+ zpp_nape.constraint.ZPP_LineJoint = $hxClasses2["zpp_nape.constraint.ZPP_LineJoint"] = ZPP_LineJoint;
53150
53502
  zpp_nape.constraint.ZPP_LineJoint.__name__ = ZPP_LineJoint.__name__;
53151
53503
  zpp_nape.constraint.ZPP_LineJoint.prototype.__class__ = zpp_nape.constraint.ZPP_LineJoint;
53152
- zpp_nape.constraint.ZPP_MotorJoint = $hxClasses["zpp_nape.constraint.ZPP_MotorJoint"] = ZPP_MotorJoint;
53504
+ zpp_nape.constraint.ZPP_MotorJoint = $hxClasses2["zpp_nape.constraint.ZPP_MotorJoint"] = ZPP_MotorJoint;
53153
53505
  zpp_nape.constraint.ZPP_MotorJoint.__name__ = ZPP_MotorJoint.__name__;
53154
53506
  zpp_nape.constraint.ZPP_MotorJoint.prototype.__class__ = zpp_nape.constraint.ZPP_MotorJoint;
53155
- zpp_nape.constraint.ZPP_PivotJoint = $hxClasses["zpp_nape.constraint.ZPP_PivotJoint"] = ZPP_PivotJoint;
53507
+ zpp_nape.constraint.ZPP_PivotJoint = $hxClasses2["zpp_nape.constraint.ZPP_PivotJoint"] = ZPP_PivotJoint;
53156
53508
  zpp_nape.constraint.ZPP_PivotJoint.__name__ = ZPP_PivotJoint.__name__;
53157
53509
  zpp_nape.constraint.ZPP_PivotJoint.prototype.__class__ = zpp_nape.constraint.ZPP_PivotJoint;
53158
- zpp_nape.constraint.ZPP_PulleyJoint = $hxClasses["zpp_nape.constraint.ZPP_PulleyJoint"] = ZPP_PulleyJoint;
53510
+ zpp_nape.constraint.ZPP_PulleyJoint = $hxClasses2["zpp_nape.constraint.ZPP_PulleyJoint"] = ZPP_PulleyJoint;
53159
53511
  zpp_nape.constraint.ZPP_PulleyJoint.__name__ = ZPP_PulleyJoint.__name__;
53160
53512
  zpp_nape.constraint.ZPP_PulleyJoint.prototype.__class__ = zpp_nape.constraint.ZPP_PulleyJoint;
53161
- zpp_nape.constraint.ZPP_UserConstraint = $hxClasses["zpp_nape.constraint.ZPP_UserConstraint"] = ZPP_UserConstraint;
53513
+ zpp_nape.constraint.ZPP_UserConstraint = $hxClasses2["zpp_nape.constraint.ZPP_UserConstraint"] = ZPP_UserConstraint;
53162
53514
  zpp_nape.constraint.ZPP_UserConstraint.__name__ = ZPP_UserConstraint.__name__;
53163
53515
  zpp_nape.constraint.ZPP_UserConstraint.prototype.__class__ = zpp_nape.constraint.ZPP_UserConstraint;
53164
- zpp_nape.constraint.ZPP_UserBody = $hxClasses["zpp_nape.constraint.ZPP_UserBody"] = ZPP_UserBody;
53516
+ zpp_nape.constraint.ZPP_UserBody = $hxClasses2["zpp_nape.constraint.ZPP_UserBody"] = ZPP_UserBody;
53165
53517
  zpp_nape.constraint.ZPP_UserBody.prototype.__class__ = zpp_nape.constraint.ZPP_UserBody;
53166
- zpp_nape.constraint.ZPP_WeldJoint = $hxClasses["zpp_nape.constraint.ZPP_WeldJoint"] = ZPP_WeldJoint;
53518
+ zpp_nape.constraint.ZPP_WeldJoint = $hxClasses2["zpp_nape.constraint.ZPP_WeldJoint"] = ZPP_WeldJoint;
53167
53519
  zpp_nape.constraint.ZPP_WeldJoint.__name__ = ZPP_WeldJoint.__name__;
53168
53520
  zpp_nape.constraint.ZPP_WeldJoint.prototype.__class__ = zpp_nape.constraint.ZPP_WeldJoint;
53169
53521
  if (!zpp_nape.dynamics) zpp_nape.dynamics = {};
53170
53522
  ZPP_Arbiter._nape = nape67;
53171
53523
  ZPP_Arbiter._zpp = zpp_nape;
53172
- zpp_nape.dynamics.ZPP_Arbiter = $hxClasses["zpp_nape.dynamics.ZPP_Arbiter"] = ZPP_Arbiter;
53524
+ zpp_nape.dynamics.ZPP_Arbiter = $hxClasses2["zpp_nape.dynamics.ZPP_Arbiter"] = ZPP_Arbiter;
53173
53525
  zpp_nape.dynamics.ZPP_Arbiter.prototype.__class__ = zpp_nape.dynamics.ZPP_Arbiter;
53174
- zpp_nape.dynamics.ZPP_SensorArbiter = $hxClasses["zpp_nape.dynamics.ZPP_SensorArbiter"] = ZPP_SensorArbiter;
53526
+ zpp_nape.dynamics.ZPP_SensorArbiter = $hxClasses2["zpp_nape.dynamics.ZPP_SensorArbiter"] = ZPP_SensorArbiter;
53175
53527
  zpp_nape.dynamics.ZPP_SensorArbiter.prototype.__class__ = zpp_nape.dynamics.ZPP_SensorArbiter;
53176
53528
  ZPP_FluidArbiter._nape = nape67;
53177
53529
  ZPP_FluidArbiter._zpp = zpp_nape;
53178
- zpp_nape.dynamics.ZPP_FluidArbiter = $hxClasses["zpp_nape.dynamics.ZPP_FluidArbiter"] = ZPP_FluidArbiter;
53530
+ zpp_nape.dynamics.ZPP_FluidArbiter = $hxClasses2["zpp_nape.dynamics.ZPP_FluidArbiter"] = ZPP_FluidArbiter;
53179
53531
  zpp_nape.dynamics.ZPP_FluidArbiter.prototype.__class__ = zpp_nape.dynamics.ZPP_FluidArbiter;
53180
53532
  ZPP_ColArbiter._nape = nape67;
53181
53533
  ZPP_ColArbiter._zpp = zpp_nape;
53182
- zpp_nape.dynamics.ZPP_ColArbiter = $hxClasses["zpp_nape.dynamics.ZPP_ColArbiter"] = ZPP_ColArbiter;
53534
+ zpp_nape.dynamics.ZPP_ColArbiter = $hxClasses2["zpp_nape.dynamics.ZPP_ColArbiter"] = ZPP_ColArbiter;
53183
53535
  zpp_nape.dynamics.ZPP_ColArbiter.prototype.__class__ = zpp_nape.dynamics.ZPP_ColArbiter;
53184
- zpp_nape.dynamics.ZPP_IContact = $hxClasses["zpp_nape.dynamics.ZPP_IContact"] = ZPP_IContact;
53536
+ zpp_nape.dynamics.ZPP_IContact = $hxClasses2["zpp_nape.dynamics.ZPP_IContact"] = ZPP_IContact;
53185
53537
  zpp_nape.dynamics.ZPP_IContact.prototype.__class__ = zpp_nape.dynamics.ZPP_IContact;
53186
53538
  ZPP_Contact._nape = nape67;
53187
53539
  ZPP_Contact._zpp = zpp_nape;
53188
- zpp_nape.dynamics.ZPP_Contact = $hxClasses["zpp_nape.dynamics.ZPP_Contact"] = ZPP_Contact;
53540
+ zpp_nape.dynamics.ZPP_Contact = $hxClasses2["zpp_nape.dynamics.ZPP_Contact"] = ZPP_Contact;
53189
53541
  zpp_nape.dynamics.ZPP_Contact.prototype.__class__ = zpp_nape.dynamics.ZPP_Contact;
53190
53542
  ZPP_InteractionFilter._nape = nape67;
53191
53543
  ZPP_InteractionFilter._zpp = zpp_nape;
53192
- zpp_nape.dynamics.ZPP_InteractionFilter = $hxClasses["zpp_nape.dynamics.ZPP_InteractionFilter"] = ZPP_InteractionFilter;
53544
+ zpp_nape.dynamics.ZPP_InteractionFilter = $hxClasses2["zpp_nape.dynamics.ZPP_InteractionFilter"] = ZPP_InteractionFilter;
53193
53545
  zpp_nape.dynamics.ZPP_InteractionFilter.prototype.__class__ = zpp_nape.dynamics.ZPP_InteractionFilter;
53194
53546
  ZPP_InteractionGroup._zpp = zpp_nape;
53195
- zpp_nape.dynamics.ZPP_InteractionGroup = $hxClasses["zpp_nape.dynamics.ZPP_InteractionGroup"] = ZPP_InteractionGroup;
53547
+ zpp_nape.dynamics.ZPP_InteractionGroup = $hxClasses2["zpp_nape.dynamics.ZPP_InteractionGroup"] = ZPP_InteractionGroup;
53196
53548
  zpp_nape.dynamics.ZPP_InteractionGroup.prototype.__class__ = zpp_nape.dynamics.ZPP_InteractionGroup;
53197
53549
  ZPP_SpaceArbiterList._nape = nape67;
53198
53550
  ZPP_SpaceArbiterList._zpp = zpp_nape;
53199
53551
  ZPP_SpaceArbiterList._init();
53200
- zpp_nape.dynamics.ZPP_SpaceArbiterList = $hxClasses["zpp_nape.dynamics.ZPP_SpaceArbiterList"] = ZPP_SpaceArbiterList;
53552
+ zpp_nape.dynamics.ZPP_SpaceArbiterList = $hxClasses2["zpp_nape.dynamics.ZPP_SpaceArbiterList"] = ZPP_SpaceArbiterList;
53201
53553
  zpp_nape.dynamics.ZPP_SpaceArbiterList.prototype.__class__ = zpp_nape.dynamics.ZPP_SpaceArbiterList;
53202
53554
  if (!zpp_nape.geom) zpp_nape.geom = {};
53203
53555
  ZPP_AABB._nape = nape67;
53204
53556
  ZPP_AABB._zpp = zpp_nape;
53205
- zpp_nape.geom.ZPP_AABB = $hxClasses["zpp_nape.geom.ZPP_AABB"] = ZPP_AABB;
53557
+ zpp_nape.geom.ZPP_AABB = $hxClasses2["zpp_nape.geom.ZPP_AABB"] = ZPP_AABB;
53206
53558
  zpp_nape.geom.ZPP_AABB.prototype.__class__ = zpp_nape.geom.ZPP_AABB;
53207
- zpp_nape.geom.ZPP_Collide = $hxClasses["zpp_nape.geom.ZPP_Collide"] = ZPP_Collide;
53559
+ zpp_nape.geom.ZPP_Collide = $hxClasses2["zpp_nape.geom.ZPP_Collide"] = ZPP_Collide;
53208
53560
  zpp_nape.geom.ZPP_Collide.prototype.__class__ = zpp_nape.geom.ZPP_Collide;
53209
- zpp_nape.geom.ZPP_Convex = $hxClasses["zpp_nape.geom.ZPP_Convex"] = ZPP_Convex;
53561
+ zpp_nape.geom.ZPP_Convex = $hxClasses2["zpp_nape.geom.ZPP_Convex"] = ZPP_Convex;
53210
53562
  zpp_nape.geom.ZPP_Convex.prototype.__class__ = zpp_nape.geom.ZPP_Convex;
53211
- zpp_nape.geom.ZPP_ConvexRayResult = $hxClasses["zpp_nape.geom.ZPP_ConvexRayResult"] = ZPP_ConvexRayResult;
53563
+ zpp_nape.geom.ZPP_ConvexRayResult = $hxClasses2["zpp_nape.geom.ZPP_ConvexRayResult"] = ZPP_ConvexRayResult;
53212
53564
  zpp_nape.geom.ZPP_ConvexRayResult.prototype.__class__ = zpp_nape.geom.ZPP_ConvexRayResult;
53213
- zpp_nape.geom.ZPP_CutVert = $hxClasses["zpp_nape.geom.ZPP_CutVert"] = ZPP_CutVert;
53565
+ zpp_nape.geom.ZPP_CutVert = $hxClasses2["zpp_nape.geom.ZPP_CutVert"] = ZPP_CutVert;
53214
53566
  zpp_nape.geom.ZPP_CutVert.prototype.__class__ = zpp_nape.geom.ZPP_CutVert;
53215
- zpp_nape.geom.ZPP_CutInt = $hxClasses["zpp_nape.geom.ZPP_CutInt"] = ZPP_CutInt;
53567
+ zpp_nape.geom.ZPP_CutInt = $hxClasses2["zpp_nape.geom.ZPP_CutInt"] = ZPP_CutInt;
53216
53568
  zpp_nape.geom.ZPP_CutInt.prototype.__class__ = zpp_nape.geom.ZPP_CutInt;
53217
- zpp_nape.geom.ZPP_Cutter = $hxClasses["zpp_nape.geom.ZPP_Cutter"] = ZPP_Cutter;
53569
+ zpp_nape.geom.ZPP_Cutter = $hxClasses2["zpp_nape.geom.ZPP_Cutter"] = ZPP_Cutter;
53218
53570
  zpp_nape.geom.ZPP_Cutter.prototype.__class__ = zpp_nape.geom.ZPP_Cutter;
53219
- zpp_nape.geom.ZPP_Geom = $hxClasses["zpp_nape.geom.ZPP_Geom"] = ZPP_Geom;
53571
+ zpp_nape.geom.ZPP_Geom = $hxClasses2["zpp_nape.geom.ZPP_Geom"] = ZPP_Geom;
53220
53572
  zpp_nape.geom.ZPP_Geom.prototype.__class__ = zpp_nape.geom.ZPP_Geom;
53221
- zpp_nape.geom.ZPP_GeomVert = $hxClasses["zpp_nape.geom.ZPP_GeomVert"] = ZPP_GeomVert;
53573
+ zpp_nape.geom.ZPP_GeomVert = $hxClasses2["zpp_nape.geom.ZPP_GeomVert"] = ZPP_GeomVert;
53222
53574
  zpp_nape.geom.ZPP_GeomVert.prototype.__class__ = zpp_nape.geom.ZPP_GeomVert;
53223
53575
  ZPP_GeomVert._createVec2Fn = function() {
53224
53576
  return new nape67.geom.Vec2();
53225
53577
  };
53226
- zpp_nape.geom.ZPP_GeomPoly = $hxClasses["zpp_nape.geom.ZPP_GeomPoly"] = ZPP_GeomPoly;
53578
+ zpp_nape.geom.ZPP_GeomPoly = $hxClasses2["zpp_nape.geom.ZPP_GeomPoly"] = ZPP_GeomPoly;
53227
53579
  zpp_nape.geom.ZPP_GeomPoly.prototype.__class__ = zpp_nape.geom.ZPP_GeomPoly;
53228
- zpp_nape.geom.ZPP_MarchSpan = $hxClasses["zpp_nape.geom.ZPP_MarchSpan"] = ZPP_MarchSpan;
53580
+ zpp_nape.geom.ZPP_MarchSpan = $hxClasses2["zpp_nape.geom.ZPP_MarchSpan"] = ZPP_MarchSpan;
53229
53581
  zpp_nape.geom.ZPP_MarchSpan.prototype.__class__ = zpp_nape.geom.ZPP_MarchSpan;
53230
- zpp_nape.geom.ZPP_MarchPair = $hxClasses["zpp_nape.geom.ZPP_MarchPair"] = ZPP_MarchPair;
53582
+ zpp_nape.geom.ZPP_MarchPair = $hxClasses2["zpp_nape.geom.ZPP_MarchPair"] = ZPP_MarchPair;
53231
53583
  zpp_nape.geom.ZPP_MarchPair.prototype.__class__ = zpp_nape.geom.ZPP_MarchPair;
53232
53584
  ZPP_MarchingSquares._init(zpp_nape, nape67);
53233
- zpp_nape.geom.ZPP_MarchingSquares = $hxClasses["zpp_nape.geom.ZPP_MarchingSquares"] = ZPP_MarchingSquares;
53585
+ zpp_nape.geom.ZPP_MarchingSquares = $hxClasses2["zpp_nape.geom.ZPP_MarchingSquares"] = ZPP_MarchingSquares;
53234
53586
  zpp_nape.geom.ZPP_MarchingSquares.prototype.__class__ = zpp_nape.geom.ZPP_MarchingSquares;
53235
53587
  ZPP_Mat23._nape = nape67;
53236
- zpp_nape.geom.ZPP_Mat23 = $hxClasses["zpp_nape.geom.ZPP_Mat23"] = ZPP_Mat23;
53588
+ zpp_nape.geom.ZPP_Mat23 = $hxClasses2["zpp_nape.geom.ZPP_Mat23"] = ZPP_Mat23;
53237
53589
  zpp_nape.geom.ZPP_Mat23.prototype.__class__ = zpp_nape.geom.ZPP_Mat23;
53238
- zpp_nape.geom.ZPP_MatMN = $hxClasses["zpp_nape.geom.ZPP_MatMN"] = ZPP_MatMN;
53590
+ zpp_nape.geom.ZPP_MatMN = $hxClasses2["zpp_nape.geom.ZPP_MatMN"] = ZPP_MatMN;
53239
53591
  zpp_nape.geom.ZPP_MatMN.prototype.__class__ = zpp_nape.geom.ZPP_MatMN;
53240
- zpp_nape.geom.ZPP_Monotone = $hxClasses["zpp_nape.geom.ZPP_Monotone"] = ZPP_Monotone;
53241
- zpp_nape.geom.ZPP_PartitionVertex = $hxClasses["zpp_nape.geom.ZPP_PartitionVertex"] = ZPP_PartitionVertex;
53592
+ zpp_nape.geom.ZPP_Monotone = $hxClasses2["zpp_nape.geom.ZPP_Monotone"] = ZPP_Monotone;
53593
+ zpp_nape.geom.ZPP_PartitionVertex = $hxClasses2["zpp_nape.geom.ZPP_PartitionVertex"] = ZPP_PartitionVertex;
53242
53594
  zpp_nape.geom.ZPP_PartitionVertex.prototype.__class__ = zpp_nape.geom.ZPP_PartitionVertex;
53243
- zpp_nape.geom.ZPP_PartitionedPoly = $hxClasses["zpp_nape.geom.ZPP_PartitionedPoly"] = ZPP_PartitionedPoly;
53595
+ zpp_nape.geom.ZPP_PartitionedPoly = $hxClasses2["zpp_nape.geom.ZPP_PartitionedPoly"] = ZPP_PartitionedPoly;
53244
53596
  zpp_nape.geom.ZPP_PartitionedPoly.prototype.__class__ = zpp_nape.geom.ZPP_PartitionedPoly;
53245
- zpp_nape.geom.ZPP_Ray = $hxClasses["zpp_nape.geom.ZPP_Ray"] = ZPP_Ray;
53597
+ zpp_nape.geom.ZPP_Ray = $hxClasses2["zpp_nape.geom.ZPP_Ray"] = ZPP_Ray;
53246
53598
  zpp_nape.geom.ZPP_Ray.prototype.__class__ = zpp_nape.geom.ZPP_Ray;
53247
- zpp_nape.geom.ZPP_SimpleVert = $hxClasses["zpp_nape.geom.ZPP_SimpleVert"] = ZPP_SimpleVert;
53599
+ zpp_nape.geom.ZPP_SimpleVert = $hxClasses2["zpp_nape.geom.ZPP_SimpleVert"] = ZPP_SimpleVert;
53248
53600
  zpp_nape.geom.ZPP_SimpleVert.prototype.__class__ = zpp_nape.geom.ZPP_SimpleVert;
53249
- zpp_nape.geom.ZPP_SimpleSeg = $hxClasses["zpp_nape.geom.ZPP_SimpleSeg"] = ZPP_SimpleSeg;
53601
+ zpp_nape.geom.ZPP_SimpleSeg = $hxClasses2["zpp_nape.geom.ZPP_SimpleSeg"] = ZPP_SimpleSeg;
53250
53602
  zpp_nape.geom.ZPP_SimpleSeg.prototype.__class__ = zpp_nape.geom.ZPP_SimpleSeg;
53251
- zpp_nape.geom.ZPP_SimpleEvent = $hxClasses["zpp_nape.geom.ZPP_SimpleEvent"] = ZPP_SimpleEvent;
53603
+ zpp_nape.geom.ZPP_SimpleEvent = $hxClasses2["zpp_nape.geom.ZPP_SimpleEvent"] = ZPP_SimpleEvent;
53252
53604
  zpp_nape.geom.ZPP_SimpleEvent.prototype.__class__ = zpp_nape.geom.ZPP_SimpleEvent;
53253
- zpp_nape.geom.ZPP_SimpleSweep = $hxClasses["zpp_nape.geom.ZPP_SimpleSweep"] = ZPP_SimpleSweep;
53605
+ zpp_nape.geom.ZPP_SimpleSweep = $hxClasses2["zpp_nape.geom.ZPP_SimpleSweep"] = ZPP_SimpleSweep;
53254
53606
  zpp_nape.geom.ZPP_SimpleSweep.prototype.__class__ = zpp_nape.geom.ZPP_SimpleSweep;
53255
- zpp_nape.geom.ZPP_Simple = $hxClasses["zpp_nape.geom.ZPP_Simple"] = ZPP_Simple;
53607
+ zpp_nape.geom.ZPP_Simple = $hxClasses2["zpp_nape.geom.ZPP_Simple"] = ZPP_Simple;
53256
53608
  zpp_nape.geom.ZPP_Simple.prototype.__class__ = zpp_nape.geom.ZPP_Simple;
53257
- zpp_nape.geom.ZPP_SimplifyV = $hxClasses["zpp_nape.geom.ZPP_SimplifyV"] = ZPP_SimplifyV;
53609
+ zpp_nape.geom.ZPP_SimplifyV = $hxClasses2["zpp_nape.geom.ZPP_SimplifyV"] = ZPP_SimplifyV;
53258
53610
  zpp_nape.geom.ZPP_SimplifyV.prototype.__class__ = zpp_nape.geom.ZPP_SimplifyV;
53259
- zpp_nape.geom.ZPP_SimplifyP = $hxClasses["zpp_nape.geom.ZPP_SimplifyP"] = ZPP_SimplifyP;
53611
+ zpp_nape.geom.ZPP_SimplifyP = $hxClasses2["zpp_nape.geom.ZPP_SimplifyP"] = ZPP_SimplifyP;
53260
53612
  zpp_nape.geom.ZPP_SimplifyP.prototype.__class__ = zpp_nape.geom.ZPP_SimplifyP;
53261
- zpp_nape.geom.ZPP_Simplify = $hxClasses["zpp_nape.geom.ZPP_Simplify"] = ZPP_Simplify;
53613
+ zpp_nape.geom.ZPP_Simplify = $hxClasses2["zpp_nape.geom.ZPP_Simplify"] = ZPP_Simplify;
53262
53614
  zpp_nape.geom.ZPP_Simplify.prototype.__class__ = zpp_nape.geom.ZPP_Simplify;
53263
- zpp_nape.geom.ZPP_ToiEvent = $hxClasses["zpp_nape.geom.ZPP_ToiEvent"] = ZPP_ToiEvent;
53615
+ zpp_nape.geom.ZPP_ToiEvent = $hxClasses2["zpp_nape.geom.ZPP_ToiEvent"] = ZPP_ToiEvent;
53264
53616
  zpp_nape.geom.ZPP_ToiEvent.prototype.__class__ = zpp_nape.geom.ZPP_ToiEvent;
53265
- zpp_nape.geom.ZPP_SweepDistance = $hxClasses["zpp_nape.geom.ZPP_SweepDistance"] = ZPP_SweepDistance;
53617
+ zpp_nape.geom.ZPP_SweepDistance = $hxClasses2["zpp_nape.geom.ZPP_SweepDistance"] = ZPP_SweepDistance;
53266
53618
  zpp_nape.geom.ZPP_SweepDistance.prototype.__class__ = zpp_nape.geom.ZPP_SweepDistance;
53267
- zpp_nape.geom.ZPP_PartitionPair = $hxClasses["zpp_nape.geom.ZPP_PartitionPair"] = ZPP_PartitionPair;
53619
+ zpp_nape.geom.ZPP_PartitionPair = $hxClasses2["zpp_nape.geom.ZPP_PartitionPair"] = ZPP_PartitionPair;
53268
53620
  zpp_nape.geom.ZPP_PartitionPair.prototype.__class__ = zpp_nape.geom.ZPP_PartitionPair;
53269
- zpp_nape.geom.ZPP_Triangular = $hxClasses["zpp_nape.geom.ZPP_Triangular"] = ZPP_Triangular;
53621
+ zpp_nape.geom.ZPP_Triangular = $hxClasses2["zpp_nape.geom.ZPP_Triangular"] = ZPP_Triangular;
53270
53622
  zpp_nape.geom.ZPP_Triangular.prototype.__class__ = zpp_nape.geom.ZPP_Triangular;
53271
- zpp_nape.geom.ZPP_Vec2 = $hxClasses["zpp_nape.geom.ZPP_Vec2"] = ZPP_Vec2;
53623
+ zpp_nape.geom.ZPP_Vec2 = $hxClasses2["zpp_nape.geom.ZPP_Vec2"] = ZPP_Vec2;
53272
53624
  zpp_nape.geom.ZPP_Vec2.prototype.__class__ = zpp_nape.geom.ZPP_Vec2;
53273
53625
  ZPP_Vec3._zpp = zpp_nape;
53274
- zpp_nape.geom.ZPP_Vec3 = $hxClasses["zpp_nape.geom.ZPP_Vec3"] = ZPP_Vec3;
53626
+ zpp_nape.geom.ZPP_Vec3 = $hxClasses2["zpp_nape.geom.ZPP_Vec3"] = ZPP_Vec3;
53275
53627
  zpp_nape.geom.ZPP_Vec3.prototype.__class__ = zpp_nape.geom.ZPP_Vec3;
53276
- zpp_nape.geom.ZPP_VecMath = $hxClasses["zpp_nape.geom.ZPP_VecMath"] = ZPP_VecMath;
53628
+ zpp_nape.geom.ZPP_VecMath = $hxClasses2["zpp_nape.geom.ZPP_VecMath"] = ZPP_VecMath;
53277
53629
  zpp_nape.geom.ZPP_VecMath.prototype.__class__ = zpp_nape.geom.ZPP_VecMath;
53278
53630
  if (!zpp_nape.phys) zpp_nape.phys = {};
53279
- zpp_nape.phys.ZPP_Interactor = $hxClasses["zpp_nape.phys.ZPP_Interactor"] = ZPP_Interactor;
53631
+ zpp_nape.phys.ZPP_Interactor = $hxClasses2["zpp_nape.phys.ZPP_Interactor"] = ZPP_Interactor;
53280
53632
  ZPP_Interactor._init(zpp_nape, nape67);
53281
53633
  zpp_nape.phys.ZPP_Interactor.prototype.__class__ = zpp_nape.phys.ZPP_Interactor;
53282
53634
  ZPP_Body._init(zpp_nape, nape67);
53283
- zpp_nape.phys.ZPP_Body = $hxClasses["zpp_nape.phys.ZPP_Body"] = ZPP_Body;
53635
+ zpp_nape.phys.ZPP_Body = $hxClasses2["zpp_nape.phys.ZPP_Body"] = ZPP_Body;
53284
53636
  zpp_nape.phys.ZPP_Body.prototype.__class__ = zpp_nape.phys.ZPP_Body;
53285
53637
  ZPP_Compound._nape = nape67;
53286
53638
  ZPP_Compound._zpp = zpp_nape;
53287
53639
  ZPP_Compound._init();
53288
- zpp_nape.phys.ZPP_Compound = $hxClasses["zpp_nape.phys.ZPP_Compound"] = ZPP_Compound;
53640
+ zpp_nape.phys.ZPP_Compound = $hxClasses2["zpp_nape.phys.ZPP_Compound"] = ZPP_Compound;
53289
53641
  zpp_nape.phys.ZPP_Compound.prototype.__class__ = zpp_nape.phys.ZPP_Compound;
53290
53642
  ZPP_FluidProperties._nape = nape67;
53291
53643
  ZPP_FluidProperties._zpp = zpp_nape;
53292
- zpp_nape.phys.ZPP_FluidProperties = $hxClasses["zpp_nape.phys.ZPP_FluidProperties"] = ZPP_FluidProperties;
53644
+ zpp_nape.phys.ZPP_FluidProperties = $hxClasses2["zpp_nape.phys.ZPP_FluidProperties"] = ZPP_FluidProperties;
53293
53645
  zpp_nape.phys.ZPP_FluidProperties.prototype.__class__ = zpp_nape.phys.ZPP_FluidProperties;
53294
53646
  ZPP_Material._nape = nape67;
53295
53647
  ZPP_Material._zpp = zpp_nape;
53296
- zpp_nape.phys.ZPP_Material = $hxClasses["zpp_nape.phys.ZPP_Material"] = ZPP_Material;
53648
+ zpp_nape.phys.ZPP_Material = $hxClasses2["zpp_nape.phys.ZPP_Material"] = ZPP_Material;
53297
53649
  zpp_nape.phys.ZPP_Material.prototype.__class__ = zpp_nape.phys.ZPP_Material;
53298
53650
  if (!zpp_nape.shape) zpp_nape.shape = {};
53299
53651
  ZPP_Shape._nape = nape67;
53300
53652
  ZPP_Shape._zpp = zpp_nape;
53301
53653
  ZPP_Shape._init();
53302
- zpp_nape.shape.ZPP_Shape = $hxClasses["zpp_nape.shape.ZPP_Shape"] = ZPP_Shape;
53654
+ zpp_nape.shape.ZPP_Shape = $hxClasses2["zpp_nape.shape.ZPP_Shape"] = ZPP_Shape;
53303
53655
  zpp_nape.shape.ZPP_Shape.prototype.__class__ = zpp_nape.shape.ZPP_Shape;
53304
53656
  ZPP_Circle._nape = nape67;
53305
53657
  ZPP_Circle._zpp = zpp_nape;
53306
53658
  ZPP_Circle._init();
53307
- zpp_nape.shape.ZPP_Circle = $hxClasses["zpp_nape.shape.ZPP_Circle"] = ZPP_Circle;
53659
+ zpp_nape.shape.ZPP_Circle = $hxClasses2["zpp_nape.shape.ZPP_Circle"] = ZPP_Circle;
53308
53660
  zpp_nape.shape.ZPP_Circle.prototype.__class__ = zpp_nape.shape.ZPP_Circle;
53309
53661
  ZPP_Edge._nape = nape67;
53310
53662
  ZPP_Edge._zpp = zpp_nape;
53311
- zpp_nape.shape.ZPP_Edge = $hxClasses["zpp_nape.shape.ZPP_Edge"] = ZPP_Edge;
53663
+ zpp_nape.shape.ZPP_Edge = $hxClasses2["zpp_nape.shape.ZPP_Edge"] = ZPP_Edge;
53312
53664
  zpp_nape.shape.ZPP_Edge.prototype.__class__ = zpp_nape.shape.ZPP_Edge;
53313
53665
  ZPP_Polygon._nape = nape67;
53314
53666
  ZPP_Polygon._zpp = zpp_nape;
53315
53667
  ZPP_Polygon._init();
53316
- zpp_nape.shape.ZPP_Polygon = $hxClasses["zpp_nape.shape.ZPP_Polygon"] = ZPP_Polygon;
53668
+ zpp_nape.shape.ZPP_Polygon = $hxClasses2["zpp_nape.shape.ZPP_Polygon"] = ZPP_Polygon;
53317
53669
  zpp_nape.shape.ZPP_Polygon.prototype.__class__ = zpp_nape.shape.ZPP_Polygon;
53318
53670
  if (!zpp_nape.space) zpp_nape.space = {};
53319
53671
  ZPP_Broadphase._zpp = zpp_nape;
53320
53672
  ZPP_Broadphase._nape = nape67;
53321
- zpp_nape.space.ZPP_Broadphase = $hxClasses["zpp_nape.space.ZPP_Broadphase"] = ZPP_Broadphase;
53673
+ zpp_nape.space.ZPP_Broadphase = $hxClasses2["zpp_nape.space.ZPP_Broadphase"] = ZPP_Broadphase;
53322
53674
  zpp_nape.space.ZPP_Broadphase.prototype.__class__ = zpp_nape.space.ZPP_Broadphase;
53323
- zpp_nape.space.ZPP_AABBNode = $hxClasses["zpp_nape.space.ZPP_AABBNode"] = ZPP_AABBNode;
53675
+ zpp_nape.space.ZPP_AABBNode = $hxClasses2["zpp_nape.space.ZPP_AABBNode"] = ZPP_AABBNode;
53324
53676
  zpp_nape.space.ZPP_AABBNode.prototype.__class__ = zpp_nape.space.ZPP_AABBNode;
53325
- zpp_nape.space.ZPP_AABBPair = $hxClasses["zpp_nape.space.ZPP_AABBPair"] = ZPP_AABBPair;
53677
+ zpp_nape.space.ZPP_AABBPair = $hxClasses2["zpp_nape.space.ZPP_AABBPair"] = ZPP_AABBPair;
53326
53678
  zpp_nape.space.ZPP_AABBPair.prototype.__class__ = zpp_nape.space.ZPP_AABBPair;
53327
- zpp_nape.space.ZPP_AABBTree = $hxClasses["zpp_nape.space.ZPP_AABBTree"] = ZPP_AABBTree;
53679
+ zpp_nape.space.ZPP_AABBTree = $hxClasses2["zpp_nape.space.ZPP_AABBTree"] = ZPP_AABBTree;
53328
53680
  zpp_nape.space.ZPP_AABBTree.prototype.__class__ = zpp_nape.space.ZPP_AABBTree;
53329
53681
  ZPP_DynAABBPhase._zpp = zpp_nape;
53330
53682
  ZPP_DynAABBPhase._nape = nape67;
53331
53683
  ZPP_DynAABBPhase._init();
53332
- zpp_nape.space.ZPP_DynAABBPhase = $hxClasses["zpp_nape.space.ZPP_DynAABBPhase"] = ZPP_DynAABBPhase;
53684
+ zpp_nape.space.ZPP_DynAABBPhase = $hxClasses2["zpp_nape.space.ZPP_DynAABBPhase"] = ZPP_DynAABBPhase;
53333
53685
  zpp_nape.space.ZPP_DynAABBPhase.prototype.__class__ = zpp_nape.space.ZPP_DynAABBPhase;
53334
53686
  ZPP_Island._zpp = zpp_nape;
53335
- zpp_nape.space.ZPP_Island = $hxClasses["zpp_nape.space.ZPP_Island"] = ZPP_Island;
53687
+ zpp_nape.space.ZPP_Island = $hxClasses2["zpp_nape.space.ZPP_Island"] = ZPP_Island;
53336
53688
  zpp_nape.space.ZPP_Island.prototype.__class__ = zpp_nape.space.ZPP_Island;
53337
- zpp_nape.space.ZPP_Component = $hxClasses["zpp_nape.space.ZPP_Component"] = ZPP_Component;
53689
+ zpp_nape.space.ZPP_Component = $hxClasses2["zpp_nape.space.ZPP_Component"] = ZPP_Component;
53338
53690
  zpp_nape.space.ZPP_Component.prototype.__class__ = zpp_nape.space.ZPP_Component;
53339
53691
  ZPP_CallbackSet._zpp = zpp_nape;
53340
- zpp_nape.space.ZPP_CallbackSet = $hxClasses["zpp_nape.space.ZPP_CallbackSet"] = ZPP_CallbackSet;
53692
+ zpp_nape.space.ZPP_CallbackSet = $hxClasses2["zpp_nape.space.ZPP_CallbackSet"] = ZPP_CallbackSet;
53341
53693
  zpp_nape.space.ZPP_CallbackSet.prototype.__class__ = zpp_nape.space.ZPP_CallbackSet;
53342
53694
  ZPP_CbSetManager._zpp = zpp_nape;
53343
- zpp_nape.space.ZPP_CbSetManager = $hxClasses["zpp_nape.space.ZPP_CbSetManager"] = ZPP_CbSetManager;
53695
+ zpp_nape.space.ZPP_CbSetManager = $hxClasses2["zpp_nape.space.ZPP_CbSetManager"] = ZPP_CbSetManager;
53344
53696
  zpp_nape.space.ZPP_CbSetManager.prototype.__class__ = zpp_nape.space.ZPP_CbSetManager;
53345
53697
  ZPP_Space._zpp = zpp_nape;
53346
53698
  ZPP_Space._nape = nape67;
53347
- zpp_nape.space.ZPP_Space = $hxClasses["zpp_nape.space.ZPP_Space"] = ZPP_Space;
53699
+ zpp_nape.space.ZPP_Space = $hxClasses2["zpp_nape.space.ZPP_Space"] = ZPP_Space;
53348
53700
  zpp_nape.space.ZPP_Space.prototype.__class__ = zpp_nape.space.ZPP_Space;
53349
- zpp_nape.space.ZPP_SweepData = $hxClasses["zpp_nape.space.ZPP_SweepData"] = ZPP_SweepData;
53701
+ zpp_nape.space.ZPP_SweepData = $hxClasses2["zpp_nape.space.ZPP_SweepData"] = ZPP_SweepData;
53350
53702
  zpp_nape.space.ZPP_SweepData.prototype.__class__ = zpp_nape.space.ZPP_SweepData;
53351
53703
  ZPP_SweepPhase._zpp = zpp_nape;
53352
53704
  ZPP_SweepPhase._nape = nape67;
53353
53705
  ZPP_SweepPhase._init();
53354
- zpp_nape.space.ZPP_SweepPhase = $hxClasses["zpp_nape.space.ZPP_SweepPhase"] = ZPP_SweepPhase;
53706
+ zpp_nape.space.ZPP_SweepPhase = $hxClasses2["zpp_nape.space.ZPP_SweepPhase"] = ZPP_SweepPhase;
53355
53707
  zpp_nape.space.ZPP_SweepPhase.prototype.__class__ = zpp_nape.space.ZPP_SweepPhase;
53356
- zpp_nape.util.ZNPArray2_Float = $hxClasses["zpp_nape.util.ZNPArray2_Float"] = function(width, height) {
53357
- this.width = 0;
53358
- this.list = null;
53359
- this.width = width;
53360
- this.list = [];
53361
- };
53362
- zpp_nape.util.ZNPArray2_Float.__name__ = [
53363
- "zpp_nape",
53364
- "util",
53365
- "ZNPArray2_Float"
53366
- ];
53367
- zpp_nape.util.ZNPArray2_Float.prototype.list = null;
53368
- zpp_nape.util.ZNPArray2_Float.prototype.width = null;
53369
- zpp_nape.util.ZNPArray2_Float.prototype.resize = function(width, height, def) {
53370
- this.width = width;
53371
- var _g = 0;
53372
- var _g1 = width * height;
53373
- while (_g < _g1) {
53374
- var i = _g++;
53375
- this.list[i] = def;
53376
- }
53377
- };
53378
- zpp_nape.util.ZNPArray2_Float.prototype.get = function(x, y) {
53379
- return this.list[y * this.width + x];
53380
- };
53381
- zpp_nape.util.ZNPArray2_Float.prototype.set = function(x, y, obj) {
53382
- return this.list[y * this.width + x] = obj;
53383
- };
53384
- zpp_nape.util.ZNPArray2_Float.prototype.__class__ = zpp_nape.util.ZNPArray2_Float;
53385
- zpp_nape.util.ZNPArray2_ZPP_GeomVert = $hxClasses["zpp_nape.util.ZNPArray2_ZPP_GeomVert"] = function(width, height) {
53386
- this.width = 0;
53387
- this.list = null;
53388
- this.width = width;
53389
- this.list = [];
53390
- };
53391
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.__name__ = [
53392
- "zpp_nape",
53393
- "util",
53394
- "ZNPArray2_ZPP_GeomVert"
53395
- ];
53396
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.list = null;
53397
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.width = null;
53398
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.resize = function(width, height, def) {
53399
- this.width = width;
53400
- var _g = 0;
53401
- var _g1 = width * height;
53402
- while (_g < _g1) {
53403
- var i = _g++;
53404
- this.list[i] = def;
53405
- }
53406
- };
53407
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.get = function(x, y) {
53408
- return this.list[y * this.width + x];
53409
- };
53410
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.set = function(x, y, obj) {
53411
- return this.list[y * this.width + x] = obj;
53412
- };
53413
- zpp_nape.util.ZNPArray2_ZPP_GeomVert.prototype.__class__ = zpp_nape.util.ZNPArray2_ZPP_GeomVert;
53414
- zpp_nape.util.ZNPArray2_ZPP_MarchPair = $hxClasses["zpp_nape.util.ZNPArray2_ZPP_MarchPair"] = function(width, height) {
53415
- this.width = 0;
53416
- this.list = null;
53417
- this.width = width;
53418
- this.list = [];
53419
- };
53420
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.__name__ = [
53421
- "zpp_nape",
53422
- "util",
53423
- "ZNPArray2_ZPP_MarchPair"
53424
- ];
53425
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.list = null;
53426
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.width = null;
53427
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.resize = function(width, height, def) {
53428
- this.width = width;
53429
- var _g = 0;
53430
- var _g1 = width * height;
53431
- while (_g < _g1) {
53432
- var i = _g++;
53433
- this.list[i] = def;
53434
- }
53435
- };
53436
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.get = function(x, y) {
53437
- return this.list[y * this.width + x];
53438
- };
53439
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.set = function(x, y, obj) {
53440
- return this.list[y * this.width + x] = obj;
53441
- };
53442
- zpp_nape.util.ZNPArray2_ZPP_MarchPair.prototype.__class__ = zpp_nape.util.ZNPArray2_ZPP_MarchPair;
53443
- zpp_nape.util.Hashable2_Boolfalse = $hxClasses["zpp_nape.util.Hashable2_Boolfalse"] = function() {
53444
- this.di = 0;
53445
- this.id = 0;
53446
- this.hnext = null;
53447
- this.next = null;
53448
- this.value = false;
53449
- };
53450
- zpp_nape.util.Hashable2_Boolfalse.__name__ = [
53451
- "zpp_nape",
53452
- "util",
53453
- "Hashable2_Boolfalse"
53454
- ];
53455
- zpp_nape.util.Hashable2_Boolfalse.get = function(id, di, val) {
53456
- var ret;
53457
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53458
- ret = new zpp_nape.util.Hashable2_Boolfalse();
53459
- } else {
53460
- ret = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53461
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret.next;
53462
- ret.next = null;
53463
- }
53464
- ret.id = id;
53465
- ret.di = di;
53466
- var ret1 = ret;
53467
- ret1.value = val;
53468
- return ret1;
53469
- };
53470
- zpp_nape.util.Hashable2_Boolfalse.getpersist = function(id, di) {
53471
- var ret;
53472
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53473
- ret = new zpp_nape.util.Hashable2_Boolfalse();
53474
- } else {
53475
- ret = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53476
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret.next;
53477
- ret.next = null;
53478
- }
53479
- ret.id = id;
53480
- ret.di = di;
53481
- return ret;
53482
- };
53483
- zpp_nape.util.Hashable2_Boolfalse.ordered_get = function(id, di, val) {
53484
- if (id <= di) {
53485
- var ret;
53486
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53487
- ret = new zpp_nape.util.Hashable2_Boolfalse();
53488
- } else {
53489
- ret = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53490
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret.next;
53491
- ret.next = null;
53492
- }
53493
- ret.id = id;
53494
- ret.di = di;
53495
- var ret1 = ret;
53496
- ret1.value = val;
53497
- return ret1;
53498
- } else {
53499
- var ret2;
53500
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53501
- ret2 = new zpp_nape.util.Hashable2_Boolfalse();
53502
- } else {
53503
- ret2 = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53504
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret2.next;
53505
- ret2.next = null;
53506
- }
53507
- ret2.id = di;
53508
- ret2.di = id;
53509
- var ret3 = ret2;
53510
- ret3.value = val;
53511
- return ret3;
53512
- }
53513
- };
53514
- zpp_nape.util.Hashable2_Boolfalse.ordered_get_persist = function(id, di) {
53515
- if (id <= di) {
53516
- var ret;
53517
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53518
- ret = new zpp_nape.util.Hashable2_Boolfalse();
53519
- } else {
53520
- ret = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53521
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret.next;
53522
- ret.next = null;
53523
- }
53524
- ret.id = id;
53525
- ret.di = di;
53526
- return ret;
53527
- } else {
53528
- var ret1;
53529
- if (zpp_nape.util.Hashable2_Boolfalse.zpp_pool == null) {
53530
- ret1 = new zpp_nape.util.Hashable2_Boolfalse();
53531
- } else {
53532
- ret1 = zpp_nape.util.Hashable2_Boolfalse.zpp_pool;
53533
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = ret1.next;
53534
- ret1.next = null;
53535
- }
53536
- ret1.id = di;
53537
- ret1.di = id;
53538
- return ret1;
53539
- }
53540
- };
53541
- zpp_nape.util.Hashable2_Boolfalse.prototype.value = null;
53542
- zpp_nape.util.Hashable2_Boolfalse.prototype.next = null;
53543
- zpp_nape.util.Hashable2_Boolfalse.prototype.hnext = null;
53544
- zpp_nape.util.Hashable2_Boolfalse.prototype.id = null;
53545
- zpp_nape.util.Hashable2_Boolfalse.prototype.di = null;
53546
- zpp_nape.util.Hashable2_Boolfalse.prototype.free = function() {
53547
- };
53548
- zpp_nape.util.Hashable2_Boolfalse.prototype.alloc = function() {
53549
- };
53550
- zpp_nape.util.Hashable2_Boolfalse.prototype.__class__ = zpp_nape.util.Hashable2_Boolfalse;
53551
- zpp_nape.util.FastHash2_Hashable2_Boolfalse = $hxClasses["zpp_nape.util.FastHash2_Hashable2_Boolfalse"] = function() {
53552
- this.cnt = 0;
53553
- this.table = null;
53554
- this.cnt = 0;
53555
- this.table = [];
53556
- var _g = 0;
53557
- var _g1 = 1048576;
53558
- while (_g < _g1) {
53559
- var i = _g++;
53560
- this.table.push(null);
53561
- }
53562
- };
53563
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.__name__ = [
53564
- "zpp_nape",
53565
- "util",
53566
- "FastHash2_Hashable2_Boolfalse"
53567
- ];
53568
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.table = null;
53569
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.cnt = null;
53570
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.empty = function() {
53571
- return this.cnt == 0;
53572
- };
53573
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.clear = function() {
53574
- var _g = 0;
53575
- var _g1 = this.table.length;
53576
- while (_g < _g1) {
53577
- var i = _g++;
53578
- var n = this.table[i];
53579
- if (n == null) {
53580
- continue;
53581
- }
53582
- while (n != null) {
53583
- var t = n.hnext;
53584
- n.hnext = null;
53585
- n = t;
53586
- }
53587
- this.table[i] = null;
53588
- }
53589
- };
53590
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.get = function(id, di) {
53591
- var n = this.table[id * 106039 + di & 1048575];
53592
- if (n == null) {
53593
- return null;
53594
- } else if (n.id == id && n.di == di) {
53595
- return n;
53596
- } else {
53597
- while (true) {
53598
- n = n.hnext;
53599
- if (!(n != null && (n.id != id || n.di != di))) {
53600
- break;
53601
- }
53602
- }
53603
- return n;
53604
- }
53605
- };
53606
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.ordered_get = function(id, di) {
53607
- if (id > di) {
53608
- var t = id;
53609
- id = di;
53610
- di = t;
53611
- }
53612
- var n = this.table[id * 106039 + di & 1048575];
53613
- if (n == null) {
53614
- return null;
53615
- } else if (n.id == id && n.di == di) {
53616
- return n;
53617
- } else {
53618
- while (true) {
53619
- n = n.hnext;
53620
- if (!(n != null && (n.id != id || n.di != di))) {
53621
- break;
53622
- }
53623
- }
53624
- return n;
53625
- }
53626
- };
53627
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.has = function(id, di) {
53628
- var n = this.table[id * 106039 + di & 1048575];
53629
- if (n == null) {
53630
- return false;
53631
- } else if (n.id == id && n.di == di) {
53632
- return true;
53633
- } else {
53634
- while (true) {
53635
- n = n.hnext;
53636
- if (!(n != null && (n.id != id || n.di != di))) {
53637
- break;
53638
- }
53639
- }
53640
- return n != null;
53641
- }
53642
- };
53643
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.maybeAdd = function(arb) {
53644
- var h = arb.id * 106039 + arb.di & 1048575;
53645
- var n = this.table[h];
53646
- var cont = true;
53647
- if (n == null) {
53648
- this.table[h] = arb;
53649
- arb.hnext = null;
53650
- } else if (cont) {
53651
- arb.hnext = n.hnext;
53652
- n.hnext = arb;
53653
- }
53654
- if (cont) {
53655
- this.cnt++;
53656
- }
53657
- };
53658
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.add = function(arb) {
53659
- var h = arb.id * 106039 + arb.di & 1048575;
53660
- var n = this.table[h];
53661
- if (n == null) {
53662
- this.table[h] = arb;
53663
- arb.hnext = null;
53664
- } else {
53665
- arb.hnext = n.hnext;
53666
- n.hnext = arb;
53667
- }
53668
- this.cnt++;
53669
- };
53670
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.remove = function(arb) {
53671
- var h = arb.id * 106039 + arb.di & 1048575;
53672
- var n = this.table[h];
53673
- if (n == arb) {
53674
- this.table[h] = n.hnext;
53675
- } else if (n != null) {
53676
- var pre;
53677
- while (true) {
53678
- pre = n;
53679
- n = n.hnext;
53680
- if (!(n != null && n != arb)) {
53681
- break;
53682
- }
53683
- }
53684
- pre.hnext = n.hnext;
53685
- }
53686
- arb.hnext = null;
53687
- this.cnt--;
53688
- };
53689
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.hash = function(id, di) {
53690
- return id * 106039 + di & 1048575;
53691
- };
53692
- zpp_nape.util.FastHash2_Hashable2_Boolfalse.prototype.__class__ = zpp_nape.util.FastHash2_Hashable2_Boolfalse;
53708
+ zpp_nape.util.ZNPArray2_Float = ZNPArray2_Float;
53709
+ zpp_nape.util.ZNPArray2_ZPP_GeomVert = ZNPArray2_ZPP_GeomVert;
53710
+ zpp_nape.util.ZNPArray2_ZPP_MarchPair = ZNPArray2_ZPP_MarchPair;
53711
+ zpp_nape.util.Hashable2_Boolfalse = Hashable2_Boolfalse;
53712
+ zpp_nape.util.FastHash2_Hashable2_Boolfalse = FastHash2_Hashable2_Boolfalse;
53693
53713
  zpp_nape.util.ZNPNode_ZPP_CbType;
53694
53714
  zpp_nape.util.ZNPNode_ZPP_CallbackSet;
53695
53715
  zpp_nape.util.ZNPNode_ZPP_Shape;
@@ -53725,7 +53745,7 @@ define(function() {
53725
53745
  zpp_nape.util.ZNPNode_ConvexResult;
53726
53746
  zpp_nape.util.ZNPNode_ZPP_GeomPoly;
53727
53747
  zpp_nape.util.ZNPNode_RayResult;
53728
- zpp_nape.util.ZPP_MixVec2List = $hxClasses["zpp_nape.util.ZPP_MixVec2List"] = function() {
53748
+ zpp_nape.util.ZPP_MixVec2List = $hxClasses2["zpp_nape.util.ZPP_MixVec2List"] = function() {
53729
53749
  this.at_index = 0;
53730
53750
  this.at_ite = null;
53731
53751
  this.zip_length = false;
@@ -53784,7 +53804,7 @@ define(function() {
53784
53804
  zpp_nape.util.ZPP_MixVec2List.prototype.at = function(index) {
53785
53805
  this.zpp_vm();
53786
53806
  if (index < 0 || index >= this.zpp_gl()) {
53787
- throw new js._Boot.HaxeError("Error: Index out of bounds");
53807
+ throw new js2._Boot.HaxeError("Error: Index out of bounds");
53788
53808
  }
53789
53809
  if (this.zpp_inner.reverse_flag) {
53790
53810
  index = this.zpp_gl() - 1 - index;
@@ -53824,12 +53844,12 @@ define(function() {
53824
53844
  };
53825
53845
  zpp_nape.util.ZPP_MixVec2List.prototype.push = function(obj) {
53826
53846
  if (this.zpp_inner.immutable) {
53827
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
53847
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
53828
53848
  }
53829
53849
  this.zpp_inner.modify_test();
53830
53850
  this.zpp_vm();
53831
53851
  if (obj.zpp_inner._inuse) {
53832
- throw new js._Boot.HaxeError("Error: Vec2 is already in use");
53852
+ throw new js2._Boot.HaxeError("Error: Vec2 is already in use");
53833
53853
  }
53834
53854
  var cont = this.zpp_inner.adder != null ? this.zpp_inner.adder(obj) : true;
53835
53855
  if (cont) {
@@ -53848,12 +53868,12 @@ define(function() {
53848
53868
  };
53849
53869
  zpp_nape.util.ZPP_MixVec2List.prototype.unshift = function(obj) {
53850
53870
  if (this.zpp_inner.immutable) {
53851
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
53871
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
53852
53872
  }
53853
53873
  this.zpp_inner.modify_test();
53854
53874
  this.zpp_vm();
53855
53875
  if (obj.zpp_inner._inuse) {
53856
- throw new js._Boot.HaxeError("Error: Vec2 is already in use");
53876
+ throw new js2._Boot.HaxeError("Error: Vec2 is already in use");
53857
53877
  }
53858
53878
  var cont = this.zpp_inner.adder != null ? this.zpp_inner.adder(obj) : true;
53859
53879
  if (cont) {
@@ -53872,11 +53892,11 @@ define(function() {
53872
53892
  };
53873
53893
  zpp_nape.util.ZPP_MixVec2List.prototype.pop = function() {
53874
53894
  if (this.zpp_inner.immutable) {
53875
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
53895
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
53876
53896
  }
53877
53897
  this.zpp_inner.modify_test();
53878
53898
  if (this.empty()) {
53879
- throw new js._Boot.HaxeError("Error: Cannot remove from empty list");
53899
+ throw new js2._Boot.HaxeError("Error: Cannot remove from empty list");
53880
53900
  }
53881
53901
  this.zpp_vm();
53882
53902
  var ret = null;
@@ -53951,11 +53971,11 @@ define(function() {
53951
53971
  };
53952
53972
  zpp_nape.util.ZPP_MixVec2List.prototype.shift = function() {
53953
53973
  if (this.zpp_inner.immutable) {
53954
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
53974
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
53955
53975
  }
53956
53976
  this.zpp_inner.modify_test();
53957
53977
  if (this.empty()) {
53958
- throw new js._Boot.HaxeError("Error: Cannot remove from empty list");
53978
+ throw new js2._Boot.HaxeError("Error: Cannot remove from empty list");
53959
53979
  }
53960
53980
  this.zpp_vm();
53961
53981
  var ret = null;
@@ -54030,7 +54050,7 @@ define(function() {
54030
54050
  };
54031
54051
  zpp_nape.util.ZPP_MixVec2List.prototype.remove = function(obj) {
54032
54052
  if (this.zpp_inner.immutable) {
54033
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
54053
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
54034
54054
  }
54035
54055
  this.zpp_inner.modify_test();
54036
54056
  this.zpp_vm();
@@ -54058,7 +54078,7 @@ define(function() {
54058
54078
  };
54059
54079
  zpp_nape.util.ZPP_MixVec2List.prototype.clear = function() {
54060
54080
  if (this.zpp_inner.immutable) {
54061
- throw new js._Boot.HaxeError("Error: Vec2List is immutable");
54081
+ throw new js2._Boot.HaxeError("Error: Vec2List is immutable");
54062
54082
  }
54063
54083
  if (this.zpp_inner.reverse_flag) {
54064
54084
  while (!this.empty()) this.pop();
@@ -54067,354 +54087,28 @@ define(function() {
54067
54087
  }
54068
54088
  };
54069
54089
  zpp_nape.util.ZPP_MixVec2List.prototype.__class__ = zpp_nape.util.ZPP_MixVec2List;
54070
- zpp_nape.util.ZPP_Math = $hxClasses["zpp_nape.util.ZPP_Math"] = ZPP_Math;
54090
+ zpp_nape.util.ZPP_Math = $hxClasses2["zpp_nape.util.ZPP_Math"] = ZPP_Math;
54071
54091
  zpp_nape.util.ZPP_Math.prototype.__class__ = zpp_nape.util.ZPP_Math;
54072
- zpp_nape.util.ZPP_PubPool = $hxClasses["zpp_nape.util.ZPP_PubPool"] = ZPP_PubPool;
54092
+ zpp_nape.util.ZPP_PubPool = $hxClasses2["zpp_nape.util.ZPP_PubPool"] = ZPP_PubPool;
54073
54093
  zpp_nape.util.ZPP_PubPool.prototype.__class__ = zpp_nape.util.ZPP_PubPool;
54074
54094
  {
54075
54095
  String.__name__ = true;
54076
54096
  Array.__name__ = true;
54077
54097
  }
54078
- Object.defineProperty(js._Boot.HaxeError.prototype, "message", {
54098
+ Object.defineProperty(js2._Boot.HaxeError.prototype, "message", {
54079
54099
  get: function() {
54080
54100
  return String(this.val);
54081
54101
  }
54082
54102
  });
54083
- js.Boot.__toStr = {}.toString;
54084
- nape67.constraint.Constraint.zpp_internalAlloc = false;
54085
- nape67.dynamics.ContactIterator.zpp_pool = null;
54086
- nape67.geom.Vec2Iterator.zpp_pool = null;
54087
- nape67.phys.Interactor.zpp_internalAlloc = false;
54088
- nape67.shape.Shape.zpp_internalAlloc = false;
54089
- zpp_nape.callbacks.ZPP_CbType.ANY_SHAPE = new nape67.callbacks.CbType();
54090
- zpp_nape.callbacks.ZPP_CbType.ANY_BODY = new nape67.callbacks.CbType();
54091
- zpp_nape.callbacks.ZPP_CbType.ANY_COMPOUND = new nape67.callbacks.CbType();
54092
- zpp_nape.callbacks.ZPP_CbType.ANY_CONSTRAINT = new nape67.callbacks.CbType();
54093
- zpp_nape.util.ZPP_Flags.internal = false;
54094
- zpp_nape.util.ZPP_Flags.id_ImmState_ACCEPT = 1;
54095
- zpp_nape.util.ZPP_Flags.id_ImmState_IGNORE = 2;
54096
- zpp_nape.util.ZPP_Flags.id_ImmState_ALWAYS = 4;
54097
- zpp_nape.util.ZPP_Flags.id_GravMassMode_DEFAULT = 0;
54098
- zpp_nape.util.ZPP_Flags.id_GravMassMode_FIXED = 1;
54099
- zpp_nape.util.ZPP_Flags.id_GravMassMode_SCALED = 2;
54100
- zpp_nape.util.ZPP_Flags.id_InertiaMode_DEFAULT = 0;
54101
- zpp_nape.util.ZPP_Flags.id_InertiaMode_FIXED = 1;
54102
- zpp_nape.util.ZPP_Flags.id_MassMode_DEFAULT = 0;
54103
- zpp_nape.util.ZPP_Flags.id_MassMode_FIXED = 1;
54104
- zpp_nape.util.ZPP_Flags.id_BodyType_STATIC = 1;
54105
- zpp_nape.util.ZPP_Flags.id_BodyType_DYNAMIC = 2;
54106
- zpp_nape.util.ZPP_Flags.id_BodyType_KINEMATIC = 3;
54107
- zpp_nape.util.ZPP_Flags.id_ListenerType_BODY = 0;
54108
- zpp_nape.util.ZPP_Flags.id_PreFlag_ACCEPT = 1;
54109
- zpp_nape.util.ZPP_Flags.id_ListenerType_CONSTRAINT = 1;
54110
- zpp_nape.util.ZPP_Flags.id_PreFlag_IGNORE = 2;
54111
- zpp_nape.util.ZPP_Flags.id_ListenerType_INTERACTION = 2;
54112
- zpp_nape.util.ZPP_Flags.id_PreFlag_ACCEPT_ONCE = 3;
54113
- zpp_nape.util.ZPP_Flags.id_ListenerType_PRE = 3;
54114
- zpp_nape.util.ZPP_Flags.id_PreFlag_IGNORE_ONCE = 4;
54115
- zpp_nape.util.ZPP_Flags.id_CbEvent_BEGIN = 0;
54116
- zpp_nape.util.ZPP_Flags.id_InteractionType_COLLISION = 1;
54117
- zpp_nape.util.ZPP_Flags.id_CbEvent_ONGOING = 6;
54118
- zpp_nape.util.ZPP_Flags.id_InteractionType_SENSOR = 2;
54119
- zpp_nape.util.ZPP_Flags.id_CbEvent_END = 1;
54120
- zpp_nape.util.ZPP_Flags.id_InteractionType_FLUID = 4;
54121
- zpp_nape.util.ZPP_Flags.id_CbEvent_WAKE = 2;
54122
- zpp_nape.util.ZPP_Flags.id_InteractionType_ANY = 7;
54123
- zpp_nape.util.ZPP_Flags.id_CbEvent_SLEEP = 3;
54124
- zpp_nape.util.ZPP_Flags.id_CbEvent_BREAK = 4;
54125
- zpp_nape.util.ZPP_Flags.id_CbEvent_PRE = 5;
54126
- zpp_nape.util.ZPP_Flags.id_Winding_UNDEFINED = 0;
54127
- zpp_nape.util.ZPP_Flags.id_Winding_CLOCKWISE = 1;
54128
- zpp_nape.util.ZPP_Flags.id_Winding_ANTICLOCKWISE = 2;
54129
- zpp_nape.util.ZPP_Flags.id_ValidationResult_VALID = 0;
54130
- zpp_nape.util.ZPP_Flags.id_ValidationResult_DEGENERATE = 1;
54131
- zpp_nape.util.ZPP_Flags.id_ValidationResult_CONCAVE = 2;
54132
- zpp_nape.util.ZPP_Flags.id_ValidationResult_SELF_INTERSECTING = 3;
54133
- zpp_nape.util.ZPP_Flags.id_ShapeType_CIRCLE = 0;
54134
- zpp_nape.util.ZPP_Flags.id_ShapeType_POLYGON = 1;
54135
- zpp_nape.util.ZPP_Flags.id_Broadphase_DYNAMIC_AABB_TREE = 0;
54136
- zpp_nape.util.ZPP_Flags.id_Broadphase_SWEEP_AND_PRUNE = 1;
54137
- zpp_nape.util.ZPP_Flags.id_ArbiterType_COLLISION = 1;
54138
- zpp_nape.util.ZPP_Flags.id_ArbiterType_SENSOR = 2;
54139
- zpp_nape.util.ZPP_Flags.id_ArbiterType_FLUID = 4;
54140
- zpp_nape.callbacks.ZPP_Listener.internal = false;
54141
- zpp_nape.callbacks.ZPP_Listener.types = (function($this) {
54142
- var $r;
54143
- if (zpp_nape.util.ZPP_Flags.ListenerType_BODY == null) {
54144
- zpp_nape.util.ZPP_Flags.internal = true;
54145
- zpp_nape.util.ZPP_Flags.ListenerType_BODY = new nape67.callbacks.ListenerType();
54146
- zpp_nape.util.ZPP_Flags.internal = false;
54147
- }
54148
- var tmp = zpp_nape.util.ZPP_Flags.ListenerType_BODY;
54149
- if (zpp_nape.util.ZPP_Flags.ListenerType_CONSTRAINT == null) {
54150
- zpp_nape.util.ZPP_Flags.internal = true;
54151
- zpp_nape.util.ZPP_Flags.ListenerType_CONSTRAINT = new nape67.callbacks.ListenerType();
54152
- zpp_nape.util.ZPP_Flags.internal = false;
54153
- }
54154
- var tmp1 = zpp_nape.util.ZPP_Flags.ListenerType_CONSTRAINT;
54155
- if (zpp_nape.util.ZPP_Flags.ListenerType_INTERACTION == null) {
54156
- zpp_nape.util.ZPP_Flags.internal = true;
54157
- zpp_nape.util.ZPP_Flags.ListenerType_INTERACTION = new nape67.callbacks.ListenerType();
54158
- zpp_nape.util.ZPP_Flags.internal = false;
54159
- }
54160
- var tmp2 = zpp_nape.util.ZPP_Flags.ListenerType_INTERACTION;
54161
- if (zpp_nape.util.ZPP_Flags.ListenerType_PRE == null) {
54162
- zpp_nape.util.ZPP_Flags.internal = true;
54163
- zpp_nape.util.ZPP_Flags.ListenerType_PRE = new nape67.callbacks.ListenerType();
54164
- zpp_nape.util.ZPP_Flags.internal = false;
54165
- }
54166
- $r = [tmp, tmp1, tmp2, zpp_nape.util.ZPP_Flags.ListenerType_PRE];
54167
- return $r;
54168
- })(this);
54169
- zpp_nape.callbacks.ZPP_Listener.events = (function($this) {
54170
- var $r;
54171
- if (zpp_nape.util.ZPP_Flags.CbEvent_BEGIN == null) {
54172
- zpp_nape.util.ZPP_Flags.internal = true;
54173
- zpp_nape.util.ZPP_Flags.CbEvent_BEGIN = new nape67.callbacks.CbEvent();
54174
- zpp_nape.util.ZPP_Flags.internal = false;
54175
- }
54176
- var tmp = zpp_nape.util.ZPP_Flags.CbEvent_BEGIN;
54177
- if (zpp_nape.util.ZPP_Flags.CbEvent_END == null) {
54178
- zpp_nape.util.ZPP_Flags.internal = true;
54179
- zpp_nape.util.ZPP_Flags.CbEvent_END = new nape67.callbacks.CbEvent();
54180
- zpp_nape.util.ZPP_Flags.internal = false;
54181
- }
54182
- var tmp1 = zpp_nape.util.ZPP_Flags.CbEvent_END;
54183
- if (zpp_nape.util.ZPP_Flags.CbEvent_WAKE == null) {
54184
- zpp_nape.util.ZPP_Flags.internal = true;
54185
- zpp_nape.util.ZPP_Flags.CbEvent_WAKE = new nape67.callbacks.CbEvent();
54186
- zpp_nape.util.ZPP_Flags.internal = false;
54187
- }
54188
- var tmp2 = zpp_nape.util.ZPP_Flags.CbEvent_WAKE;
54189
- if (zpp_nape.util.ZPP_Flags.CbEvent_SLEEP == null) {
54190
- zpp_nape.util.ZPP_Flags.internal = true;
54191
- zpp_nape.util.ZPP_Flags.CbEvent_SLEEP = new nape67.callbacks.CbEvent();
54192
- zpp_nape.util.ZPP_Flags.internal = false;
54193
- }
54194
- var tmp3 = zpp_nape.util.ZPP_Flags.CbEvent_SLEEP;
54195
- if (zpp_nape.util.ZPP_Flags.CbEvent_BREAK == null) {
54196
- zpp_nape.util.ZPP_Flags.internal = true;
54197
- zpp_nape.util.ZPP_Flags.CbEvent_BREAK = new nape67.callbacks.CbEvent();
54198
- zpp_nape.util.ZPP_Flags.internal = false;
54199
- }
54200
- var tmp4 = zpp_nape.util.ZPP_Flags.CbEvent_BREAK;
54201
- if (zpp_nape.util.ZPP_Flags.CbEvent_PRE == null) {
54202
- zpp_nape.util.ZPP_Flags.internal = true;
54203
- zpp_nape.util.ZPP_Flags.CbEvent_PRE = new nape67.callbacks.CbEvent();
54204
- zpp_nape.util.ZPP_Flags.internal = false;
54205
- }
54206
- var tmp5 = zpp_nape.util.ZPP_Flags.CbEvent_PRE;
54207
- if (zpp_nape.util.ZPP_Flags.CbEvent_ONGOING == null) {
54208
- zpp_nape.util.ZPP_Flags.internal = true;
54209
- zpp_nape.util.ZPP_Flags.CbEvent_ONGOING = new nape67.callbacks.CbEvent();
54210
- zpp_nape.util.ZPP_Flags.internal = false;
54211
- }
54212
- $r = [
54213
- tmp,
54214
- tmp1,
54215
- tmp2,
54216
- tmp3,
54217
- tmp4,
54218
- tmp5,
54219
- zpp_nape.util.ZPP_Flags.CbEvent_ONGOING
54220
- ];
54221
- return $r;
54222
- })(this);
54223
- zpp_nape.callbacks.ZPP_InteractionListener.UCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
54224
- zpp_nape.callbacks.ZPP_InteractionListener.VCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
54225
- zpp_nape.callbacks.ZPP_InteractionListener.WCbSet = new zpp_nape.util.ZNPList_ZPP_CbSet();
54226
- zpp_nape.callbacks.ZPP_InteractionListener.UCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
54227
- zpp_nape.callbacks.ZPP_InteractionListener.VCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
54228
- zpp_nape.callbacks.ZPP_InteractionListener.WCbType = new zpp_nape.util.ZNPList_ZPP_CbType();
54229
- zpp_nape.dynamics.ZPP_Arbiter.internal = false;
54230
- zpp_nape.dynamics.ZPP_Arbiter.COL = 1;
54231
- zpp_nape.dynamics.ZPP_Arbiter.FLUID = 4;
54232
- zpp_nape.dynamics.ZPP_Arbiter.SENSOR = 2;
54233
- zpp_nape.dynamics.ZPP_Arbiter.types = (function($this) {
54234
- var $r;
54235
- if (zpp_nape.util.ZPP_Flags.ArbiterType_COLLISION == null) {
54236
- zpp_nape.util.ZPP_Flags.internal = true;
54237
- zpp_nape.util.ZPP_Flags.ArbiterType_COLLISION = new nape67.dynamics.ArbiterType();
54238
- zpp_nape.util.ZPP_Flags.internal = false;
54239
- }
54240
- var tmp = zpp_nape.util.ZPP_Flags.ArbiterType_COLLISION;
54241
- if (zpp_nape.util.ZPP_Flags.ArbiterType_SENSOR == null) {
54242
- zpp_nape.util.ZPP_Flags.internal = true;
54243
- zpp_nape.util.ZPP_Flags.ArbiterType_SENSOR = new nape67.dynamics.ArbiterType();
54244
- zpp_nape.util.ZPP_Flags.internal = false;
54245
- }
54246
- var tmp1 = zpp_nape.util.ZPP_Flags.ArbiterType_SENSOR;
54247
- if (zpp_nape.util.ZPP_Flags.ArbiterType_FLUID == null) {
54248
- zpp_nape.util.ZPP_Flags.internal = true;
54249
- zpp_nape.util.ZPP_Flags.ArbiterType_FLUID = new nape67.dynamics.ArbiterType();
54250
- zpp_nape.util.ZPP_Flags.internal = false;
54251
- }
54252
- $r = [null, tmp, tmp1, null, zpp_nape.util.ZPP_Flags.ArbiterType_FLUID];
54253
- return $r;
54254
- })(this);
54255
- zpp_nape.dynamics.ZPP_SensorArbiter.zpp_pool = null;
54256
- zpp_nape.dynamics.ZPP_FluidArbiter.zpp_pool = null;
54257
- zpp_nape.dynamics.ZPP_ColArbiter.FACE1 = 0;
54258
- zpp_nape.dynamics.ZPP_ColArbiter.FACE2 = 1;
54259
- zpp_nape.dynamics.ZPP_ColArbiter.CIRCLE = 2;
54260
- zpp_nape.dynamics.ZPP_ColArbiter.zpp_pool = null;
54261
- zpp_nape.dynamics.ZPP_Contact.internal = false;
54262
- zpp_nape.dynamics.ZPP_Contact.zpp_pool = null;
54263
- zpp_nape.dynamics.ZPP_InteractionFilter.zpp_pool = null;
54264
- zpp_nape.dynamics.ZPP_InteractionGroup.SHAPE = 1;
54265
- zpp_nape.dynamics.ZPP_InteractionGroup.BODY = 2;
54266
- zpp_nape.geom.ZPP_AABB.zpp_pool = null;
54267
- zpp_nape.geom.ZPP_Collide.flowpoly = new zpp_nape.util.ZNPList_ZPP_Vec2();
54268
- zpp_nape.geom.ZPP_Collide.flowsegs = new zpp_nape.util.ZNPList_ZPP_Vec2();
54269
- zpp_nape.geom.ZPP_Cutter.ints = null;
54270
- zpp_nape.geom.ZPP_Cutter.paths = null;
54271
- zpp_nape.geom.ZPP_GeomVert.zpp_pool = null;
54272
- zpp_nape.geom.ZPP_MarchingSquares.me = new zpp_nape.geom.ZPP_MarchingSquares();
54273
- zpp_nape.geom.ZPP_MarchingSquares.look_march = [
54274
- -1,
54275
- 224,
54276
- 56,
54277
- 216,
54278
- 14,
54279
- -1,
54280
- 54,
54281
- 214,
54282
- 131,
54283
- 99,
54284
- -1,
54285
- 91,
54286
- 141,
54287
- 109,
54288
- 181,
54289
- 85
54290
- ];
54291
- zpp_nape.geom.ZPP_Monotone.queue = null;
54292
- zpp_nape.geom.ZPP_Monotone.edges = null;
54293
- zpp_nape.geom.ZPP_PartitionVertex.nextId = 0;
54294
- zpp_nape.geom.ZPP_PartitionVertex.zpp_pool = null;
54295
- zpp_nape.geom.ZPP_PartitionedPoly.zpp_pool = null;
54296
- zpp_nape.geom.ZPP_Ray.internal = false;
54297
- zpp_nape.geom.ZPP_SimpleVert.zpp_pool = null;
54298
- zpp_nape.geom.ZPP_SimpleSeg.zpp_pool = null;
54299
- zpp_nape.geom.ZPP_SimpleEvent.zpp_pool = null;
54300
- zpp_nape.geom.ZPP_Simple.sweep = null;
54301
- zpp_nape.geom.ZPP_Simple.inthash = null;
54302
- zpp_nape.geom.ZPP_Simple.vertices = null;
54303
- zpp_nape.geom.ZPP_Simple.queue = null;
54304
- zpp_nape.geom.ZPP_Simple.ints = null;
54305
- zpp_nape.geom.ZPP_Simple.list_vertices = null;
54306
- zpp_nape.geom.ZPP_Simple.list_queue = null;
54307
- zpp_nape.geom.ZPP_SimplifyV.zpp_pool = null;
54308
- zpp_nape.geom.ZPP_SimplifyP.zpp_pool = null;
54309
- zpp_nape.geom.ZPP_Simplify.stack = null;
54310
- zpp_nape.geom.ZPP_ToiEvent.zpp_pool = null;
54311
- zpp_nape.geom.ZPP_PartitionPair.zpp_pool = null;
54312
- zpp_nape.geom.ZPP_Triangular.queue = null;
54313
- zpp_nape.geom.ZPP_Triangular.stack = null;
54314
- zpp_nape.geom.ZPP_Triangular.edgeSet = null;
54315
- zpp_nape.geom.ZPP_Vec2.zpp_pool = null;
54316
- zpp_nape.phys.ZPP_Body.types = (function($this) {
54317
- var $r;
54318
- if (zpp_nape.util.ZPP_Flags.BodyType_STATIC == null) {
54319
- zpp_nape.util.ZPP_Flags.internal = true;
54320
- zpp_nape.util.ZPP_Flags.BodyType_STATIC = new nape67.phys.BodyType();
54321
- zpp_nape.util.ZPP_Flags.internal = false;
54322
- }
54323
- var tmp = zpp_nape.util.ZPP_Flags.BodyType_STATIC;
54324
- if (zpp_nape.util.ZPP_Flags.BodyType_DYNAMIC == null) {
54325
- zpp_nape.util.ZPP_Flags.internal = true;
54326
- zpp_nape.util.ZPP_Flags.BodyType_DYNAMIC = new nape67.phys.BodyType();
54327
- zpp_nape.util.ZPP_Flags.internal = false;
54328
- }
54329
- var tmp1 = zpp_nape.util.ZPP_Flags.BodyType_DYNAMIC;
54330
- if (zpp_nape.util.ZPP_Flags.BodyType_KINEMATIC == null) {
54331
- zpp_nape.util.ZPP_Flags.internal = true;
54332
- zpp_nape.util.ZPP_Flags.BodyType_KINEMATIC = new nape67.phys.BodyType();
54333
- zpp_nape.util.ZPP_Flags.internal = false;
54334
- }
54335
- $r = [null, tmp, tmp1, zpp_nape.util.ZPP_Flags.BodyType_KINEMATIC];
54336
- return $r;
54337
- })(this);
54338
- zpp_nape.phys.ZPP_Body.bodystack = null;
54339
- zpp_nape.phys.ZPP_Body.bodyset = null;
54340
- zpp_nape.phys.ZPP_Body.cur_graph_depth = 0;
54341
- zpp_nape.phys.ZPP_FluidProperties.zpp_pool = null;
54342
- zpp_nape.phys.ZPP_Material.zpp_pool = null;
54343
- zpp_nape.phys.ZPP_Material.WAKE = 1;
54344
- zpp_nape.phys.ZPP_Material.PROPS = 2;
54345
- zpp_nape.phys.ZPP_Material.ANGDRAG = 4;
54346
- zpp_nape.phys.ZPP_Material.ARBITERS = 8;
54347
- zpp_nape.shape.ZPP_Shape.types = (function($this) {
54348
- var $r;
54349
- if (zpp_nape.util.ZPP_Flags.ShapeType_CIRCLE == null) {
54350
- zpp_nape.util.ZPP_Flags.internal = true;
54351
- zpp_nape.util.ZPP_Flags.ShapeType_CIRCLE = new nape67.shape.ShapeType();
54352
- zpp_nape.util.ZPP_Flags.internal = false;
54353
- }
54354
- var tmp = zpp_nape.util.ZPP_Flags.ShapeType_CIRCLE;
54355
- if (zpp_nape.util.ZPP_Flags.ShapeType_POLYGON == null) {
54356
- zpp_nape.util.ZPP_Flags.internal = true;
54357
- zpp_nape.util.ZPP_Flags.ShapeType_POLYGON = new nape67.shape.ShapeType();
54358
- zpp_nape.util.ZPP_Flags.internal = false;
54359
- }
54360
- $r = [tmp, zpp_nape.util.ZPP_Flags.ShapeType_POLYGON];
54361
- return $r;
54362
- })(this);
54363
- zpp_nape.shape.ZPP_Edge.zpp_pool = null;
54364
- zpp_nape.shape.ZPP_Edge.internal = false;
54365
- zpp_nape.space.ZPP_AABBNode.zpp_pool = null;
54366
- zpp_nape.space.ZPP_AABBPair.zpp_pool = null;
54367
- zpp_nape.space.ZPP_AABBTree.tmpaabb = new zpp_nape.geom.ZPP_AABB();
54368
- zpp_nape.space.ZPP_DynAABBPhase.FATTEN = 3;
54369
- zpp_nape.space.ZPP_DynAABBPhase.VEL_STEPS = 2;
54370
- zpp_nape.space.ZPP_Island.zpp_pool = null;
54371
- zpp_nape.space.ZPP_Component.zpp_pool = null;
54372
- zpp_nape.space.ZPP_CallbackSet.zpp_pool = null;
54373
- zpp_nape.space.ZPP_SweepData.zpp_pool = null;
54374
- zpp_nape.util.Hashable2_Boolfalse.zpp_pool = null;
54375
- zpp_nape.util.ZNPNode_ZPP_CbType.zpp_pool = null;
54376
- zpp_nape.util.ZNPNode_ZPP_CallbackSet.zpp_pool = null;
54377
- zpp_nape.util.ZNPNode_ZPP_Shape.zpp_pool = null;
54378
- zpp_nape.util.ZNPNode_ZPP_Body.zpp_pool = null;
54379
- zpp_nape.util.ZNPNode_ZPP_Constraint.zpp_pool = null;
54380
- zpp_nape.util.ZNPNode_ZPP_Compound.zpp_pool = null;
54381
- zpp_nape.util.ZNPNode_ZPP_Arbiter.zpp_pool = null;
54382
- zpp_nape.util.ZNPNode_ZPP_InteractionListener.zpp_pool = null;
54383
- zpp_nape.util.ZNPNode_ZPP_CbSet.zpp_pool = null;
54384
- zpp_nape.util.ZNPNode_ZPP_Interactor.zpp_pool = null;
54385
- zpp_nape.util.ZNPNode_ZPP_BodyListener.zpp_pool = null;
54386
- zpp_nape.util.ZNPNode_ZPP_CbSetPair.zpp_pool = null;
54387
- zpp_nape.util.ZNPNode_ZPP_ConstraintListener.zpp_pool = null;
54388
- zpp_nape.util.ZNPNode_ZPP_CutInt.zpp_pool = null;
54389
- zpp_nape.util.ZNPNode_ZPP_CutVert.zpp_pool = null;
54390
- zpp_nape.util.ZNPNode_ZPP_PartitionVertex.zpp_pool = null;
54391
- zpp_nape.util.ZNPNode_ZPP_SimplifyP.zpp_pool = null;
54392
- zpp_nape.util.ZNPNode_ZPP_PartitionedPoly.zpp_pool = null;
54393
- zpp_nape.util.ZNPNode_ZPP_GeomVert.zpp_pool = null;
54394
- zpp_nape.util.ZNPNode_ZPP_SimpleVert.zpp_pool = null;
54395
- zpp_nape.util.ZNPNode_ZPP_SimpleEvent.zpp_pool = null;
54396
- zpp_nape.util.ZNPNode_ZPP_Vec2.zpp_pool = null;
54397
- zpp_nape.util.ZNPNode_ZPP_AABBPair.zpp_pool = null;
54398
- zpp_nape.util.ZNPNode_ZPP_Edge.zpp_pool = null;
54399
- zpp_nape.util.ZNPNode_ZPP_AABBNode.zpp_pool = null;
54400
- zpp_nape.util.ZNPNode_ZPP_Component.zpp_pool = null;
54401
- zpp_nape.util.ZNPNode_ZPP_FluidArbiter.zpp_pool = null;
54402
- zpp_nape.util.ZNPNode_ZPP_SensorArbiter.zpp_pool = null;
54403
- zpp_nape.util.ZNPNode_ZPP_Listener.zpp_pool = null;
54404
- zpp_nape.util.ZNPNode_ZPP_ColArbiter.zpp_pool = null;
54405
- zpp_nape.util.ZNPNode_ZPP_InteractionGroup.zpp_pool = null;
54406
- zpp_nape.util.ZNPNode_ZPP_ToiEvent.zpp_pool = null;
54407
- zpp_nape.util.ZNPNode_ConvexResult.zpp_pool = null;
54408
- zpp_nape.util.ZNPNode_ZPP_GeomPoly.zpp_pool = null;
54409
- zpp_nape.util.ZNPNode_RayResult.zpp_pool = null;
54410
- zpp_nape.util.ZPP_Set_ZPP_Body.zpp_pool = null;
54411
- zpp_nape.util.ZPP_Set_ZPP_CbSetPair.zpp_pool = null;
54412
- zpp_nape.util.ZPP_Set_ZPP_PartitionVertex.zpp_pool = null;
54413
- zpp_nape.util.ZPP_Set_ZPP_PartitionPair.zpp_pool = null;
54414
- zpp_nape.util.ZPP_Set_ZPP_SimpleVert.zpp_pool = null;
54415
- zpp_nape.util.ZPP_Set_ZPP_SimpleSeg.zpp_pool = null;
54416
- zpp_nape.util.ZPP_Set_ZPP_SimpleEvent.zpp_pool = null;
54417
- zpp_nape.util.ZPP_Set_ZPP_CbSet.zpp_pool = null;
54103
+ js2.Boot.__toStr = {}.toString;
54104
+ zpp_nape.callbacks.ZPP_CbType._initEnums(nape67);
54105
+ zpp_nape.callbacks.ZPP_Listener._initEnums(nape67, zpp_nape.util.ZPP_Flags);
54106
+ zpp_nape.callbacks.ZPP_InteractionListener._initStatics(zpp_nape);
54107
+ zpp_nape.dynamics.ZPP_Arbiter._initEnums(nape67, zpp_nape.util.ZPP_Flags);
54108
+ zpp_nape.geom.ZPP_Collide._initStatics(zpp_nape);
54109
+ zpp_nape.phys.ZPP_Body._initEnums(nape67, zpp_nape.util.ZPP_Flags);
54110
+ zpp_nape.shape.ZPP_Shape._initEnums(nape67, zpp_nape.util.ZPP_Flags);
54111
+ zpp_nape.space.ZPP_AABBTree._initStatics();
54418
54112
  sandbox.Main.main();
54419
54113
  nape67.__zpp = zpp_nape;
54420
54114
  return nape67;
@@ -54970,6 +54664,20 @@ function createListClasses(spec) {
54970
54664
  return result;
54971
54665
  };
54972
54666
  TypedList.prototype.__class__ = TypedList;
54667
+ TypedList.prototype[Symbol.iterator] = function() {
54668
+ const it = TypedIterator.get(this);
54669
+ return {
54670
+ next() {
54671
+ if (it.hasNext()) {
54672
+ return { value: it.next(), done: false };
54673
+ }
54674
+ return { value: void 0, done: true };
54675
+ },
54676
+ [Symbol.iterator]() {
54677
+ return this;
54678
+ }
54679
+ };
54680
+ };
54973
54681
  const ns = getNamespace();
54974
54682
  const iterName = typeName + "Iterator";
54975
54683
  const listName = typeName + "List";
@@ -69442,7 +69150,7 @@ var zpp7 = nape66.__zpp;
69442
69150
  zpp7.constraint.ZPP_PulleyJoint = ZPP_PulleyJoint;
69443
69151
 
69444
69152
  // src/index.ts
69445
- var VERSION = "3.3.45";
69153
+ var VERSION = "3.4.1";
69446
69154
  export {
69447
69155
  AABB,
69448
69156
  AngleJoint,