Example #1
0
 public void sendMsg() {
   if (E_TIP.GAMEOVER.ordinal() == mPicId) {
     Message msg = new Message();
     msg.what = ControlCenter.GAME_OVER_END;
     ControlCenter.mHandler.sendMessage(msg);
   }
 }
Example #2
0
 public void run() {
   int maxW = 128;
   int minW = 32;
   int deltaW = 8;
   int deltaH = 2;
   if (!mStop) {
     if (0 == mStep) {
       mDeltaW += deltaW;
       mDeltaH += deltaH;
       if (mDeltaW >= maxW) {
         mStep = 1;
       }
     } else if (1 == mStep) {
       int keep = 10;
       if (E_TIP.GAMEOVER.ordinal() == mPicId) {
         keep = 40;
       }
       mKeep++;
       if (mKeep >= keep) {
         mKeep = 0;
         mStep = 2;
       }
     } else if (2 == mStep) {
       mDeltaW -= deltaW;
       mDeltaH -= deltaH;
       if (mDeltaW <= minW) {
         mStep = 3;
       }
     } else if (3 == mStep) {
       mStop = true;
       sendMsg();
     }
   }
 }