Project

General

Profile

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

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

1
///////////////////////////////////////////////////////////////////////////////////////////////////
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
import java.io.InputStream;
23

    
24
import org.distorted.library.type.Static3D;
25
import org.distorted.library.type.Static4D;
26

    
27
import org.distorted.objectlib.helpers.ObjectSignature;
28
import org.distorted.objectlib.main.InitData;
29
import org.distorted.objectlib.main.ObjectType;
30

    
31
///////////////////////////////////////////////////////////////////////////////////////////////////
32

    
33
public class TwistyBandaged3Plate extends TwistyBandagedAbstract
34
{
35
  public TwistyBandaged3Plate(InitData data, int meshState, int iconMode, Static4D quat, Static3D move, float scale, InputStream stream)
36
    {
37
    super(data, meshState, iconMode, quat, move, scale, stream);
38
    }
39

    
40
///////////////////////////////////////////////////////////////////////////////////////////////////
41

    
42
  float[][] getPositions()
43
    {
44
    if( POSITIONS==null )
45
      {
46
      POSITIONS = new float[][]
47
        {
48
          {-1.0f,  1.0f,  1.0f, -1.0f,  0.0f,  1.0f,  0.0f,  1.0f,  1.0f,  0.0f,  0.0f,  1.0f},
49
          { 1.0f,  0.0f, -1.0f,  1.0f,  0.0f,  0.0f,  1.0f,  1.0f, -1.0f,  1.0f,  1.0f,  0.0f},
50
          {-1.0f, -1.0f, -1.0f, -1.0f, -1.0f,  0.0f,  0.0f, -1.0f, -1.0f,  0.0f, -1.0f,  0.0f},
51
          { 1.0f,  1.0f,  1.0f},
52
          { 1.0f,  0.0f,  1.0f},
53
          { 1.0f, -1.0f,  1.0f},
54
          {-1.0f, -1.0f,  1.0f},
55
          { 0.0f, -1.0f,  1.0f},
56
          { 1.0f, -1.0f,  0.0f},
57
          { 1.0f, -1.0f, -1.0f},
58
          {-1.0f,  1.0f, -1.0f},
59
          {-1.0f,  1.0f,  0.0f},
60
          { 0.0f,  1.0f, -1.0f},
61
          { 0.0f,  1.0f,  0.0f},
62
          {-1.0f,  0.0f, -1.0f},
63
          {-1.0f,  0.0f,  0.0f},
64
          { 0.0f,  0.0f, -1.0f}
65
        };
66
      }
67
    return POSITIONS;
68
    }
69

    
70
///////////////////////////////////////////////////////////////////////////////////////////////////
71
// PUBLIC API
72

    
73
  public String getShortName()
74
    {
75
    return ObjectType.BAN3_3.name();
76
    }
77

    
78
///////////////////////////////////////////////////////////////////////////////////////////////////
79

    
80
  public ObjectSignature getSignature()
81
    {
82
    return new ObjectSignature(ObjectType.BAN3_3);
83
    }
84

    
85
///////////////////////////////////////////////////////////////////////////////////////////////////
86

    
87
  public String getObjectName()
88
    {
89
    return "Bandaged Cube C";
90
    }
91

    
92
///////////////////////////////////////////////////////////////////////////////////////////////////
93

    
94
  public String getInventor()
95
    {
96
    return "Andreas Nortmann";
97
    }
98

    
99
///////////////////////////////////////////////////////////////////////////////////////////////////
100

    
101
  public int getYearOfInvention()
102
    {
103
    return 2005;
104
    }
105

    
106
///////////////////////////////////////////////////////////////////////////////////////////////////
107

    
108
  public int getComplexity()
109
    {
110
    return 2;
111
    }
112

    
113
///////////////////////////////////////////////////////////////////////////////////////////////////
114

    
115
  public String[][] getTutorials()
116
    {
117
    return new String[][]{
118
                          {"gb","7UiCVGygUT4","Bandage Cube C Tutorial","PolyakB"},
119
                          {"ru","gXenRA92Wdc","Как собрать Bandaged 3x3 Type C","YG Cuber"},
120
                          {"pl","sKfdFLm79Zs","Bandaged 3x3 v.C cube","MrUK"},
121
                          {"kr","BcCFgeFy6Ec","밴디지 타입 C 해법","듀나메스 큐브 해법연구소"},
122
                          {"vn","9674LLkPSog","Tutorial N.2 - Bandaged VC","Duy Thích Rubik"},
123
                         };
124
    }
125
}
(3-3/40)