Example #1
0
        public void init(DPanel target, int w, int h)
        {
            envW         = w;
            envH         = h;
            objCounts    = new int[4];
            objCounts[0] = objCounts[1] = objCounts[2] = objCounts[3] = 0;

            strategyCounts    = new int[4];
            strategyCounts[0] = strategyCounts[1] = strategyCounts[2] = strategyCounts[3] = 0;

            countHistory         = new List <int[]>();
            strategyCountHistory = new List <int[]>();

            drawer = new GridDrawer(target);
        }
        public void init(DPanel target, int w, int h)
        {
            envW = w;
            envH = h;
            objCounts = new int[4];
            objCounts[0] = objCounts[1] = objCounts[2] = objCounts[3] = 0;

            strategyCounts = new int[4];
            strategyCounts[0] = strategyCounts[1] = strategyCounts[2] = strategyCounts[3] = 0;

            countHistory = new List<int[]>();
            strategyCountHistory = new List<int[]>();

            drawer = new GridDrawer(target);
        }