package battlecode.world.signal;

import java.util.Arrays;

import battlecode.engine.signal.Signal;
import battlecode.world.NeutralsMap;

/**
 * TODO: update docs
 *
 * @author axc
 */
public class NeutralsDensitySignal extends Signal {
    private final double[][] amounts;
    public NeutralsDensitySignal(NeutralsMap nm) {
        amounts = nm.copyOfCurrentAmounts();
    }

    public double[][] getAmounts() {
        return amounts;
    }
}

@@ -248,22 +248,19 @@
 e final 
-double
+int
 %5B%5D%5B%5D amo
@@ -324,23 +324,31 @@
         
-amounts
+double%5B%5D%5B%5D temp
  = nm.co
@@ -377,28 +377,270 @@
     
-%7D%0A%0A    public double
+    amounts = new int%5Btemp.length%5D%5Btemp%5B0%5D.length%5D;%0A        for (int i = 0; i %3C temp.length; i++) %7B%0A            for (int j = 0; j %3C temp%5Bi%5D.length; j++) %7B%0A                amounts%5Bi%5D%5Bj%5D = (int) Math.round(temp%5Bi%5D%5Bj%5D);%0A            %7D%0A        %7D%0A    %7D%0A%0A    public int
 %5B%5D%5B%5D

Save storage in neutrals density signal