@@ -0,0 +1,1235 @@
+package hypernova.activities;%0A%0Aimport hypernova.Ship;%0Aimport hypernova.Universe;%0Aimport hypernova.pilots.SpaceFactory;%0Aimport hypernova.pilots.PilotFactory;%0A%0Apublic class FactoryBattle extends hypernova.Activity %7B%0A    public static final double SPREAD = 250.0;%0A    public static final double RATE = 150.0;%0A    public static final double GMEAN = 10;%0A    public static final double GVAR = 5;%0A    public static final double GRATE = 0.2;%0A%0A    public void realize(double x, double y) %7B%0A        createFactory(%22Humans%22, x, y, RATE / 1.5);%0A        for (int i = 0; i %3C 2; i++) %7B%0A            int dx = 1, dy = 1;%0A            if (i %3E 0 && i %3C 3) dx = -1;%0A            if (i %25 2 == 0) dy = -1;%0A            createFactory(%22Invaders%22, SPREAD * dx + x, SPREAD * dy + y, RATE);%0A        %7D%0A    %7D%0A%0A    private void createFactory(String faction, double x, double y,%0A                               double rate) %7B%0A        Universe u = Universe.get();%0A        Ship f = new Ship(%22factory%22);%0A        f.setFaction(faction).setPosition(x, y, 0);%0A        PilotFactory pf = new PilotFactory.HunterSeekerFactory();%0A        SpaceFactory p = new SpaceFactory(f, %22drone%22, rate, pf);%0A        p.addGold(GMEAN, GVAR, GRATE);%0A        f.setPilot(p);%0A        u.add(f);%0A    %7D%0A%7D%0A

Create FactoryBattle Activity.