2022-02-04 17:00:03 +00:00
|
|
|
package love.distributedrebirth.numberxd;
|
|
|
|
|
|
|
|
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal;
|
|
|
|
import love.distributedrebirth.numberxd.base2t.part.T16PartHex;
|
|
|
|
import love.distributedrebirth.numberxd.base2t.type.V009Tyte;
|
|
|
|
import love.distributedrebirth.numberxd.base2t.type.V144Tocta;
|
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
|
|
|
|
|
|
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
2022-02-04 20:26:43 +00:00
|
|
|
abstract public class AbstractGroßGetậlŌṁ1ⁿᴰ<T extends BaseGetậl<T,V009Tyte>> extends AbstractBaseGetậlMatrix2<T,V009Tyte> {
|
2022-02-04 17:00:03 +00:00
|
|
|
|
|
|
|
private V144Tocta[] values;
|
|
|
|
private int valuesLength;
|
2022-02-04 19:01:05 +00:00
|
|
|
private int fractalLevel;
|
2022-02-04 17:00:03 +00:00
|
|
|
|
2022-02-04 19:01:05 +00:00
|
|
|
public AbstractGroßGetậlŌṁ1ⁿᴰ(int fractalLevel) {
|
2022-02-04 17:00:03 +00:00
|
|
|
this.fractalLevel = fractalLevel;
|
|
|
|
this.valuesLength = resolveFractalLevel(fractalLevel);
|
|
|
|
this.values = new V144Tocta[valuesLength];
|
|
|
|
for (int i=0;i<this.values.length;i++) {
|
|
|
|
this.values[i] = new V144Tocta();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-04 19:01:05 +00:00
|
|
|
public AbstractGroßGetậlŌṁ1ⁿᴰ(int fractalLevel, BaseIteratorOctal values) {
|
2022-02-04 17:00:03 +00:00
|
|
|
this.fractalLevel = fractalLevel;
|
|
|
|
this.valuesLength = resolveFractalLevel(fractalLevel);
|
|
|
|
this.values = new V144Tocta[valuesLength];
|
|
|
|
for (int i=0;i<this.values.length;i++) {
|
|
|
|
this.values[i] = new V144Tocta(values);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-04 19:01:05 +00:00
|
|
|
abstract protected int resolveFractalLevel(int level);
|
2022-02-04 17:00:03 +00:00
|
|
|
|
|
|
|
public V009Tyte getValue() {
|
2022-02-04 20:26:43 +00:00
|
|
|
return values[matrix2].getTytePart(T16PartHex.values()[matrix1]);
|
2022-02-04 17:00:03 +00:00
|
|
|
}
|
|
|
|
|
2022-02-04 19:01:05 +00:00
|
|
|
public int getFractalLevel() {
|
2022-02-04 17:00:03 +00:00
|
|
|
return fractalLevel;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2022-02-04 20:26:43 +00:00
|
|
|
public int getMatrix1Length() {
|
2022-02-04 17:00:03 +00:00
|
|
|
return T16PartHex.LENGTH();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2022-02-04 20:26:43 +00:00
|
|
|
public int getMatrix2Length() {
|
2022-02-04 17:00:03 +00:00
|
|
|
return valuesLength;
|
|
|
|
}
|
|
|
|
}
|