gdxapp4d/numberxd/src/main/love/distributedrebirth/numberxd/base2t/T04PartQuad.java

40 lines
1.9 KiB
Java
Raw Normal View History

2022-01-30 22:00:16 +01:00
package love.distributedrebirth.numberxd.base2t;
2022-01-28 11:19:52 +01:00
2022-02-02 18:06:12 +01:00
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ;
2022-02-02 18:29:34 +01:00
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
2022-02-02 18:06:12 +01:00
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ;
2022-02-02 19:17:30 +01:00
import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ;
2022-02-02 18:32:23 +01:00
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartAlt1ʸᴰ;
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartAlt1Infoʸᴰ;
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartKeyʸᴰ;
2022-02-02 18:29:34 +01:00
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
2022-02-02 19:17:30 +01:00
@BãßBȍőnClassInfoʸᴰ(name = "T04PartQuad", purpose = "The distribution by 4.")
@BãßBȍőnPartAlt1Infoʸᴰ(name = "Cardinal direction", website = "https://simple.wikipedia.org/wiki/Cardinal_direction")
2022-02-02 18:32:23 +01:00
public enum T04PartQuad implements BãßBȍőnPartAlt1ʸᴰ<T04PartQuad> {
2022-01-28 11:19:52 +01:00
2022-01-30 14:50:21 +01:00
PART_1("˥","0","","north","N"),
PART_2("","1","","east", "E"),
PART_3("","2","西","west", "W"),
2022-01-30 14:50:21 +01:00
PART_4("˩","3","","south","S"),
2022-01-28 11:19:52 +01:00
;
2022-02-02 18:32:23 +01:00
private final BãßBȍőnCoffinOpenʸᴰ<BãßBȍőnPartKeyʸᴰ> BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance();
public BãßBȍőnCoffinʸᴰ<BãßBȍőnPartKeyʸᴰ> GET_BBC() { return BBC; }
2022-01-31 20:13:41 +01:00
public static int LENGTH() { return values().length; };
2022-01-28 11:19:52 +01:00
private T04PartQuad(String idTone, String idLetter, String chinaKey, String chinaValue, String alt1Value) {
2022-02-02 18:32:23 +01:00
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ID_TONE, idTone);
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ID_LETTER, idLetter);
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey);
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue);
BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value);
BBC.PUT_MAP(BãßBȍőnPartKeyʸᴰ.MAP_TONE);
BBC.PUT_MAP(BãßBȍőnPartKeyʸᴰ.MAP_CHINA);
2022-01-28 11:19:52 +01:00
}
2022-02-01 18:31:51 +01:00
public T02PartBinary splitPartBinary(T02PartBinary part) {
return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1];
2022-01-30 14:50:21 +01:00
}
2022-01-28 11:19:52 +01:00
}