From 6bdf894070089e91d11461bea30c3dc4211b4801 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Fri, 6 Jul 2018 14:39:20 +1000 Subject: [PATCH] Improved exception handling and documentation, removed unused files --- .gitignore | 1 + jwalkable.iml | 13 + .../java/com/dongbat/walkable/PathHelper.java | 28 +- .../dongbat/walkable/PathfinderException.java | 26 + src/main/java/hxDaedalus/Main.java | 33 - .../ai/trajectory/LinearPathSampler.java | 2245 ----------------- .../ai/trajectory/PathIterator.java | 1438 ----------- src/main/java/hxDaedalus/data/Constants.java | 40 - src/main/java/hxDaedalus/debug/Debug.java | 56 - .../java/hxDaedalus/factories/BitmapMesh.java | 109 - .../hxDaedalus/factories/BitmapObject.java | 149 -- .../iterators/FromEdgeToRotatedEdges.java | 28 - .../iterators/FromFaceToInnerVertices.java | 358 --- .../iterators/FromFaceToNeighbourFaces.java | 379 --- .../hxDaedalus/iterators/FromMeshToFaces.java | 455 ---- .../FromVertexToNeighbourVertices.java | 370 --- .../java/hxPixels/_Pixels/Pixel_Impl_.java | 91 - 17 files changed, 61 insertions(+), 5758 deletions(-) create mode 100644 jwalkable.iml create mode 100644 src/main/java/com/dongbat/walkable/PathfinderException.java delete mode 100644 src/main/java/hxDaedalus/Main.java delete mode 100644 src/main/java/hxDaedalus/ai/trajectory/LinearPathSampler.java delete mode 100644 src/main/java/hxDaedalus/ai/trajectory/PathIterator.java delete mode 100644 src/main/java/hxDaedalus/data/Constants.java delete mode 100644 src/main/java/hxDaedalus/debug/Debug.java delete mode 100644 src/main/java/hxDaedalus/factories/BitmapMesh.java delete mode 100644 src/main/java/hxDaedalus/factories/BitmapObject.java delete mode 100644 src/main/java/hxDaedalus/iterators/FromEdgeToRotatedEdges.java delete mode 100644 src/main/java/hxDaedalus/iterators/FromFaceToInnerVertices.java delete mode 100644 src/main/java/hxDaedalus/iterators/FromFaceToNeighbourFaces.java delete mode 100644 src/main/java/hxDaedalus/iterators/FromMeshToFaces.java delete mode 100644 src/main/java/hxDaedalus/iterators/FromVertexToNeighbourVertices.java delete mode 100644 src/main/java/hxPixels/_Pixels/Pixel_Impl_.java diff --git a/.gitignore b/.gitignore index d0305e5..174b7fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .gradle /build/ +.idea/ # Ignore Gradle GUI config gradle-app.setting diff --git a/jwalkable.iml b/jwalkable.iml new file mode 100644 index 0000000..c8532d0 --- /dev/null +++ b/jwalkable.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/dongbat/walkable/PathHelper.java b/src/main/java/com/dongbat/walkable/PathHelper.java index 8eacf80..5078091 100644 --- a/src/main/java/com/dongbat/walkable/PathHelper.java +++ b/src/main/java/com/dongbat/walkable/PathHelper.java @@ -24,16 +24,20 @@ import java.util.List; /** - * + * Wrapper for hxDaedalus * @author tao */ public class PathHelper { - private final Mesh mesh; private final EntityAI entity; private final PathFinder pathFinder; private final Array path; + /** + * Constructs a PathFinder with the given world width and world height + * @param w the world width + * @param h the world height + */ public PathHelper(float w, float h) { mesh = RectMesh.buildRectangle(w, h); entity = new EntityAI(); @@ -49,8 +53,7 @@ public Obstacle addPolyline(float[] vertices) { public Obstacle addPolyline(float[] vertices, float x, float y) { if (vertices.length < 4) { - System.out.println("Polylines must contain at least 2 points."); - return null; + throw new IllegalArgumentException("Polylines must contain at least 2 points."); } Obstacle object = new Obstacle(); Array array = new Array(); @@ -82,8 +85,7 @@ public Obstacle addPolygon(float[] vertices) { public Obstacle addPolygon(float[] vertices, float x, float y) { if (vertices.length < 6) { - System.out.println("Polygons must contain at least 3 points."); - return null; + throw new IllegalArgumentException("Polygons must contain at least 3 points."); } Obstacle object = new Obstacle(); Array array = new Array(); @@ -155,10 +157,13 @@ private void doFindPath(float fromX, float fromY, float toX, float toY, float ra pathFinder.findPath(toX, toY, path); } catch (Exception e) { path.splice(0, path.length); - System.out.println(e.getMessage()); + throw new PathfinderException(e); } } + /** + * @throws PathfinderException occasionally, if there's an internal problem in hxDaedalus + */ public float[] findPath(float fromX, float fromY, float toX, float toY, float radius) { doFindPath(fromX, fromY, toX, toY, radius); @@ -170,6 +175,9 @@ public float[] findPath(float fromX, float fromY, float toX, float toY, float ra return result; } + /** + * @throws PathfinderException occasionally, if there's an internal problem in hxDaedalus + */ public int findPath(float fromX, float fromY, float toX, float toY, float radius, float[] result) { doFindPath(fromX, fromY, toX, toY, radius); @@ -179,6 +187,9 @@ public int findPath(float fromX, float fromY, float toX, float toY, float radius return path.length; } + /** + * @throws PathfinderException occasionally, if there's an internal problem in hxDaedalus + */ public void findPath(float fromX, float fromY, float toX, float toY, float radius, List result) { doFindPath(fromX, fromY, toX, toY, radius); @@ -188,6 +199,9 @@ public void findPath(float fromX, float fromY, float toX, float toY, float radiu } } + /** + * @throws PathfinderException occasionally, if there's an internal problem in hxDaedalus + */ public void findPath(float fromX, float fromY, float toX, float toY, float radius, FloatArray result) { doFindPath(fromX, fromY, toX, toY, radius); diff --git a/src/main/java/com/dongbat/walkable/PathfinderException.java b/src/main/java/com/dongbat/walkable/PathfinderException.java new file mode 100644 index 0000000..17562d8 --- /dev/null +++ b/src/main/java/com/dongbat/walkable/PathfinderException.java @@ -0,0 +1,26 @@ +/* + * Copyright 2017 Dong Bat Co.,Ltd.. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.dongbat.walkable; + +class PathfinderException extends RuntimeException { + PathfinderException(String s){ + super(s); + } + + PathfinderException(Exception e){ + super(e); + } +} \ No newline at end of file diff --git a/src/main/java/hxDaedalus/Main.java b/src/main/java/hxDaedalus/Main.java deleted file mode 100644 index c4b8d2c..0000000 --- a/src/main/java/hxDaedalus/Main.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class Main extends haxe.lang.HxObject -{ - public Main(haxe.lang.EmptyObject empty) - { - } - - - public Main() - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/Main.hx" - hxDaedalus.Main.__hx_ctor_hxDaedalus_Main(this); - } - - - public static void __hx_ctor_hxDaedalus_Main(hxDaedalus.Main __hx_this) - { - } - - - public static void main() - { - } - - -} - - diff --git a/src/main/java/hxDaedalus/ai/trajectory/LinearPathSampler.java b/src/main/java/hxDaedalus/ai/trajectory/LinearPathSampler.java deleted file mode 100644 index 4651fde..0000000 --- a/src/main/java/hxDaedalus/ai/trajectory/LinearPathSampler.java +++ /dev/null @@ -1,2245 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.ai.trajectory; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class LinearPathSampler extends haxe.lang.HxObject -{ - public LinearPathSampler(haxe.lang.EmptyObject empty) - { - } - - - public LinearPathSampler() - { - //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - hxDaedalus.ai.trajectory.LinearPathSampler.__hx_ctor_hxDaedalus_ai_trajectory_LinearPathSampler(this); - } - - - public static void __hx_ctor_hxDaedalus_ai_trajectory_LinearPathSampler(hxDaedalus.ai.trajectory.LinearPathSampler __hx_this) - { - //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __hx_this._samplingDistanceSquared = ((double) (((int) (1.0) )) ); - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __hx_this._samplingDistance = ((double) (((int) (1.0) )) ); - //line 34 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __hx_this._preCompX = new haxe.root.Array(); - //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __hx_this._preCompY = new haxe.root.Array(); - } - - - public static double pythag(double a, double b) - { - //line 135 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return java.lang.Math.sqrt(( ( a * a ) + ( b * b ) )); - } - - - public hxDaedalus.ai.EntityAI entity; - - - - - - - - - - - - - - - - - - public hxDaedalus.ai.EntityAI _entity; - - public double _currentX; - - public double _currentY; - - public boolean _hasPrev; - - public boolean _hasNext; - - public double _samplingDistance; - - public double _samplingDistanceSquared; - - public haxe.root.Array _path; - - public int _iPrev; - - public int _iNext; - - public boolean _preComputed; - - public int _count; - - public haxe.root.Array _preCompX; - - public haxe.root.Array _preCompY; - - public void dispose() - { - //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.entity = null; - //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._path = null; - //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompX = null; - //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompY = null; - } - - - public double get_x() - { - //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._currentX; - } - - - public double get_y() - { - //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._currentY; - } - - - public boolean get_hasPrev() - { - //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._hasPrev; - } - - - public boolean get_hasNext() - { - //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._hasNext; - } - - - public int get_count() - { - //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._count; - } - - - public int set_count(int value) - { - //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count = value; - //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this._count < 0 )) - { - //line 67 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count = 0; - } - - //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this._count > ( this.get_countMax() - 1 ) )) - { - //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count = ( this.get_countMax() - 1 ); - } - - //line 69 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasPrev = ( (( this._count == 0 )) ? (false) : (true) ); - //line 70 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasNext = ( (( this._count == ( this.get_countMax() - 1 ) )) ? (false) : (true) ); - //line 71 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._preCompX.__get(this._count))) ); - //line 72 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._preCompY.__get(this._count))) ); - //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.updateEntity(); - //line 75 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._count; - } - - - public int get_countMax() - { - //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ( this._preCompX.length - 1 ); - } - - - public double get_samplingDistance() - { - //line 83 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._samplingDistance; - } - - - public double set_samplingDistance(double value) - { - //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._samplingDistance = value; - //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._samplingDistanceSquared = ( this._samplingDistance * this._samplingDistance ); - //line 89 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - - public haxe.root.Array set_path(haxe.root.Array value) - { - //line 93 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._path = value; - //line 94 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preComputed = false; - //line 95 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.reset(); - //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - - public void reset() - { - //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this._path.length > 0 )) - { - //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - boolean cond = ( (( this._path.length & 1 )) == 0 ); - //line 103 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(0))) ); - //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(1))) ); - //line 105 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iPrev = 0; - //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iNext = 2; - //line 107 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasPrev = false; - //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasNext = true; - //line 109 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count = 0; - //line 110 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.updateEntity(); - } - else - { - //line 112 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasPrev = false; - //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasNext = false; - //line 114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count = 0; - } - - } - - - public void preCompute() - { - //line 119 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompX.splice(0, this._preCompX.length); - //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompY.splice(0, this._preCompY.length); - //line 121 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count = 0; - //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompX.push(this._currentX); - //line 123 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompY.push(this._currentY); - //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preComputed = false; - //line 125 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - while (this.next()) - { - //line 126 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompX.push(this._currentX); - //line 127 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompY.push(this._currentY); - } - - //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.reset(); - //line 130 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preComputed = true; - } - - - public boolean prev() - { - //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if ( ! (this._hasPrev) ) - { - //line 139 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return false; - } - - //line 140 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasNext = true; - //line 141 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (this._preComputed) - { - //line 142 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count--; - //line 143 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this._count == 0 )) - { - //line 143 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasPrev = false; - } - - //line 144 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._preCompX.__get(this._count))) ); - //line 145 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._preCompY.__get(this._count))) ); - //line 146 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.updateEntity(); - //line 147 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return true; - } - - //line 149 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double remainingDist = this._samplingDistance; - //line 150 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double dist = ((double) (0) ); - //line 151 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - while (true) - { - //line 152 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double pathPrev = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iPrev))) ); - //line 153 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double pathPrev1 = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iPrev + 1 )))) ); - //line 154 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double a = ( this._currentX - pathPrev ); - //line 154 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double b = ( this._currentY - pathPrev1 ); - //line 154 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - dist = java.lang.Math.sqrt(( ( a * a ) + ( b * b ) )); - //line 155 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( dist < remainingDist )) - { - //line 156 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - remainingDist -= dist; - //line 157 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iPrev -= 2; - //line 158 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iNext -= 2; - //line 159 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this._iNext == 0 )) - { - //line 159 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - } - else - { - //line 161 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - } - - //line 164 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this._iNext == 0 )) - { - //line 165 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(0))) ); - //line 166 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(1))) ); - //line 167 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasPrev = false; - //line 168 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iNext = 2; - //line 169 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iPrev = 0; - //line 170 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.updateEntity(); - //line 171 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return true; - } - else - { - //line 173 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX += ( ( (( ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iPrev))) ) - this._currentX )) * remainingDist ) / dist ); - //line 174 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY += ( ( (( ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iPrev + 1 )))) ) - this._currentY )) * remainingDist ) / dist ); - //line 175 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.updateEntity(); - //line 176 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return true; - } - - } - - - public boolean next() - { - //line 181 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if ( ! (this._hasNext) ) - { - //line 181 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return false; - } - - //line 182 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasPrev = true; - //line 183 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (this._preComputed) - { - //line 184 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count++; - //line 185 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this._count == ( this._preCompX.length - 1 ) )) - { - //line 186 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasNext = false; - } - - //line 187 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._preCompX.__get(this._count))) ); - //line 188 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._preCompY.__get(this._count))) ); - //line 189 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.updateEntity(); - //line 190 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return true; - } - - //line 192 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double remainingDist = this._samplingDistance; - //line 193 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double dist = ((double) (0) ); - //line 194 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - while (true) - { - //line 196 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double pathNext = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iNext))) ); - //line 197 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double pathNext1 = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iNext + 1 )))) ); - //line 198 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double a = ( this._currentX - pathNext ); - //line 198 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - double b = ( this._currentY - pathNext1 ); - //line 198 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - dist = java.lang.Math.sqrt(( ( a * a ) + ( b * b ) )); - //line 199 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( dist < remainingDist )) - { - //line 200 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - remainingDist -= dist; - //line 201 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iNext))) ); - //line 202 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iNext + 1 )))) ); - //line 203 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iPrev += 2; - //line 204 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iNext += 2; - //line 205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this._iNext == this._path.length )) - { - //line 205 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - } - else - { - //line 207 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - } - - //line 209 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this._iNext == this._path.length )) - { - //line 210 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iPrev))) ); - //line 211 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iPrev + 1 )))) ); - //line 212 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasNext = false; - //line 213 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iNext = ( this._path.length - 2 ); - //line 214 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iPrev = ( this._iNext - 2 ); - //line 215 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.updateEntity(); - //line 216 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return true; - } - else - { - //line 218 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX += ( ( (( ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._iNext))) ) - this._currentX )) * remainingDist ) / dist ); - //line 219 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY += ( ( (( ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._iNext + 1 )))) ) - this._currentY )) * remainingDist ) / dist ); - //line 220 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.updateEntity(); - //line 221 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return true; - } - - } - - - public void updateEntity() - { - //line 226 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (( this.entity == null )) - { - //line 226 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ; - } - - //line 227 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - boolean cond = ( java.lang.Double.isNaN(this._currentX) && java.lang.Double.isNaN(this._currentY) ); - //line 228 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.entity.x = this._currentX; - //line 229 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.entity.y = this._currentY; - } - - - @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - boolean __temp_executeDef1 = true; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - switch (field.hashCode()) - { - case -1480346608: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count = ((int) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 94851343: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.set_count(((int) (value) )); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1475803651: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_iNext")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iNext = ((int) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -363992836: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.set_samplingDistance(value); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1475732163: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_iPrev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iPrev = ((int) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 665920350: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_currentX")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX = ((double) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 437299980: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_samplingDistanceSquared")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._samplingDistanceSquared = ((double) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 665920351: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_currentY")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY = ((double) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -648590501: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._samplingDistance = ((double) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (__temp_executeDef1) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return super.__hx_setField_f(field, value, handleProperties); - } - else - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - boolean __temp_executeDef1 = true; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - switch (field.hashCode()) - { - case -1230180442: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_preCompY")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompY = ((haxe.root.Array) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1298275357: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("entity")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.entity = ((hxDaedalus.ai.EntityAI) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1230180443: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_preCompX")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preCompX = ((haxe.root.Array) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 94851343: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.set_count(((int) (haxe.lang.Runtime.toInt(value)) )); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1480346608: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._count = ((int) (haxe.lang.Runtime.toInt(value)) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -363992836: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.set_samplingDistance(((double) (haxe.lang.Runtime.toDouble(value)) )); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 651338001: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_preComputed")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._preComputed = haxe.lang.Runtime.toBool(value); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 3433509: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("path")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.set_path(((haxe.root.Array) (value) )); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1475803651: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_iNext")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iNext = ((int) (haxe.lang.Runtime.toInt(value)) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1410195714: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_entity")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._entity = ((hxDaedalus.ai.EntityAI) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1475732163: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_iPrev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._iPrev = ((int) (haxe.lang.Runtime.toInt(value)) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 665920350: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_currentX")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(value)) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 91168004: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_path")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._path = ((haxe.root.Array) (value) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 665920351: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_currentY")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(value)) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 437299980: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_samplingDistanceSquared")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._samplingDistanceSquared = ((double) (haxe.lang.Runtime.toDouble(value)) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1239911762: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_hasPrev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasPrev = haxe.lang.Runtime.toBool(value); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -648590501: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._samplingDistance = ((double) (haxe.lang.Runtime.toDouble(value)) ); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1239983250: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_hasNext")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this._hasNext = haxe.lang.Runtime.toBool(value); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return value; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (__temp_executeDef1) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return super.__hx_setField(field, value, handleProperties); - } - else - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - boolean __temp_executeDef1 = true; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - switch (field.hashCode()) - { - case -1346531828: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("updateEntity")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "updateEntity")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1298275357: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("entity")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.entity; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 3377907: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("next")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 120: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("x")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_x(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 3449395: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("prev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "prev")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 121: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("y")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_y(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 2119286804: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("preCompute")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "preCompute")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 696830957: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("hasPrev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_hasPrev(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 108404047: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("reset")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "reset")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 696759469: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("hasNext")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_hasNext(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1415433698: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("set_path")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_path")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 94851343: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_count(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 492674873: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("set_samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_samplingDistance")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -372044331: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("countMax")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_countMax(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1103598277: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_samplingDistance")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -363992836: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_samplingDistance(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1999868062: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_countMax")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_countMax")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1410195714: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_entity")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._entity; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 917184242: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("set_count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_count")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 665920350: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_currentX")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._currentX; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1131801318: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_count")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 665920351: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_currentY")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._currentY; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 773272772: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_hasNext")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_hasNext")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1239911762: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_hasPrev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._hasPrev; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 773344260: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_hasPrev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_hasPrev")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1239983250: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_hasNext")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._hasNext; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 98246096: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_y")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_y")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -648590501: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._samplingDistance; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 98246095: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_x")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_x")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 437299980: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_samplingDistanceSquared")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._samplingDistanceSquared; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1671767583: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("dispose")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "dispose")) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 91168004: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_path")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._path; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1230180442: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_preCompY")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._preCompY; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1475732163: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_iPrev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._iPrev; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1230180443: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_preCompX")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._preCompX; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1475803651: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_iNext")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._iNext; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1480346608: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._count; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 651338001: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_preComputed")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._preComputed; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (__temp_executeDef1) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return super.__hx_getField(field, throwErrors, isCheck, handleProperties); - } - else - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - throw null; - } - - } - - } - - - @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - boolean __temp_executeDef1 = true; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - switch (field.hashCode()) - { - case -1480346608: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((double) (this._count) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 120: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("x")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_x(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1475803651: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_iNext")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((double) (this._iNext) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 121: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("y")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_y(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -1475732163: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_iPrev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((double) (this._iPrev) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 94851343: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((double) (this.get_count()) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 437299980: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_samplingDistanceSquared")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._samplingDistanceSquared; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -372044331: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("countMax")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return ((double) (this.get_countMax()) ); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -648590501: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._samplingDistance; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case -363992836: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_samplingDistance(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 665920351: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_currentY")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._currentY; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 665920350: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("_currentX")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this._currentX; - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (__temp_executeDef1) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return super.__hx_getField_f(field, throwErrors, handleProperties); - } - else - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - boolean __temp_executeDef1 = true; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - switch (field.hashCode()) - { - case -1346531828: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("updateEntity")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.updateEntity(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1671767583: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("dispose")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.dispose(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 3377907: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("next")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.next(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 98246095: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_x")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_x(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 3449395: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("prev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.prev(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 98246096: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_y")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_y(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 2119286804: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("preCompute")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.preCompute(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 773344260: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_hasPrev")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_hasPrev(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 108404047: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("reset")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - this.reset(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 773272772: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_hasNext")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_hasNext(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1415433698: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("set_path")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.set_path(((haxe.root.Array) (dynargs.__get(0)) )); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1131801318: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_count(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 492674873: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("set_samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.set_samplingDistance(((double) (haxe.lang.Runtime.toDouble(dynargs.__get(0))) )); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 917184242: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("set_count")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.set_count(((int) (haxe.lang.Runtime.toInt(dynargs.__get(0))) )); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1103598277: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_samplingDistance")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_samplingDistance(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - case 1999868062: - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (field.equals("get_countMax")) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - __temp_executeDef1 = false; - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return this.get_countMax(); - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - break; - } - - - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - if (__temp_executeDef1) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return super.__hx_invokeField(field, dynargs); - } - - } - - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - return null; - } - - - @Override public void __hx_getFields(haxe.root.Array baseArr) - { - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_preCompY"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_preCompX"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_count"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_preComputed"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_iNext"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_iPrev"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_path"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_samplingDistanceSquared"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_samplingDistance"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_hasNext"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_hasPrev"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_currentY"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_currentX"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("_entity"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("path"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("samplingDistance"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("countMax"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("count"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("hasNext"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("hasPrev"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("y"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("x"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - baseArr.push("entity"); - //line 8 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/LinearPathSampler.hx" - super.__hx_getFields(baseArr); - } - - -} - - diff --git a/src/main/java/hxDaedalus/ai/trajectory/PathIterator.java b/src/main/java/hxDaedalus/ai/trajectory/PathIterator.java deleted file mode 100644 index ffc13bb..0000000 --- a/src/main/java/hxDaedalus/ai/trajectory/PathIterator.java +++ /dev/null @@ -1,1438 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.ai.trajectory; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class PathIterator extends haxe.lang.HxObject -{ - public PathIterator(haxe.lang.EmptyObject empty) - { - } - - - public PathIterator() - { - //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - hxDaedalus.ai.trajectory.PathIterator.__hx_ctor_hxDaedalus_ai_trajectory_PathIterator(this); - } - - - public static void __hx_ctor_hxDaedalus_ai_trajectory_PathIterator(hxDaedalus.ai.trajectory.PathIterator __hx_this) - { - } - - - - - - - - - - - - - - - - - - - public hxDaedalus.ai.EntityAI _entity; - - public double _currentX; - - public double _currentY; - - public boolean _hasPrev; - - public boolean _hasNext; - - public haxe.root.Array _path; - - public int _count; - - public int _countMax; - - public hxDaedalus.ai.EntityAI get_entity() - { - //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._entity; - } - - - public hxDaedalus.ai.EntityAI set_entity(hxDaedalus.ai.EntityAI value) - { - //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._entity = value; - //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - - public double get_x() - { - //line 48 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._currentX; - } - - - public double get_y() - { - //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._currentY; - } - - - public boolean get_hasPrev() - { - //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._hasPrev; - } - - - public boolean get_hasNext() - { - //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._hasNext; - } - - - public int get_count() - { - //line 68 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._count; - } - - - public int get_countMax() - { - //line 73 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._countMax; - } - - - public haxe.root.Array set_path(haxe.root.Array value) - { - //line 78 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._path = value; - //line 79 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._countMax = ((int) (( this._path.length / 2 )) ); - //line 80 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this.reset(); - //line 81 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - - public void reset() - { - //line 85 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._count = 0; - //line 86 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(this._count))) ); - //line 87 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._count + 1 )))) ); - //line 88 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this.updateEntity(); - //line 90 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._hasPrev = false; - //line 91 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._hasNext = ( this._path.length > 2 ); - } - - - public boolean prev() - { - //line 96 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if ( ! (this._hasPrev) ) - { - //line 97 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return false; - } - - //line 98 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._hasNext = true; - //line 100 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._count--; - //line 101 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._count * 2 )))) ); - //line 102 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( ( this._count * 2 ) + 1 )))) ); - //line 104 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this.updateEntity(); - //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (( this._count == 0 )) - { - //line 106 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._hasPrev = false; - } - - //line 108 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return true; - } - - - public boolean next() - { - //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if ( ! (this._hasNext) ) - { - //line 113 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return false; - } - - //line 114 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._hasPrev = true; - //line 116 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._count++; - //line 117 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( this._count * 2 )))) ); - //line 118 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(this._path.__get(( ( this._count * 2 ) + 1 )))) ); - //line 120 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this.updateEntity(); - //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (( ( (( this._count + 1 )) * 2 ) == this._path.length )) - { - //line 122 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._hasNext = false; - } - - //line 124 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return true; - } - - - public void updateEntity() - { - //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (( this._entity == null )) - { - //line 129 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ; - } - - //line 131 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._entity.x = this._currentX; - //line 132 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._entity.y = this._currentY; - } - - - @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - switch (field.hashCode()) - { - case -281526476: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_countMax")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._countMax = ((int) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 665920350: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_currentX")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentX = ((double) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1480346608: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_count")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._count = ((int) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 665920351: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_currentY")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentY = ((double) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return super.__hx_setField_f(field, value, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - switch (field.hashCode()) - { - case -281526476: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_countMax")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._countMax = ((int) (haxe.lang.Runtime.toInt(value)) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1298275357: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("entity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this.set_entity(((hxDaedalus.ai.EntityAI) (value) )); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1480346608: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_count")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._count = ((int) (haxe.lang.Runtime.toInt(value)) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 3433509: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("path")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this.set_path(((haxe.root.Array) (value) )); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 91168004: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_path")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._path = ((haxe.root.Array) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 1410195714: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_entity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._entity = ((hxDaedalus.ai.EntityAI) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1239983250: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_hasNext")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._hasNext = haxe.lang.Runtime.toBool(value); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 665920350: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_currentX")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentX = ((double) (haxe.lang.Runtime.toDouble(value)) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1239911762: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_hasPrev")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._hasPrev = haxe.lang.Runtime.toBool(value); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 665920351: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_currentY")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this._currentY = ((double) (haxe.lang.Runtime.toDouble(value)) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return super.__hx_setField(field, value, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - switch (field.hashCode()) - { - case -1346531828: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("updateEntity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "updateEntity")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1298275357: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("entity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_entity(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 3377907: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("next")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 120: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("x")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_x(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 3449395: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("prev")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "prev")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 121: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("y")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_y(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 108404047: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("reset")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "reset")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 696830957: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("hasPrev")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_hasPrev(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 1415433698: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("set_path")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_path")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 696759469: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("hasNext")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_hasNext(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 1999868062: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_countMax")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_countMax")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 94851343: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("count")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_count(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 1131801318: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_count")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_count")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -372044331: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("countMax")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_countMax(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 773272772: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_hasNext")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_hasNext")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 1410195714: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_entity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._entity; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 773344260: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_hasPrev")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_hasPrev")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 665920350: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_currentX")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._currentX; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 98246096: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_y")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_y")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 665920351: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_currentY")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._currentY; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 98246095: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_x")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_x")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1239911762: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_hasPrev")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._hasPrev; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1575759264: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("set_entity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_entity")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1239983250: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_hasNext")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._hasNext; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 782402796: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_entity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "get_entity")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 91168004: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_path")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._path; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -281526476: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_countMax")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._countMax; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1480346608: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_count")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._count; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return super.__hx_getField(field, throwErrors, isCheck, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - throw null; - } - - } - - } - - - @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - switch (field.hashCode()) - { - case -281526476: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_countMax")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((double) (this._countMax) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 120: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("x")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_x(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1480346608: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_count")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((double) (this._count) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 121: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("y")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_y(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 665920351: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_currentY")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._currentY; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 94851343: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("count")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((double) (this.get_count()) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 665920350: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("_currentX")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this._currentX; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -372044331: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("countMax")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return ((double) (this.get_countMax()) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return super.__hx_getField_f(field, throwErrors, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - switch (field.hashCode()) - { - case -1346531828: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("updateEntity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this.updateEntity(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 782402796: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_entity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_entity(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 3377907: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("next")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.next(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case -1575759264: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("set_entity")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.set_entity(((hxDaedalus.ai.EntityAI) (dynargs.__get(0)) )); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 3449395: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("prev")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.prev(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 98246095: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_x")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_x(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 108404047: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("reset")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - this.reset(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 98246096: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_y")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_y(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 1415433698: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("set_path")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.set_path(((haxe.root.Array) (dynargs.__get(0)) )); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 773344260: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_hasPrev")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_hasPrev(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 1999868062: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_countMax")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_countMax(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 773272772: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_hasNext")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_hasNext(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - case 1131801318: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (field.equals("get_count")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return this.get_count(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return super.__hx_invokeField(field, dynargs); - } - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - return null; - } - - - @Override public void __hx_getFields(haxe.root.Array baseArr) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("_countMax"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("_count"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("_path"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("_hasNext"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("_hasPrev"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("_currentY"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("_currentX"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("_entity"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("path"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("countMax"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("count"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("hasNext"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("hasPrev"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("y"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("x"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - baseArr.push("entity"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/ai/trajectory/PathIterator.hx" - super.__hx_getFields(baseArr); - } - - -} - - diff --git a/src/main/java/hxDaedalus/data/Constants.java b/src/main/java/hxDaedalus/data/Constants.java deleted file mode 100644 index 3849106..0000000 --- a/src/main/java/hxDaedalus/data/Constants.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.data; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class Constants extends haxe.lang.HxObject -{ - static - { - //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Constants.hx" - hxDaedalus.data.Constants.EPSILON = 0.01; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Constants.hx" - hxDaedalus.data.Constants.EPSILON_SQUARED = 0.0001; - } - - public Constants(haxe.lang.EmptyObject empty) - { - } - - - public Constants() - { - //line 4 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/data/Constants.hx" - hxDaedalus.data.Constants.__hx_ctor_hxDaedalus_data_Constants(this); - } - - - public static void __hx_ctor_hxDaedalus_data_Constants(hxDaedalus.data.Constants __hx_this) - { - } - - - public static double EPSILON; - - public static double EPSILON_SQUARED; - -} - - diff --git a/src/main/java/hxDaedalus/debug/Debug.java b/src/main/java/hxDaedalus/debug/Debug.java deleted file mode 100644 index 916c23e..0000000 --- a/src/main/java/hxDaedalus/debug/Debug.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.debug; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class Debug extends haxe.lang.HxObject -{ - public Debug(haxe.lang.EmptyObject empty) - { - } - - - public Debug() - { - //line 11 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" - hxDaedalus.debug.Debug.__hx_ctor_hxDaedalus_debug_Debug(this); - } - - - public static void __hx_ctor_hxDaedalus_debug_Debug(hxDaedalus.debug.Debug __hx_this) - { - } - - - public static void assertTrue(boolean cond, java.lang.String message, java.lang.Object pos) - { - //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" - return ; - } - - - public static void assertFalse(boolean cond, java.lang.String message, java.lang.Object pos) - { - //line 41 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" - return ; - } - - - public static void assertEquals(T expected, T actual, java.lang.String message, java.lang.Object pos) - { - //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" - return ; - } - - - public static void trace(java.lang.Object value, java.lang.Object pos) - { - //line 60 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/debug/Debug.hx" - return ; - } - - -} - - diff --git a/src/main/java/hxDaedalus/factories/BitmapMesh.java b/src/main/java/hxDaedalus/factories/BitmapMesh.java deleted file mode 100644 index 3c08cc1..0000000 --- a/src/main/java/hxDaedalus/factories/BitmapMesh.java +++ /dev/null @@ -1,109 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.factories; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class BitmapMesh extends haxe.lang.HxObject -{ - public BitmapMesh(haxe.lang.EmptyObject empty) - { - } - - - public BitmapMesh() - { - //line 54 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - hxDaedalus.factories.BitmapMesh.__hx_ctor_hxDaedalus_factories_BitmapMesh(this); - } - - - public static void __hx_ctor_hxDaedalus_factories_BitmapMesh(hxDaedalus.factories.BitmapMesh __hx_this) - { - } - - - public static hxDaedalus.data.Mesh buildFromBmpData(hxPixels._Pixels.PixelsData bmpData, hxPixels._Pixels.PixelsData debugBmp, wings.javaSwing.SimpleDrawingContext debugShape) - { - //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int i = 0; - //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int j = 0; - //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - haxe.root.Array> shapes = hxDaedalus.data.math.Potrace.buildShapes(bmpData, debugBmp, debugShape); - //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - haxe.root.Array graphs = new haxe.root.Array(); - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - { - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int _g1 = 0; - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int _g = shapes.length; - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - while (( _g1 < _g )) - { - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int i1 = _g1++; - //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - graphs.push(hxDaedalus.data.math.Potrace.buildGraph(shapes.__get(i1))); - } - - } - - //line 37 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - haxe.root.Array> polygons = new haxe.root.Array>(); - //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - { - //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int _g11 = 0; - //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int _g2 = graphs.length; - //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - while (( _g11 < _g2 )) - { - //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int i2 = _g11++; - //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - polygons.push(hxDaedalus.data.math.Potrace.buildPolygon(graphs.__get(i2), debugShape)); - } - - } - - //line 42 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - hxDaedalus.data.Mesh mesh = hxDaedalus.factories.RectMesh.buildRectangle(((double) (bmpData.width) ), ((double) (bmpData.height) )); - //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - { - //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int _g12 = 0; - //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int _g3 = polygons.length; - //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - while (( _g12 < _g3 )) - { - //line 43 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - int i3 = _g12++; - //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - j = 0; - //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - while (( j < ( polygons.__get(i3).length - 2 ) )) - { - //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - mesh.insertConstraintSegment(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(j))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(( j + 1 )))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(( j + 2 )))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(( j + 3 )))) )); - //line 47 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - j += 2; - } - - //line 49 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - mesh.insertConstraintSegment(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(0))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(1))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(j))) ), ((double) (haxe.lang.Runtime.toDouble(polygons.__get(i3).__get(( j + 1 )))) )); - } - - } - - //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapMesh.hx" - return mesh; - } - - -} - - diff --git a/src/main/java/hxDaedalus/factories/BitmapObject.java b/src/main/java/hxDaedalus/factories/BitmapObject.java deleted file mode 100644 index 00dc5dc..0000000 --- a/src/main/java/hxDaedalus/factories/BitmapObject.java +++ /dev/null @@ -1,149 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.factories; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class BitmapObject extends haxe.lang.HxObject -{ - public BitmapObject(haxe.lang.EmptyObject empty) - { - } - - - public BitmapObject() - { - //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - hxDaedalus.factories.BitmapObject.__hx_ctor_hxDaedalus_factories_BitmapObject(this); - } - - - public static void __hx_ctor_hxDaedalus_factories_BitmapObject(hxDaedalus.factories.BitmapObject __hx_this) - { - } - - - public static hxDaedalus.data.Obstacle buildFromBmpData(hxPixels._Pixels.PixelsData bmpData, java.lang.Object simplificationEpsilon, hxPixels._Pixels.PixelsData debugBmp, wings.javaSwing.SimpleDrawingContext debugShape) - { - //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - double __temp_simplificationEpsilon22 = ( (haxe.lang.Runtime.eq(simplificationEpsilon, null)) ? (((double) (1) )) : (((double) (haxe.lang.Runtime.toDouble(simplificationEpsilon)) )) ); - //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int i = 0; - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int j = 0; - //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - { - //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - boolean cond = ( ( bmpData.width > 0 ) && ( bmpData.height > 0 ) ); - //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - java.lang.String message = ( ( ( ( "Invalid `bmpData` size (" + bmpData.width ) + ", " ) + bmpData.height ) + ")" ); - } - - //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - haxe.root.Array> shapes = hxDaedalus.data.math.Potrace.buildShapes(bmpData, debugBmp, debugShape); - //line 31 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - if (( __temp_simplificationEpsilon22 >= 1 )) - { - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int _g1 = 0; - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int _g = shapes.length; - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - while (( _g1 < _g )) - { - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int i1 = _g1++; - //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - shapes.__set(i1, hxDaedalus.data.math.ShapeSimplifier.simplify(shapes.__get(i1), __temp_simplificationEpsilon22)); - } - - } - - //line 38 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - haxe.root.Array graphs = new haxe.root.Array(); - //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - { - //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int _g11 = 0; - //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int _g2 = shapes.length; - //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - while (( _g11 < _g2 )) - { - //line 39 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int i2 = _g11++; - //line 40 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - graphs.push(hxDaedalus.data.math.Potrace.buildGraph(shapes.__get(i2))); - } - - } - - //line 44 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - haxe.root.Array> polygons = new haxe.root.Array>(); - //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - { - //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int _g12 = 0; - //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int _g3 = graphs.length; - //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - while (( _g12 < _g3 )) - { - //line 45 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int i3 = _g12++; - //line 46 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - polygons.push(hxDaedalus.data.math.Potrace.buildPolygon(graphs.__get(i3), debugShape)); - } - - } - - //line 50 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - hxDaedalus.data.Obstacle obj = new hxDaedalus.data.Obstacle(); - //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - { - //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int _g13 = 0; - //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int _g4 = polygons.length; - //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - while (( _g13 < _g4 )) - { - //line 51 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - int i4 = _g13++; - //line 52 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - j = 0; - //line 53 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - while (( j < ( polygons.__get(i4).length - 2 ) )) - { - //line 55 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(j))) )); - //line 56 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(( j + 1 )))) )); - //line 57 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(( j + 2 )))) )); - //line 58 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(( j + 3 )))) )); - //line 59 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - j += 2; - } - - //line 61 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(0))) )); - //line 62 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(1))) )); - //line 63 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(j))) )); - //line 64 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - obj.get_coordinates().push(((double) (haxe.lang.Runtime.toDouble(polygons.__get(i4).__get(( j + 1 )))) )); - } - - } - - //line 66 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/factories/BitmapObject.hx" - return obj; - } - - -} - - diff --git a/src/main/java/hxDaedalus/iterators/FromEdgeToRotatedEdges.java b/src/main/java/hxDaedalus/iterators/FromEdgeToRotatedEdges.java deleted file mode 100644 index 6f6dbb8..0000000 --- a/src/main/java/hxDaedalus/iterators/FromEdgeToRotatedEdges.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.iterators; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class FromEdgeToRotatedEdges extends haxe.lang.HxObject -{ - public FromEdgeToRotatedEdges(haxe.lang.EmptyObject empty) - { - } - - - public FromEdgeToRotatedEdges() - { - //line 5 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromEdgeToRotatedEdges.hx" - hxDaedalus.iterators.FromEdgeToRotatedEdges.__hx_ctor_hxDaedalus_iterators_FromEdgeToRotatedEdges(this); - } - - - public static void __hx_ctor_hxDaedalus_iterators_FromEdgeToRotatedEdges(hxDaedalus.iterators.FromEdgeToRotatedEdges __hx_this) - { - } - - -} - - diff --git a/src/main/java/hxDaedalus/iterators/FromFaceToInnerVertices.java b/src/main/java/hxDaedalus/iterators/FromFaceToInnerVertices.java deleted file mode 100644 index 943e95d..0000000 --- a/src/main/java/hxDaedalus/iterators/FromFaceToInnerVertices.java +++ /dev/null @@ -1,358 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.iterators; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class FromFaceToInnerVertices extends haxe.lang.HxObject -{ - public FromFaceToInnerVertices(haxe.lang.EmptyObject empty) - { - } - - - public FromFaceToInnerVertices() - { - //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - hxDaedalus.iterators.FromFaceToInnerVertices.__hx_ctor_hxDaedalus_iterators_FromFaceToInnerVertices(this); - } - - - public static void __hx_ctor_hxDaedalus_iterators_FromFaceToInnerVertices(hxDaedalus.iterators.FromFaceToInnerVertices __hx_this) - { - } - - - - - public hxDaedalus.data.Face _fromFace; - - public hxDaedalus.data.Edge _nextEdge; - - public hxDaedalus.data.Vertex _resultVertex; - - public hxDaedalus.data.Face set_fromFace(hxDaedalus.data.Face value) - { - //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this._fromFace = value; - //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this._nextEdge = this._fromFace.get_edge(); - //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return value; - } - - - public hxDaedalus.data.Vertex next() - { - //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (( this._nextEdge != null )) - { - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this._resultVertex = this._nextEdge.get_originVertex(); - //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this._nextEdge = this._nextEdge.get_nextLeftEdge(); - //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (( this._nextEdge == this._fromFace.get_edge() )) - { - //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this._nextEdge = null; - } - - } - else - { - //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this._resultVertex = null; - } - - //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return this._resultVertex; - } - - - @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - switch (field.hashCode()) - { - case -1844345344: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("_resultVertex")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this._resultVertex = ((hxDaedalus.data.Vertex) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - case -1245086425: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("fromFace")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this.set_fromFace(((hxDaedalus.data.Face) (value) )); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - case 1514466479: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("_nextEdge")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this._nextEdge = ((hxDaedalus.data.Edge) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - case -1154568570: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("_fromFace")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - this._fromFace = ((hxDaedalus.data.Face) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return super.__hx_setField(field, value, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - switch (field.hashCode()) - { - case 3377907: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("next")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - case -1154568570: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("_fromFace")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return this._fromFace; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - case -1619148700: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("set_fromFace")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromFace")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - case 1514466479: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("_nextEdge")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return this._nextEdge; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - case -1844345344: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("_resultVertex")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return this._resultVertex; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return super.__hx_getField(field, throwErrors, isCheck, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - switch (field.hashCode()) - { - case 3377907: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("next")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return this.next(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - case -1619148700: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (field.equals("set_fromFace")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return this.set_fromFace(((hxDaedalus.data.Face) (dynargs.__get(0)) )); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - return super.__hx_invokeField(field, dynargs); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - throw null; - } - - } - - } - - - @Override public void __hx_getFields(haxe.root.Array baseArr) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - baseArr.push("_resultVertex"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - baseArr.push("_nextEdge"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - baseArr.push("_fromFace"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - baseArr.push("fromFace"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToInnerVertices.hx" - super.__hx_getFields(baseArr); - } - - -} - - diff --git a/src/main/java/hxDaedalus/iterators/FromFaceToNeighbourFaces.java b/src/main/java/hxDaedalus/iterators/FromFaceToNeighbourFaces.java deleted file mode 100644 index f329c72..0000000 --- a/src/main/java/hxDaedalus/iterators/FromFaceToNeighbourFaces.java +++ /dev/null @@ -1,379 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.iterators; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class FromFaceToNeighbourFaces extends haxe.lang.HxObject -{ - public FromFaceToNeighbourFaces(haxe.lang.EmptyObject empty) - { - } - - - public FromFaceToNeighbourFaces() - { - //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - hxDaedalus.iterators.FromFaceToNeighbourFaces.__hx_ctor_hxDaedalus_iterators_FromFaceToNeighbourFaces(this); - } - - - public static void __hx_ctor_hxDaedalus_iterators_FromFaceToNeighbourFaces(hxDaedalus.iterators.FromFaceToNeighbourFaces __hx_this) - { - } - - - - - public hxDaedalus.data.Face _fromFace; - - public hxDaedalus.data.Edge _nextEdge; - - public hxDaedalus.data.Face _resultFace; - - public hxDaedalus.data.Face set_fromFace(hxDaedalus.data.Face value) - { - //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._fromFace = value; - //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._nextEdge = this._fromFace.get_edge(); - //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return value; - } - - - public hxDaedalus.data.Face next() - { - //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (( this._nextEdge != null )) - { - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - while (true) - { - //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._resultFace = this._nextEdge.get_rightFace(); - //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._nextEdge = this._nextEdge.get_nextLeftEdge(); - //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (( this._nextEdge == this._fromFace.get_edge() )) - { - //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._nextEdge = null; - //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if ( ! (this._resultFace.get_isReal()) ) - { - //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._resultFace = null; - } - - //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if ( ! (( ! (this._resultFace.get_isReal()) )) ) - { - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - } - - } - else - { - //line 33 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._resultFace = null; - } - - //line 35 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return this._resultFace; - } - - - @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - boolean __temp_executeDef1 = true; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - switch (field.hashCode()) - { - case 516035001: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("_resultFace")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._resultFace = ((hxDaedalus.data.Face) (value) ); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return value; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - case -1245086425: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("fromFace")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this.set_fromFace(((hxDaedalus.data.Face) (value) )); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return value; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - case 1514466479: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("_nextEdge")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._nextEdge = ((hxDaedalus.data.Edge) (value) ); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return value; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - case -1154568570: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("_fromFace")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - this._fromFace = ((hxDaedalus.data.Face) (value) ); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return value; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (__temp_executeDef1) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return super.__hx_setField(field, value, handleProperties); - } - else - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - boolean __temp_executeDef1 = true; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - switch (field.hashCode()) - { - case 3377907: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("next")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - case -1154568570: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("_fromFace")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return this._fromFace; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - case -1619148700: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("set_fromFace")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromFace")) ); - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - case 1514466479: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("_nextEdge")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return this._nextEdge; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - case 516035001: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("_resultFace")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return this._resultFace; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (__temp_executeDef1) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return super.__hx_getField(field, throwErrors, isCheck, handleProperties); - } - else - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - boolean __temp_executeDef1 = true; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - switch (field.hashCode()) - { - case 3377907: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("next")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return this.next(); - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - case -1619148700: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (field.equals("set_fromFace")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return this.set_fromFace(((hxDaedalus.data.Face) (dynargs.__get(0)) )); - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - break; - } - - - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - if (__temp_executeDef1) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - return super.__hx_invokeField(field, dynargs); - } - else - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - throw null; - } - - } - - } - - - @Override public void __hx_getFields(haxe.root.Array baseArr) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - baseArr.push("_resultFace"); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - baseArr.push("_nextEdge"); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - baseArr.push("_fromFace"); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - baseArr.push("fromFace"); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromFaceToNeighbourFaces.hx" - super.__hx_getFields(baseArr); - } - - -} - - diff --git a/src/main/java/hxDaedalus/iterators/FromMeshToFaces.java b/src/main/java/hxDaedalus/iterators/FromMeshToFaces.java deleted file mode 100644 index 2af0e79..0000000 --- a/src/main/java/hxDaedalus/iterators/FromMeshToFaces.java +++ /dev/null @@ -1,455 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.iterators; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class FromMeshToFaces extends haxe.lang.HxObject -{ - public FromMeshToFaces(haxe.lang.EmptyObject empty) - { - } - - - public FromMeshToFaces() - { - //line 13 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - hxDaedalus.iterators.FromMeshToFaces.__hx_ctor_hxDaedalus_iterators_FromMeshToFaces(this); - } - - - public static void __hx_ctor_hxDaedalus_iterators_FromMeshToFaces(hxDaedalus.iterators.FromMeshToFaces __hx_this) - { - } - - - - - public hxDaedalus.data.Mesh _fromMesh; - - public int _currIndex; - - public hxDaedalus.data.Face _resultFace; - - public hxDaedalus.data.Mesh set_fromMesh(hxDaedalus.data.Mesh value) - { - //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this._fromMesh = value; - //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this._currIndex = 0; - //line 18 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return value; - } - - - public hxDaedalus.data.Face next() - { - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - while (true) - { - //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (( this._currIndex < this._fromMesh._faces.length )) - { - //line 25 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this._resultFace = this._fromMesh._faces.__get(this._currIndex); - //line 26 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this._currIndex++; - } - else - { - //line 28 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this._resultFace = null; - //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if ( ! (( ! (this._resultFace.get_isReal()) )) ) - { - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - } - - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return this._resultFace; - } - - - @Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - switch (field.hashCode()) - { - case -857179071: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("_currIndex")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this._currIndex = ((int) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return super.__hx_setField_f(field, value, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - switch (field.hashCode()) - { - case 516035001: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("_resultFace")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this._resultFace = ((hxDaedalus.data.Face) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - case -1244873545: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("fromMesh")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this.set_fromMesh(((hxDaedalus.data.Mesh) (value) )); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - case -857179071: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("_currIndex")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this._currIndex = ((int) (haxe.lang.Runtime.toInt(value)) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - case -1154355690: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("_fromMesh")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - this._fromMesh = ((hxDaedalus.data.Mesh) (value) ); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return value; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return super.__hx_setField(field, value, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - switch (field.hashCode()) - { - case 3377907: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("next")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - case -1154355690: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("_fromMesh")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return this._fromMesh; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - case -1618935820: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("set_fromMesh")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromMesh")) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - case -857179071: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("_currIndex")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return this._currIndex; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - case 516035001: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("_resultFace")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return this._resultFace; - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return super.__hx_getField(field, throwErrors, isCheck, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - throw null; - } - - } - - } - - - @Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - switch (field.hashCode()) - { - case -857179071: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("_currIndex")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return ((double) (this._currIndex) ); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return super.__hx_getField_f(field, throwErrors, handleProperties); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - boolean __temp_executeDef1 = true; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - switch (field.hashCode()) - { - case 3377907: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("next")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return this.next(); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - case -1618935820: - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (field.equals("set_fromMesh")) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - __temp_executeDef1 = false; - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return this.set_fromMesh(((hxDaedalus.data.Mesh) (dynargs.__get(0)) )); - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - break; - } - - - } - - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - if (__temp_executeDef1) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - return super.__hx_invokeField(field, dynargs); - } - else - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - throw null; - } - - } - - } - - - @Override public void __hx_getFields(haxe.root.Array baseArr) - { - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - baseArr.push("_resultFace"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - baseArr.push("_currIndex"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - baseArr.push("_fromMesh"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - baseArr.push("fromMesh"); - //line 7 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromMeshToFaces.hx" - super.__hx_getFields(baseArr); - } - - -} - - diff --git a/src/main/java/hxDaedalus/iterators/FromVertexToNeighbourVertices.java b/src/main/java/hxDaedalus/iterators/FromVertexToNeighbourVertices.java deleted file mode 100644 index acdd0b0..0000000 --- a/src/main/java/hxDaedalus/iterators/FromVertexToNeighbourVertices.java +++ /dev/null @@ -1,370 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxDaedalus.iterators; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public class FromVertexToNeighbourVertices extends haxe.lang.HxObject -{ - public FromVertexToNeighbourVertices(haxe.lang.EmptyObject empty) - { - } - - - public FromVertexToNeighbourVertices() - { - //line 12 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - hxDaedalus.iterators.FromVertexToNeighbourVertices.__hx_ctor_hxDaedalus_iterators_FromVertexToNeighbourVertices(this); - } - - - public static void __hx_ctor_hxDaedalus_iterators_FromVertexToNeighbourVertices(hxDaedalus.iterators.FromVertexToNeighbourVertices __hx_this) - { - } - - - - - public hxDaedalus.data.Vertex _fromVertex; - - public hxDaedalus.data.Edge _nextEdge; - - public hxDaedalus.data.Vertex _resultVertex; - - public hxDaedalus.data.Vertex set_fromVertex(hxDaedalus.data.Vertex value) - { - //line 15 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this._fromVertex = value; - //line 16 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this._nextEdge = this._fromVertex.get_edge(); - //line 17 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return value; - } - - - public hxDaedalus.data.Vertex next() - { - //line 21 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (( this._nextEdge != null )) - { - //line 22 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this._resultVertex = this._nextEdge.get_oppositeEdge().get_originVertex(); - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - while (true) - { - //line 24 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this._nextEdge = this._nextEdge.get_rotLeftEdge(); - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if ( ! (( ! (this._nextEdge.get_isReal()) )) ) - { - //line 23 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - } - - //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (( this._nextEdge == this._fromVertex.get_edge() )) - { - //line 27 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this._nextEdge = null; - } - - } - else - { - //line 29 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this._resultVertex = null; - } - - //line 32 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return this._resultVertex; - } - - - @Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - boolean __temp_executeDef1 = true; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - switch (field.hashCode()) - { - case -1844345344: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("_resultVertex")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this._resultVertex = ((hxDaedalus.data.Vertex) (value) ); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return value; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - case -2064921106: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("fromVertex")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this.set_fromVertex(((hxDaedalus.data.Vertex) (value) )); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return value; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - case 1514466479: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("_nextEdge")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this._nextEdge = ((hxDaedalus.data.Edge) (value) ); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return value; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - case -976608371: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("_fromVertex")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - this._fromVertex = ((hxDaedalus.data.Vertex) (value) ); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return value; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (__temp_executeDef1) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return super.__hx_setField(field, value, handleProperties); - } - else - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - boolean __temp_executeDef1 = true; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - switch (field.hashCode()) - { - case 3377907: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("next")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) ); - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - case -976608371: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("_fromVertex")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return this._fromVertex; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - case -761514517: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("set_fromVertex")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return ((haxe.lang.Function) (new haxe.lang.Closure(this, "set_fromVertex")) ); - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - case 1514466479: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("_nextEdge")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return this._nextEdge; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - case -1844345344: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("_resultVertex")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return this._resultVertex; - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (__temp_executeDef1) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return super.__hx_getField(field, throwErrors, isCheck, handleProperties); - } - else - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - throw null; - } - - } - - } - - - @Override public java.lang.Object __hx_invokeField(java.lang.String field, haxe.root.Array dynargs) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - boolean __temp_executeDef1 = true; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - switch (field.hashCode()) - { - case 3377907: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("next")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return this.next(); - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - case -761514517: - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (field.equals("set_fromVertex")) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - __temp_executeDef1 = false; - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return this.set_fromVertex(((hxDaedalus.data.Vertex) (dynargs.__get(0)) )); - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - break; - } - - - } - - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - if (__temp_executeDef1) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - return super.__hx_invokeField(field, dynargs); - } - else - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - throw null; - } - - } - - } - - - @Override public void __hx_getFields(haxe.root.Array baseArr) - { - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - baseArr.push("_resultVertex"); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - baseArr.push("_nextEdge"); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - baseArr.push("_fromVertex"); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - baseArr.push("fromVertex"); - //line 6 "/Users/tao/projects/hxDaedalus/src/hxDaedalus/iterators/FromVertexToNeighbourVertices.hx" - super.__hx_getFields(baseArr); - } - - -} - - diff --git a/src/main/java/hxPixels/_Pixels/Pixel_Impl_.java b/src/main/java/hxPixels/_Pixels/Pixel_Impl_.java deleted file mode 100644 index 9d51894..0000000 --- a/src/main/java/hxPixels/_Pixels/Pixel_Impl_.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by Haxe 3.4.2 -package hxPixels._Pixels; - -import haxe.root.*; - -@SuppressWarnings(value={"rawtypes", "unchecked"}) -public final class Pixel_Impl_ -{ - - - public static int get_A(int this1) - { - //line 555 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - return ( ( this1 >> 24 ) & 255 ); - } - - - public static int set_A(int this1, int a) - { - //line 558 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - a &= 255; - //line 559 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - this1 = ( ( this1 & 16777215 ) | ( a << 24 ) ); - //line 560 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - return a; - } - - - - - public static int get_R(int this1) - { - //line 565 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - return ( ( this1 >> 16 ) & 255 ); - } - - - public static int set_R(int this1, int r) - { - //line 568 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - r &= 255; - //line 569 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - this1 = ( ( this1 & -16711681 ) | ( r << 16 ) ); - //line 570 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - return r; - } - - - - - public static int get_G(int this1) - { - //line 575 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - return ( ( this1 >> 8 ) & 255 ); - } - - - public static int set_G(int this1, int g) - { - //line 578 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - g &= 255; - //line 579 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - this1 = ( ( this1 & -65281 ) | ( g << 8 ) ); - //line 580 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - return g; - } - - - - - public static int get_B(int this1) - { - //line 585 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - return ( this1 & 255 ); - } - - - public static int set_B(int this1, int b) - { - //line 588 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - b &= 255; - //line 589 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - this1 = ( ( this1 & -256 ) | b ); - //line 590 "/Users/tao/projects/hxDaedalus/src/hxPixels/Pixels.hx" - return b; - } - - -} - -