Package game.control

Examples of game.control.SpellController


    @Override
    public InventoryMode EnterRequest() {
        final Fighter fighter = fighterListModel.get(currentFighter);
        final boolean utilisable = (currentSpell.getUse() == Utilization.OUTSIDE_BATTLE || currentSpell.getUse() == Utilization.TWICE);
        if (currentSpell != null && utilisable) {
            final SpellController spellController = new SpellController(currentSpell, null);
            if (currentSpell.getTarget() == Target.ALLY || currentSpell.getTarget() == Target.ENEMY) {
                spellController.castSpell(fighter, fighter);
            } else {
                spellController.castSpell(fighter, fighterListModel);
            }
        }
        return InventoryMode.SAME;
    }
View Full Code Here

TOP

Related Classes of game.control.SpellController

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.