public void setup(Player p) { this.nameLabel.Text = p.Name; this.numPieces.Text = p.piecesLeft.ToString(); this.score.Text = p.Score.ToString(); this.BackColor = p.color; }
public PlayerControl(Player p) : this() { this.playerName.Text = p.Name; this.playerName.BackColor = p.color; this.numleft.Text = p.piecesLeft.ToString(); this.scoreNum.Text = p.Score.ToString(); }
public CurrentPlayer(Player p, SelectedPieceControl c, SelectionControl s) : this(p) { c.player = this; s.player = this; this.control = c; this.selectControl = s; }
public CurrentPlayer(Player p) { this.Name = p.Name; this.hand = p.hand; this.color = p.color; this.selectedPiece = p.selectedPiece; this.finished = p.cannotPlay(); }
// private Thread nextturn; public BlokusGame() { InitializeComponent(); player1 = new Player("Cricket", colors[0]); player2 = new Player("Devon", colors[1]); player3 = new Player("Neil", colors[2]); player4 = new Player("Ruji", colors[3]); players.AddRange(new Player[] { player1, player2, player3, player4 }); }
public void setup(Player p) { this.playerName.Text = p.Name; this.playerName.BackColor = p.color; this.color = p.color; this.numleft.Text = p.piecesLeft.ToString(); this.scoreNum.Text = p.Score.ToString(); p.nameTag = this; p.nameTag.Refresh(); }
public PieceTester() { InitializeComponent(); p = new Player(); playerColor = colors[new Random().Next(0, 3)]; // Initialize with a random color instead of black selectedPiece = new Tile(); }