package com.company;

import java.awt.*;

/**
 * Created by tomoki-n on 2015/04/16.
 */
public class Boardinfo {

    public static final int BOARD_TYPE_UNDEFINED = -1;
    public static final int BOARD_TYPE_A = 1;
    public static final int BOARD_TYPE_B = 2;
    public static final int BOARD_TYPE_C = 3;
    public static final int BOARD_TYPE_D = 4;
    public static final int BOARD_TYPE_AB = 5;
    public static final int BOARD_TYPE_CD = 6;

    /** Zpz */
    private Field[][] gameCell;
    /** jbg̈ʒu */
    private Point[][] unitLocation;

    /** ̕ێ */
    private int[] towerHold;
    private int towerCount = 3;
    /** `[̓_ */
    private int[] teamPoint;
    /** ̃`[ԍ */
    private int MyTeamID;

    /** Õjbg̈ʒu */
    private Point[][] prevUnitLocation;

    /** ݂̃{[h̃^Cv */
    private int boardType = BOARD_TYPE_UNDEFINED;

    /** jbgʒun */
    public Point[][] getUnitLocation() {
        return unitLocation;
    }

}

@@ -851,93 +851,1128 @@
 /** 
-jbg%CA%92un */%0A    public Point%5B%5D%5B%5D getUnitLocation() %7B%0A        return unitLocation;%0A    %7D%0A
+%C4%82%60%5BID */%0A    private int victoryTeamID = -1;%0A%0A%0A    /** _%D4%82%CC%8B */%0A    public int distance(Point a, Point b) %7B%0A        if(a.x == b.x) %7B%0A            return Math.abs(a.y - b.y);%0A        %7D else if(a.y == b.y) %7B%0A            return Math.abs(a.x - b.x);%0A        %7D else %7B%0A            int xdef = Math.abs(a.x - b.x);%0A            int ydef = Math.abs(a.y - b.y);%0A            return xdef %3E ydef?xdef:ydef;%0A        %7D%0A    %7D%0A%0A    /** jbg%CA%92un */%0A    public Point%5B%5D%5B%5D getUnitLocation() %7B%0A        return unitLocation;%0A    %7D%0A%0A    /** _ */%0A    public int getPoint()%7B%0A        int i,j;%0A        i=teamPoint%5B0%5D-teamPoint%5B1%5D;%0A        if(i%3E0)  victoryTeamID=0;%0A        else if(i%3C0)  victoryTeamID=1;%0A%0A        return Math.abs(i);%0A    %7D%0A%0A    /** %C5%82%DF%82%5E%5B */%0A    public Point%5B%5D%5B%5D gettower(Point%5B%5D%5B%5D pos)%7B%0A        Point t1 = Point%5B1%5D%5B4%5D;%0A        Point t2 = Point%5B4%5D%5B4%5D;%0A        Point t3 = Point%5B7%5D%5B4%5D;%0A%0A        int i,j,k;%0A        i=distance(Point pos,Point t1);%0A        j=distance(Point pos,Point t2);%0A        k=distance(Point pos,Point t3);%0A%0A        if(i%3Cj&&i%3Ck)  return(t1);%0A        else if(j%3Ci&&j%3Ck)  return(t2);%0A        else if(k%3Ci&&k%3Cj)  return(t3);%0A    %7D
 %0A%7D%0A

Add some method