Ejemplo n.º 1
0
 public void AppearFinished(Cell x)
 {
     Program.state--;
     if (Program.state == 0)
     {
         Program.PlusScore(Board.Check());
         Board.CheckGameOver();
     }
 }
Ejemplo n.º 2
0
 public SizeAnimation(int startDelay, int keepTime, int fromSize, int toSize, Cell x, OnFinished onFinished)
 {
     this.startDelay = startDelay;
     this.keepTime = keepTime;
     this.curTime = 0;
     this.fromSize = fromSize;
     this.toSize = toSize;
     this.x = x;
     this.onFinished = onFinished;
     this.Interval = 20;
     this.Tick += new System.EventHandler(this.Update);
     this.Enabled = true;
     x.pic.Size = new System.Drawing.Size(0, 0);
 }
Ejemplo n.º 3
0
 public void DisappearFinished(Cell x)
 {
     this.pic.Image = null;
     Program.state--;
 }
Ejemplo n.º 4
0
 public void TargetMoveFinished(Cell x)
 {
     Program.state--;
     if (Program.state == 0)
     {
         int plusScore = Board.Check();
         Program.PlusScore(plusScore);
         if (plusScore == 0)
         {
             Board.PutNext();
             Program.GetNext();
         }
     }
 }
Ejemplo n.º 5
0
 public void MoveFinished(Cell x)
 {
     this.pic.Image = null;
     this.kind = 0;
     Program.state--;
     if (Program.state == 0)
     {
         int plusScore = Board.Check();
         Program.PlusScore(plusScore);
         if (plusScore == 0)
         {
             Board.PutNext();
             Program.GetNext();
         }
     }
 }