Example #1
0
 // Constructor
 internal Player(CheckersENums.ePlayerType i_Type, string i_Name, CheckersENums.ePlayerColor i_Color)
 {
     this.m_Type  = i_Type;
     this.m_Name  = i_Name;
     this.m_Score = 0;
     this.m_Color = i_Color;
 }
Example #2
0
            internal PiecePictureBox(CheckersENums.eShape i_Shape, Point i_Location)
            {
                this.ClientSize = new Size(FormGameBoard.k_CellSize, FormGameBoard.k_CellSize);
                this.Location   = i_Location;
                m_Shape         = i_Shape;
                switch (i_Shape)
                {
                case CheckersENums.eShape.Black:
                    this.m_Color = CheckersENums.ePlayerColor.Black;
                    this.Image   = global::CheckersUI.Properties.Resources.black_piece;
                    break;

                case CheckersENums.eShape.BlackKing:
                    this.m_Color = CheckersENums.ePlayerColor.Black;
                    this.Image   = global::CheckersUI.Properties.Resources.black_king;
                    break;

                case CheckersENums.eShape.White:
                    this.m_Color = CheckersENums.ePlayerColor.White;
                    this.Image   = global::CheckersUI.Properties.Resources.white_piece;
                    break;

                case CheckersENums.eShape.WhiteKing:
                    this.m_Color = CheckersENums.ePlayerColor.White;
                    this.Image   = global::CheckersUI.Properties.Resources.white_king;
                    break;
                }
            }
Example #3
0
 public Piece(CheckersENums.eShape i_Shape, CheckersENums.ePlayerColor i_Color)
 {
     m_Shape = i_Shape;
     m_Color = i_Color;
 }