Project

General

Profile

« Previous | Next » 

Revision eb9263dd

Added by Leszek Koltunski 5 months ago

Next step toward separating TwistyObject metadata.

View differences:

src/main/java/org/distorted/objects/RubikObjectList.java
17 17

  
18 18
import org.distorted.external.RubikFiles;
19 19
import org.distorted.external.RubikScores;
20
import org.distorted.objectlib.main.ObjectType;
20
import org.distorted.objectlib.metadata.ListObjects;
21 21

  
22
import static org.distorted.objectlib.main.ObjectType.NUM_OBJECTS;
22
import static org.distorted.objectlib.metadata.ListObjects.NUM_OBJECTS;
23 23

  
24 24
///////////////////////////////////////////////////////////////////////////////////////////////////
25 25

  
......
84 84
    {
85 85
    for(int i=0; i<NUM_OBJECTS; i++)
86 86
      {
87
      ObjectType type = ObjectType.getObject(i);
87
      ListObjects type = ListObjects.getObject(i);
88 88
      RubikObject obj = new RubikObject(type);
89 89
      mObjects.add(obj);
90 90
      mNumObjects++;
......
365 365
            {
366 366
            char c = parts[7].charAt(0);
367 367
            if( c=='t' )      price = 0;
368
            else if( c=='f' ) price = ObjectType.DEFAULT_PRICE_OF_OLD_OBJECTS;
368
            else if( c=='f' ) price = ListObjects.DEFAULT_PRICE_OF_OLD_OBJECTS;
369 369
            else              price = Integer.parseInt(parts[7]);
370 370
            }
371 371

  

Also available in: Unified diff