public static void addPredators(World w)
 {
     //I cheat and store a copy of the ANN in everything so I don't have to make special cases for
     //heterogeneous and homogeneous Worlds
     w.addPlayer(new Predator(300, 500, w.agentSize, w.agentSize, w.bigBrain));
     w.addPlayer(new Predator(400, 500, w.agentSize, w.agentSize, w.bigBrain));
     w.addPlayer(new Predator(500, 500, w.agentSize, w.agentSize, w.bigBrain));
     w.addPlayer(new Predator(600, 500, w.agentSize, w.agentSize, w.bigBrain));
     w.addPlayer(new Predator(700, 500, w.agentSize, w.agentSize, w.bigBrain));
 }
Ejemplo n.º 2
0
 public static void addPredators(World w)
 {
     //I cheat and store a copy of the ANN in everything so I don't have to make special cases for
     //heterogeneous and homogeneous Worlds
     w.addPlayer(new Predator(300, 500, w.agentSize, w.agentSize, w.bigBrain));
     w.addPlayer(new Predator(400, 500, w.agentSize, w.agentSize, w.bigBrain));
     w.addPlayer(new Predator(500, 500, w.agentSize, w.agentSize, w.bigBrain));
     w.addPlayer(new Predator(600, 500, w.agentSize, w.agentSize, w.bigBrain));
     w.addPlayer(new Predator(700, 500, w.agentSize, w.agentSize, w.bigBrain));
 }
Ejemplo n.º 3
0
        public static World world5(INetwork network)
        {
            World w = new World(network);

            w.addPlayer(new Predator(500, 500, 5, 5, network));
            w.addEnemy(new Prey(650, 450, w.agentSize, w.agentSize));
            return(w);
        }
Ejemplo n.º 4
0
        public static World world2(INetwork network)
        {
            World w = new World(network);

            w.addPlayer(new Predator(500, 500, 10, 10, network));
            w.addEnemy(new Prey(425, 400, w.agentSize, w.agentSize));
            return(w);
        }
Ejemplo n.º 5
0
 public static void addPredators(World w)
 {
     if (NetworkPerPred != null)
     {
         w.addPlayer(new Predator(300, 500, w.agentSize, w.agentSize, NetworkPerPred[0]));
         w.addPlayer(new Predator(400, 500, w.agentSize, w.agentSize, NetworkPerPred[1]));
         w.addPlayer(new Predator(500, 500, w.agentSize, w.agentSize, NetworkPerPred[2]));
         w.addPlayer(new Predator(600, 500, w.agentSize, w.agentSize, NetworkPerPred[3]));
         w.addPlayer(new Predator(700, 500, w.agentSize, w.agentSize, NetworkPerPred[4]));
     }
     else
     {
         //I cheat and store a copy of the ANN in everything so I don't have to make special cases for
         //heterogeneous and homogeneous Worlds
         w.addPlayer(new Predator(300, 500, w.agentSize, w.agentSize, w.bigBrain));
         w.addPlayer(new Predator(400, 500, w.agentSize, w.agentSize, w.bigBrain));
         w.addPlayer(new Predator(500, 500, w.agentSize, w.agentSize, w.bigBrain));
         w.addPlayer(new Predator(600, 500, w.agentSize, w.agentSize, w.bigBrain));
         w.addPlayer(new Predator(700, 500, w.agentSize, w.agentSize, w.bigBrain));
     }
 }
 public static World world5(INetwork network)
 {
     World w = new World(network);
     w.addPlayer(new Predator(500, 500, 5, 5, network));
     w.addEnemy(new Prey(650, 450, w.agentSize, w.agentSize));
     return w;
 }
 public static World world2(INetwork network)
 {
     World w = new World(network);
     w.addPlayer(new Predator(500, 500, 10, 10, network));
     w.addEnemy(new Prey(425, 400, w.agentSize, w.agentSize));
     return w;
 }