Package com.teamjmonkey.controls

Examples of com.teamjmonkey.controls.FoodControl


    @Override
    public void addControl() {
        spatial.addControl(controlManager.getControl(MonkeyControl.WEAPON_FOLLOW_CAM));
        spatial.addControl(controlManager.getControl(MonkeyControl.FOOD_THROW_CONTROL));
        spatial.addControl(new FoodControl(getColor(), 10f));
    }
View Full Code Here


        creature.eatAnim();
        this.target = target;
    }

    private void eat() {
        FoodControl fc = target.getControl(FoodControl.class);
        FoodEntity fe = (FoodEntity)target.getUserData("entity");
        if (fc != null && fe != null) {
            creature.stop();
            creature.eat(fc);
            fe.remove();
View Full Code Here

TOP

Related Classes of com.teamjmonkey.controls.FoodControl

Copyright © 2018 www.massapicom. 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.