Project

General

Profile

« Previous | Next » 

Revision 8ab435b9

Added by Leszek Koltunski over 2 years ago

1. Remove 'db level' from objectlib (this belongs to the app!)
2. change ScreenPlay's 'mObject' to be an ObjectType.

View differences:

src/main/java/org/distorted/patterns/RubikPatternList.java
72 72
// PUBLIC API
73 73
///////////////////////////////////////////////////////////////////////////////////////////////////
74 74

  
75
  public static int getOrdinal(int object)
75
  public static int getOrdinal(ObjectType object)
76 76
    {
77 77
    for(int i=0; i<NUM_OBJECTS; i++)
78 78
      {
79
      if( objects[i].mObject.ordinal() == object )
79
      if( objects[i].mObject == object )
80 80
        {
81 81
        return i;
82 82
        }

Also available in: Unified diff