예제 #1
0
 public function setupMoves()
 {
     if ($this->flags->ordered) {
         $this->row_moves = new haxe_ds_IntMap();
         $moves = coopy_Mover::moveUnits($this->row_units);
         $_g1 = 0;
         $_g = $moves->length;
         while ($_g1 < $_g) {
             $i = $_g1++;
             $this->row_moves->set($moves[$i], $i);
             $i;
             unset($i);
         }
         $this->col_moves = new haxe_ds_IntMap();
         $moves = coopy_Mover::moveUnits($this->column_units);
         $_g11 = 0;
         $_g2 = $moves->length;
         while ($_g11 < $_g2) {
             $i1 = $_g11++;
             $this->col_moves->set($moves[$i1], $i1);
             $i1;
             unset($i1);
         }
     }
 }