Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import de.ur.mi.graphicsapp.GraphicsApp;
- import simulator.ColonySimulator;
- import world.ColonyView;
- public class AntColony extends GraphicsApp {
- private static final int WIDTH = 300;
- private static final int HEIGHT = 300;
- private ColonySimulator simulator;
- private ColonyView view;
- public void setup() {
- size(WIDTH, HEIGHT);
- simulator = new ColonySimulator(WIDTH, HEIGHT);
- view = new ColonyView();
- simulator.addObserver(view);
- simulator.start();
- }
- public void draw() {
- simulator.tick();
- }
- }
Add Comment
Please, Sign In to add comment