Project

General

Profile

« Previous | Next » 

Revision 804293f0

Added by Leszek Koltunski almost 3 years ago

Re-organize tutorial list so that we can pull this one from JSON files.

View differences:

src/main/java/org/distorted/config/ConfigActivity.java
216 216

  
217 217
        int meshState = object.getMeshState();
218 218

  
219
        InputStream jsonStream = ObjectJson.getStream(jsonID,this);
220
        InputStream meshStream = ObjectMesh.getStream(meshID,this);
219
        InputStream jsonStream = ObjectJson.getObjectStream(jsonID,this);
220
        InputStream meshStream = ObjectMesh.getMeshStream(meshID,this);
221 221

  
222 222
        control.changeIfDifferent(object.getOrdinal(),meshState,jsonStream,meshStream);
223 223
        }
......
250 250

  
251 251
        int meshState = object.getMeshState();
252 252

  
253
        InputStream jsonStream = ObjectJson.getStream(jsonID,this);
254
        InputStream meshStream = ObjectMesh.getStream(meshID,this);
253
        InputStream jsonStream = ObjectJson.getObjectStream(jsonID,this);
254
        InputStream meshStream = ObjectMesh.getMeshStream(meshID,this);
255 255

  
256 256
        control.changeObject(object.getOrdinal(),meshState,jsonStream,meshStream);
257 257
        }
src/main/java/org/distorted/config/ConfigScreenPane.java
55 55
  private static final float TEXT_RATIO    = 0.042f;
56 56
  private static final float RADIO_RATIO   = 0.900f;
57 57

  
58
  private JsonReader mReader;
59 58
  private int mObjectOrdinal;
60 59
  private boolean mProgramatic;
61 60

  
......
72 71

  
73 72
  void updatePane(ConfigActivity act, int objectOrdinal)
74 73
    {
75
    if( mReader==null ) mReader = new JsonReader();
74
    JsonReader reader = JsonReader.getInstance();
76 75

  
77 76
    mObjectOrdinal = objectOrdinal;
78 77

  
79 78
    RubikObject object = RubikObjectList.getObject(objectOrdinal);
80 79
    int jsonID = object.getJsonID();
81
    InputStream stream = ObjectJson.getStream(jsonID,act);
82
    mReader.parseJsonFileMetadata(stream);
80
    InputStream stream = ObjectJson.getObjectStream(jsonID,act);
81
    reader.parseJsonFileMetadata(stream);
83 82

  
84
    String name = mReader.getObjectName();
85
    String author = mReader.getInventor();
86
    int year = mReader.getYearOfInvention();
83
    String name = reader.getObjectName();
84
    String author = reader.getInventor();
85
    int year = reader.getYearOfInvention();
87 86
    String both = year>0 ? author+" "+year : author;
88 87

  
89 88
    LinearLayout layout = act.findViewById(R.id.configLayout);
......
92 91
    view = layout.findViewById(R.id.configDetailsAuthor2);
93 92
    view.setText(both);
94 93

  
95
    int difficulty = mReader.getComplexity();
94
    int difficulty = reader.getComplexity();
96 95

  
97 96
    if( difficulty<0          ) difficulty=0;
98 97
    if( difficulty>NUM_IMAGES ) difficulty=NUM_IMAGES;
src/main/java/org/distorted/dialogs/RubikDialogTutorial.java
44 44

  
45 45
import org.distorted.main.R;
46 46
import org.distorted.main.RubikActivity;
47
import org.distorted.objects.RubikObject;
47 48
import org.distorted.objects.RubikObjectList;
48
import org.distorted.tutorials.TutorialList;
49 49

  
50 50
///////////////////////////////////////////////////////////////////////////////////////////////////
51 51

  
......
96 96
    viewPager.setCurrentItem(getTutorialOrdinal());
97 97

  
98 98
    ViewGroup.LayoutParams paramsView = new ViewGroup.LayoutParams( tabWidth,tabHeight );
99
    int numObjects = RubikObjectList.getNumTutorialObjects();
99 100

  
100
    for(int i=0; i<TutorialList.NUM_OBJECTS; i++)
101
    for(int i=0; i<numObjects; i++)
101 102
      {
102
      TutorialList list = TutorialList.getObject(i);
103
      int iconID        = list.getIconID();
103
      RubikObject object = RubikObjectList.getObject(i);
104
      int iconID = object.getIconID();
104 105
      ImageView imageView = new ImageView(act);
105 106
      imageView.setLayoutParams(paramsView);
106 107
      imageView.setImageResource(iconID);
......
135 136
  private int getTutorialOrdinal()
136 137
    {
137 138
    int obj = RubikObjectList.getCurrObject();
138
    int ret = TutorialList.getOrdinal(obj);
139

  
140
    if( ret<0 )
141
      {
142
      ret = TutorialList.getOrdinal(RubikObjectList.DEF_OBJECT);
143
      }
144

  
145
    return ret;
139
    return RubikObjectList.getTutorialOrdinal(obj);
146 140
    }
147 141

  
148 142
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/dialogs/RubikDialogTutorialPagerAdapter.java
28 28
import androidx.viewpager.widget.PagerAdapter;
29 29
import androidx.viewpager.widget.ViewPager;
30 30

  
31
import org.distorted.tutorials.TutorialList;
31
import org.distorted.objects.RubikObjectList;
32 32

  
33 33
///////////////////////////////////////////////////////////////////////////////////////////////////
34 34

  
......
43 43
  RubikDialogTutorialPagerAdapter(FragmentActivity act, ViewPager viewPager)
44 44
    {
45 45
    mAct     = act;
46
    mNumTabs = TutorialList.NUM_OBJECTS;
46
    mNumTabs = RubikObjectList.getNumTutorialObjects();
47 47
    mViews   = new RubikDialogTutorialView[mNumTabs];
48 48

  
49 49
    viewPager.setAdapter(this);
src/main/java/org/distorted/dialogs/RubikDialogTutorialView.java
38 38
import org.distorted.main.BuildConfig;
39 39
import org.distorted.main.R;
40 40
import org.distorted.main.RubikActivity;
41
import org.distorted.objectlib.json.JsonReader;
41 42
import org.distorted.objects.RubikObject;
42 43
import org.distorted.objects.RubikObjectList;
43
import org.distorted.tutorials.TutorialList;
44

  
45
import java.io.InputStream;
44 46

  
45 47
///////////////////////////////////////////////////////////////////////////////////////////////////
46 48

  
......
68 70
    {
69 71
    super(act);
70 72

  
71
    clickPossible(true);
72
    int widthT = (int)(width* RubikActivity.TUTORIAL_ITEM_TEXT);
73
    InputStream jsonStream = RubikObjectList.getTutorialStream(position,act);
74
    String[][] tutorials=null;
73 75

  
74
    RubikActivity ract = (RubikActivity)getContext();
75
    Resources res = act.getResources();
76
    String packageName = act.getPackageName();
76
    if( jsonStream!=null )
77
      {
78
      JsonReader reader = JsonReader.getInstance();
79
      reader.parseJsonTutorial(jsonStream);
80
      tutorials = reader.getTutorials();
81
      }
77 82

  
78
    TutorialList list  = TutorialList.getObject(position);
79
    int object = list.getObject();
83
    if( tutorials!=null )
84
      {
85
      clickPossible(true);
86
      int widthT = (int)(width* RubikActivity.TUTORIAL_ITEM_TEXT);
80 87

  
81
    View tab = inflate( act, R.layout.dialog_tutorial_tab, null);
82
    LinearLayout layout = tab.findViewById(R.id.tabLayout);
88
      RubikActivity ract = (RubikActivity)getContext();
89
      Resources res = act.getResources();
90
      String packageName = act.getPackageName();
83 91

  
84
    int numTutorials = list.getNumTutorials();
92
      View tab = inflate( act, R.layout.dialog_tutorial_tab, null);
93
      LinearLayout layout = tab.findViewById(R.id.tabLayout);
85 94

  
86
    int colorB = getResources().getColor(R.color.light_grey);
87
    int colorT = getResources().getColor(R.color.white);
95
      int colorB = getResources().getColor(R.color.light_grey);
96
      int colorT = getResources().getColor(R.color.white);
88 97

  
89
    for(int i=0; i<numTutorials; i++)
90
      {
91
      String coun = list.getTutorialLanguage(i);
92
      String desc = list.getTutorialDescription(i);
93
      String url  = list.getTutorialURL(i);
94
      String auth = list.getTutorialAuthor(i);
98
      int objectOrdinal = RubikObjectList.getObjectOrdinal(position);
95 99

  
96
      int countryID = res.getIdentifier( coun, "drawable", packageName);
100
      for (String[] tutorial : tutorials)
101
        {
102
        String coun = tutorial[0];
103
        String url  = tutorial[1];
104
        String desc = tutorial[2];
105
        String auth = tutorial[3];
97 106

  
98
      View row = createRow(ract,countryID,desc,url,auth,widthT,object,colorB,colorT);
99
      layout.addView(row);
100
      }
107
        int countryID = res.getIdentifier(coun, "drawable", packageName);
101 108

  
102
    addView(tab);
109
        View row = createRow(ract, countryID, desc, url, auth, widthT, objectOrdinal, colorB, colorT);
110
        layout.addView(row);
111
        }
112

  
113
      addView(tab);
114
      }
103 115
    }
104 116

  
105 117
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/main/RubikActivity.java
492 492
      RubikObject object = RubikObjectList.getObject(ordinal);
493 493
      int meshState = object!=null ? object.getMeshState() : MESH_NICE;
494 494

  
495
      InputStream jsonStream = ObjectJson.getStream(this,ordinal);
496
      InputStream meshStream = ObjectMesh.getStream(this,ordinal);
495
      InputStream jsonStream = ObjectJson.getObjectStream(this,ordinal);
496
      InputStream meshStream = ObjectMesh.getMeshStream(this,ordinal);
497 497
      control.changeIfDifferent(ordinal,meshState,jsonStream,meshStream);
498 498
      }
499 499

  
src/main/java/org/distorted/objects/RubikObject.java
33 33
  private final String mName;
34 34
  private final int mNumScramble;
35 35
  private final int mOrdinal;
36
  private final int mJsonID, mMeshID;
36
  private final int mJsonID, mMeshID, mTutorialsID;
37 37
  private final int mIconID;
38 38
  private final String[][] mPatterns;
39 39

  
40 40
  private int mMeshState;
41
  private int mTutorialOrdinal;
41 42

  
42 43
///////////////////////////////////////////////////////////////////////////////////////////////////
43 44

  
......
47 48
    mName        = type.name();
48 49
    mNumScramble = type.getNumScramble();
49 50
    mOrdinal     = type.ordinal();
50
    mJsonID      = ObjectJson.getJsonID(mOrdinal);
51
    mJsonID      = ObjectJson.getObjectJsonID(mOrdinal);
51 52
    mMeshID      = ObjectMesh.getMeshID(mOrdinal);
53
    mTutorialsID = ObjectJson.getTutorialJsonID(mOrdinal);
52 54

  
53 55
    int patternOrdinal  = RubikPatternList.getOrdinal(mOrdinal);
54 56
    mPatterns = RubikPatternList.getPatterns(patternOrdinal);
55 57

  
56 58
    mMeshState = MESH_NICE;
59
    mTutorialOrdinal = -1;
60
    }
61

  
62
///////////////////////////////////////////////////////////////////////////////////////////////////
63

  
64
  public void setTutorialOrdinal(int ordinal)
65
    {
66
    mTutorialOrdinal = ordinal;
67
    }
68

  
69
///////////////////////////////////////////////////////////////////////////////////////////////////
70

  
71
  public int getTutorialOrdinal()
72
    {
73
    return mTutorialOrdinal;
57 74
    }
58 75

  
59 76
///////////////////////////////////////////////////////////////////////////////////////////////////
......
80 97

  
81 98
///////////////////////////////////////////////////////////////////////////////////////////////////
82 99

  
83
  public int getIconID()
100
  public int getNumScramble()
84 101
    {
85
    return mIconID;
102
    return mNumScramble;
86 103
    }
87 104

  
88 105
///////////////////////////////////////////////////////////////////////////////////////////////////
89 106

  
90
  public int getNumScramble()
107
  public int getOrdinal()
91 108
    {
92
    return mNumScramble;
109
    return mOrdinal;
93 110
    }
94 111

  
95 112
///////////////////////////////////////////////////////////////////////////////////////////////////
96 113

  
97
  public int getOrdinal()
114
  public int getIconID()
98 115
    {
99
    return mOrdinal;
116
    return mIconID;
100 117
    }
101 118

  
102 119
///////////////////////////////////////////////////////////////////////////////////////////////////
......
113 130
    return mMeshID;
114 131
    }
