Package transientlibs.maps.tiles

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


        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

            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

Related Classes of transientlibs.maps.tiles.TileEffect

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.