Package game.agent

Examples of game.agent.GroupAgent


  public void addGroupAgent(int nbAgents, Base source, Base destination, Player player) {
   
    Game game = Game.getInstance();
 
    try {
      GroupAgent groupAgent = new GroupAgent(nbAgents, source, destination, player);
      AppliWindow.getInstance().getLabelAgent().add(groupAgent);
      game.getAgentManager().addAgent(groupAgent);
    } catch (IOException e) {
      System.out.println("failed "+e);
      e.printStackTrace();
View Full Code Here


        }
      }
     
      // Move and handle units
      for(Iterator<GroupAgent> it = game.getAgentManager().getAgents().iterator(); it.hasNext();) {
        GroupAgent groupAgent = it.next();
        groupAgent.moveOneStep();
      }
     
      // Players get progressively more money
      game.economicalEvolution(0.05F);
     
View Full Code Here

TOP

Related Classes of game.agent.GroupAgent

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.