/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package leaptest.controller;

import leaptest.model.Block;
import leaptest.model.BlockContainer;
import leaptest.view.MaterialManager;


/**
 *
 * @author silvandeleemput
 */
public class BlockContainerColorControl implements Updatable {

    private BlockContainer bc;
    
    public BlockContainerColorControl(BlockContainer bc)
    {
        this.bc = bc;
    }
    
    public void update(float tpf) {
        for (Block b : bc.getBlocks())
        {
            if (!b.isDissolving())
            {
                if (b.isLifted())
                    b.setMaterial(MaterialManager.lifted);
                else if (b.isFalling())
                    b.setMaterial(MaterialManager.falling);
                else
                    b.setMaterial(MaterialManager.normal);
            }
        }
    }
    
}
@@ -703,24 +703,26 @@
             
+//
 else if (b.i
@@ -741,32 +741,34 @@
                 
+//
     b.setMateria

set falling color to default