Project

General

Profile

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

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

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