115 132

  
133
///////////////////////////////////////////////////////////////////////////////////////////////////
134

  
135
  public int getTutorialJsonID()
136
    {
137
    return mTutorialsID;
138
    }
139

  
116 140
///////////////////////////////////////////////////////////////////////////////////////////////////
117 141

  
118 142
  public String[][] getPatterns()
src/main/java/org/distorted/objects/RubikObjectList.java
19 19

  
20 20
package org.distorted.objects;
21 21

  
22
import java.io.InputStream;
23
import java.util.ArrayList;
24

  
25
import android.app.Activity;
22 26
import android.content.SharedPreferences;
23 27

  
28
import org.distorted.jsons.ObjectJson;
24 29
import org.distorted.main.RubikActivity;
25 30
import org.distorted.objectlib.main.ObjectConstants;
26 31
import org.distorted.objectlib.main.ObjectType;
27 32
import org.distorted.screens.RubikScreenPlay;
28 33
import org.distorted.screens.ScreenList;
29 34

  
30
import java.util.ArrayList;
31

  
32 35
import static org.distorted.objectlib.main.TwistyObject.MESH_NICE;
33 36
import static org.distorted.objectlib.main.ObjectType.NUM_OBJECTS;
34 37

  
......
42 45

  
43 46
  private static RubikObjectList mType;
44 47
  private static int mNumObjects;
48
  private static int mNumTutorials;
45 49
  private static ArrayList<RubikObject> mObjects;
46 50
  private static int mObject = DEF_OBJECT;
47 51

  
......
62 66

  
63 67
  private RubikObjectList()
64 68
    {
65
    mNumObjects = 0;
69
    mNumObjects   = 0;
70
    mNumTutorials = 0;
71

  
66 72
    mObjects = new ArrayList<>();
67 73

  
68 74
    createBuiltinObjects();
......
78 84
      RubikObject obj = new RubikObject(type);
79 85
      mObjects.add(obj);
80 86
      mNumObjects++;
87

  
88
      if( obj.getTutorialJsonID()!=0 )
89
        {
90
        obj.setTutorialOrdinal(mNumTutorials);
91
        mNumTutorials++;
92
        }
81 93
      }
82 94
    }
83 95

  
......
229 241

  
230 242
    return -1;
231 243
    }
244

  
245
///////////////////////////////////////////////////////////////////////////////////////////////////
246

  
247
  public static int getNumTutorialObjects()
248
    {
249
    return mNumTutorials;
250
    }
251

  
252
///////////////////////////////////////////////////////////////////////////////////////////////////
253

  
254
  public static InputStream getTutorialStream(int tutorialOrdinal, Activity act)
255
    {
256
    int objectOrdinal = getObjectOrdinal(tutorialOrdinal);
257
    RubikObject object= getObject(objectOrdinal);
258

  
259
    if( object!=null )
260
      {
261
      int jsonID = object.getTutorialJsonID();
262
      return ObjectJson.getTutorialStream(jsonID,act);
263
      }
264

  
265
    return null;
266
    }
267

  
268
///////////////////////////////////////////////////////////////////////////////////////////////////
269

  
270
  public static int getObjectOrdinal(int tutorialOrdinal)
271
    {
272
    for(int i=tutorialOrdinal; i<mNumObjects; i++)
273
      {
274
      RubikObject object = getObject(i);
275
      int tutOrd = object!=null ? object.getTutorialOrdinal() : -1;
276
      if( tutOrd==tutorialOrdinal ) return i;
277
      }
278

  
279
    return -1;
280
    }
