Examples of Anthill


Examples of com.supinfo.anthill.Anthill

*/
public class Main {

    public static void main(String[] args) { 
              
        Anthill anthill1 = new Anthill();
        anthill1.initGame();
        for (int i = 1; i > 0; i++){ //boucle qui permet de générer un grand nombre d'age de fourmilière
        anthill1.nextGeneration();
        }
    }
View Full Code Here

Examples of insects.AntHill

      title.setText("Add this many Insects");
     
      if(e.getSource() == AntButton)
      {
        for(int i=0;i<num;i++)
        sim.add(new AntHill(Math.random()*3200,
             Math.random()*1800));
       
      }
      else if(e.getSource() == WaspButton)
      {
View Full Code Here

Examples of insects.AntHill

   
    Sandbox terrain=new Sandbox(3200, 1800);
    Simulation sim=new Simulation(terrain);
   
    //Seeding the simulation
    sim.add(new AntHill(100,100));
    sim.add(new AntHill(3000,1600));
   
    for(int i=0; i<numResources;i++)
    {
      sim.add(new Resource(Math.random()*terrain.getWidth(),
           Math.random()*terrain.getHeight(), 20, 5));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.