Project

General

Profile

« Previous | Next » 

Revision f12e4de9

Added by Leszek Koltunski over 2 years ago

Progress with Config UI.

View differences:

src/main/java/org/distorted/objects/RubikObject.java
24 24
import org.distorted.objectlib.main.ObjectType;
25 25
import org.distorted.patterns.RubikPatternList;
26 26

  
27
import static org.distorted.config.ConfigScreenPane.MESH_NICE;
28

  
27 29
///////////////////////////////////////////////////////////////////////////////////////////////////
28 30

  
29 31
public class RubikObject
......
37 39
  private final int[] mIconID;
38 40
  private final String[][] mPatterns;
39 41

  
42
  private int mMeshState;
43

  
40 44
///////////////////////////////////////////////////////////////////////////////////////////////////
41 45

  
42 46
  RubikObject(ObjectType type)
......
52 56

  
53 57
    int patternOrdinal  = RubikPatternList.getOrdinal(mOrdinal);
54 58
    mPatterns = RubikPatternList.getPatterns(patternOrdinal);
59

  
60
    mMeshState = MESH_NICE;
61
    }
62

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

  
65
  public void setMeshState(int state)
66
    {
67
    mMeshState = state;
68
    }
69

  
70
///////////////////////////////////////////////////////////////////////////////////////////////////
71

  
72
  public int getMeshState()
73
    {
74
    return mMeshState;
55 75
    }
56 76

  
57 77
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff