| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
package h; |
| 47 |
|
| 48 |
import smetana.core.UnsupportedArrayOfStruct; |
| 49 |
import smetana.core.UnsupportedStructAndPtr; |
| 50 |
import smetana.core.__struct__; |
| 51 |
import smetana.core.amiga.StarStruct; |
| 52 |
|
| 53 |
public class ST_SplitQ_t extends UnsupportedStructAndPtr { |
| 54 |
|
| 55 |
private final StarStruct parent; |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
public final ST_Branch_t BranchBuf[] = new ST_Branch_t[] { new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 61 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 62 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 63 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 64 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 65 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 66 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 67 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 68 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 69 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 70 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 71 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 72 |
new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), new ST_Branch_t(), |
| 73 |
new ST_Branch_t(), new ST_Branch_t() }; |
| 74 |
|
| 75 |
public final ST_Rect_t CoverSplit = new ST_Rect_t(this); |
| 76 |
public int CoverSplitArea; |
| 77 |
|
| 78 |
public final ST_PartitionVars Partitions[] = new ST_PartitionVars[] { new ST_PartitionVars() }; |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
public ST_SplitQ_t() { |
| 84 |
this(null); |
| 85 |
} |
| 86 |
|
| 87 |
@Override |
| 88 |
public ST_Rect_t castTo(Class dest) { |
| 89 |
if (dest == ST_Rect_t.class) { |
| 90 |
return CoverSplit; |
| 91 |
} |
| 92 |
throw new UnsupportedOperationException(); |
| 93 |
} |
| 94 |
|
| 95 |
public ST_SplitQ_t(StarStruct parent) { |
| 96 |
this.parent = parent; |
| 97 |
} |
| 98 |
|
| 99 |
class ArrayOfSixtyFive extends UnsupportedArrayOfStruct { |
| 100 |
|
| 101 |
final private int pos; |
| 102 |
|
| 103 |
public ArrayOfSixtyFive(int pos) { |
| 104 |
this.pos = pos; |
| 105 |
} |
| 106 |
|
| 107 |
public ArrayOfSixtyFive plus(int delta) { |
| 108 |
return new ArrayOfSixtyFive(pos + delta); |
| 109 |
} |
| 110 |
|
| 111 |
@Override |
| 112 |
public __struct__ getStruct() { |
| 113 |
return BranchBuf[pos]; |
| 114 |
} |
| 115 |
|
| 116 |
@Override |
| 117 |
public void setStruct(__struct__ value) { |
| 118 |
BranchBuf[pos].copyDataFrom(value); |
| 119 |
} |
| 120 |
|
| 121 |
} |
| 122 |
|
| 123 |
class ArrayOfOne extends UnsupportedArrayOfStruct { |
| 124 |
|
| 125 |
final private int pos; |
| 126 |
|
| 127 |
public ArrayOfOne(int pos) { |
| 128 |
this.pos = pos; |
| 129 |
} |
| 130 |
|
| 131 |
public ArrayOfOne plus(int delta) { |
| 132 |
return new ArrayOfOne(pos + delta); |
| 133 |
} |
| 134 |
|
| 135 |
@Override |
| 136 |
public __struct__ getStruct() { |
| 137 |
return Partitions[pos]; |
| 138 |
} |
| 139 |
|
| 140 |
@Override |
| 141 |
public void setStruct(__struct__ value) { |
| 142 |
Partitions[pos].copyDataFrom(value); |
| 143 |
} |
| 144 |
|
| 145 |
} |
| 146 |
|
| 147 |
@Override |
| 148 |
public void setInt(String fieldName, int data) { |
| 149 |
if (fieldName.equals("CoverSplitArea")) { |
| 150 |
this.CoverSplitArea = data; |
| 151 |
return; |
| 152 |
} |
| 153 |
super.setInt(fieldName, data); |
| 154 |
} |
| 155 |
|
| 156 |
@Override |
| 157 |
public void setStruct(String fieldName, __struct__ newData) { |
| 158 |
if (fieldName.equals("CoverSplit")) { |
| 159 |
this.CoverSplit.copyDataFrom(newData); |
| 160 |
return; |
| 161 |
} |
| 162 |
super.setStruct(fieldName, newData); |
| 163 |
} |
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
} |