private void makeGridView(int paramInt) {
   this.hudLayer.updateHudObjectVisibility(false, false, false);
   if (this.gridLayer != null) {
     this.gridLayer.removeGridViewWithAction();
   }
   this.gridLayer = new GridLayer(this);
   this.gridLayer.setPosition(0.0f, this.wySize.height - 120.0f);
   addChild(this.gridLayer, 25);
   this.gridLayer.autoRelease(true);
   this.gridLayer.setZOrder(50);
   bringToFront(this.gridLayer);
   this.gridLayer.populateGrid();
   MoveTo localMoveTo = MoveTo.make(0.5f, 0.0f, -1000.0f, 0.0f, 0.0f);
   this.gridLayer.runAction(localMoveTo);
 }
  /**
   * @param event android.view.MotionEvent
   * @return boolean true
   */
  @Override
  public boolean wyTouchesBegan(MotionEvent event) {
    WYPoint point = Director.getInstance().convertToGL(event.getX(), event.getY());
    switch (this.mode) {
      case MODE_TOUCH_GATE:
        if ((this.almirahGate.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.gateState == MODE_GATE_CLOSED)) {
          this.almirahGate.runAction(
              MoveTo.make(
                  1.0f,
                  this.almirahGate.getPositionX(),
                  this.almirahGate.getPositionY(),
                  this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f),
                  this.almirahGate.getPositionY()));

          this.particle.runAction(
              MoveTo.make(1.0f, this.particle.getPositionX(), point.y, -300.0f, point.y));

          this.gateState = MODE_GATE_OPEN;
          this.glassMode = GLASS_MODE_TOUCH_ENABLED_TRUE;
        } else if (this.almirahGate.getBoundingBoxRelativeToWorld().containsPoint(point)
            && (this.gateState == MODE_GATE_OPEN)) {
          this.almirahGate.runAction(
              MoveTo.make(
                  1.0f,
                  this.almirahGate.getPositionX(),
                  this.almirahGate.getPositionY(),
                  this.wySize.width / 2.0f,
                  this.almirahGate.getPositionY()));

          this.particle.runAction(
              MoveTo.make(
                  1.0f,
                  this.particle.getPositionX(),
                  point.y,
                  this.wySize.width + 300.0f,
                  point.y));
          this.gateState = MODE_GATE_CLOSED;
          this.glassMode = GLASS_MODE_TOUCH_ENABLED_FALSE;
        }

        // glass01
        if ((this.glass01.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(0).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(0);
            setPouringScene();
          }
        } else // glass02
        if ((this.glass02.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(1).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(1);
            setPouringScene();
          }
        } else // glass03
        if ((this.glass03.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(2).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(2);
            setPouringScene();
          }
        } else // glass04
        if ((this.glass04.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(3).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(3);
            setPouringScene();
          }
        } else // glass05
        if ((this.glass05.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(4).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(4);
            setPouringScene();
          }
        } else // glass06
        if ((this.glass06.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(5).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(5);
            setPouringScene();
          }
        } else // glass07
        if ((this.glass07.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(6).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(6);
            setPouringScene();
          }
        } else // glass08
        if ((this.glass08.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(7).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(7);
            setPouringScene();
          }
        } else // glass09
        if ((this.glass09.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(8).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(8);
            setPouringScene();
          }
        } else // glass10
        if ((this.glass10.getBoundingBoxRelativeToWorld().containsPoint(point))
            && (this.almirahGate.getPositionX()
                == this.wySize.width / 2.0f - (this.almirahGate.getWidth() - 50.0f))) {
          if (SharedData.getInstance().glassList.get(9).isLocked()) {
            makeItemLockedDialog();
          } else {
            SharedData.getInstance().player.usedGlass = SharedData.getInstance().glassList.get(9);
            setPouringScene();
          }
        }

        break;
      default:
        break;
    }
    return true;
  }