Examples of findFirstObject()


Examples of org.bitbucket.woolmark.World.findFirstObject()

        World world = getWorld();
        int fw = world.getWidth();
        int fh = world.getHeight();

        Fence fence = world.findFirstObject(Fence.class);
        int w = fence.getWidth();
        int h = fence.getHeight();

        return -1 * (getY() - fh) * w / h + (fw - w) / 2;
    }
View Full Code Here
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.