281

  
282
///////////////////////////////////////////////////////////////////////////////////////////////////
283

  
284
  public static int getTutorialOrdinal(int objectOrdinal)
285
    {
286
    RubikObject object = getObject(objectOrdinal);
287
    return object!=null ? object.getTutorialOrdinal() : -1;
288
    }
232 289
}
src/main/java/org/distorted/tutorials/TutorialActivity.java
233 233
      RubikObject object = RubikObjectList.getObject(ordinal);
234 234
      int meshState = object!=null ? object.getMeshState() : MESH_NICE;
235 235

  
236
      InputStream jsonStream = ObjectJson.getStream(this,ordinal);
237
      InputStream meshStream = ObjectMesh.getStream(this,ordinal);
236
      InputStream jsonStream = ObjectJson.getObjectStream(this,ordinal);
237
      InputStream meshStream = ObjectMesh.getMeshStream(this,ordinal);
238 238
      control.changeIfDifferent(ordinal,meshState,jsonStream,meshStream);
239 239
      }
240 240

  
src/main/java/org/distorted/tutorials/TutorialList.java
1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2020 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7
// it under the terms of the GNU General Public License as published by                          //
8
// the Free Software Foundation, either version 2 of the License, or                             //
9
// (at your option) any later version.                                                           //
10
//                                                                                               //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14
// GNU General Public License for more details.                                                  //
15
//                                                                                               //
16
// You should have received a copy of the GNU General Public License                             //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18
///////////////////////////////////////////////////////////////////////////////////////////////////
19

  
20
package org.distorted.tutorials;
21

  
22
import org.distorted.objectlib.main.ObjectConstants;
23
import org.distorted.objects.RubikObject;
24
import org.distorted.objects.RubikObjectList;
25

  
26
///////////////////////////////////////////////////////////////////////////////////////////////////
27

  
28
public enum TutorialList
29
{
30
  CUBE2 ( ObjectConstants.CUBE_2,
31
          new String[][] {
32
                          {"gb","rJlh5p2wAKA","How to Solve a 2x2 Rubik's Cube","Z3"},
33
                          {"es","f85wqJTIDlw","Resolver cubo de Rubik 2X2","Cuby"},
34
                          {"ru","azC6P3VYFkc","Как собрать кубик 2Х2","Е Бондаренко"},
35
                          {"fr","V1XS993AUuw","Résoudre le cube 2x2","Rachma Nikov"},
36
                          {"de","d8tKa8SRkXw","2x2 Zauberwürfel lösen","Pezcraft"},
37
                          {"pl","haNWdAYWGsY","Jak ułożyć kostkę Rubika 2x2","DżoDżo"},
38
                          {"br","42W6SM17EuM","Como resolver cubo 2x2","Pedro Filho"},
39
                          {"kr","wTMsdWKq6No","2x2 큐브 공식을 이해하는 해법","듀나메스 큐브 해법연구소"},
40
                     //   {"tw","CfOCXxhCb8U","2x2魔術方塊復原","1hrBLD"},
41
                         }
42
        ),
43

  
44
  CUBE3 ( ObjectConstants.CUBE_3,
45
          new String[][] {
46
                          {"gb","-8ohoCKN0Zw","How to Solve a Rubik's Cube","Z3"},
47
                          {"es","GyY0OxDk5lI","Resolver cubo de Rubik 3x3","Cuby"},
48
                          {"ru","5S2eq81FRzI","Как собрать кубик рубика","Е Бондаренко"},
49
                          {"fr","T-ASx2wbHVY","Comment résoudre un Rubik's Cube","Le Cube"},
50
                          {"de","epdcq0L3bDE","3x3 Zauberwürfel lösen","Pezcraft"},
51
                          {"pl","cBU9Y729nQM","Jak ułożyć kostkę Rubika 3x3","DżoDżo"},
52
                          {"br","Vdxl7TvX69c","Como resolver cubo 3x3","Pedro Filho"},
53
                          {"kr","PMLG4__npcY","3x3 큐브 기초해법 (파트1)","듀나메스 큐브 해법연구소"},
54
                          {"kr","vbvyjs4Vmoc","3x3 큐브 기초해법 (파트2)","듀나메스 큐브 해법연구소"},
55
                          {"kr","V5eeKu9abCc","3x3 큐브 기초해법 (파트3)","듀나메스 큐브 해법연구소"},
56
                     //   {"tw","76NmRQx5CLA","魔術方塊教學","1hrBLD"},
57
                         }
58
        ),
59

  
60
  CUBE4 ( ObjectConstants.CUBE_4,
61
          new String[][] {
62
                          {"gb","RR77Md71Ymc","How to Solve the 4x4 Rubik's Cube","Z3"},
63
                          {"es","d_4xk1r9hxU","Resolver cubo de Rubik 4x4","Cuby"},
64
                          {"ru","v5ytiOyTFSA","Как собрать кубик 4х4","Алексей Ярыгин"},
65
                          {"fr","C83gYXn-zpI","Comment résoudre un Rubik's Cube 4x4","Le Cube"},
66
                          {"de","Z7EmIp-TLN0","4x4 Zauberwürfel lösen","JamesKnopf"},
67
                          {"pl","LiUxNsowXiI","Jak ułożyć kostkę 4x4","DżoDżo"},
68
                          {"br","DQydZR0EHdo","Como resolver cubo 4x4","Pedro Filho"},
69
                          {"kr","5g4QORteCsk","원리로 이해하는 444 큐브 기초 해법","듀나메스 큐브 해법연구소"},
70
                      //    {"tw","HuyaNIUaSqo","4x4魔術方塊復原#1","1hrBLD"},
71
                      //    {"tw","gHho4gJQMXw","4x4魔術方塊復原#2","1hrBLD"},
72
                      //    {"tw","7pbNgXMQxCE","4x4魔術方塊復原#3","1hrBLD"},
73
                      //    {"tw","PZvc5XJ2bLY","4x4魔術方塊復原#4","1hrBLD"},
74
                      //    {"tw","97vDE29lu2o","4x4魔術方塊復原#5","1hrBLD"},
75
                         }
76
        ),
77

  
78
  CUBE5 ( ObjectConstants.CUBE_5,
79
          new String[][] {
80
                          {"gb","zMkNkXHzQts","How to Solve the 5x5 Rubik's Cube","Z3"},
81
                          {"es","6uaq-xfFs98","Resolver cubo de Rubik 5x5","Cuby"},
82
                          {"ru","UtKsyLk45uA","Как собрать кубик 5x5","Алексей Ярыгин"},
83
                          {"fr","sq14CsrSkbo","Comment résoudre un Rubik's Cube 5x5","Le Cube"},
84
                          {"de","luLwvHDPnrA","5x5 Zauberwürfel lösen","Pezcraft"},
85
                          {"pl","ERsPyWOF7mg","Jak ułożyć kostkę 5x5x5","DżoDżo"},
86
                          {"br","WQospjKXfvQ","Como resolver cubo 5x5","Pedro Filho"},
87
                          {"kr","D46qDaBFWNM","[555큐브]믿고보는영상!","Playon U온돌차"},
88
                         }
89
        ),
90

  
91
  CUBE6 ( ObjectConstants.CUBE_6,
92
          new String[][] {
93
                          {"gb","SkZ9UadAOvQ","How to Solve the 6x6 Rubik's Cube","JPerm"},
94
                          {"es","9X-mW6wbnQQ","Resolver cubo de Rubik 6x6","Cuby"},
95
                          {"ru","yqEIek_l-44","Как собрать кубик Рубика 6х6","Алексей Ярыгин"},
96
                          {"fr","xMreDIM3uoU","Comment faire le 6x6x6","Xavier Hornet"},
97
                          {"de","TZFtwL0PZ-s","6x6 Zauberwürfel lösen","Pezcraft"},
98
                          {"pl","ZB4ROiJUb1o","Jak ułożyć kostkę 6x6x6","DżoDżo"},
99
                          {"kr","ZUyDa2_dVFU","6x6 큐브 맞추는 방법","iamzoone"},
100
                         }
101
        ),
102

  
103
  CUBE7 ( ObjectConstants.CUBE_7,
104
          new String[][] {
105
                          {"gb","xpI7jKs4bWQ","7x7 Centers (1/2)","CubeSkills"},
106
                          {"gb","xpI7jKs4bWQ","7x7 Edges & 3x3 Stage (2/2)","CubeSkills"},
107
                          {"es","q43XpYapOR8","Resolver cubo de Rubik 7x7","Cuby"},
108
                          {"ru","w41zK-1qruY","Как собрать кубик Рубика 7х7","Алексей Ярыгин"},
109
                          {"fr","_a31lM3i7r0","Comment résoudre le Rubik's Cube 7x7","Justin Fontugne"},
110
                          {"de","XAbEJS5H5Lw","7x7 Zauberwürfel lösen","Pezcraft"},
111
                          {"pl","uN5fH3USUfc","Jak ułożyć kostkę 7x7","Bartłomiej Krokos"},
112
                          {"kr","3wynYMk4eZk","7x7 큐브 맞추는 방법","iamzoone"},
113
                         }
114
        ),
115

  
116
  BAN1( ObjectConstants.BAN1_3,
117
          new String[][] {
118
                          {"gb","F_iJk_IvpVo","Bandaged Cube","CanChrisSolve"},
119
                          {"es","_lTgw5aEFOg","Tutorial 3x3 Fuse Cube","QBAndo"},
120
                          {"ru","raYDwFEXIq4","Как собрать Fused Cube","Алексей Ярыгин"},
121
                          {"fr","9Cfi4rhKzIw","Tutoriel: résolution du Fused Cube","Skieur Cubb"},
122
                          {"pl","0PcUoGxQa6s","Bandaged 3x3 v.A cube","MrUK"},
123
                          {"kr","1RePOLrzJNE","밴디지 타입 A 해법","듀나메스 큐브 해법연구소"},
124
                         }
125
       ),
126

  
127
  BAN2( ObjectConstants.BAN2_3,
128
          new String[][] {
129
                          {"ru","lS_EK0PMWI8","Как собрать 2-bar Cube","Алексей Ярыгин"},
130
                          {"pl","tX8ubTLh6p8","Bandaged 3x3 (Two bar)","MrUK"},
131
                          {"kr","NE6XuC1r8xw","밴디지 큐브","Denzel Washington"},
132
                         }
133
       ),
134

  
135
  BAN3( ObjectConstants.BAN3_3,
136
          new String[][] {
137
                          {"gb","7UiCVGygUT4","Bandage Cube C Tutorial","PolyakB"},
138
                          {"ru","gXenRA92Wdc","Как собрать Bandaged 3x3 Type C","YG Cuber"},
139
                          {"pl","sKfdFLm79Zs","Bandaged 3x3 v.C cube","MrUK"},
140
                          {"kr","BcCFgeFy6Ec","밴디지 타입 C 해법","듀나메스 큐브 해법연구소"},
141
                         }
142
       ),
143

  
144
  BAN4( ObjectConstants.BAN4_3,
145
          new String[][] {
146
                          {"gb","AnpdIKICBpM","Trying to Solve a Bandaged Cube","RedKB"},
147
                          {"es","cUyo5fycrvI","Tutorial Bandaged Cube en español","Rafa Garcia Benacazon"},
148
                          {"ru","-MTzeEJptsg","Как собрать bandaged Cube B","стратегия знаний"},
149
                          {"fr","3rsfIJ3roT0","Tutoriel: résolution du Bicube","Skieur Cubb"},
150
                          {"de","sqWVRwkXX9w","Bandaged Cube - Tutorial","GerCubing"},
151
                          {"pl","XcHzTvVR6Po","Bandaged 3x3 v.B cube","MrUK"},
152
                          {"kr","1gsoijF_5q0","BiCube Tutorial (해법)","듀나메스 큐브 해법연구소"},
153
                         }
154
       ),
155

  
156
  WIND3 ( ObjectConstants.WIND_3,
157
          new String[][] {
158
                          {"gb","Jh8Bg7gT3PI","Windmill Cube Tutorial","Cube Solve Hero"},
159
                          {"es","wVyJs7AboKk","Como resolver Windmill","Tutoriales Rubik"},
160
                          {"ru","vavVAuEplKI","Как собрать Мельницу","Алексей Ярыгин"},
161
                          {"fr","qiVsyF1nn7o","Résolution du Windmill Cube","asthalis"},
162
                          {"de","JCYcAd0iCKk","Windmill Cube Tutorial","Pezcraft"},
163
                          {"pl","GZI_PtcURaA","Windmill TUTORIAL PL","MrUk"},
164
                          {"br","TXNVMp70lVE","Resolução do Windmill Cube","Pedro Filho"},
165
                          {"kr","gELuvKW2Itw","윈드밀  큐브 해법 강좌","굿맨's 큐브 이야기"},
166
                         }
167
        ),
168

  
169
  FISH3 ( ObjectConstants.FISH_3,
170
          new String[][] {
171
                          {"gb","HhQLhGGcKK0","Solving the Fisher Cube","Junk Cuber"},
172
                          {"es","Ndd0V1gWju0","Como resolver 3x3x3 Fisher Cube","Tutoriales Rubik"},
173
                          {"ru","KfeDuy4n72Q","Как собрать Фишер Куб","Алексей Ярыгин"},
174
                          {"fr","qnnvpFzcZO4","Résolution du Fisher's Cube","asthalis"},
175
                          {"de","aSrF0VxVqck","Fisher Cube Tutorial","Pezcraft"},
176
                          {"pl","vFKujycV3cs","Fisher Cube TUTORIAL PL","MrUk"},
177
                          {"br","S4En0RXDIbs","Como resolver o Fisher Cube","Pedro Filho"},
178
                          {"kr","x9SySGU_iqE","피셔 큐브 맞추는 방법","iamzoone"},
179
                         }
180
        ),
181

  
182
  CU_323 ( ObjectConstants.CU_323,
183
          new String[][] {
184
                          {"gb","pbv652cE1AU","How To Solve the 3x3x2 ","JRCuber"},
185
                          {"es","RtDbnDxXPrs","Cuboid 3x3x2 Tutorial","Cubo da Loucura"},
186
                          {"ru","n5-fa1fd2cQ","Как собрать кубоид 3х3х2","RubicsGuide"},
187
                          {"fr","z6xToKiu38M","Résolution du 3x3x2","asthalis"},
188
                          {"de","3qI55VS5MrY","2x3x3 - Tutorial","GerCubing"},
189
                          {"pl","KSs928xIwKg","3x3x2 cube Tutorial PL","MrUK"},
190
                          {"br","RnjJBXOp9DA","Como resolver o cubóide 3x3x2","Pedro Filho"},
191
                          {"kr","E3Oj8bKcTO4","2x3x3 큐보이드해법","듀나메스 큐브 해법연구소"},
192
                         }
193
       ),
194

  
195
  CU_232 ( ObjectConstants.CU_232,
196
          new String[][] {
197
                          {"gb","6dYOrUgFCsc","How to Solve the 2x2x3","Z3"},
198
                          {"es","5-ePFYnnY9k","Cuboid 2x2x3 Tutorial","Cubo da Loucura"},
199
                          {"ru","cT4CEQwgFKA","Как собрать Cuboid 2x2x3","YG Cuber"},
200
                          {"fr","xJdC1PW8v3M","Résolution du 2x2x3","asthalis"},
201
                          {"de","NDjofQ42C9E","2x2x3 - Tutorial","GerCubing"},
202
                          {"pl","RWF-7v5KE74","2x2x3 cube Tutorial PL","MrUK"},
203
                          {"br","W6cp_1Q9SeY","Como resolver o cubóide 2x2x3","Pedro Filho"},
204
                          {"kr","DIaUaxQbJhw","2x2x3 해법","듀나메스 큐브 해법연구소"},
205
                         }
206
       ),
207

  
208
  CU_343 ( ObjectConstants.CU_343,
209
          new String[][] {
210
                          {"gb","nh8DqpMM3Ro","How to solve the 3x3x4","BeardedCubing"},
211
                          {"es","nfeJ1q_OoHU","Cuboid 3x3x4 Tutorial","Cubo da Loucura"},
212
                          {"ru","NCdQRMKWf-8","Как собрать Cuboid 3x3x4","YG Cuber"},
213
                          {"fr","_zVedCuN-ds","Résolution du 3x3x4","asthalis"},
214
                          {"de","jQlBZhWD_V8","3x3x4 - Tutorial","GerCubing"},
215
                          {"pl","YaPi8UGLKQQ","3x3x4 cube Tutorial PL","MrUK"},
216
                          {"kr","-kp5r7iXV0M","3x3x4 큐보이드해법","듀나메스 큐브 해법연구소"},
217
                         }
218
       ),
219

  
220
  ULTI ( ObjectConstants.ULTI_2,
221
          new String[][] {
222
                          {"gb","n1ikPKZxGEo","Ultimate Skewb Tutorial","BeardedCubing"},
223
                          {"es","wNL1WJ_sCfs","Resolver Skewb ULTIMATE","Cuby"},
224
                          {"ru","ifkM8Rr3Y8E","Как собрать Скьюб Ультимейт","Алексей Ярыгин"},
225
                          {"fr","r_eoNcejdrA","Résoudre le Skewb Ultimate","ValentinoCube"},
226
                          {"de","16ioOywTVvI","Skewb Ultimate - Tutorial","GerCubing"},
227
                          {"pl","8MsyPs1VB8U","Ultimate skewb TUTORIAL PL","MrUK"},
228
                          {"kr","VOt9_K48c0k","스큐브 얼티미트 공식","노케빈"},
229
                         }
230
        ),
231

  
232
  KILO3( ObjectConstants.KILO_3,
233
          new String[][] {
234
                          {"gb","grgGgUSxiQg","How to Solve the Kilominx","Z3"},
235
                          {"es","g6WMYjkCLok","Resolver Kilominx","Cuby"},
236
                          {"ru","gjaknjuZXPs","Киломинкс как собрать","CUBES WORLD"},
237
                          {"fr","F7z6LztN-7A","Résoudre le Kilominx","Twins Cuber"},
238
                          {"de","fcmJdpLfZwk","Megaminx 2x2 lösen","JamesKnopf"},
239
                          {"pl","tdWh8f8qpq4","Kilominx TUTORIAL PL","MrUK"},
240
                          {"kr","8-X4GhQnE5I","2X2 킬로밍크스 TUTORIAL","큐브놀이터"},
241
                         }
242
       ),
243

  
244
  MEGA3( ObjectConstants.MEGA_3,
245
          new String[][] {
246
                          {"gb","j4x61L5Onzk","How to Solve the Megaminx","Z3"},
247
                          {"es","xuKbT6Il0Ko","Resolver Megaminx","Cuby"},
248
                          {"ru","WgoguOY3tKI","Как собрать Мегаминкс","Алексей Ярыгин"},
249
                          {"fr","Ln1vl85puKo","Résoudre le Megaminx","Victor Colin"},
250
                          {"de","d-GQD6CBdB8","Megaminx lösen","Pezcraft"},
251
                          {"pl","BZTW6ApeRZE","Jak ułożyć: Megaminx","DżoDżo"},
252
                          {"br","0BTzkDZW078","Como resolver o Megaminx 1/2","Pedro Filho"},
253
                          {"br","VVHzZI73BN0","Como resolver o Megaminx 2/2","Pedro Filho"},
254
                          {"kr","2NUsMclrD-0","메가밍크스 예시솔빙","iamzoone"},
255
                         }
256
       ),
257

  
258
  KILO5( ObjectConstants.KILO_5,
259
          new String[][] {
260
                          {"gb","VAnzC2SYVc4","How To Solve A Master Kilominx","Grizz Media"},
261
                          {"es","ozINTg-61Fs","Tutorial Master Kilominx","RubikArt"},
262
                          {"ru","0aemQayCZRc","Как собрать Мастер Киломинкс ч.1","Артем Мартиросов"},
263
                          {"ru","ohOUFTx-oQI","Как собрать Мастер Киломинкс ч.2","Артем Мартиросов"},
264
                          {"ru","YRXRdT2jCn8","Как собрать Мастер Киломинкс ч.3","Артем Мартиросов"},
265
                          {"fr","usMiWt44aqo","Résolution du Master Kilominx","Asthalis"},
266
                          {"pl","rdln0IG86_s","Master Kilominx TUTORIAL PL","MrUK"},
267
                          {"br","0nmaZf2-44M","Como resolver o Master Kilominx 1/3","Rafael Cinoto"},
268
                          {"br","SkR6RybAKHc","Como resolver o Master Kilominx 2/3","Rafael Cinoto"},
269
                          {"br","5C7J7Cb4a7Q","Como resolver o Master Kilominx 3/3","Rafael Cinoto"},
270
                          {"kr","dvy-GxCjm5c","마스터 킬로밍크스 배우기 1","vincentcube"},
271
                          {"kr","Jm0B12vNxsE","마스터 킬로밍크스 배우기 2","vincentcube"},
272
                          {"kr","H1I18FVpr6g","마스터 킬로밍크스 배우기 3","vincentcube"},
273
                         }
274
       ),
275

  
276
  MEGA5( ObjectConstants.MEGA_5,
277
          new String[][] {
278
                          {"gb","MNBMm8BnHtQ","Solve the Gigaminx Part 1","BeardedCubing"},
279
                          {"gb","QrrP4GwqVMw","Solve the Gigaminx Part 2","BeardedCubing"},
280
                          {"es","ex5EQMBxV1U","Tutorial Gigaminx","RubikArt"},
281
                          {"ru","UJYK3SHjSGg","Как собрать Гигаминкс ч.1","Артем Мартиросов"},
282
                          {"ru","-iBCpr4Gwsw","Как собрать Гигаминкс ч.2","Артем Мартиросов"},
283
                          {"ru","4-dI7NCW8n8","Как собрать Гигаминкс ч.3","Артем Мартиросов"},
284
                          {"fr","e485fh0V1dg","Résolution du Gigaminx","Asthalis"},
285
                          {"de","APSAj4UtOAg","Megaminx 5x5 lösen","JamesKnopf"},
286
                          {"pl","qbKLMCX1wKg","Jak ułożyć Gigaminxa cz.1","chomik19751"},
287
                          {"pl","JQOXD3qleH4","Jak ułożyć Gigaminxa cz.2","chomik19751"},
288
                          {"pl","WF2katJ22FA","Jak ułożyć Gigaminxa cz.3","chomik19751"},
289
                          {"pl","jlyRrJjH4qQ","Jak ułożyć Gigaminxa cz.4","chomik19751"},
290
                          {"kr","HfPFrWuz6z4","기가밍크스 gigaminx","큐브놀이터"},
291
                         }
292
       ),
293

  
294
  MORP2 ( ObjectConstants.MORP_2,
295
          new String[][] {
296
                          {"gb","dD67B3cRaFw","Pyramorphix Solve Tutorial","SpeedCubeReview"},
297
                          {"es","RA37LhYlEW8","Resolver Pyramorphix","Cuby"},
298
                          {"ru","fTNXLAAuGAI","Как собрать Пираморфикс 2х2","Алексей Ярыгин"},
299
                          {"fr","SfEqoud5KRc","Résolution du Pyramorphix","Asthalis"},
300
                          {"de","1VDGoVJZCug","Pyramorphix - Tutorial","GerCubing"},
301
                          {"pl","nRYoJAy1c_8","Mastermorphix 2x2 TUTORIAL PL","MrUK"},
302
                          {"br","wByfDxTrbC8","Como resolver o Pyramorphix","Rafael Cinoto"},
303
                          {"kr","WIy5ZvTXsOY","피라몰픽스 쉽게 맞추기","큐브놀이터"},
304
                         }
305
        ),
306
  JING  ( ObjectConstants.JING_2,
307
          new String[][] {
308
                          {"gb","0T8Iw6aI2gA","Jing's Pyraminx Tutorial","SuperAntoniovivaldi"},
309
                          {"es","Na27_GUIzqY","Resolver Jing Pyraminx","Cuby"},
310
                          {"ru","rlQXFzjsyAo","Как собрать Jing's pyraminx","Илья Топор-Гилка"},
311
                          {"fr","zC9dGqZRSic","Résolution du Jing's Pyraminx","Asthalis"},
312
                          {"de","6ihN4fdHH6o","Jings Pyraminx - Tutorial","GerCubing"},
313
                          {"pl","nRYoJAy1c_8","Jing's pyraminx cube TUTORIAL PL","MrUK"},
314
                         }
315
        ),
316

  
317
  PYRA3 ( ObjectConstants.PYRA_3,
318
          new String[][] {
319
                          {"gb","xIQtn2qazvg","Pyraminx Layer By Layer","Z3"},
320
                          {"es","4cJJe9RAzAU","Resolver Pyraminx","Cuby"},
321
                          {"ru","F4_bhfWyVRQ","Как собрать ПИРАМИДКУ","Е Бондаренко"},
322
                          {"fr","Z2h1YI6jPes","Comment résoudre le Pyraminx","ValentinoCube"},
323
                          {"de","x_DMA8htJpY","Pyraminx lösen","Pezcraft"},
324
                          {"pl","uNpKpJfAa5I","Jak ułożyć: Pyraminx","DżoDżo"},
325
                          {"br","dtC0GNGyXqw","Como resolver o Pyraminx","Pedro Filho"},
326
                          {"kr","mO3excjvvoA","피라밍크스 맞추는 방법","iamzoone"},
327
                    //    {"tw","YS3cDcP6Aro","金字塔方塊解法","1hrBLD"},
328
                         }
329
        ),
330

  
331
  PYRA4 ( ObjectConstants.PYRA_4,
332
          new String[][] {
333
                          {"gb","tGQDqDcSa6U","How to Solve the Master Pyraminx","Z3"},
334
                          {"es","74PIPm9-uPg","Resolver Master Pyraminx 4x4","Cuby"},
335
                          {"ru","-F_xJAwkobU","Как собрать Мастер Пираминкс"," Алексей Ярыгин"},
336
                          {"fr","F3gzBs7uvmw","Tuto: résoudre le Master Pyraminx","Spaghetti Cubing"},
337
                          {"de","3Q_bO7_FfAI","Master Pyraminx lösen","CubaroCubing"},
338
                          {"pl","EamwvhmHC7Q","4x4 (Master) Pyraminx PL","MrUk"},
339
                          {"br","cKql6YZ7yAg","Como resolver o Pyraminx 4x4 1/3","Rafael Cinoto"},
340
                          {"br","gtNQDPsN2Dg","Como resolver o Pyraminx 4x4 2/3","Rafael Cinoto"},
341
                          {"br","j8_-s4rd8mw","Como resolver o Pyraminx 4x4 3/3","Rafael Cinoto"},
342
                          {"kr","JlmBKaHESyY","마스터 피라밍크스 해법","주누후누"},
343
                         }
344
        ),
345

  
346
  PYRA5 ( ObjectConstants.PYRA_5,
347
          new String[][] {
348
                          {"gb","2nsPEECDdN0","Professor Pyraminx Solve","RedKB"},
349
                          {"es","cSDj8OQK3TU","Tutorial del Professor Pyraminx","QBAndo"},
350
                          {"ru","gMp1tbDyDWg","Как собрать Professor Pyraminx","RBcuber"},
351
                          {"de","pCHx9bVMSgI","Professor Pyraminx Teil 1","Arvid Bollmann"},
352
                          {"de","iiNXJMVNmCM","Professor Pyraminx Teil 2","Arvid Bollmann"},
353
                          {"br","t2QJSSjNxPw","Resolver o Professor Pyraminx 1/4","Rafael Cinoto"},
354
                          {"br","mI6W6IFyVv0","Resolver o Professor Pyraminx 2/4","Rafael Cinoto"},
355
                          {"br","0HoOp6JlLSs","Resolver o Professor Pyraminx 3/4","Rafael Cinoto"},
356
                          {"br","Xg1jnCRsw_I","Resolver o Professor Pyraminx 4/4","Rafael Cinoto"},
357
                         }
358
        ),
359

  
360
  TRAJ3 ( ObjectConstants.TRAJ_3,
361
          new String[][] {
362
                          {"gb","Q2NSiuJWVvk","Trajber and UFO Tutorial","SuperAntoniovivaldi"},
363
                          {"es","FPBirEJ8ZfY","Resolver Octaedro 3x3","Solución Rubik"},
364
                          {"de","FjQXlwJGniQ","Trajbers Octahedron Tutorial","GerCubing"},
365
                          {"br","kO3nMpZKv3Q","Resolver Octaedro Trajber","Rafael Cinoto"},
366
                         }
367
       ),
368

  
369
  DIAM2 ( ObjectConstants.DIAM_2,
370
          new String[][] {
371
                          {"gb","R2wrbJJ3izM","How to Solve a Skewb Diamond","Dr. Penguin^3"},
372
                          {"es","2RCusYQdYYE","Como resolver Skewb Diamond","Tutoriales Rubik"},
373
                          {"ru","k8B6RFcNoGw","Как собрать Skewb Diamond","Алексей Ярыгин"},
374
                          {"fr","tqbkgwNcZCE","Comment résoudre le Skewb Diamond","Valentino Cube"},
375
                          {"de","6ewzrCOnZfg","Octagon lösen","JamesKnopf"},
376
                          {"pl","61_Z4TpLMBc","Diamond Skewb TUTORIAL PL","MrUk"},
377
                          {"br","UapwpXMYtH4","Como resolver o Octaedro Diamond","Rafael Cinoto"},
378
                          {"kr","hVBSlfHVTME","공식 하나만 사용 - 다이아몬드 스큐브","Denzel Washington"},
379
                         }
380
       ),
381

  
382
  DIAM3 ( ObjectConstants.DIAM_3,
383
          new String[][] {
384
                          {"gb","n_mBSUDLUZw","Face Turning Octahedron Tutorial","SuperAntoniovivaldi"},
385
                          {"es","ogf0t6fGxZI","FTO - Tutorial en español","Gadi Rubik"},
386
                          {"ru","VXCjk0bVRoA","Как собрать Face Turning Octahedron","Алексей Ярыгин"},
387
                          {"de","6bO0AcwY5K8","Face Turning Octahedron - Tutorial","GerCubing"},
388
                          {"pl","huWg-ZfP-KY","Octahedron cube TUTORIAL PL","MrUk"},
389
                          {"br","WN3BoP4EbvM","Como resolver o octaedro 3x3 1/3","Rafael Cinoto"},
390
                          {"br","4zFlfANOliE","Como resolver o octaedro 3x3 2/3","Rafael Cinoto"},
391
                          {"br","6OvNzoHk7RU","Como resolver o octaedro 3x3 3/3","Rafael Cinoto"},
392
                         }
393
       ),
394

  
395
  DIAM4 ( ObjectConstants.DIAM_4,
396
          new String[][] {
397
                          {"gb","3GJkySk5zeQ","Master Face Turning Octahedron","SuperAntoniovivaldi"},
398
                          {"gb","zW_1htxy52k","Master FTO Tutorial","Michele Regano"},
399
                          {"es","3K8XL9SBSvs","Tutorial Master FTO de Mf8","Robert Cubes"},
400
                          {"ru","0CRwhZ2JNJA","Как собрать Master FTO","Алексей Ярыгин"},
401
                         }
402
       ),
403

  
404
  HELI3 ( ObjectConstants.HELI_3,
405
          new String[][] {
406
                          {"gb","-suwJpd_PO8","Helicopter Cube Tutorial","Bearded Cubing"},
407
                          {"es","DWG9n_YyGPA","Resolver Helicopter Cube","Cuby"},
408
                          {"ru","V4lJ3pg7Hio","Как собрать Куб Вертолет","Алексей Ярыгин"},
409
                          {"fr","Zk8zWBWD2Ow","Comment résoudre le Helicopter Cube","Julien"},
410
                          {"de","6VUH_FkBTlw","Helicopter Cube Tutorial","GerCubing"},
411
                          {"pl","zoBZame4gFo","Helicopter Cube TUTORIAL PL","MrUk"},
412
                          {"br","k8PVOARh6Kk","Como resolver o Helicopter Cube 1/3","Rafael Cinoto"},
413
                          {"br","6d4JLfuIwOQ","Como resolver o Helicopter Cube 2/3","Rafael Cinoto"},
414
                          {"br","moiV-2oWgrA","Como resolver o Helicopter Cube 3/3","Rafael Cinoto"},
415
                          {"kr","xsXQSrEbgag","헬리콥터 큐브를 맞추는 법","연서큐브박"},
416
                         }
417
        ),
418

  
419
  DINO3 ( ObjectConstants.DINO_3,
420
          new String[][] {
421
                          {"gb","puTJZqFBQwo","Dino Skewb Cube Tutorial","Bearded Cubing"},
422
                          {"es","6o1Yo5iCxvI","Resolver Cubo Dino","Cuby"},
423
                          {"ru","tWDrCtIv1_U","Как собрать Дино Куб","Алексей Ярыгин"},
424
                          {"fr","hNkpte7Mesc","Comment résoudre le Dino Cube","Valentino Cube"},
425
                          {"de","RqJLI6_C9JA","Dino Cube Tutorial","GerCubing"},
426
                          {"pl","o05DYu8UMio","Dino Cube TUTORIAL PL","MrUk"},
427
                          {"br","jAwjAF8dpOM","Como resolver o Dino Cube","Rafael Cinoto"},
428
                          {"kr","imbrqGPSXWQ","(엑스큐브)완전 정복하기!","초등취미생활"},
429
                         }
430
        ),
431

  
432
  REDI3 ( ObjectConstants.REDI_3,
433
          new String[][] {
434
                          {"gb","Qn7TJED6O-4","How to Solve the MoYu Redi Cube","Z3"},
435
                          {"es","g0M38Aotgac","Resolver Redi Cube","Cuby"},
436
                          {"ru","dlNRbE-hyzU","Как собрать Реди Куб","Алексей Ярыгин"},
437
                          {"fr","zw7UZcqqsgA","Comment résoudre le Redi Cube","ValentinoCube"},
438
                          {"de","YU8riouyC2w","Redi Cube Solve","CubaroCubing"},
439
                          {"pl","vxo3lXMsWQI","Jak ułożyć Redi Cube?","DJ rubiks"},
440
                          {"br","muQ8U_G4LmM","Como resolver o Redi Cube","Rafael Cinoto"},
441
                          {"kr","a5CzDMbRzbY","레디큐브를 배우기","vincentcube"},
442
                         }
443
        ),
444

  
445
  SKEW2 ( ObjectConstants.SKEW_2,
446
          new String[][] {
447
                          {"gb","I6132yshkeU","How to Solve the Skewb","Z3"},
448
                          {"es","wxQX3HhPgds","Resolver Skewb (Principiantes)","Cuby"},
449
                          {"ru","EICw3aqn6Bc","Как собрать Скьюб?","Алексей Ярыгин"},
450
                          {"fr","lR-GuIroh4k","Comment réussir le skewb","Rachma Nikov"},
451
                          {"de","7RX6D5pznOk","Skewb lösen","Pezcraft"},
452
                          {"pl","ofRu1fByNpk","Jak ułożyć: Skewb","DżoDżo"},
453
                          {"br","mNycauwshWs","Como resolver o Skewb","Pedro Filho"},
454
                          {"kr","5R3sU-_bMAI","SKEWB 초보 공식","iamzoone"},
455
                     //   {"tw","8srf9xhsS9k","Skewb斜轉方塊解法","1hrBLD"},
456
                         }
457
        ),
458

  
459
  SKEW3 ( ObjectConstants.SKEW_3,
460
          new String[][] {
461
                          {"gb","Jiuf7zQyPYI","Master Skewb Cube Tutorial","Bearded Cubing"},
462
                          {"es","8TP6p63KQCA","Master Skewb en Español","jorlozCubes"},
463
                          {"ru","7155QSp3T74","часть 1: Как собрать мастер Скьюб","Иван Циков"},
464
                          {"ru","14ey-RihjgY","часть 2: Как собрать мастер Скьюб","Иван Циков"},
465
                          {"ru","watq6TLa5_E","часть 2.5: Как собрать мастер Скьюб","Иван Циков"},
466
                          {"ru","UnsvseFBXmo","часть 3: Как собрать мастер Скьюб","Иван Циков"},
467
                          {"fr","tYMoY4EOHVA","Résolution du Master Skewb","Asthalis"},
468
                          {"de","LSErzqGNElI","Master Skewb lösen","JamesKnopf"},
469
                          {"pl","Y7l3AYFvDJI","Master Skewb TUTORIAL PL","MrUk"},
470
                          {"kr","ycR-WmXJCG0","마스터 스큐브 3번째 해법","듀나메스 큐브 해법연구소"},
471
                         }
472
        ),
473

  
474
  IVY2 ( ObjectConstants.IVY_2,
475
          new String[][] {
476
                          {"gb","QMzeJobSu1M","How to Solve the Ivy Cube","Z3"},
477
                          {"es","2-Gf2cmEJDs","Resolver Ivy Cube","Cuby"},
478
                          {"ru","pbkfOCnnfsA","Как собрать Иви куб","Алексей Ярыгин"},
479
                          {"fr","mn7YTnYu3Uc","Comment résoudre le Ivy Cube","ValentinoCube"},
480
                          {"de","vaW5fSUG_O8","Ivy Cube","ThomasStadler"},
481
                          {"pl","8s_0VxNvFA8","Jak ułożyć Ivy Cube","DubiCube"},
482
                          {"kr","TmSPgjtSFac","15분만에 아이비큐브 완전정복하기!","초등취미생활"},
483
                         }
484
        ),
485

  
486
  REX3 ( ObjectConstants.REX_3,
487
          new String[][] {
488
                          {"gb","noAQfWqlMbk","Rex Cube Tutorial","CrazyBadCuber"},
489
                          {"es","Q90x9rjLJzw","Resolver Cubo Rex","Cuby"},
490
                          {"ru","Dr9CLM6A3fU","Как собрать Рекс Куб","Алексей Ярыгин"},
491
                          {"fr","SvK1kf6c43c","Résolution du Rex Cube","Asthalis"},
492
                          {"de","AI4vtwpRkEQ","Rex Cube - Tutorial","GerCubing"},
493
                          {"pl","ffbFRnHglWY","Rex Cube TUTORIAL PL","MrUk"},
494
                          {"kr","B3ftZzHRQyU","렉스 큐브 해법","듀나메스 큐브 해법연구소"},
495
                         }
496
        ),
497

  
498
  MIRR2 ( ObjectConstants.MIRR_2,
499
          new String[][] {
500
                          {"gb","rSH-ZEqTmxs","Solve 2x2 Mirror Blocks","King of Cubing"},
501
                          {"es","Ipz-Ajpd4Fg","Como resolver el mirror 2x2","RUBI CUBI"},
502
                          {"ru","rGqZq0bjZlM","Как собрать Зеркальный кубик 2x2","maggam1000"},
503
                          {"de","fFMf1G7MYmA","2x2 Mirror Cube Anfängerlösung","rofrisch"},
504
                          {"pl","C6B_ZT6xilw","Jak ułożyć kostkę mirror 2x2","Lisek Smolisek"},
505
                          {"kr","9S4QTkyNm4Y","2x2 Mirror Cube","큐브놀이터"},
506
                         }
507
       ),
508

  
509
  MIRR3 ( ObjectConstants.MIRR_3,
510
          new String[][] {
511
                          {"gb","YkzXIWnqbSw","How to Solve the Mirror Cube","Z3"},
512
                          {"es","ZTkunMo51l0","Resolver cubo de Rubik MIRROR","Cuby"},
513
                          {"ru","1QPAD3Q4r78","Как собрать Зеркальный Куб","Алексей Ярыгин"},
514
                          {"fr","tlFLE2UvjFo","Tutoriel: le rubik's cube mirroir","Le Cubiste"},
515
                          {"de","Qf2EadLLiZo","Mirror Cube lösen","Pezcraft"},
516
                          {"pl","r1-MzAL3TxE","Jak ułożyć kostkę mirror","Cube Masters"},
517
                          {"br","HWGGpIKRT_I","Como resolver o Mirror Blocks","Pedro Filho"},
518
                          {"kr","p3OJSbWopqg","미러블럭 해법","듀나메스 큐브 해법연구소"},
519
                         }
520
       ),
521

  
522
  MIRR4 ( ObjectConstants.MIRR_4,
523
          new String[][] {
524
                          {"gb","6gyQ5qBK8GU","4x4 Mirror: Introduction","SuperAntoniovivaldi"},
525
                          {"gb","jvKLW7vxKx4","4x4 Mirror: Layer by Layer","SuperAntoniovivaldi"},
526
                          {"gb","efHeHrXFNTQ","4x4 Mirror: Reduction","SuperAntoniovivaldi"},
527
                          {"gb","bKHQn_ARNZ8","4x4 Mirror: Parity Free Solve","SuperAntoniovivaldi"},
528
                          {"gb","Us1Dlr0PyEA","4x4 Mirror: Superparity","SuperAntoniovivaldi"},
529
                          {"es","tN2D3j0o-wk","Como hacer un mirror 4x4x4","JGOM Designer"},
530
                         }
531
       ),
532

  
533
  SQUA1 ( ObjectConstants.SQU1_3,
534
          new String[][] {
535
                          {"gb","0tX-f6RLgac","How to Solve the Square-1","Z3"},
536
                          {"es","mGtHDWj_i1o","Resolver SQUARE-1","Cuby"},
537
                          {"ru","XguuJTUwJoE","Как собрать Скваер-1","Алексей Ярыгин"},
538
                          {"fr","knRmTSa6aHQ","Comment résoudre le Square-1 (1/3)","Valentino Cube"},
539
                          {"fr","y-0ZrAgzETI","Comment résoudre le Square-1 (2/3)","Valentino Cube"},
540
                          {"fr","tYbE9GfEokw","Comment résoudre le Square-1 (3/3)","Valentino Cube"},
541
                          {"de","p9DMIzNQ3b8","Square-1 Tutorial (1/2)","Pezcraft"},
542
                          {"de","gM6E28JGmoo","Square-1 Tutorial (2/2)","Pezcraft"},
543
                          {"pl","_0rsImrp9jc","Jak ułożyć: Square-1","DżoDżo"},
544
                          {"br","geT7SvX0DEw","Tutorial do Square-1","Pedro Filho"},
545
                          {"kr","NcB50lWdQzE","스퀘어1 맞추는 방법","iamzoone"},
546
                         }
547
       ),
548

  
549
  SQUA2 ( ObjectConstants.SQU2_3,
550
          new String[][] {
551
                          {"gb","PPXojiFthEs","Square-2 Tutorial","SuperAntoniovivaldi"},
552
                          {"es","IiMwc51xKBQ","Cómo resolver Square-2","skieur cubb"},
553
                          {"ru","XZ6m8uF5oUk","Как собрать Square-2.","Илья Топор-Гилка"},
554
                          {"fr","R-m9IgYAFPA","Tutoriel: résolution du Square-2","skieur cubb"},
555
                          {"pl","SukHyoMzcgM","Square-2 TUTORIAL PL","MrUk"},
556
                          {"br","T3ts5gHLJV8","Tutorial do Square-2 1/2","Rafael Cinoto"},
557
                          {"br","4wwWE5Ni0Fw","Tutorial do Square-2 2/2","Rafael Cinoto"},
558
                          {"kr","psG9Ar4pBrc","초보자를 위한 스퀘어2 해법","SlowCuberToumai"},
559
                         }
560
       ),
561

  
562
   CONT  ( ObjectConstants.CONT_2,
563
          new String[][] {
564
                          {"gb","THndZ2H7OO4","Container Cube Tutorial","SuperAntoniovivaldi"},
565
                          {"es","8K2PeCAcpNU","Tutorial Container Puzzle","GioMart"},
566
                          {"ru","rh3rMuESOIM","Как собрать Container cube","RubicsGuide"},
567
                          {"fr","V4lmnbLjUdc","Résolution du Container Cube","skieur cubb"},
568
                          {"de","TRJEIgcda0Y","Container Cube Tutorial","Pezcraft"},
569
                          {"pl","jdJpUc-LaKY","Container Cube TUTORIAL PL","MrUK"},
570
                          {"br","44JnUyGTAD8","Tutorial do Cubo Container","Cubo vicio"},
571
                          {"kr","6HJKHLxaIPk","컨테이너 큐브 해법 강좌","굿맨's 큐브 이야기"},
572
                         }
573
       );
574

  
575
  public static final int NUM_OBJECTS = values().length;
576
  private final int mObject;
577
  private final String[][] mTutorials;
578
  private final int mNumTutorials;
579

  
580
  private static final TutorialList[] objects;
581

  
582
  static
583
    {
584
    objects = new TutorialList[NUM_OBJECTS];
585
    int i=0;
586

  
587
    for(TutorialList object: TutorialList.values())
588
      {
589
      objects[i++] = object;
590
      }
591
    }
592

  
593
///////////////////////////////////////////////////////////////////////////////////////////////////
594

  
595
  TutorialList(int object, String[][] tutorials)
596
    {
597
    mObject       = object;
598
    mTutorials    = tutorials;
599
    mNumTutorials = mTutorials.length;
600
    }
601

  
602
///////////////////////////////////////////////////////////////////////////////////////////////////
603

  
604
  public static TutorialList getObject(int ordinal)
605
    {
606
    return ordinal>=0 && ordinal<NUM_OBJECTS ? objects[ordinal] : CUBE3;
607
    }
608

  
609
///////////////////////////////////////////////////////////////////////////////////////////////////
610

  
611
  public static int getOrdinal(int object)
612
    {
613
    if( object==ObjectConstants.DIN4_3 )
614
      {
615
      object= ObjectConstants.DINO_3;
616
      }
617

  
618
    for(int i=0; i<NUM_OBJECTS; i++)
619
      {
620
      if( objects[i].mObject == object )
621
        {
622
        return i;
623
        }
624
      }
625

  
626
    return -1;
627
    }
628

  
629
///////////////////////////////////////////////////////////////////////////////////////////////////
630

  
631
  public int getObject()
632
    {
633
    return mObject;
634
    }
635

  
636
///////////////////////////////////////////////////////////////////////////////////////////////////
637

  
638
  public int getNumTutorials()
639
    {
640
    return mNumTutorials;
641
    }
642

  
643
///////////////////////////////////////////////////////////////////////////////////////////////////
644

  
645
  public int getIconID()
646
    {
647
    RubikObject object = RubikObjectList.getObject(mObject);
648
    return object==null ? 0 : object.getIconID();
649
    }
650

  
651
///////////////////////////////////////////////////////////////////////////////////////////////////
652

  
653
  public String getTutorialLanguage(int index)
654
    {
655
    return ( index>=0 && index<mNumTutorials ) ? mTutorials[index][0] : null;
656
    }
657

  
658
///////////////////////////////////////////////////////////////////////////////////////////////////
659

  
660
  public String getTutorialURL(int index)
661
    {
662
    return ( index>=0 && index<mNumTutorials ) ? mTutorials[index][1] : null;
663
    }
664

  
665
///////////////////////////////////////////////////////////////////////////////////////////////////
666

  
667
  public String getTutorialDescription(int index)
668
    {
669
    return ( index>=0 && index<mNumTutorials ) ? mTutorials[index][2] : null;
670
    }
671

  
672
///////////////////////////////////////////////////////////////////////////////////////////////////
673

  
674
  public String getTutorialAuthor(int index)
675
    {
676
    return ( index>=0 && index<mNumTutorials ) ? mTutorials[index][3] : null;
677
    }
678
}

Also available in: Unified diff