public static final int menu2=0x7f030006;
}
public static final class string {
- public static final int app_name=0x7f040000;
- public static final int bheight=0x7f040017;
- public static final int calculating=0x7f040012;
- public static final int cancel=0x7f040008;
- public static final int close=0x7f040009;
- public static final int common_settings=0x7f04000f;
- public static final int create=0x7f040011;
- public static final int delete=0x7f040007;
- public static final int error_unexpected=0x7f04001f;
- public static final int generate=0x7f04001a;
- public static final int handling=0x7f04000c;
- public static final int height=0x7f04000d;
- public static final int help=0x7f040005;
- public static final int help1=0x7f040001;
- public static final int help2=0x7f040002;
- public static final int help3=0x7f040003;
- public static final int help4=0x7f040004;
- public static final int hold=0x7f04000e;
- public static final int list0_1=0x7f040020;
- public static final int list0_2=0x7f040021;
- public static final int list0_3=0x7f040022;
- public static final int list0_4=0x7f040023;
- public static final int list0_5=0x7f040024;
- public static final int list0_6=0x7f040025;
- public static final int list0_7=0x7f040026;
- public static final int message_delete_pattern=0x7f04001d;
- public static final int message_nopattern=0x7f04001e;
- public static final int normal=0x7f040014;
- public static final int number=0x7f040016;
- public static final int patternMax=0x7f040019;
- public static final int patternTypes=0x7f040013;
- public static final int pattern_name=0x7f04000a;
- public static final int period=0x7f040018;
- public static final int save=0x7f040006;
- public static final int siteswap=0x7f04000b;
- public static final int speed=0x7f040010;
- public static final int synchronization=0x7f040015;
- public static final int title_delete=0x7f04001c;
- public static final int title_system_error=0x7f04001b;
+ public static final int app_name=0x7f040001;
+ public static final int bheight=0x7f040018;
+ public static final int calculating=0x7f040013;
+ public static final int cancel=0x7f040009;
+ public static final int close=0x7f04000a;
+ public static final int common_settings=0x7f040010;
+ public static final int create=0x7f040012;
+ public static final int delete=0x7f040008;
+ public static final int error_unexpected=0x7f040020;
+ public static final int generate=0x7f04001b;
+ public static final int handling=0x7f04000d;
+ public static final int height=0x7f04000e;
+ public static final int help=0x7f040006;
+ public static final int help1=0x7f040002;
+ public static final int help2=0x7f040003;
+ public static final int help3=0x7f040004;
+ public static final int help4=0x7f040005;
+ public static final int hold=0x7f04000f;
+ public static final int lang=0x7f040000;
+ public static final int list0_1=0x7f040021;
+ public static final int list0_2=0x7f040022;
+ public static final int list0_3=0x7f040023;
+ public static final int list0_4=0x7f040024;
+ public static final int list0_5=0x7f040025;
+ public static final int list0_6=0x7f040026;
+ public static final int list0_7=0x7f040027;
+ public static final int list0_8=0x7f040028;
+ public static final int message_delete_pattern=0x7f04001e;
+ public static final int message_nopattern=0x7f04001f;
+ public static final int normal=0x7f040015;
+ public static final int number=0x7f040017;
+ public static final int patternMax=0x7f04001a;
+ public static final int patternTypes=0x7f040014;
+ public static final int pattern_name=0x7f04000b;
+ public static final int period=0x7f040019;
+ public static final int save=0x7f040007;
+ public static final int siteswap=0x7f04000c;
+ public static final int speed=0x7f040011;
+ public static final int synchronization=0x7f040016;
+ public static final int title_delete=0x7f04001d;
+ public static final int title_system_error=0x7f04001c;
}
}
\r
import java.util.Vector;\r
import com.jm.db.Dao;\r
+import com.jm.db.DatabaseHelper;\r
import com.jm.utility.JmException;\r
\r
public class PatternList {\r
\r
public static JmPattern tempPattern = null;\r
- public static final String[] PACKAGE_INDEX = {\r
- "[1] 3ボール その1",\r
- "[2] 3ボール その2",\r
- "[3] 4ボール",\r
- "[4] 5ボール",\r
- "[5] 6ボール以上",\r
- "[6] トレーニング",\r
- "[7] マイパターン",\r
- "[8] パターン生成"\r
- };\r
+// public static final String[] PACKAGE_INDEX = {\r
+// "[1] 3ボール その1",\r
+// "[2] 3ボール その2",\r
+// "[3] 4ボール",\r
+// "[4] 5ボール",\r
+// "[5] 6ボール以上",\r
+// "[6] トレーニング",\r
+// "[7] マイパターン",\r
+// "[8] パターン生成"\r
+// };\r
\r
// edit {\r
// private boolean overwrited;\r
\r
// edit {\r
public PatternList() throws JmException {\r
- 言語別に追加\r
+ //言語別設定追加\r
\r
- setPackage00();\r
- setPackage01();\r
- setPackage02();\r
- setPackage03();\r
- setPackage04();\r
- setPackage05();\r
- setPackage06();\r
+ DatabaseHelper helper = DatabaseHelper.getInstance();\r
+ switch (helper.getLangId()){\r
+ case DatabaseHelper.JAPANEASE_ID:\r
+ setPackage00();\r
+ setPackage01();\r
+ setPackage02();\r
+ setPackage03();\r
+ setPackage04();\r
+ setPackage05();\r
+ setPackage06();\r
+ break;\r
+ default:\r
+ setPackage01En();\r
+ setPackage06En();\r
+ break;\r
+ }\r
}\r
\r
// }\r
\r
+ /*\r
public PatternList(Runnable parent, int index) throws JmException {\r
// edit\r
//super(parent);\r
// setDisplayable(patternList);\r
// }\r
}\r
-\r
+ */\r
+ \r
// edit {\r
// public void run() {\r
// if (!patterns.isEmpty()) {\r
int type = 6;\r
add(new JmPattern(type, "[新規作成]", "1"));\r
}\r
+ \r
+ public void setPackage01En() throws JmException {\r
+ int type = 1;\r
+\r
+ add(new JmPattern(type, "531"));\r
+ add(new JmPattern(type, "450"));\r
+ add(new JmPattern(type, "5241"));\r
+ add(new JmPattern(type, "51414"));\r
+ add(new JmPattern(type, "72312"));\r
+ add(new JmPattern(type, "wide cascade", "3", 12, 50, new byte[][] { { 21,\r
+ 9, 18, 4 } }));\r
+ add(new JmPattern(type, "ワイドリバースカスケード", "3", new byte[][] { { -8, 0,\r
+ 12, 0 } }));\r
+ add(new JmPattern(type, "リーチオーバー連続", "3", 15, 50, new byte[][] {\r
+ { 10, 0, 3, -2 }, { -13, 5, 13, 0 }, { 13, -3, 4, 0 } }));\r
+ add(new JmPattern(type, "リーチアンダー連続", "3", 15, 50, new byte[][] {\r
+ { 10, 4, 3, 4 }, { -13, -5, 13, 0 }, { 13, 3, 4, 0 } }));\r
+ add(new JmPattern(type, "クロス アーム", "3",\r
+ new byte[][] { { -4, 0, -12, 0 } }));\r
+ add(new JmPattern(type, "リンゴ食べ放題", "(2,4x)(4x,2)", 12, 50,\r
+ new byte[][] { { 0, 7, -3, -3 }, { 12, 10, 0, 8 },\r
+ { 12, 10, 0, 8 }, { 0, 7, -3, -3 } }));\r
+\r
+ add(new JmPattern(type, "1アップ2アップ B", "(4,4)(0,4x)(4,4)(4x,0)", 14, 50,\r
+ new byte[][] { o, o, { 14, 0, 0, 0 }, o, o, o, o,\r
+ { 14, 0, 0, 0 } }));\r
+ add(new JmPattern(type, "1アップ2アップ C",\r
+ "(4,4)(0,4x)(4,4)(4,0)(4,4)(4x,0)(4,4)(0,4)", 14, 50,\r
+ new byte[][] { o, o, { 14, 0, 14, 0 }, o, o, o, o, a, o, o, o,\r
+ { 14, 0, 14, 0 }, o, o, a, o }));\r
+ add(new JmPattern(type, "1アップ2アップ D", "(4,4)(0,4x)(4,4)(4x,0)", 14, 50,\r
+ new byte[][] { { 12, 0, -6, 0 }, { -6, 0, 12, 0 }, a, d,\r
+ { -6, 0, 12, 0 }, { 12, 0, -6, 0 }, d, a }));\r
+ add(new JmPattern(type, "1アップ2アップ E", "(4,4)(0,4)", 14, 50,\r
+ new byte[][] { f, f, { 13, 0, -13, 0 }, f }));\r
+ add(new JmPattern(type, "1アップ2アップ F", "(6,6)(0,2x)(4x,0)", 10, 50,\r
+ new byte[][] { f, f, { 13, 7, 4, 0 }, f, f, { 4, 0, 13, 7 } }));\r
+\r
+ byte[] fake1 = { 10, -1, 10, 0 };\r
+ byte[] fake2 = { 0, -1, 0, 0 };\r
+ byte[] fake3 = { 10, 10, 10, 10 };\r
+ add(new JmPattern(type, "フェイク A", "(2,4)", 14, 50, new byte[][] {\r
+ fake1, fake1, fake2, fake3 }));\r
+ add(new JmPattern(type, "フェイク B", "(2,4)", 14, 50, new byte[][] {\r
+ fake2, fake1, fake1, fake3 }));\r
+ add(new JmPattern(type, "フェイク C", "(4,2)(4x,2)(2,4)(2,4x)", 13, 50,\r
+ new byte[][] { fake1, fake1, fake3, fake2, fake1, fake1, fake2,\r
+ fake3 }));\r
+ add(new JmPattern(type, "ヨーヨーを一周", "(4,2)", 13, 50, new byte[][] {\r
+ { 0, 2, 0, 3 }, fake2, { 0, 13, 0, 13 }, { 10, -1, -10, -1 } }));\r
+ add(new JmPattern(type, "ヨーヨー(トルネード)", "(2,4)", new byte[][] { e,\r
+ { 15, 15, -15, 14 }, { -5, 0, -5, 0 }, { 15, 14, -15, 15 } }));\r
+ add(new JmPattern(type, "ヨーヨー(横断)", "(2,4)", new byte[][] { e,\r
+ { 15, 12, 0, 12 }, { -5, 0, -5, 0 }, { -15, 12, 0, 12 } }));\r
+ add(new JmPattern(type, "(4x,2x)(2,4)"));\r
+ add(new JmPattern(type, "(4x,6)(0,2x)"));\r
+ add(new JmPattern(type, "テニス B", "(2,4)(2,4x)(4,2)(4x,2)", 14, 50,\r
+ new byte[][] { e, e, { 15, 3, 15, 3 }, e, e, e, e,\r
+ { 15, 3, 15, 3 } }));\r
+ add(new JmPattern(type, "自由の女神 B", "3", 14, 50, new byte[][] {\r
+ { 3, 4, 12, 0 }, { 10, 17, 9, 19 } }));\r
+ add(new JmPattern(type, "441", 13, 50));\r
+ add(new JmPattern(type, "441 外回り", "441", 13, 50, new byte[][] { r, r,\r
+ { 4, 0, 0, 0 } }));\r
+ add(new JmPattern(type, "441 シャッフル", "441", 10, 50, new byte[][] {\r
+ { 5, -2, 5, -2 }, d, { 15, 4, 9, 10 } }));\r
+ add(new JmPattern(type, "ボスサイドスラム", "(4x,2x)(2,4x)(2x,4x)(4x,2)", 10,\r
+ 50, new byte[][] { { 6, 0, 12, 10 }, b, { 10, 0, 4, 0 }, d, b,\r
+ { 6, 0, 12, 10 }, d, { 10, 0, 4, 0 } }));\r
+ add(new JmPattern(type, "イクスチェンジ", "2334", 13, 50, new byte[][] {\r
+ { 0, 11, 10, 11 }, { 10, 0, 0, 0 }, { 0, 12, -10, 12 },\r
+ { 10, 0, 0, 0 } }));\r
+\r
+ byte[] eb = { 3, 0, 10, 0 };\r
+ add(new JmPattern(type, "ハーフシャワー B", "5223", shower));\r
+ add(new JmPattern(type, "腕の下シャワー", "(2x,4x)", new byte[][] {\r
+ { 5, 0, -10, 0 }, { 3, 4, -3, 4 } }));\r
+ add(new JmPattern(type, "腕の下シャワー(交互)", "(2x,4x)", new byte[][] { eb,\r
+ { 5, 4, 0, 4 }, { 3, 0, -10, 0 }, { 5, 4, 0, 4 } }));\r
+ add(new JmPattern(type, "シンクロシャワー", "(2x,4x)", shower));\r
+ add(new JmPattern(type, "ハイローシャワー A", "7131", shower));\r
+ add(new JmPattern(type, "ハイローシャワー B", "(2x,6x)(2x,2x)", 15, 50,\r
+ new byte[][] { { 6, 0, 12, 3 }, { 6, 3, 6, 0 }, { 6, 0, 6, 3 },\r
+ { 12, 3, 6, 0 } }));\r
+ add(new JmPattern(type, "ハイローシャワー C", "315171", shower));\r
+ add(new JmPattern(type, "ハーフメス", "3", 13, 50, new byte[][] { c,\r
+ { 0, 0, -12, -3 }, { 0, 2, -12, 2 }, { 0, -3, -6, 0 } }));\r
+ add(new JmPattern(type, "ミルズメス 423", "423", millsmess));\r
+ add(new JmPattern(type, "ミルズメス 414", "414", millsmess));\r
+ add(new JmPattern(type, "ミルズメス 315", "315", millsmess));\r
+ add(new JmPattern(type, "ミルズメス 44133", "44133", 13, 50, new byte[][] {\r
+ { -2, 0, -12, 5 }, { 2, -2, 12, 0 }, { 0, 2, -3, 0 },\r
+ { 10, 0, 10, 2 }, { 7, -2, -10, -3 } }));\r
+ add(new JmPattern(type, "ミルズメス ボックス", "612", millsmess));\r
+ add(new JmPattern(type, "ボックスもどき A", "126", 15, 50));\r
+ add(new JmPattern(type, "ボックスもどき B", "630", 15, 50));\r
+ add(new JmPattern(type, "ダブルボックス", "(4x,2x)(4,2x)(2x,4x)(2x,4)", 11,\r
+ 50, new byte[][] { { 14, 0, 7, 0 }, a, { 14, 0, 0, 0 },\r
+ { 0, 0, 14, 0 }, a, { 14, 0, 7, 0 }, { 0, 0, 14, 0 },\r
+ { 14, 0, 0, 0 } }));\r
+ add(new JmPattern(type, "拡張ボックス",\r
+ "(2x,8)(2x,4)(0,2x)(8,2x)(4,2x)(2x,0)", new byte[][] { eb, h,\r
+ eb, h, h, eb, h, eb, h, eb, eb, h }));\r
+ }\r
+ \r
+ public void setPackage06En() throws JmException {\r
+ int type = 6;\r
+ add(new JmPattern(type, "[Create]", "1"));\r
+ }\r
}\r