Package game.control

Examples of game.control.ObjetController


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

TOP

Related Classes of game.control.ObjetController

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.