Package org.mctourney.autoreferee.goals

Examples of org.mctourney.autoreferee.goals.ScoreDummyGoal


    // get the named team
    AutoRefTeam team = match.getTeam(args[0]);
    if (team == null) return false;

    // find the named goal for this team
    ScoreDummyGoal goal = null;
    for (ScoreDummyGoal dgoal : team.getTeamGoals(ScoreDummyGoal.class))
      if (args[1].equalsIgnoreCase(dgoal.getName())) goal = dgoal;
    if (goal == null) return false;

    try
    {
      // go ahead and set the goal to the new score
      goal.setScore(Double.parseDouble(args[2]));

      // update objectives and recheck win conditions
      team.updateObjectives();
      match.checkWinConditions();
    }
View Full Code Here

TOP

Related Classes of org.mctourney.autoreferee.goals.ScoreDummyGoal

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.