| | |
| | | |
| | | public abstract class TPCLIDConverter |
| | | { |
| | | private final static int SX1200 = 800; |
| | | private final static int SY1200 = 500; |
| | | public final static int SX1200 = 800; |
| | | public final static int SY1200 = 500; |
| | | public final static int SX600 = 400; |
| | | public final static int SY600 = 250; |
| | | |
| | | public static String CoordinateToTpclId(Coordinate dp) |
| | | { |
| | |
| | | |
| | | String CoordToTPCLID = ""; |
| | | |
| | | char mapID = CoordinateToSingleMapID(dp); |
| | | char mapID = coordinateToSingleMapID(dp); |
| | | |
| | | if (mapID == 'w') |
| | | { |
| | |
| | | return CoordToTPCLID; |
| | | } |
| | | |
| | | public static char CoordinateToSingleMapID(Coordinate dp) |
| | | public static char coordinateToSingleMapID(Coordinate dp) |
| | | { |
| | | char mapID = 'w'; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | private static int asciiToInt(String p1) |
| | | public static int asciiToInt(String p1) |
| | | { |
| | | if (p1.endsWith("A")) return 65; |
| | | if (p1.endsWith("B")) return 66; |
| | |
| | | } |
| | | |
| | | |
| | | private static char intToAscii(int p1) |
| | | public static char intToAscii(int p1) |
| | | { |
| | | switch (p1) |
| | | { |