Project

General

Profile

Download (5.09 KB) Statistics
| Branch: | Revision:

distorted-objectlib / src / main / java / org / distorted / objectlib / objects / TwistyBandagedBiCube.java @ 95123ad0

1 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2021 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.objectlib.objects;
21
22 82eb152a Leszek Koltunski
import java.io.InputStream;
23 29b82486 Leszek Koltunski
24 ecf3d6e3 Leszek Koltunski
import org.distorted.library.type.Static3D;
25 29b82486 Leszek Koltunski
import org.distorted.library.type.Static4D;
26
27 8005e762 Leszek Koltunski
import org.distorted.objectlib.main.ObjectType;
28 29b82486 Leszek Koltunski
29
///////////////////////////////////////////////////////////////////////////////////////////////////
30
31 c6fe904b Leszek Koltunski
public class TwistyBandagedBiCube extends TwistyBandagedAbstract
32 29b82486 Leszek Koltunski
{
33 3bf19410 Leszek Koltunski
  public TwistyBandagedBiCube(int[] numL, int meshState, int iconMode, Static4D quat, Static3D move, float scale, InputStream stream)
34 29b82486 Leszek Koltunski
    {
35 3bf19410 Leszek Koltunski
    super(numL, meshState, iconMode, quat, move, scale, stream);
36 29b82486 Leszek Koltunski
    }
37
38
///////////////////////////////////////////////////////////////////////////////////////////////////
39
40
  float[][] getPositions()
41
    {
42
    if( POSITIONS==null )
43
      {
44
      POSITIONS = new float[][]
45
        {
46
          { 1.0f,  1.0f, -1.0f},
47
          {-1.0f, -1.0f,  0.0f, -1.0f,  0.0f,  0.0f, 0.0f, -1.0f,  0.0f,  0.0f,  0.0f,  0.0f},
48
          {-1.0f,  1.0f, -1.0f,  0.0f,  1.0f, -1.0f},
49
          {-1.0f,  0.0f, -1.0f,  0.0f,  0.0f, -1.0f},
50
          {-1.0f, -1.0f, -1.0f,  0.0f, -1.0f, -1.0f},
51
          {-1.0f,  1.0f,  0.0f, -1.0f,  1.0f,  1.0f},
52
          { 0.0f,  1.0f,  0.0f,  0.0f,  1.0f,  1.0f},
53
          { 1.0f,  1.0f,  0.0f,  1.0f,  1.0f,  1.0f},
54
          {-1.0f, -1.0f,  1.0f, -1.0f,  0.0f,  1.0f},
55
          { 0.0f, -1.0f,  1.0f,  0.0f,  0.0f,  1.0f},
56
          { 1.0f, -1.0f,  1.0f,  1.0f,  0.0f,  1.0f},
57
          { 1.0f, -1.0f,  0.0f,  1.0f,  0.0f,  0.0f},
58
          { 1.0f, -1.0f, -1.0f,  1.0f,  0.0f, -1.0f}
59
        };
60
      }
61
    return POSITIONS;
62
    }
63
64
///////////////////////////////////////////////////////////////////////////////////////////////////
65
// PUBLIC API
66
67 5f54927b Leszek Koltunski
  public String getShortName()
68 61aa85e4 Leszek Koltunski
    {
69 5f54927b Leszek Koltunski
    return ObjectType.BAN4_3.name();
70
    }
71
72 61aa85e4 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
73
74 e26eb4e7 Leszek Koltunski
  public String getObjectName()
75 29b82486 Leszek Koltunski
    {
76 289ca015 Leszek Koltunski
    return "BiCube";
77 29b82486 Leszek Koltunski
    }
78
79
///////////////////////////////////////////////////////////////////////////////////////////////////
80
81 e26eb4e7 Leszek Koltunski
  public String getInventor()
82 29b82486 Leszek Koltunski
    {
83 b4223a92 Leszek Koltunski
    return "Uwe Meffert";
84 29b82486 Leszek Koltunski
    }
85
86 59c20632 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
87
88 e26eb4e7 Leszek Koltunski
  public int getYearOfInvention()
89 59c20632 Leszek Koltunski
    {
90 b4223a92 Leszek Koltunski
    return 1999;
91 59c20632 Leszek Koltunski
    }
92
93 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
94
95 e26eb4e7 Leszek Koltunski
  public int getComplexity()
96 29b82486 Leszek Koltunski
    {
97 b4223a92 Leszek Koltunski
    return 3;
98 29b82486 Leszek Koltunski
    }
99 052e0362 Leszek Koltunski
100
///////////////////////////////////////////////////////////////////////////////////////////////////
101
102
  public String[][] getTutorials()
103
    {
104
    return new String[][]{
105
                          {"gb","AnpdIKICBpM","Trying to Solve a Bandaged Cube","RedKB"},
106
                          {"es","cUyo5fycrvI","Tutorial Bandaged Cube en español","Rafa Garcia Benacazon"},
107
                          {"ru","-MTzeEJptsg","Как собрать bandaged Cube B","стратегия знаний"},
108
                          {"fr","3rsfIJ3roT0","Tutoriel: résolution du Bicube","Skieur Cubb"},
109
                          {"de","sqWVRwkXX9w","Bandaged Cube - Tutorial","GerCubing"},
110
                          {"pl","XcHzTvVR6Po","Bandaged 3x3 v.B cube","MrUK"},
111
                          {"kr","1gsoijF_5q0","BiCube Tutorial (해법)","듀나메스 큐브 해법연구소"},
112 a399e91b Leszek Koltunski
                          {"vn","ZCJDaF4jEbc","Tutorial N.3 - BiCube","Duy Thích Rubik"},
113 052e0362 Leszek Koltunski
                         };
114
    }
115 29b82486 Leszek Koltunski
}