Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / shape / ShapeHexahedron.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 ShapeHexahedron extends TwistyObject
21
{
22
  public static final Static4D DEFAULT_ROT = new Static4D(-0.23377287f, 0.39656782f, 0.029073188f, 0.88726600f);
23

    
24
  public static final int[] FACE_COLORS = new int[]
25
         {
26
           COLOR_YELLOW, COLOR_WHITE,
27
           COLOR_BLUE  , COLOR_GREEN,
28
           COLOR_RED   , COLOR_ORANGE
29
         };
30

    
31
  public static final int NUM_FACES = 6;
32
  public static final int FOV = 40;
33
  public static final float RATIO = 0.50f;
34

    
35
///////////////////////////////////////////////////////////////////////////////////////////////////
36

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

    
42
///////////////////////////////////////////////////////////////////////////////////////////////////
43

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

    
49
///////////////////////////////////////////////////////////////////////////////////////////////////
50

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

    
56
///////////////////////////////////////////////////////////////////////////////////////////////////
57

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

    
63
///////////////////////////////////////////////////////////////////////////////////////////////////
64

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