Project

General

Profile

« Previous | Next » 

Revision 6bb59aad

Added by Leszek Koltunski almost 7 years ago

Progress with support for Effect classes.

View differences:

src/main/java/org/distorted/library/main/EffectQueue.java
138 138

  
139 139
///////////////////////////////////////////////////////////////////////////////////////////////////
140 140

  
141
  synchronized int removeByType(Effect effect)
141
  synchronized int removeByName(int name)
142
    {
143
    int ret = 0;
144

  
145
    for(int i=0; i<mNumEffects; i++)
146
      {
147
      if( mEffects[i].getName() == name )
148
        {
149
        remove(i);
150
        i--;
151
        ret++;
152
        }
153
      }
154

  
155
    return ret;
156
    }
157

  
158
///////////////////////////////////////////////////////////////////////////////////////////////////
159

  
160
  synchronized int removeEffect(Effect effect)
142 161
    {
143 162
    int ret = 0;
144 163

  

Also available in: Unified diff