Project

General

Profile

« Previous | Next » 

Revision 2aeb75aa

Added by Leszek Koltunski almost 4 years ago

Update Myanmar flag.

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueue.java
51 51
  long[] mCurrentDuration;
52 52
  Effect[] mEffects;
53 53
  int[] mName;
54
  int[] mAssociation;
55
  int[] mComponent;
54
  int[] mAndAssociation;
55
  int[] mEquAssociation;
56 56
  long mTime;
57 57

  
58 58
  private static int[] mMax = new int[EffectType.LENGTH];
......
143 143
        mCurrentDuration = new long[max];
144 144
        mEffects         = new Effect[max];
145 145
        mName            = new int[max];
146
        mAssociation     = new int[max];
147
        mComponent       = new int[max];
146
        mAndAssociation  = new int[max];
147
        mEquAssociation  = new int[max];
148 148
        }
149 149

  
150 150
      for(int i=0; i<mNumEffects; i++ )
......
152 152
        mEffects[i]         = source.mEffects[i];
153 153
        mCurrentDuration[i] = source.mCurrentDuration[i];
154 154
        mName[i]            = source.mName[i];
155
        mAssociation[i]     = source.mAssociation[i];
156
        mComponent[i]       = source.mComponent[i];
155
        mAndAssociation[i]  = source.mAndAssociation[i];
156
        mEquAssociation[i]  = source.mEquAssociation[i];
157 157
        }
158 158
      }
159 159
    }
......
282 282
      mEffects[j]         = mEffects[j+1];
283 283
      mCurrentDuration[j] = mCurrentDuration[j+1];
284 284
      mName[j]            = mName[j+1];
285
      mAssociation[j]     = mAssociation[j+1];
286
      mComponent[j]       = mComponent[j+1];
285
      mAndAssociation[j]  = mAndAssociation[j+1];
286
      mEquAssociation[j]  = mEquAssociation[j+1];
287 287
      }
288 288

  
289 289
    mEffects[mNumEffects] = null;
......
441 441
                       mCurrentDuration = new long[max];
442 442
                       mEffects         = new Effect[max];
443 443
                       mName            = new int[max];
444
                       mAssociation     = new int[max];
445
                       mComponent       = new int[max];
444
                       mAndAssociation  = new int[max];
445
                       mEquAssociation  = new int[max];
446 446
                       }
447 447
                     mCreated = true;
448 448

  
......
453 453

  
454 454
                       if( position==-1 )
455 455
                         {
456
                         mCurrentDuration[mNumEffects] = 0;
457
                         mEffects[mNumEffects]    = job.effect;
458
                         mName[mNumEffects]       = job.effect.getName().ordinal();
459
                         mAssociation[mNumEffects]= job.effect.getAssociation();
460
                         mComponent[mNumEffects]  = job.effect.getComponent();
456
                         mCurrentDuration[mNumEffects]= 0;
457
                         mEffects[mNumEffects]        = job.effect;
458
                         mName[mNumEffects]           = job.effect.getName().ordinal();
459
                         mAndAssociation[mNumEffects] = job.effect.getAndAssociation();
460
                         mEquAssociation[mNumEffects] = job.effect.getEquAssociation();
461 461

  
462 462
                         mNumEffects++;
463 463
                         changed = true;
......
469 469
                           mCurrentDuration[j] = mCurrentDuration[j-1];
470 470
                           mEffects[j]         = mEffects[j-1];
471 471
                           mName[j]            = mName[j-1];
472
                           mAssociation[j]     = mAssociation[j-1];
473
                           mComponent[j]       = mComponent[j-1];
472
                           mAndAssociation[j]  = mAndAssociation[j-1];
473
                           mEquAssociation[j]  = mEquAssociation[j-1];
474 474
                           }
475 475

  
476
                         mCurrentDuration[position] = 0;
477
                         mEffects[position]    = job.effect;
478
                         mName[position]       = job.effect.getName().ordinal();
479
                         mAssociation[position]= job.effect.getAssociation();
480
                         mComponent[position]  = job.effect.getComponent();
476
                         mCurrentDuration[position]= 0;
477
                         mEffects[position]        = job.effect;
478
                         mName[position]           = job.effect.getName().ordinal();
479
                         mAndAssociation[position] = job.effect.getAndAssociation();
480
                         mEquAssociation[position] = job.effect.getEquAssociation();
481 481

  
482 482
                         mNumEffects++;
483 483
                         changed = true;

Also available in: Unified diff