Package insects

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


   
    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

Related Classes of insects.AntHill

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.