// Generated by Haxe 4.3.3
package schema;

import haxe.root.*;

@SuppressWarnings(value={"rawtypes", "unchecked"})
public class QuadCurve extends schema.Line
{
	public QuadCurve(haxe.lang.EmptyObject empty)
	{
		//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		super(haxe.lang.EmptyObject.EMPTY);
	}
	
	
	public QuadCurve(java.lang.Object start, java.lang.Object end, int xDst, int yDst)
	{
		//line 9 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		super(haxe.lang.EmptyObject.EMPTY);
		//line 9 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		schema.QuadCurve.__hx_ctor_schema_QuadCurve(this, start, end, xDst, yDst);
	}
	
	
	protected static void __hx_ctor_schema_QuadCurve(schema.QuadCurve __hx_this, java.lang.Object start, java.lang.Object end, int xDst, int yDst)
	{
		//line 9 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		schema.Line.__hx_ctor_schema_Line(__hx_this, start, end);
		//line 10 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		if (( ((int) (haxe.lang.Runtime.getField_f(start, "y", true)) ) == ((int) (haxe.lang.Runtime.getField_f(end, "y", true)) ) )) 
		{
			//line 11 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			{
				//line 11 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				int __temp_odecl1 = ((int) (haxe.lang.Runtime.getField_f(start, "x", true)) );
				//line 11 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				int __temp_odecl2 = ( ((int) (haxe.lang.Runtime.getField_f(start, "y", true)) ) + yDst );
				//line 11 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				__hx_this.point1 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (((double) (__temp_odecl1) )) ), ((double) (((double) (__temp_odecl2) )) )});
			}
			
			//line 12 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			{
				//line 12 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				int __temp_odecl3 = ((int) (haxe.lang.Runtime.getField_f(end, "x", true)) );
				//line 12 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				int __temp_odecl4 = ( ((int) (haxe.lang.Runtime.getField_f(start, "y", true)) ) + yDst );
				//line 12 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				__hx_this.point2 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (((double) (__temp_odecl3) )) ), ((double) (((double) (__temp_odecl4) )) )});
			}
			
		}
		else
		{
			//line 14 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			{
				//line 14 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				int __temp_odecl5 = ( ((int) (haxe.lang.Runtime.getField_f(start, "x", true)) ) + xDst );
				//line 14 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				int __temp_odecl6 = ((int) (haxe.lang.Runtime.getField_f(start, "y", true)) );
				//line 14 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				__hx_this.point1 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (((double) (__temp_odecl5) )) ), ((double) (((double) (__temp_odecl6) )) )});
			}
			
			//line 15 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			{
				//line 15 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				int __temp_odecl7 = ( ((int) (haxe.lang.Runtime.getField_f(start, "x", true)) ) + xDst );
				//line 15 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				int __temp_odecl8 = ((int) (haxe.lang.Runtime.getField_f(end, "y", true)) );
				//line 15 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				__hx_this.point2 = new haxe.lang.DynamicObject(new java.lang.String[]{}, new java.lang.Object[]{}, new java.lang.String[]{"x", "y"}, new double[]{((double) (((double) (__temp_odecl7) )) ), ((double) (((double) (__temp_odecl8) )) )});
			}
			
		}
		
	}
	
	
	public java.lang.Object point1;
	
	public java.lang.Object point2;
	
	@Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties)
	{
		//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		{
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			boolean __temp_executeDef1 = true;
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			if (( field != null )) 
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				switch (field.hashCode())
				{
					case -982754142:
					{
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						if (field.equals("point2")) 
						{
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							__temp_executeDef1 = false;
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							this.point2 = ((java.lang.Object) (value) );
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							return value;
						}
						
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						break;
					}
					
					
					case -982754143:
					{
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						if (field.equals("point1")) 
						{
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							__temp_executeDef1 = false;
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							this.point1 = ((java.lang.Object) (value) );
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							return value;
						}
						
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						break;
					}
					
					
				}
				
			}
			
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			if (__temp_executeDef1) 
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				return super.__hx_setField_f(field, value, handleProperties);
			}
			else
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				throw null;
			}
			
		}
		
	}
	
	
	@Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties)
	{
		//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		{
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			boolean __temp_executeDef1 = true;
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			if (( field != null )) 
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				switch (field.hashCode())
				{
					case -982754142:
					{
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						if (field.equals("point2")) 
						{
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							__temp_executeDef1 = false;
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							this.point2 = ((java.lang.Object) (value) );
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							return value;
						}
						
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						break;
					}
					
					
					case -982754143:
					{
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						if (field.equals("point1")) 
						{
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							__temp_executeDef1 = false;
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							this.point1 = ((java.lang.Object) (value) );
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							return value;
						}
						
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						break;
					}
					
					
				}
				
			}
			
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			if (__temp_executeDef1) 
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				return super.__hx_setField(field, value, handleProperties);
			}
			else
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				throw null;
			}
			
		}
		
	}
	
	
	@Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties)
	{
		//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		{
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			boolean __temp_executeDef1 = true;
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			if (( field != null )) 
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				switch (field.hashCode())
				{
					case -982754142:
					{
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						if (field.equals("point2")) 
						{
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							__temp_executeDef1 = false;
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							return this.point2;
						}
						
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						break;
					}
					
					
					case -982754143:
					{
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						if (field.equals("point1")) 
						{
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							__temp_executeDef1 = false;
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							return this.point1;
						}
						
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						break;
					}
					
					
				}
				
			}
			
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			if (__temp_executeDef1) 
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				return super.__hx_getField(field, throwErrors, isCheck, handleProperties);
			}
			else
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				throw null;
			}
			
		}
		
	}
	
	
	@Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties)
	{
		//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		{
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			boolean __temp_executeDef1 = true;
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			if (( field != null )) 
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				switch (field.hashCode())
				{
					case -982754142:
					{
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						if (field.equals("point2")) 
						{
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							__temp_executeDef1 = false;
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							return ((double) (haxe.lang.Runtime.toDouble(this.point2)) );
						}
						
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						break;
					}
					
					
					case -982754143:
					{
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						if (field.equals("point1")) 
						{
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							__temp_executeDef1 = false;
							//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
							return ((double) (haxe.lang.Runtime.toDouble(this.point1)) );
						}
						
						//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
						break;
					}
					
					
				}
				
			}
			
			//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
			if (__temp_executeDef1) 
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				return super.__hx_getField_f(field, throwErrors, handleProperties);
			}
			else
			{
				//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
				throw null;
			}
			
		}
		
	}
	
	
	@Override public void __hx_getFields(haxe.root.Array<java.lang.String> baseArr)
	{
		//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		baseArr.push("point2");
		//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		baseArr.push("point1");
		//line 4 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/schema/QuadCurve.hx"
		super.__hx_getFields(baseArr);
	}
	
	
}


