private void givePoints() { int poss = activePlayer.getPoss(); if (poss % 3 == 0) { activePlayer.setScore(activePlayer.getScore() + 3); plus_score_label.ForeColor = activePlayer.getColor(); plus_score_label.Text = "+3"; plus_score_label.Visible = true; } if (poss % 5 == 0) { activePlayer.setScore(activePlayer.getScore() + 5); plus_score_label.ForeColor = activePlayer.getColor(); plus_score_label.Text = "+5"; plus_score_label.Visible = true; } if (activePlayer.getPlayerNum() == 1) { p1_score.Text = activePlayer.getScore() + ""; } else if (activePlayer.getPlayerNum() == 2) { p2_score.Text = activePlayer.getScore() + ""; } else if (activePlayer.getPlayerNum() == 3) { p3_score.Text = activePlayer.getScore() + ""; } else if (activePlayer.getPlayerNum() == 4) { p4_score.Text = activePlayer.getScore() + ""; } }
private void drawPieces() { //p1 is true coordinates //p2 - p4 should have an offset value of 10 for visibility // p2 = x+10,y+10 // p3 = y+10 // p4 = x+10 if (p1.isPlaying) { if (p1.getPoss() < squareXVal.Length) { drawCircle(squareXVal[p1.getPoss()], squareYVal[p1.getPoss()], p1.getColor()); } } if (p2.isPlaying) { if (p2.getPoss() < squareXVal.Length) { drawCircle(squareXVal[p2.getPoss()] + 10, squareYVal[p2.getPoss()] + 10, p2.getColor()); } } if (p3.isPlaying) { if (p3.getPoss() < squareXVal.Length) { drawCircle(squareXVal[p3.getPoss()], squareYVal[p3.getPoss()] + 10, p3.getColor()); } } if (p4.isPlaying) { if (p4.getPoss() < squareXVal.Length) { drawCircle(squareXVal[p4.getPoss()] + 10, squareYVal[p4.getPoss()], p4.getColor()); } } }