2022-01-30 22:00:16 +01:00
|
|
|
package love.distributedrebirth.numberxd;
|
2022-01-30 15:45:40 +01:00
|
|
|
|
2022-02-02 18:26:21 +01:00
|
|
|
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal;
|
2022-02-04 18:00:03 +01:00
|
|
|
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctalStack;
|
|
|
|
|
import love.distributedrebirth.numberxd.base2t.part.T08PartOctal;
|
|
|
|
|
import love.distributedrebirth.numberxd.base2t.typexl.V0x000CA8ˣᴸ;
|
|
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
2022-01-30 15:45:40 +01:00
|
|
|
|
2022-01-30 19:04:03 +01:00
|
|
|
/**
|
2022-01-31 13:58:19 +01:00
|
|
|
* Array of ŌṁKlompGetậl4ˢᴰ sliced as cheese.
|
2022-01-30 19:04:03 +01:00
|
|
|
*/
|
2022-02-04 18:00:03 +01:00
|
|
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
2022-02-04 21:26:43 +01:00
|
|
|
public class KlompÅtŌṁKāassGetậl4ˢᴰ extends AbstractBaseGetậlMatrix2<KlompÅtŌṁKāassGetậl4ˢᴰ, V0x000CA8ˣᴸ> {
|
2022-01-30 19:04:03 +01:00
|
|
|
|
2022-02-04 18:00:03 +01:00
|
|
|
private final V0x000CA8ˣᴸ[][] kaas;
|
2022-01-30 19:04:03 +01:00
|
|
|
private final int kaasCuts;
|
|
|
|
|
|
2022-01-31 19:13:12 +01:00
|
|
|
public KlompÅtŌṁKāassGetậl4ˢᴰ(int kaasCuts) {
|
2022-02-04 18:00:03 +01:00
|
|
|
if (kaasCuts < 2) {
|
|
|
|
|
throw new IllegalArgumentException("Can't slice cheese into less than one peace.");
|
|
|
|
|
}
|
2022-01-30 19:04:03 +01:00
|
|
|
this.kaasCuts = kaasCuts;
|
2022-02-04 18:00:03 +01:00
|
|
|
this.kaas = new V0x000CA8ˣᴸ[T08PartOctal.LENGTH()][kaasCuts];
|
|
|
|
|
for (int x=0;x<this.kaas.length;x++) {
|
|
|
|
|
for (int y=0;y<this.kaas[x].length;y++) {
|
|
|
|
|
this.kaas[x][y] = new V0x000CA8ˣᴸ();
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-30 19:04:03 +01:00
|
|
|
}
|
|
|
|
|
|
2022-02-04 18:00:03 +01:00
|
|
|
public KlompÅtŌṁKāassGetậl4ˢᴰ(int kaasCuts, BaseIteratorOctal values) {
|
|
|
|
|
if (kaasCuts < 2) {
|
|
|
|
|
throw new IllegalArgumentException("Can't slice cheese into less than one peace.");
|
2022-01-30 19:04:03 +01:00
|
|
|
}
|
2022-02-04 18:00:03 +01:00
|
|
|
this.kaasCuts = kaasCuts;
|
|
|
|
|
this.kaas = new V0x000CA8ˣᴸ[T08PartOctal.LENGTH()][kaasCuts];
|
|
|
|
|
for (int x=0;x<this.kaas.length;x++) {
|
|
|
|
|
for (int y=0;y<this.kaas[x].length;y++) {
|
|
|
|
|
this.kaas[x][y] = new V0x000CA8ˣᴸ(values);
|
|
|
|
|
}
|
2022-01-30 19:04:03 +01:00
|
|
|
}
|
2022-02-04 17:40:14 +01:00
|
|
|
}
|
|
|
|
|
|
2022-02-04 18:00:03 +01:00
|
|
|
public int getKaasCuts() {
|
|
|
|
|
return kaasCuts;
|
2022-01-30 19:04:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2022-02-04 18:00:03 +01:00
|
|
|
public V0x000CA8ˣᴸ getValue() {
|
2022-02-04 21:26:43 +01:00
|
|
|
return kaas[matrix1][matrix2];
|
2022-01-30 19:04:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2022-02-04 21:26:43 +01:00
|
|
|
public int getMatrix1Length() {
|
2022-02-04 18:00:03 +01:00
|
|
|
return T08PartOctal.LENGTH();
|
2022-01-30 19:04:03 +01:00
|
|
|
}
|
2022-02-04 18:00:03 +01:00
|
|
|
|
2022-01-30 19:04:03 +01:00
|
|
|
@Override
|
2022-02-04 21:26:43 +01:00
|
|
|
public int getMatrix2Length() {
|
2022-02-04 18:00:03 +01:00
|
|
|
return kaasCuts;
|
2022-01-30 19:04:03 +01:00
|
|
|
}
|
2022-02-04 18:00:03 +01:00
|
|
|
|
2022-01-30 19:04:03 +01:00
|
|
|
@Override
|
2022-02-04 18:00:03 +01:00
|
|
|
public KlompÅtŌṁKāassGetậl4ˢᴰ toClone() {
|
|
|
|
|
BaseIteratorOctalStack cloneStack = new BaseIteratorOctalStack();
|
2022-02-04 21:26:43 +01:00
|
|
|
for (int x=0;x<getMatrix1Length();x++) {
|
|
|
|
|
setMatrix1(x);
|
|
|
|
|
for (int y=0;y<getMatrix2Length();y++) {
|
|
|
|
|
setMatrix2(y);
|
2022-02-04 18:00:03 +01:00
|
|
|
cloneStack.addIterator(getValue().iteratorOctalsByClone());
|
|
|
|
|
}
|
2022-01-30 19:04:03 +01:00
|
|
|
}
|
2022-02-04 18:00:03 +01:00
|
|
|
return new KlompÅtŌṁKāassGetậl4ˢᴰ(getKaasCuts(), cloneStack);
|
2022-01-30 19:04:03 +01:00
|
|
|
}
|
2022-01-30 15:45:40 +01:00
|
|
|
}
|