Package airhockey

Source Code of airhockey.Mallet

package airhockey;

import org.jbox2d.common.Vec2;
import org.jbox2d.dynamics.Filter;

public class Mallet extends Puck{
    public Mallet(Vec2 pos, boolean ghost){
        super(pos);
        if (ghost){
            Filter filter = new Filter();
            filter.maskBits = 0;
            this.f.setFilterData(filter);
        }
    }
  
}
TOP

Related Classes of airhockey.Mallet

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.