Package eas.simulation.spatial.sim2D.standardEnvironments

Examples of eas.simulation.spatial.sim2D.standardEnvironments.AbstractEnvironment2DFast.addCollidingAgent()


        for (int i = 0; i < 20; i++) {
            Roboter r = new Roboter(10 + i, env, rand, params, false, 360);
            MARBBrain<Roboter> b = new MARBBrain<Roboter>(r, params);
            b.getMarb().erzeugeAusStdSequenz("002, 003, 003, 250, 000, 012, 001, 002, 000, 005, 000, 012, 004, 004, 000, 007, 000, 011, 000, 012, 001, 002, 000, 005, 000, 012, 004, 000, 012, 005, 000, 006, 000, 010, 000, 012, 003, 001, 000, 004, 000, 011, 000, 011, 000, 000, 005, 001, 000, 000, 000, 005, 004, 001, 001, 000, 000, 000");
            r.implantBrain(b);
            env.addCollidingAgent(r, new Vector2D(400 + i * 30, 200 - i * 30), rand.nextDouble() * 360);
        }
       
        return new AbstractEnvironment2DFast[] {env};
    }

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.