OSDN Git Service

7091b23510883c86517ad4bfe050e03da360ba25
[jugglemaster/source.git] / workspace / JuggleMaster / src / com / jm / PatternList.java
1 package com.jm;\r
2 \r
3 import java.util.Vector;\r
4 import com.jm.db.Dao;\r
5 import com.jm.db.DatabaseHelper;\r
6 import com.jm.utility.JmException;\r
7 \r
8 public class PatternList {\r
9 \r
10         public static JmPattern tempPattern = null;\r
11 //      public static final String[] PACKAGE_INDEX = {\r
12 //                                                                      "[1] 3ボール その1",\r
13 //                                                                      "[2] 3ボール その2",\r
14 //                                                                      "[3] 4ボール",\r
15 //                                                                      "[4] 5ボール",\r
16 //                                                                      "[5] 6ボール以上",\r
17 //                                                                      "[6] トレーニング",\r
18 //                                                                      "[7] マイパターン",\r
19 //                                                                      "[8] パターン生成"\r
20 //                                                                      };\r
21 \r
22 // edit {\r
23 //      private boolean                 overwrited;\r
24 //      private boolean                 registerable;\r
25 //      private Vector                  patterns;\r
26 //      private List                    patternList;\r
27         private Vector<JmPattern> patterns;\r
28 // }\r
29         private int idx = -1;\r
30 \r
31         public PatternList() {\r
32                 \r
33         }\r
34         \r
35         public void create() throws JmException {\r
36                 //言語別設定追加\r
37                 \r
38                 DatabaseHelper helper = DatabaseHelper.getInstance();\r
39                 switch (helper.getLangId()){\r
40                 case DatabaseHelper.JAPANEASE_ID:\r
41                         setPackage00();\r
42                         setPackage01();\r
43                         setPackage02();\r
44                         setPackage03();\r
45                         setPackage04();\r
46                         setPackage05();\r
47                         setPackage06();\r
48                         break;\r
49                 default:\r
50                         setPackage00En();                       \r
51                         setPackage01En();\r
52                         setPackage06En();\r
53                         break;\r
54                 }\r
55         }\r
56         \r
57         public void update() throws JmException {\r
58                 DatabaseHelper helper = DatabaseHelper.getInstance();\r
59                 switch (helper.getLangId()) {\r
60                 case DatabaseHelper.JAPANEASE_ID:\r
61                         setPackage06();\r
62                         break;\r
63                 default:\r
64                         setPackage06En();\r
65                         break;\r
66                 }\r
67         }\r
68 \r
69         /*\r
70     public PatternList(Runnable parent, int index) throws JmException {\r
71 // edit\r
72                 //super(parent);\r
73                 SiteSwap.clearCashe();\r
74 // edit {\r
75 //              this.overwrited = false;\r
76 //              this.registerable = false;\r
77 // }\r
78                 this.patterns = new Vector<JmPattern>();\r
79 // edit {\r
80 //              this.patternList = new List(PACKAGE_INDEX[index], List.IMPLICIT, \r
81 //                                                              new String[]{Resource.MSG_NOTHING}, null);\r
82 // }\r
83                 switch (index) {\r
84                 case 0 : setPackage00(); break;\r
85                 case 1 : setPackage01(); break;\r
86                 case 2 : setPackage02(); break;\r
87                 case 3 : setPackage03(); break;\r
88                 case 4 : setPackage04(); break;\r
89                 case 5 : setPackage05(); break;\r
90                 default : \r
91 // edit {\r
92 //                      loadPatterns();\r
93 //                      this.registerable = true;\r
94 //                      patternList.addCommand(Resource.CMD_MAKE);\r
95 //                      patternList.addCommand(Resource.CMD_DELETE);\r
96 //                      patternList.addCommand(Resource.CMD_PASTE);\r
97 // }\r
98                         break;\r
99                 }\r
100 // edit {\r
101 //              patternList.addCommand(Resource.CMD_PARAM);\r
102 //              patternList.addCommand(Resource.CMD_COPY);\r
103 //              setDisplayable(patternList);\r
104 // }\r
105     }\r
106          */\r
107         \r
108 // edit {\r
109 //      public void run() {\r
110 //              if (!patterns.isEmpty()) {\r
111 //              int index = patternList.getSelectedIndex();\r
112 //              int index = 0;\r
113 //              patternList.set(index, get(index).getName(), null);\r
114 //              }\r
115 //              super.run();\r
116 //      }\r
117 // }\r
118         \r
119 // edit {\r
120 //      public void commandAction(Command c, Displayable d) {\r
121 //        int index = patternList.getSelectedIndex();\r
122 //              \r
123 //              if (c == List.SELECT_COMMAND) {\r
124 //                      if (!patterns.isEmpty())\r
125 //                              new JugglerViewer(this, get(index)).run();\r
126 //              } else if (c == Resource.CMD_PARAM) {\r
127 //                      if (!patterns.isEmpty()) {\r
128 //                              new JmParameters(this, get(index), false).run();\r
129 //                              overwrited = true;\r
130 //                      }\r
131 //              } else if (c == Resource.CMD_MAKE) {\r
132 //                      new JmParameters(this, new JmPattern("", "3"), true).run();\r
133 //              } else if (c == Resource.CMD_DELETE) {\r
134 //                      delete(index);\r
135 //              } else if (c == Resource.CMD_COPY) {\r
136 //                      if (!patterns.isEmpty())\r
137 //                              tempPattern = get(index);\r
138 //              } else if (c == Resource.CMD_PASTE) {\r
139 //                      if (tempPattern != null)\r
140 //                              insert(new JmPattern(tempPattern));\r
141 //              } else {\r
142 //                      if (c == BaseDisplay.CMD_BACK && registerable && overwrited)\r
143 //                              storePatterns();\r
144 //                      super.commandAction(c, d);\r
145 //              }\r
146 //    }\r
147 // }\r
148         \r
149 // edit {\r
150 //      public boolean insert(JmPattern jp) {\r
151 //              if (jp.getSiteSwap() == null) return false;\r
152 //        int index = patternList.getSelectedIndex();\r
153 //              if (patterns.isEmpty()) patternList.delete(0);\r
154 //              patternList.insert(index, jp.getName(), null);\r
155 //              patterns.insertElementAt(jp, index);\r
156 //              overwrited = true;\r
157 //              return true;\r
158 //      }\r
159 // }\r
160         \r
161 // edit {\r
162 //    private JmPattern get(int index) {\r
163         public JmPattern get(int index) {\r
164         // private JmPattern get(int index) {\r
165 // }\r
166                 return (JmPattern)patterns.elementAt(index);\r
167         }\r
168 \r
169 // edit\r
170         public int size(){\r
171                 return patterns.size();\r
172         }\r
173         \r
174         private void clearIndex(){\r
175                 idx = 0;\r
176         }\r
177         \r
178         private void add(JmPattern jp) throws JmException {\r
179                 if (jp.getSiteSwap() == null) return;\r
180 // edit {\r
181 //              if (patterns.isEmpty()) patternList.delete(0);\r
182 //              patternList.append(jp.getName(), null);\r
183 // }\r
184 //              patterns.addElement(jp);\r
185                 Dao.getInstance().add(jp, idx++);\r
186 // }\r
187         }\r
188 \r
189         private int count(int type) throws JmException {\r
190                 return Dao.getInstance().count(type);           \r
191         }\r
192         \r
193 // edit {\r
194 //      private boolean delete(int index) {\r
195 //              if (patterns.isEmpty()) return false;\r
196 //              patternList.delete(index);\r
197 //              patterns.removeElementAt(index);\r
198 //              if (patterns.isEmpty())\r
199 //                      patternList.append(Resource.MSG_NOTHING, null);\r
200 //              overwrited = true;\r
201 //              return true;\r
202 //      }\r
203 // }\r
204         \r
205         /*********************************************************************\r
206          可能ならば保存した設定を読み込みます。\r
207          *********************************************************************/\r
208 // edit {\r
209 //      private void loadPatterns() {\r
210 //              try {\r
211 //                      RecordStore store = RecordStore.openRecordStore(Resource.JMME_RECORD_NAME, false);\r
212 //                      int num = (int)store.getRecord(2)[0] & 0xff;\r
213 //                      for (int i = 0; i < num; i++)\r
214 //                              add(new JmPattern(store.getRecord(i+3)));\r
215 //                      store.closeRecordStore();\r
216 //              } catch (RecordStoreException ex) {\r
217 //              }\r
218 //      }\r
219 // }\r
220         \r
221         /*********************************************************************\r
222          可能ならば設定を保存します。\r
223          *********************************************************************/\r
224 // edit {\r
225 //      private boolean storePatterns() {\r
226 //              try {\r
227 //                      RecordStore store = RecordStore.openRecordStore(Resource.JMME_RECORD_NAME, true);\r
228 //                      byte[] b_num = new byte[1];\r
229 //                      b_num[0] = (byte)(patterns.size() & 0xff);\r
230 //                      try {\r
231 //                              store.setRecord(2, b_num, 0, 1);\r
232 //                      } catch (RecordStoreException ex) {\r
233 //                              store.addRecord(b_num, 0, 1);\r
234 //                      }\r
235 //                      int num = 0;\r
236 //                      for (Enumeration en = patterns.elements(); en.hasMoreElements(); num++) {\r
237 //                              byte[] bytes = ((JmPattern)en.nextElement()).getBytes();\r
238 //                              try {\r
239 //                                      store.setRecord(num+3, bytes, 0, bytes.length);\r
240 //                              } catch (RecordStoreException ex) {\r
241 //                                      store.addRecord(bytes, 0, bytes.length);\r
242 //                              }\r
243 //                      }\r
244 //                      b_num[0] = (byte)(num & 0xff);\r
245 //                      store.setRecord(2, b_num, 0, 1);\r
246 //                      store.closeRecordStore();\r
247 //              } catch (RecordStoreException ex) {\r
248 //                      return false;\r
249 //              }\r
250 //              return true;\r
251 //      }\r
252 // }\r
253         \r
254         public static final byte[] n = JmPattern.NORMAL;\r
255         public static final byte[] r = JmPattern.reverse(n);\r
256         public static final byte[] a = {0,0,0,0};\r
257         public static final byte[] b = {10,0,10,0};\r
258         public static final byte[] c = {12,0,12,0};\r
259         public static final byte[] d = {6,0,6,0};\r
260         public static final byte[] e = {5,0,5,0};\r
261         public static final byte[] f = {4,0,4,0};\r
262         public static final byte[] g = {13,0,13,0};\r
263         public static final byte[] h = {10,0,3,0};\r
264         public static final byte[] k = {-1,0,-12,0};\r
265         public static final byte[] o = {7,0,7,0};\r
266 \r
267         public static final byte[][] reverse = new byte[][] {r};\r
268         public static final byte[][] center = new byte[][] {{13,0,0,0}};\r
269         public static final byte[][] shower = new byte[][] {{5,0,10,0},{10,0,5,0}};\r
270         public static final byte[][] millsmess = new byte[][] {k,{0,0,12,0},{1,0,-12,0}};\r
271         public static final byte[][] columns = new byte[][] {c,f,f,c};\r
272 \r
273         public void setPackage00() throws JmException {\r
274                 clearIndex();\r
275 // edit {\r
276                 int type = 0;\r
277 // }\r
278                 add(new JmPattern(type, "カスケード", "3"));\r
279                 add(new JmPattern(type, "フラッシュ", "333355500", 30, 50));\r
280                 add(new JmPattern(type, "テニス", "3", new byte[][] {{8,0,4,0},{8,0,4,0},{14,3,14,3}}));\r
281                 add(new JmPattern(type, "ハーフシャワー", "3", new byte[][] {{8,0,15,8},{15,8,8,0}}));\r
282                 add(new JmPattern(type, "リバースカスケード", "3", reverse));\r
283                 add(new JmPattern(type, "ウインドミル", "3", new byte[][] {{10,0,-10,-2},{-10,4,10,2}}));\r
284                 add(new JmPattern(type, "リーチオーバー", "3", 15, 50, new byte[][] {n,n,n,g,n,{10,0,8,-2},{-13,5,0,2},{13,-3,4,0}}));\r
285                 add(new JmPattern(type, "リーチアンダー", "3", 15, 50, new byte[][] {n,n,n,g,{13,0,4,-3},{10,4,4,4},{-16,-3,0,0},{13,3,4,0}}));\r
286                 add(new JmPattern(type, "オーバーザヘッド", "3", new byte[][] {{12,19,3,19}}));\r
287                 add(new JmPattern(type, "チョップ", "(2,4x)(4x,2)", 12, 50, new byte[][] {{4,9,-10,-3},{10,6,7,9},{10,6,7,9},{4,9,-10,-3}}));\r
288                 add(new JmPattern(type, "リンゴ食べちゃえ", "33333423", new byte[][] {{0,6,-3,4},n,n,n,n,{13,0,2,0},{12,7,0,7},{13,0,-4,0}}));\r
289                 add(new JmPattern(type, "1アップ2アップ", "(0,4)(4,4)", 14, 50, new byte[][] {a,b,b,b}));\r
290                 add(new JmPattern(type, "ヨーヨー", "(4,2)", 13, 50,  new byte[][] {{5,2,5,3},{-5,-1,-5,0},{5,13,5,13},{5,-1,5,0}}));\r
291                 add(new JmPattern(type, "オイオイ", "(4,2)", 13, 50, new byte[][] {{5,-1,5,0},{-5,3,-5,4},{5,10,5,10},{5,3,5,4}}));\r
292                 add(new JmPattern(type, "アーチ", "3", 13, 50, new byte[][] {{20,10,20,10},b,{15,5,15,5},{20,10,20,10},b,{15,5,15,5}}));\r
293                 add(new JmPattern(type, "自由の女神", "3", 12, 50, new byte[][] {{3,0,12,4},{10,20,9,19}}));\r
294                 add(new JmPattern(type, "シャッフル", "(4x,2x)", 12, 50, new byte[][] {{0,-5,12,10},{10,0,14,0}}));\r
295                 add(new JmPattern(type, "ルークスシャッフル", "(4,2x)(2x,4)", 15, 50, new byte[][] {{10,0,14,10},{10,-3,6,0},{10,-3,6,0},{10,0,14,10}}));\r
296                 add(new JmPattern(type, "ロボット", "242334", 15, 50, new byte[][] {{5,4,10,-3},b,{10,-3,10,13},a,{10,13,-10,13},d}));\r
297                 add(new JmPattern(type, "キャリー", "3", 10, 50, new byte[][] {{7,12,-7,12},{7,0,-7,0}}));\r
298                 add(new JmPattern(type, "シャワー", "51", 10, 50, shower));\r
299                 add(new JmPattern(type, "日本のお手玉", "51"));\r
300                 add(new JmPattern(type, "ボックス", "(2x,4)(4,2x)", 12, 50, new byte[][] {b,{10,0,2,0},{10,0,2,0},b}));\r
301                 add(new JmPattern(type, "ウィーブ", "(2,4)(2,4x)(4,2)(4x,2)", 10, 50, new byte[][] {{10,1,-7,0},{12,0,12,9},e,{-5,9,0,3},{12,0,12,9},{10,1,-7,0},{-5,9,0,3},e}));\r
302                 add(new JmPattern(type, "フォロー", "423", 10, 50, new byte[][] {{-10,10,-10,4},{10,-3,10,10},{0,4,0,2}}));\r
303                 add(new JmPattern(type, "ボストンメス A", "3", new byte[][] {{10,-2,10,-2},{10,3,10,3},{0,-2,0,-2},{-10,3,-10,3},{-10,-2,-10,-2},{0,3,0,3}}));\r
304                 add(new JmPattern(type, "ボストンメス B", "3", new byte[][] {{10,3,10,-2},{10,3,10,3},{0,-2,0,-2},{-10,3,-10,3},{-10,-2,-10,-2},{0,3,0,3},{10,-2,10,3},{10,-2,10,-2},{0,3,0,3},{-10,-2,-10,-2},{-10,3,-10,3},{0,-2,0,-2}}));\r
305                 add(new JmPattern(type, "ミルズメス", "3", 13, 50, millsmess));\r
306                 add(new JmPattern(type, "リバースミルズメス", "3", 13, 50, new byte[][] {{-12,0,-1,0},{12,0,0,0},{-12,0,1,0}}));\r
307                 add(new JmPattern(type, "バークスバラージ", "423", 10, 50, new byte[][] {{12,12,-6,-2},{-6,5,-6,12},{0,5,0,5}}));\r
308                 add(new JmPattern(type, "ルーベンシュタインズリベンジ", "35223", 15, 50, new byte[][] {{3,1,13,8},{7,-2,-10,-3},{3,6,-12,2},{-1,0,12,2},{-2,2,-10,-2}}));\r
309                 add(new JmPattern(type, "片手3個", "60"));\r
310                 add(new JmPattern(type, "片手カスケード", "60", new byte[][] {{-6,0,2,0},g,{18,0,10,0},g}));\r
311                 add(new JmPattern(type, "片手3個のマルチ", "[46]06020"));\r
312                 add(new JmPattern(type, "8040"));\r
313         }\r
314         \r
315         \r
316         public void setPackage01() throws JmException {\r
317                 clearIndex();\r
318 // edit {\r
319                 int type = 1;\r
320 // }\r
321                 add(new JmPattern(type, "531"));\r
322                 add(new JmPattern(type, "450"));\r
323                 add(new JmPattern(type, "5241"));\r
324                 add(new JmPattern(type, "51414"));\r
325                 add(new JmPattern(type, "72312"));\r
326                 add(new JmPattern(type, "ワイドカスケード", "3", 12, 50, new byte[][] {{21,9,18,4}}));\r
327                 add(new JmPattern(type, "ワイドリバースカスケード", "3", new byte[][] {{-8,0,12,0}}));\r
328                 add(new JmPattern(type, "リーチオーバー連続", "3", 15, 50, new byte[][] {{10,0,3,-2},{-13,5,13,0},{13,-3,4,0}}));\r
329                 add(new JmPattern(type, "リーチアンダー連続", "3", 15, 50, new byte[][] {{10,4,3,4},{-13,-5,13,0},{13,3,4,0}}));\r
330                 add(new JmPattern(type, "クロス アーム", "3", new byte[][] {{-4,0,-12,0}}));\r
331                 add(new JmPattern(type, "リンゴ食べ放題", "(2,4x)(4x,2)", 12, 50, new byte[][] {{0,7,-3,-3},{12,10,0,8},{12,10,0,8},{0,7,-3,-3}}));\r
332                 \r
333                 add(new JmPattern(type, "1アップ2アップ B", "(4,4)(0,4x)(4,4)(4x,0)", 14, 50, new byte[][] {o,o,{14,0,0,0},o,o,o,o,{14,0,0,0}}));\r
334                 add(new JmPattern(type, "1アップ2アップ C", "(4,4)(0,4x)(4,4)(4,0)(4,4)(4x,0)(4,4)(0,4)", 14, 50, new byte[][] {o,o,{14,0,14,0},o,o,o,o,a,o,o,o,{14,0,14,0},o,o,a,o}));\r
335                 add(new JmPattern(type, "1アップ2アップ D", "(4,4)(0,4x)(4,4)(4x,0)", 14, 50, new byte[][] {{12,0,-6,0},{-6,0,12,0},a,d,{-6,0,12,0},{12,0,-6,0},d,a}));\r
336                 add(new JmPattern(type, "1アップ2アップ E", "(4,4)(0,4)", 14, 50, new byte[][] {f,f,{13,0,-13,0},f}));\r
337                 add(new JmPattern(type, "1アップ2アップ F", "(6,6)(0,2x)(4x,0)", 10, 50, new byte[][] {f,f,{13,7,4,0},f,f,{4,0,13,7}}));\r
338 \r
339                 byte[] fake1 = {10,-1,10,0};\r
340                 byte[] fake2 = {0,-1,0,0};\r
341                 byte[] fake3 = {10,10,10,10};\r
342                 add(new JmPattern(type, "フェイク A", "(2,4)", 14, 50, new byte[][] {fake1,fake1,fake2,fake3}));\r
343                 add(new JmPattern(type, "フェイク B", "(2,4)", 14, 50, new byte[][] {fake2,fake1,fake1,fake3}));\r
344                 add(new JmPattern(type, "フェイク C", "(4,2)(4x,2)(2,4)(2,4x)", 13, 50, new byte[][] {fake1,fake1,fake3,fake2,fake1,fake1,fake2,fake3}));\r
345                 add(new JmPattern(type, "ヨーヨーを一周", "(4,2)", 13, 50, new byte[][] {{0,2,0,3},fake2,{0,13,0,13},{10,-1,-10,-1}}));\r
346                 add(new JmPattern(type, "ヨーヨー(トルネード)", "(2,4)", new byte[][] {e,{15,15,-15,14},{-5,0,-5,0},{15,14,-15,15}}));\r
347                 add(new JmPattern(type, "ヨーヨー(横断)", "(2,4)", new byte[][] {e,{15,12,0,12},{-5,0,-5,0},{-15,12,0,12}}));\r
348                 add(new JmPattern(type, "(4x,2x)(2,4)"));\r
349                 add(new JmPattern(type, "(4x,6)(0,2x)"));\r
350                 add(new JmPattern(type, "テニス B", "(2,4)(2,4x)(4,2)(4x,2)", 14, 50, new byte[][] {e,e,{15,3,15,3},e,e,e,e,{15,3,15,3}}));\r
351                 add(new JmPattern(type, "自由の女神 B", "3", 14, 50, new byte[][] {{3,4,12,0},{10,17,9,19}}));\r
352                 add(new JmPattern(type, "441", 13, 50));\r
353                 add(new JmPattern(type, "441 外回り", "441", 13, 50, new byte[][] {r,r,{4,0,0,0}}));\r
354                 add(new JmPattern(type, "441 シャッフル", "441", 10, 50, new byte[][] {{5,-2,5,-2},d,{15,4,9,10}}));\r
355                 add(new JmPattern(type, "ボスサイドスラム", "(4x,2x)(2,4x)(2x,4x)(4x,2)", 10, 50, new byte[][] {{6,0,12,10},b,{10,0,4,0},d,b,{6,0,12,10},d,{10,0,4,0}}));\r
356                 add(new JmPattern(type, "イクスチェンジ", "2334", 13, 50, new byte[][] {{0,11,10,11},{10,0,0,0},{0,12,-10,12},{10,0,0,0}}));\r
357 \r
358                 byte[] eb = {3,0,10,0};\r
359                 add(new JmPattern(type, "ハーフシャワー B", "5223", shower));\r
360                 add(new JmPattern(type, "腕の下シャワー", "(2x,4x)", new byte[][] {{5,0,-10,0},{3,4,-3,4}}));\r
361                 add(new JmPattern(type, "腕の下シャワー(交互)", "(2x,4x)", new byte[][] {eb,{5,4,0,4},{3,0,-10,0},{5,4,0,4}}));\r
362                 add(new JmPattern(type, "シンクロシャワー", "(2x,4x)", shower));\r
363                 add(new JmPattern(type, "ハイローシャワー A", "7131", shower));\r
364                 add(new JmPattern(type, "ハイローシャワー B", "(2x,6x)(2x,2x)", 15, 50, new byte[][] {{6,0,12,3},{6,3,6,0},{6,0,6,3},{12,3,6,0}}));\r
365                 add(new JmPattern(type, "ハイローシャワー C", "315171", shower));\r
366                 add(new JmPattern(type, "ハーフメス", "3", 13, 50, new byte[][] {c,{0,0,-12,-3},{0,2,-12,2},{0,-3,-6,0}}));\r
367                 add(new JmPattern(type, "ミルズメス 423", "423", millsmess));\r
368                 add(new JmPattern(type, "ミルズメス 414", "414", millsmess));\r
369                 add(new JmPattern(type, "ミルズメス 315", "315", millsmess));\r
370                 add(new JmPattern(type, "ミルズメス 44133", "44133", 13, 50, new byte[][] {{-2,0,-12,5},{2,-2,12,0},{0,2,-3,0},{10,0,10,2},{7,-2,-10,-3}}));\r
371                 add(new JmPattern(type, "ミルズメス ボックス", "612", millsmess));\r
372                 add(new JmPattern(type, "ボックスもどき A", "126", 15, 50));\r
373                 add(new JmPattern(type, "ボックスもどき B", "630", 15, 50));\r
374                 add(new JmPattern(type, "ダブルボックス", "(4x,2x)(4,2x)(2x,4x)(2x,4)", 11, 50, new byte[][] {{14,0,7,0},a,{14,0,0,0},{0,0,14,0},a,{14,0,7,0},{0,0,14,0},{14,0,0,0}}));\r
375                 add(new JmPattern(type, "拡張ボックス", "(2x,8)(2x,4)(0,2x)(8,2x)(4,2x)(2x,0)", new byte[][] {eb,h,eb,h,h,eb,h,eb,h,eb,eb,h}));\r
376         }\r
377         \r
378         public void setPackage02() throws JmException {\r
379                 clearIndex();\r
380 // edit {\r
381                 int type = 2;\r
382 // }\r
383                 add(new JmPattern(type, "ファウンテン", "4"));\r
384                 add(new JmPattern(type, "シンクロファウンテン", "(4,4)"));\r
385                 add(new JmPattern(type, "リバースファウンテン", "4", reverse));\r
386                 add(new JmPattern(type, "リバースシンクロファウンテン", "(4,4)", reverse));\r
387                 add(new JmPattern(type, "4コラムス スイッチ", "(4x,4x)(4,4)", new byte[][] {{12,0,12,2},{12,2,12,0},f,f}));\r
388                 add(new JmPattern(type, "4コラムス ピストン", "4", columns));\r
389                 add(new JmPattern(type, "4コラムス シンクロ(非対称)", "(4,4)", columns));\r
390                 add(new JmPattern(type, "4コラムス シンクロ(対称)", "(4,4)", new byte[][] {c,c,f,f}));\r
391                 add(new JmPattern(type, "4コラムス シンクロ(Splits)", "(4,4)", new byte[][] {c,{-4,0,-4,0},{-4,0,-4,0},c}));\r
392                 byte[] cross1 = {13,0,7,3};\r
393                 byte[] cross2 = {13,3,7,0};\r
394                 add(new JmPattern(type, "4クロス A", "(4x,4x)", new byte[][] {cross1,cross2}));\r
395                 add(new JmPattern(type, "4クロス B", "(4x,4x)", new byte[][] {cross1,cross2,cross2,cross1}));\r
396                 add(new JmPattern(type, "4テニス", "44453",   new byte[][] {{9,0,4,0},{9,0,4,0},{0,0,4,0},{15,3,15,3},{9,0,4,0}}));\r
397                 add(new JmPattern(type, "444447333", 30, 50));\r
398                 add(new JmPattern(type, "53"));\r
399                 add(new JmPattern(type, "561"));\r
400                 add(new JmPattern(type, "453"));\r
401                 add(new JmPattern(type, "741"));\r
402                 add(new JmPattern(type, "6424"));\r
403                 add(new JmPattern(type, "61616"));\r
404                 add(new JmPattern(type, "7161616"));\r
405                 add(new JmPattern(type, "7272712"));\r
406                 add(new JmPattern(type, "(2x,6x)(6x,2x)"));\r
407                 add(new JmPattern(type, "(2,6x)(2x,6)(6x,2)(6,2x)"));\r
408                 add(new JmPattern(type, "(2,4)([44x],2x)"));\r
409 \r
410                 add(new JmPattern(type, "4ハーフシャワー", "53", shower));\r
411                 add(new JmPattern(type, "4シャワー", "71", shower));\r
412                 add(new JmPattern(type, "4シンクロシャワー", "(2x,6x)", shower));\r
413                 add(new JmPattern(type, "4ハイローシャワー", "9151", shower));\r
414 \r
415                 add(new JmPattern(type, "4ボックス", "(2x,8)(2x,4)(8,2x)(4,2x)", new byte[][] {b,h,b,h,h,b,h,b}));\r
416                 add(new JmPattern(type, "4ボックスもどき A", "633", new byte[][] {b,{7,0,0,0},{7,0,0,0}}));\r
417                 add(new JmPattern(type, "4ボックスもどき B", "(2x,6)(2x,6)(6,2x)(6,2x)"));\r
418 \r
419                 add(new JmPattern(type, "4ミルズメス", "4", millsmess));\r
420                 add(new JmPattern(type, "4ミルズメス 534", "534", millsmess));\r
421                 add(new JmPattern(type, "4ミルズメス 552", "552", millsmess));\r
422                 add(new JmPattern(type, "4ミルズメス 642", "642", millsmess));\r
423                 add(new JmPattern(type, "4バークスバラージ", "525", 12, 50, new byte[][] {{14,14,-5,-2},{-9,3,-9,14},{0,0,3,0}}));\r
424 \r
425                 add(new JmPattern(type, "4マルチ [34]1", "[34]1"));\r
426                 add(new JmPattern(type, "4マルチ 4[43]1", "4[43]1"));\r
427                 add(new JmPattern(type, "4マルチ ミルズメス", "[34]23", millsmess));\r
428                 add(new JmPattern(type, "ダンシーズデビルメント", "3[53]22[32]", 15, 50, new byte[][] {{3,1,13,8},{7,-2,-10,-3},{3,6,-12,2},{-1,0,12,2},{-2,2,-10,-2}}));\r
429         }\r
430         \r
431         public void setPackage03() throws JmException {\r
432                 clearIndex();\r
433 // edit {\r
434                 int type = 3;\r
435 // }\r
436                 add(new JmPattern(type, "5カスケード", "5"));\r
437                 add(new JmPattern(type, "5リバースカスケード", "5", reverse));\r
438                 add(new JmPattern(type, "555555744", 30, 50));\r
439                 add(new JmPattern(type, "右3個 左2個", "64"));\r
440                 add(new JmPattern(type, "744"));\r
441                 add(new JmPattern(type, "753"));\r
442                 add(new JmPattern(type, "66661"));\r
443                 add(new JmPattern(type, "88333"));\r
444                 add(new JmPattern(type, "75751"));\r
445                 add(new JmPattern(type, "123456789", center));\r
446 \r
447                 add(new JmPattern(type, "5ハーフシャワー A", "5", new byte[][] {{8,0,15,8},{15,8,8,0}}));\r
448                 add(new JmPattern(type, "5ハーフシャワー B", "73", shower));\r
449                 add(new JmPattern(type, "5ハーフシャワー C", "(4x,6x)", shower));\r
450                 add(new JmPattern(type, "5シャワー", "91", shower));\r
451                 add(new JmPattern(type, "5マルチシャワー", "[97]121", shower));\r
452                 add(new JmPattern(type, "5ボックス", "(4x,6)(6,4x)"));\r
453 \r
454                 add(new JmPattern(type, "5ミルズメス", "5", millsmess));\r
455                 add(new JmPattern(type, "5バークスバラージ", "726", 12, 50, new byte[][] {{16,14,-3,-4},{-9,0,-10,14},{2,-2,4,0}}));\r
456                 add(new JmPattern(type, "5コラムス", "(6,6)(6,6)(0,6)", new byte[][] {c,c,d,d,a,d}));\r
457                 add(new JmPattern(type, "5ミルズメス コラムス A", "5", new byte[][] {{-12,0,-12,0},{-6,0,-6,0},a,d,c,c,d,a,{-6,0,-6,0},{-12,0,-12,0}}));\r
458                 add(new JmPattern(type, "5ミルズメス コラムス B", "5", new byte[][] {c,d,d,c,a,{-12,0,-12,0},{-6,0,-6,0},{-6,0,-6,0},{-12,0,-12,0},a}));\r
459                 add(new JmPattern(type, "5ミルズメス コラムス C", "5", new byte[][] {{12,3,12,3},{-6,0,-6,0},{0,3,0,3},d,{-12,3,-12,3},{-12,0,-12,0},{6,3,6,3},a,{-6,3,-6,3},c}));\r
460                 add(new JmPattern(type, "5マルチ コラムス", "([46],[46])(0,6)(2,2)", new byte[][] {g,g,a,g,g,g}));\r
461 \r
462                 add(new JmPattern(type, "Martin", "[62]25", new byte[][] {g,n,n}));\r
463                 add(new JmPattern(type, "25[75]51"));\r
464                 add(new JmPattern(type, "(2,[62])([22],6x)([62],2)(6x,[22])"));\r
465                 add(new JmPattern(type, "5マルチ A", "[54][22]2"));\r
466                 add(new JmPattern(type, "5マルチ B", "24[54]"));\r
467         }\r
468         \r
469         public void setPackage04() throws JmException {\r
470                 clearIndex();\r
471 // edit {\r
472                 int type = 4;\r
473 // }\r
474                 add(new JmPattern(type, "6ファウンテン", "6"));\r
475                 add(new JmPattern(type, "6シンクロファウンテン", "(6,6)"));\r
476                 add(new JmPattern(type, "7カスケード", "7"));\r
477                 add(new JmPattern(type, "8ファウンテン", "8"));\r
478                 add(new JmPattern(type, "9カスケード", "9"));\r
479 \r
480                 add(new JmPattern(type, "6ハーフシャワー", "75", shower));\r
481                 add(new JmPattern(type, "6シャワー", "b1", shower));\r
482                 add(new JmPattern(type, "7シャワー", "d1", shower));\r
483 \r
484                 add(new JmPattern(type, "6コラムス", "(6,6)",\r
485                  new byte[][] {{15,0,15,0},{15,0,15,0},{9,0,9,0},{9,0,9,0},{3,0,3,0},{3,0,3,0}}));\r
486                 add(new JmPattern(type, "6ミルズメス", "6", millsmess));\r
487                 add(new JmPattern(type, "6ミルズメス 864", "864", millsmess));\r
488 \r
489                 add(new JmPattern(type, "7スプリット A", "[456][22]2"));\r
490                 add(new JmPattern(type, "7スプリット B", "([66x],2)(2,[66x])", center));\r
491                 add(new JmPattern(type, "26[76]"));\r
492                 add(new JmPattern(type, "[234]57"));\r
493 \r
494                 add(new JmPattern(type, "9マルチ", "[54]"));\r
495                 add(new JmPattern(type, "35カスケード", "z"));\r
496                 add(new JmPattern(type, "18シャワー", "z1", shower));\r
497                 add(new JmPattern(type, "35マルチ シャワー", "[9bdfh][11111]", shower));\r
498                 add(new JmPattern(type, "12ミルズメス 333666999cccfffiiilll", "333666999cccfffiiilll", millsmess));\r
499                 add(new JmPattern(type, "[b9753]0020[22]0[222]0[2222]0"));\r
500                 add(new JmPattern(type, "123456789abcdefghijklmnopqrstuvwxyz", center));\r
501 \r
502                 byte[] box1 = {13,0,3,0};\r
503                 byte[] box2 = JmPattern.reverse(box1);\r
504                 add(new JmPattern(type, "9ボックス", "u1q1m1i1e1a1612",\r
505                  new byte[][] {g,box1,box2,box1,box2,box1,box2,box1,box2,box1,box2,box1,box2,box1,g}));\r
506                 add(new JmPattern(type, "trpnljhfdb97531"));\r
507                 add(new JmPattern(type, "Ken", "ken"));\r
508                 add(new JmPattern(type, "ペンタマルチ", "[56789]"));\r
509                 add(new JmPattern(type, "20コラムス A", "(k,k)", 10, 50,\r
510                  new byte[][] {{29,3,29,3},{2,3,2,3},{26,3,26,3},{5,3,5,3},{23,3,23,3},{8,3,8,3},{20,3,20,3},{11,3,11,3},{17,3,17,3},{14,3,14,3},{14,3,14,3},{17,3,17,3},{11,3,11,3},{20,3,20,3},{8,3,8,3},{23,3,23,3},{5,3,5,3},{26,3,26,3},{2,3,2,3},{29,3,29,3}}));\r
511                 add(new JmPattern(type, "20コラムス B", "k", 10, 50,\r
512                  new byte[][] {{20,3,20,3},{18,3,18,3},{16,3,16,3},{14,3,14,3},{12,3,12,3},{10,3,10,3},{8,3,8,3},{6,3,6,3},{4,3,4,3},{2,3,2,3},{2,3,2,3},{4,3,4,3},{6,3,6,3},{8,3,8,3},{10,3,10,3},{12,3,12,3},{14,3,14,3},{16,3,16,3},{18,3,18,3},{20,3,20,3}}));\r
513         }\r
514 \r
515         public void setPackage05() throws JmException {\r
516                 clearIndex();\r
517 // edit {\r
518                 int type = 5;\r
519 // }\r
520                 add(new JmPattern(type, "1個の投げ方", "300"));\r
521                 add(new JmPattern(type, "2個の投げ方", "33022"));\r
522                 add(new JmPattern(type, "2個の連続", "330"));\r
523                 add(new JmPattern(type, "3個の練習 まず3回投げよう", "[32]3322"));\r
524                 add(new JmPattern(type, "3個の練習 3スローカスケード", "3", 20, 75));\r
525                 add(new JmPattern(type, "4個の練習 片手", "40"));\r
526                 add(new JmPattern(type, "4個の練習 片手コラムス", "40", new byte[][] {a,g,b,g}));\r
527                 add(new JmPattern(type, "5個の練習 2個", "50500"));\r
528                 add(new JmPattern(type, "5個の練習 3チェイス", "50505"));\r
529                 add(new JmPattern(type, "5個の練習 3フラッシュ", "55500"));\r
530                 add(new JmPattern(type, "5個の練習 3個", "52512"));\r
531                 add(new JmPattern(type, "5個の練習 4フラッシュ", "[52][52]55022[22][22]"));\r
532                 add(new JmPattern(type, "5個の練習 ギャップ A", "55550"));\r
533                 add(new JmPattern(type, "5個の練習 ギャップ B", "552"));\r
534                 add(new JmPattern(type, "5個の練習 4個", "5551"));\r
535                 add(new JmPattern(type, "5フラッシュ", "[522][52][52]5522[22][22]"));\r
536                 add(new JmPattern(type, "3 -> 5カスケード", "[32][32][32][32][32][32][52][52][52]555555522"));\r
537 \r
538                 add(new JmPattern(type, "3ボックスの練習", "(2x,4)(0,2x)", 12, 50, new byte[][] {b,{10,0,2,0},{10,0,2,0},b}));\r
539                 add(new JmPattern(type, "3ミルズメスの練習", "330", 13, 50, millsmess));\r
540         }\r
541         \r
542         public void setPackage06() throws JmException {\r
543                 clearIndex();\r
544                 int type = 6;\r
545                 add(new JmPattern(type, "[新規作成]", "1"));\r
546         }\r
547         \r
548         public void setPackage00En() throws JmException {\r
549                 clearIndex();\r
550                 int type = 0;\r
551                 add(new JmPattern(type, "Cascade", "3"));\r
552                 add(new JmPattern(type, "フラッシュ", "333355500", 30, 50));\r
553                 add(new JmPattern(type, "テニス", "3", new byte[][] { { 8, 0, 4, 0 },\r
554                                 { 8, 0, 4, 0 }, { 14, 3, 14, 3 } }));\r
555                 add(new JmPattern(type, "ハーフシャワー", "3", new byte[][] { { 8, 0, 15, 8 },\r
556                                 { 15, 8, 8, 0 } }));\r
557                 add(new JmPattern(type, "リバースカスケード", "3", reverse));\r
558                 add(new JmPattern(type, "ウインドミル", "3", new byte[][] {\r
559                                 { 10, 0, -10, -2 }, { -10, 4, 10, 2 } }));\r
560                 add(new JmPattern(type, "リーチオーバー", "3", 15, 50, new byte[][] { n, n, n,\r
561                                 g, n, { 10, 0, 8, -2 }, { -13, 5, 0, 2 }, { 13, -3, 4, 0 } }));\r
562                 add(new JmPattern(type, "リーチアンダー", "3", 15, 50, new byte[][] { n, n, n,\r
563                                 g, { 13, 0, 4, -3 }, { 10, 4, 4, 4 }, { -16, -3, 0, 0 },\r
564                                 { 13, 3, 4, 0 } }));\r
565                 add(new JmPattern(type, "オーバーザヘッド", "3",\r
566                                 new byte[][] { { 12, 19, 3, 19 } }));\r
567                 add(new JmPattern(type, "チョップ", "(2,4x)(4x,2)", 12, 50, new byte[][] {\r
568                                 { 4, 9, -10, -3 }, { 10, 6, 7, 9 }, { 10, 6, 7, 9 },\r
569                                 { 4, 9, -10, -3 } }));\r
570                 add(new JmPattern(type, "リンゴ食べちゃえ", "33333423", new byte[][] {\r
571                                 { 0, 6, -3, 4 }, n, n, n, n, { 13, 0, 2, 0 }, { 12, 7, 0, 7 },\r
572                                 { 13, 0, -4, 0 } }));\r
573                 add(new JmPattern(type, "1アップ2アップ", "(0,4)(4,4)", 14, 50, new byte[][] {\r
574                                 a, b, b, b }));\r
575                 add(new JmPattern(type, "ヨーヨー", "(4,2)", 13, 50, new byte[][] {\r
576                                 { 5, 2, 5, 3 }, { -5, -1, -5, 0 }, { 5, 13, 5, 13 },\r
577                                 { 5, -1, 5, 0 } }));\r
578                 add(new JmPattern(type, "オイオイ", "(4,2)", 13, 50, new byte[][] {\r
579                                 { 5, -1, 5, 0 }, { -5, 3, -5, 4 }, { 5, 10, 5, 10 },\r
580                                 { 5, 3, 5, 4 } }));\r
581                 add(new JmPattern(type, "アーチ", "3", 13, 50, new byte[][] {\r
582                                 { 20, 10, 20, 10 }, b, { 15, 5, 15, 5 }, { 20, 10, 20, 10 }, b,\r
583                                 { 15, 5, 15, 5 } }));\r
584                 add(new JmPattern(type, "自由の女神", "3", 12, 50, new byte[][] {\r
585                                 { 3, 0, 12, 4 }, { 10, 20, 9, 19 } }));\r
586                 add(new JmPattern(type, "シャッフル", "(4x,2x)", 12, 50, new byte[][] {\r
587                                 { 0, -5, 12, 10 }, { 10, 0, 14, 0 } }));\r
588                 add(new JmPattern(type, "ルークスシャッフル", "(4,2x)(2x,4)", 15, 50,\r
589                                 new byte[][] { { 10, 0, 14, 10 }, { 10, -3, 6, 0 },\r
590                                                 { 10, -3, 6, 0 }, { 10, 0, 14, 10 } }));\r
591                 add(new JmPattern(type, "ロボット", "242334", 15, 50, new byte[][] {\r
592                                 { 5, 4, 10, -3 }, b, { 10, -3, 10, 13 }, a,\r
593                                 { 10, 13, -10, 13 }, d }));\r
594                 add(new JmPattern(type, "キャリー", "3", 10, 50, new byte[][] {\r
595                                 { 7, 12, -7, 12 }, { 7, 0, -7, 0 } }));\r
596                 add(new JmPattern(type, "シャワー", "51", 10, 50, shower));\r
597                 add(new JmPattern(type, "日本のお手玉", "51"));\r
598                 add(new JmPattern(type, "ボックス", "(2x,4)(4,2x)", 12, 50, new byte[][] {\r
599                                 b, { 10, 0, 2, 0 }, { 10, 0, 2, 0 }, b }));\r
600                 add(new JmPattern(type, "ウィーブ", "(2,4)(2,4x)(4,2)(4x,2)", 10, 50,\r
601                                 new byte[][] { { 10, 1, -7, 0 }, { 12, 0, 12, 9 }, e,\r
602                                                 { -5, 9, 0, 3 }, { 12, 0, 12, 9 }, { 10, 1, -7, 0 },\r
603                                                 { -5, 9, 0, 3 }, e }));\r
604                 add(new JmPattern(type, "フォロー", "423", 10, 50, new byte[][] {\r
605                                 { -10, 10, -10, 4 }, { 10, -3, 10, 10 }, { 0, 4, 0, 2 } }));\r
606                 add(new JmPattern(type, "ボストンメス A", "3", new byte[][] {\r
607                                 { 10, -2, 10, -2 }, { 10, 3, 10, 3 }, { 0, -2, 0, -2 },\r
608                                 { -10, 3, -10, 3 }, { -10, -2, -10, -2 }, { 0, 3, 0, 3 } }));\r
609                 add(new JmPattern(type, "ボストンメス B", "3", new byte[][] {\r
610                                 { 10, 3, 10, -2 }, { 10, 3, 10, 3 }, { 0, -2, 0, -2 },\r
611                                 { -10, 3, -10, 3 }, { -10, -2, -10, -2 }, { 0, 3, 0, 3 },\r
612                                 { 10, -2, 10, 3 }, { 10, -2, 10, -2 }, { 0, 3, 0, 3 },\r
613                                 { -10, -2, -10, -2 }, { -10, 3, -10, 3 }, { 0, -2, 0, -2 } }));\r
614                 add(new JmPattern(type, "ミルズメス", "3", 13, 50, millsmess));\r
615                 add(new JmPattern(type, "リバースミルズメス", "3", 13, 50, new byte[][] {\r
616                                 { -12, 0, -1, 0 }, { 12, 0, 0, 0 }, { -12, 0, 1, 0 } }));\r
617                 add(new JmPattern(type, "バークスバラージ", "423", 10, 50, new byte[][] {\r
618                                 { 12, 12, -6, -2 }, { -6, 5, -6, 12 }, { 0, 5, 0, 5 } }));\r
619                 add(new JmPattern(\r
620                                 type,\r
621                                 "ルーベンシュタインズリベンジ",\r
622                                 "35223",\r
623                                 15,\r
624                                 50,\r
625                                 new byte[][] { { 3, 1, 13, 8 }, { 7, -2, -10, -3 },\r
626                                                 { 3, 6, -12, 2 }, { -1, 0, 12, 2 }, { -2, 2, -10, -2 } }));\r
627                 add(new JmPattern(type, "片手3個", "60"));\r
628                 add(new JmPattern(type, "片手カスケード", "60", new byte[][] {\r
629                                 { -6, 0, 2, 0 }, g, { 18, 0, 10, 0 }, g }));\r
630                 add(new JmPattern(type, "片手3個のマルチ", "[46]06020"));\r
631                 add(new JmPattern(type, "8040"));\r
632         }\r
633         \r
634         public void setPackage01En() throws JmException {\r
635                 clearIndex();\r
636                 int type = 1;\r
637 \r
638                 add(new JmPattern(type, "531"));\r
639                 add(new JmPattern(type, "450"));\r
640                 add(new JmPattern(type, "5241"));\r
641                 add(new JmPattern(type, "51414"));\r
642                 add(new JmPattern(type, "72312"));\r
643                 add(new JmPattern(type, "wide cascade", "3", 12, 50, new byte[][] { { 21,\r
644                                 9, 18, 4 } }));\r
645                 add(new JmPattern(type, "ワイドリバースカスケード", "3", new byte[][] { { -8, 0,\r
646                                 12, 0 } }));\r
647                 add(new JmPattern(type, "リーチオーバー連続", "3", 15, 50, new byte[][] {\r
648                                 { 10, 0, 3, -2 }, { -13, 5, 13, 0 }, { 13, -3, 4, 0 } }));\r
649                 add(new JmPattern(type, "リーチアンダー連続", "3", 15, 50, new byte[][] {\r
650                                 { 10, 4, 3, 4 }, { -13, -5, 13, 0 }, { 13, 3, 4, 0 } }));\r
651                 add(new JmPattern(type, "クロス アーム", "3",\r
652                                 new byte[][] { { -4, 0, -12, 0 } }));\r
653                 add(new JmPattern(type, "リンゴ食べ放題", "(2,4x)(4x,2)", 12, 50,\r
654                                 new byte[][] { { 0, 7, -3, -3 }, { 12, 10, 0, 8 },\r
655                                                 { 12, 10, 0, 8 }, { 0, 7, -3, -3 } }));\r
656 \r
657                 add(new JmPattern(type, "1アップ2アップ B", "(4,4)(0,4x)(4,4)(4x,0)", 14, 50,\r
658                                 new byte[][] { o, o, { 14, 0, 0, 0 }, o, o, o, o,\r
659                                                 { 14, 0, 0, 0 } }));\r
660                 add(new JmPattern(type, "1アップ2アップ C",\r
661                                 "(4,4)(0,4x)(4,4)(4,0)(4,4)(4x,0)(4,4)(0,4)", 14, 50,\r
662                                 new byte[][] { o, o, { 14, 0, 14, 0 }, o, o, o, o, a, o, o, o,\r
663                                                 { 14, 0, 14, 0 }, o, o, a, o }));\r
664                 add(new JmPattern(type, "1アップ2アップ D", "(4,4)(0,4x)(4,4)(4x,0)", 14, 50,\r
665                                 new byte[][] { { 12, 0, -6, 0 }, { -6, 0, 12, 0 }, a, d,\r
666                                                 { -6, 0, 12, 0 }, { 12, 0, -6, 0 }, d, a }));\r
667                 add(new JmPattern(type, "1アップ2アップ E", "(4,4)(0,4)", 14, 50,\r
668                                 new byte[][] { f, f, { 13, 0, -13, 0 }, f }));\r
669                 add(new JmPattern(type, "1アップ2アップ F", "(6,6)(0,2x)(4x,0)", 10, 50,\r
670                                 new byte[][] { f, f, { 13, 7, 4, 0 }, f, f, { 4, 0, 13, 7 } }));\r
671 \r
672                 byte[] fake1 = { 10, -1, 10, 0 };\r
673                 byte[] fake2 = { 0, -1, 0, 0 };\r
674                 byte[] fake3 = { 10, 10, 10, 10 };\r
675                 add(new JmPattern(type, "フェイク A", "(2,4)", 14, 50, new byte[][] {\r
676                                 fake1, fake1, fake2, fake3 }));\r
677                 add(new JmPattern(type, "フェイク B", "(2,4)", 14, 50, new byte[][] {\r
678                                 fake2, fake1, fake1, fake3 }));\r
679                 add(new JmPattern(type, "フェイク C", "(4,2)(4x,2)(2,4)(2,4x)", 13, 50,\r
680                                 new byte[][] { fake1, fake1, fake3, fake2, fake1, fake1, fake2,\r
681                                                 fake3 }));\r
682                 add(new JmPattern(type, "ヨーヨーを一周", "(4,2)", 13, 50, new byte[][] {\r
683                                 { 0, 2, 0, 3 }, fake2, { 0, 13, 0, 13 }, { 10, -1, -10, -1 } }));\r
684                 add(new JmPattern(type, "ヨーヨー(トルネード)", "(2,4)", new byte[][] { e,\r
685                                 { 15, 15, -15, 14 }, { -5, 0, -5, 0 }, { 15, 14, -15, 15 } }));\r
686                 add(new JmPattern(type, "ヨーヨー(横断)", "(2,4)", new byte[][] { e,\r
687                                 { 15, 12, 0, 12 }, { -5, 0, -5, 0 }, { -15, 12, 0, 12 } }));\r
688                 add(new JmPattern(type, "(4x,2x)(2,4)"));\r
689                 add(new JmPattern(type, "(4x,6)(0,2x)"));\r
690                 add(new JmPattern(type, "テニス B", "(2,4)(2,4x)(4,2)(4x,2)", 14, 50,\r
691                                 new byte[][] { e, e, { 15, 3, 15, 3 }, e, e, e, e,\r
692                                                 { 15, 3, 15, 3 } }));\r
693                 add(new JmPattern(type, "自由の女神 B", "3", 14, 50, new byte[][] {\r
694                                 { 3, 4, 12, 0 }, { 10, 17, 9, 19 } }));\r
695                 add(new JmPattern(type, "441", 13, 50));\r
696                 add(new JmPattern(type, "441 外回り", "441", 13, 50, new byte[][] { r, r,\r
697                                 { 4, 0, 0, 0 } }));\r
698                 add(new JmPattern(type, "441 シャッフル", "441", 10, 50, new byte[][] {\r
699                                 { 5, -2, 5, -2 }, d, { 15, 4, 9, 10 } }));\r
700                 add(new JmPattern(type, "ボスサイドスラム", "(4x,2x)(2,4x)(2x,4x)(4x,2)", 10,\r
701                                 50, new byte[][] { { 6, 0, 12, 10 }, b, { 10, 0, 4, 0 }, d, b,\r
702                                                 { 6, 0, 12, 10 }, d, { 10, 0, 4, 0 } }));\r
703                 add(new JmPattern(type, "イクスチェンジ", "2334", 13, 50, new byte[][] {\r
704                                 { 0, 11, 10, 11 }, { 10, 0, 0, 0 }, { 0, 12, -10, 12 },\r
705                                 { 10, 0, 0, 0 } }));\r
706 \r
707                 byte[] eb = { 3, 0, 10, 0 };\r
708                 add(new JmPattern(type, "ハーフシャワー B", "5223", shower));\r
709                 add(new JmPattern(type, "腕の下シャワー", "(2x,4x)", new byte[][] {\r
710                                 { 5, 0, -10, 0 }, { 3, 4, -3, 4 } }));\r
711                 add(new JmPattern(type, "腕の下シャワー(交互)", "(2x,4x)", new byte[][] { eb,\r
712                                 { 5, 4, 0, 4 }, { 3, 0, -10, 0 }, { 5, 4, 0, 4 } }));\r
713                 add(new JmPattern(type, "シンクロシャワー", "(2x,4x)", shower));\r
714                 add(new JmPattern(type, "ハイローシャワー A", "7131", shower));\r
715                 add(new JmPattern(type, "ハイローシャワー B", "(2x,6x)(2x,2x)", 15, 50,\r
716                                 new byte[][] { { 6, 0, 12, 3 }, { 6, 3, 6, 0 }, { 6, 0, 6, 3 },\r
717                                                 { 12, 3, 6, 0 } }));\r
718                 add(new JmPattern(type, "ハイローシャワー C", "315171", shower));\r
719                 add(new JmPattern(type, "ハーフメス", "3", 13, 50, new byte[][] { c,\r
720                                 { 0, 0, -12, -3 }, { 0, 2, -12, 2 }, { 0, -3, -6, 0 } }));\r
721                 add(new JmPattern(type, "ミルズメス 423", "423", millsmess));\r
722                 add(new JmPattern(type, "ミルズメス 414", "414", millsmess));\r
723                 add(new JmPattern(type, "ミルズメス 315", "315", millsmess));\r
724                 add(new JmPattern(type, "ミルズメス 44133", "44133", 13, 50, new byte[][] {\r
725                                 { -2, 0, -12, 5 }, { 2, -2, 12, 0 }, { 0, 2, -3, 0 },\r
726                                 { 10, 0, 10, 2 }, { 7, -2, -10, -3 } }));\r
727                 add(new JmPattern(type, "ミルズメス ボックス", "612", millsmess));\r
728                 add(new JmPattern(type, "ボックスもどき A", "126", 15, 50));\r
729                 add(new JmPattern(type, "ボックスもどき B", "630", 15, 50));\r
730                 add(new JmPattern(type, "ダブルボックス", "(4x,2x)(4,2x)(2x,4x)(2x,4)", 11,\r
731                                 50, new byte[][] { { 14, 0, 7, 0 }, a, { 14, 0, 0, 0 },\r
732                                                 { 0, 0, 14, 0 }, a, { 14, 0, 7, 0 }, { 0, 0, 14, 0 },\r
733                                                 { 14, 0, 0, 0 } }));\r
734                 add(new JmPattern(type, "拡張ボックス",\r
735                                 "(2x,8)(2x,4)(0,2x)(8,2x)(4,2x)(2x,0)", new byte[][] { eb, h,\r
736                                                 eb, h, h, eb, h, eb, h, eb, eb, h }));\r
737         }\r
738         \r
739         public void setPackage06En() throws JmException {\r
740                 clearIndex();\r
741                 int type = 6;\r
742                 add(new JmPattern(type, "[Create]", "1"));\r
743         }\r
744 }\r