Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / main / InitData.java @ 092e257b

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.main;
11

    
12
///////////////////////////////////////////////////////////////////////////////////////////////////
13

    
14
public class InitData
15
  {
16
  private final int[] mNumLayers;
17
  private final int mParam;
18
  private final float[][] mPos;
19

    
20
///////////////////////////////////////////////////////////////////////////////////////////////////
21

    
22
  public InitData(int[] numLayers)
23
    {
24
    mNumLayers = numLayers;
25
    mParam = 0;
26
    mPos = null;
27
    }
28

    
29
///////////////////////////////////////////////////////////////////////////////////////////////////
30

    
31
  public InitData(int[] numLayers, int param)
32
    {
33
    mNumLayers = numLayers;
34
    mParam = param;
35
    mPos = null;
36
    }
37

    
38
///////////////////////////////////////////////////////////////////////////////////////////////////
39

    
40
  public InitData(int[] numLayers, float[][] pos)
41
    {
42
    mNumLayers = numLayers;
43
    mParam = 0;
44
    mPos = pos;
45
    }
46

    
47
///////////////////////////////////////////////////////////////////////////////////////////////////
48

    
49
  public int[] getNumLayers()
50
    {
51
    return mNumLayers;
52
    }
53

    
54
///////////////////////////////////////////////////////////////////////////////////////////////////
55

    
56
  public int getParam()
57
    {
58
    return mParam;
59
    }
60

    
61
///////////////////////////////////////////////////////////////////////////////////////////////////
62

    
63
  public float[][] getPos()
64
    {
65
    return mPos;
66
    }
67
}
(2-2/11)