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;
 }
Exemple #2
0
 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();
 }
Exemple #3
0
 public CurrentPlayer(Player p, SelectedPieceControl c, SelectionControl s)
     : this(p)
 {
     c.player = this;
     s.player = this;
     this.control = c;
     this.selectControl = s;
 }
Exemple #4
0
 public CurrentPlayer(Player p)
 {
     this.Name = p.Name;
     this.hand = p.hand;
     this.color = p.color;
     this.selectedPiece = p.selectedPiece;
     this.finished = p.cannotPlay();
 }
Exemple #5
0
 //        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 });
 }
Exemple #6
0
 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();
 }
Exemple #7
-1
 public PieceTester()
 {
     InitializeComponent();
     p = new Player();
     playerColor = colors[new Random().Next(0, 3)]; // Initialize with a random color instead of black
     selectedPiece = new Tile();
 }