Package ise.mace.agents

Examples of ise.mace.agents.WarAgent



    for (int i = 0; i < 10; i++)
    {
      //Communist group
      addAgent(new WarAgent(20, 2, AgentType.AC,
              0.1 + rand.nextDouble() / 10,
              0.1 + rand.nextDouble() / 10)
              );
      //Fascist group
      addAgent(new WarAgent(20, 2, AgentType.AC,
              0.1 + rand.nextDouble() / 10,
              0.9 + rand.nextDouble() / 10)
              );
      //Democrats
      addAgent(new WarAgent(20, 2, AgentType.AC,
              0.5 + rand.nextDouble() / 10,
              0.5 + rand.nextDouble() / 10)
              );
      //Anarchists
      addAgent(new WarAgent(20, 2, AgentType.AC,
              0.9 + rand.nextDouble() / 10,
              0.5 + rand.nextDouble() / 10)
              );
    }
  }
View Full Code Here

TOP

Related Classes of ise.mace.agents.WarAgent

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.