Package game.control

Examples of game.control.SkillController


    @Override
    public InventoryMode EnterRequest() {
        final Fighter fighter = fighterListModel.get(currentFighter);
        final boolean utilisable = (currentSkill.getUse() == Utilization.OUTSIDE_BATTLE || currentSkill.getUse() == Utilization.TWICE);
        if (currentSkill != null && utilisable) {
            final SkillController skillController = new SkillController(currentSkill, null);
            //TODO: Finir les modifications ici pour adapter avec le système de combat
            if (currentSkill.getTarget() == Target.ALLY) {
                skillController.castSkill(null, fighter);
            }
            else {
                for(Fighter current : fighterListModel){
                    skillController.castSkill(fighter, current);
                }
            }
        }
        return InventoryMode.SAME;
    }
View Full Code Here

TOP

Related Classes of game.control.SkillController

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.