public void AppearFinished(Cell x) { Program.state--; if (Program.state == 0) { Program.PlusScore(Board.Check()); Board.CheckGameOver(); } }
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); }
public void DisappearFinished(Cell x) { this.pic.Image = null; Program.state--; }
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(); } } }
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(); } } }