Package miagent.WorldModel

Examples of miagent.WorldModel.GameMode


        return decideSuperDummyStaticsSecond(trial);
    }

    /** Decide what the dynamic player should do*/
    public Actions decideDynamic() {
        GameMode mode = MIAgent.model.getCurrentGameMode();
        if (mode == WorldModel.GameMode.AGGRESSIVE) {
            if (MIAgent.enableLog) System.out.println("\t" + DecisionModule.class.getName() + "  : mode is agressive");
            return decideDynamicAggressive();
        } else if (mode == WorldModel.GameMode.ATTACK_PLAN) {
            if (MIAgent.enableLog) System.out.println("\t" + DecisionModule.class.getName() + "  : mode is ATTACK");
View Full Code Here


    }

    /** Decide what the goal keeper should do*/
    public Actions decideGoalKeeper() {
        State current = MIAgent.model.getLastState();
        GameMode mode = MIAgent.model.getCurrentGameMode();

        if (mode == WorldModel.GameMode.FRIEND_GOAL_KICK) {
            if (current.getFriendGoal().getY() > 5) {
                return Actions.DASH_NORTH;
            }
View Full Code Here

        return GoalKeeperAction.getAction(current);
    }

    /** Decide what the first static player should do*/
    public Actions decideStatic1() {
        GameMode mode = MIAgent.model.getCurrentGameMode();
        if (mode == WorldModel.GameMode.ATTACK_PLAN) {
            if (MIAgent.enableLog) System.out.println("\t" + DecisionModule.class.getName() + " Static 1 Action : " + attackActions[1]);
            return attackActions[1];
            // return AttackYaRab.getActions()[1];
        }
View Full Code Here

    }

    /** Decide what the second static player should do*/
    public Actions decideStatic2() {
        GameMode mode = MIAgent.model.getCurrentGameMode();
        if (mode == WorldModel.GameMode.ATTACK_PLAN) {

            if (MIAgent.enableLog) System.out.println("\t" + DecisionModule.class.getName() + " Static 2 Action : " + attackActions[2]);
            return attackActions[2];
            // return AttackYaRab.getActions()[2];
View Full Code Here

        }
    }

    /** Decide what the third static player should do*/
    public Actions decideStatic3() {
        GameMode mode = MIAgent.model.getCurrentGameMode();
        if (mode == WorldModel.GameMode.ATTACK_PLAN) {
            if (MIAgent.enableLog) System.out.println("\t" + DecisionModule.class.getName() + " Static 3 Action : " + attackActions[3]);
            return attackActions[3];
            //return AttackYaRab.getActions()[3];

View Full Code Here

TOP

Related Classes of miagent.WorldModel.GameMode

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.