Examples of TileEffect


Examples of transientlibs.maps.tiles.TileEffect

    public boolean hasEffectByCode(String byCode) {
        return hasEffect(Binding.readBinding(Binding.effectBinding, byCode));
    }

    public void addEffect(int byID) {
        effects.add(new TileEffect(byID));
    }
View Full Code Here

Examples of transientlibs.maps.tiles.TileEffect

        effects.add(new TileEffect(byID));
    }

    public void addEffect(int byID, int amount) {

        TileEffect tryEffect = returnEffect(byID);

        if (tryEffect == null) {
            effects.add(new TileEffect(byID));
        } else {
            tryEffect.unitsLeft.value = tryEffect.unitsLeft.value + amount;
        }
    }
View Full Code Here

Examples of transientlibs.maps.tiles.TileEffect

            tryEffect.unitsLeft.value = tryEffect.unitsLeft.value + amount;
        }
    }

    public void removeEffect(int byID, int amount) {
        TileEffect tryEffect = returnEffect(byID);

        if (tryEffect != null) {

            if (tryEffect.unitsLeft.value > amount) {
                tryEffect.unitsLeft.value = tryEffect.unitsLeft.value - amount;
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.