예제 #1
0
 private void babyDontCry() {
   mMilkSprite.setVisible(false);
   A19_9B_5_NAKIGOE1.stop();
   mCryLeftSprite.clearEntityModifiers();
   mCryRightSprite.clearEntityModifiers();
   mCryLeftSprite.setVisible(false);
   mCryRightSprite.setVisible(false);
   if (mFingerAnimatedSprite[4].isAnimationRunning()) {
     mFingerAnimatedSprite[4].stopAnimation();
   }
   mFingerAnimatedSprite[4].setCurrentTileIndex(0);
   resetBaby();
 }
예제 #2
0
  private void babyDring() {
    isHand = false;
    isUongSua = true;
    mMilkSprite.setVisible(false);
    mCryLeftSprite.setVisible(false);
    mCryRightSprite.setVisible(false);
    mCryLeftSprite.clearEntityModifiers();
    mCryRightSprite.clearEntityModifiers();
    A19_9B_5_NAKIGOE1.stop();
    A19_10_CHU.play();
    playSoundDelay(0.75f, A19_9D_5_WARAIGOE1);
    mFingerAnimatedSprite[4].animate(
        new long[] {750, 1200},
        new int[] {8, 9},
        0,
        new IAnimationListener() {

          @Override
          public void onAnimationFinished(AnimatedSprite arg0) {
            isHand = true;
            isUongSua = false;
            resetBaby();
            mFingerAnimatedSprite[4].setCurrentTileIndex(0);
          }

          @Override
          public void onAnimationFrameChanged(AnimatedSprite arg0, int arg1, int arg2) {
            // TODO Auto-generated method stub

          }

          @Override
          public void onAnimationLoopFinished(AnimatedSprite arg0, int arg1, int arg2) {
            // TODO Auto-generated method stub

          }

          @Override
          public void onAnimationStarted(AnimatedSprite arg0, int arg1) {
            // TODO Auto-generated method stub

          }
        });
  }
예제 #3
0
 public synchronized void stop(Sound sound) {
   sound.stop();
 }