Beispiel #1
0
 // place the planes
 // 返回false表示要把该飞机放回棋盘外
 public boolean placePlane(int num, int row, int col, int d) {
   // get real row col
   Tran.in(row, col, d);
   row = Tran.realRow;
   col = Tran.realCol;
   return placePlanePv(num, row, col, d);
 }
Beispiel #2
0
 public int getCol(int num) {
   Tran.outCol(getColPv(num), plane[num].d);
   return Tran.realCol;
 }
Beispiel #3
0
 public int getRow(int num) {
   Tran.outRow(getRowPv(num), plane[num].d);
   return Tran.realRow;
 }