Project

General

Profile

« Previous | Next » 

Revision 40f0cea6

Added by Leszek Koltunski over 1 year ago

Debugging the Node piraminds - print the whole piramind along with all the Effects attached to each Node.

View differences:

src/main/java/org/distorted/library/main/DistortedEffects.java
221 221
/**
222 222
 * Return a string describing all effects in the queues.
223 223
 */
224

  
225
  public String debug()
224
  public String debug(int depth)
226 225
    {
226
    StringBuilder s = new StringBuilder();
227
    for(int i=0; i<depth; i++) s.append(" ");
228
    String space = s.toString();
229

  
227 230
    String mat = mQueues[0].retEffects();
228 231
    String ver = mQueues[1].retEffects();
229 232
    String fra = mQueues[2].retEffects();
230 233
    String pos = mQueues[3].retEffects();
231 234

  
232
    return "MAT: "+mat+"\nVER: "+ver+"\nFRA: "+fra+"\nPOS: "+pos;
235
    return space+"MAT: "+mat+"\n"+space+"VER: "+ver+"\n"+space+"FRA: "+fra+"\n"+space+"POS: "+pos;
233 236
    }
234 237
  }

Also available in: Unified diff