public bool move(int move_x, int move_y) { //copy puyopuyo prev_puyo = new puyopuyo(); prev_puyo.init(); prev_puyo.copy(m_temp_puyo); //move m_temp_puyo.move(new Point(move_x, move_y)); //check if (m_game_field.check_collision(ref m_temp_puyo) == true) { m_temp_puyo.copy(prev_puyo); return(true); } else { return(false); } }
public void rotate(bool isRight) { //copy puyopuyo prev_puyo = new puyopuyo(); prev_puyo.init(); prev_puyo.copy(m_temp_puyo); //rotate m_temp_puyo.rotate(isRight); //check if (m_game_field.check_collision(ref m_temp_puyo) == true) { m_temp_puyo.copy(prev_puyo); } }