Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / shape / ShapeTetrahedron.java @ 1eafa9c6

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2019 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is proprietary software licensed under an EULA which you should have received      //
7
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html        //
8
///////////////////////////////////////////////////////////////////////////////////////////////////
9

    
10
package org.distorted.objectlib.shape;
11

    
12
import org.distorted.library.type.Static3D;
13
import org.distorted.library.type.Static4D;
14
import org.distorted.objectlib.main.InitAssets;
15
import org.distorted.objectlib.main.TwistyObject;
16
import org.distorted.objectlib.metadata.Metadata;
17

    
18
///////////////////////////////////////////////////////////////////////////////////////////////////
19

    
20
public abstract class ShapeTetrahedron extends TwistyObject
21
{
22
  public static final Static4D DEFAULT_ROT = new Static4D(0.116788305f, 0.72722490f, 0.492507200f, 0.46361750f);
23

    
24
  public static final int[] FACE_COLORS = new int[]
25
         {
26
           COLOR_GREEN   , COLOR_YELLOW,
27
           COLOR_BLUE_TET, COLOR_RED_TET
28
         };
29

    
30
  public static final int NUM_FACES = 4;
31
  public static final int FOV = 40;
32
  public static final float RATIO = 0.89f;
33

    
34
///////////////////////////////////////////////////////////////////////////////////////////////////
35

    
36
  public ShapeTetrahedron(int iconMode, float realSize, Static4D quat, Static3D move, float scale, Metadata meta, InitAssets asset)
37
    {
38
    super(iconMode, realSize, quat, move, scale, meta, asset);
39
    }
40

    
41
///////////////////////////////////////////////////////////////////////////////////////////////////
42

    
43
  public final int getNumPuzzleFaces()
44
    {
45
    return NUM_FACES;
46
    }
47

    
48
///////////////////////////////////////////////////////////////////////////////////////////////////
49

    
50
  public int[] getColorTable()
51
    {
52
    return FACE_COLORS;
53
    }
54

    
55
///////////////////////////////////////////////////////////////////////////////////////////////////
56

    
57
  public int getFOV()
58
    {
59
    return FOV;
60
    }
61

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

    
64
  public float getScreenRatio()
65
    {
66
    return RATIO;
67
    }
68
}
(6-6/6)