예제 #1
0
 public void IsAbleToKing(CanKing ck)
 {
     if (m_selectable)
     {
         m_ableToKing = ck;
     }
 }
예제 #2
0
        public BoardSpace(int row, int col, Color c, Player owner, bool Selectable)
        {
            //InitializeComponent();

            // dont erase the form to reduce flicker, have the form dictate when it should be painted, and doublebuffer it for less flicker
            //this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true);

            // set appropriate fields
            m_row        = row;
            m_col        = col;
            m_background = c;
            IsSelected   = false;
            m_selectable = Selectable;
            m_ableToKing = CanKing.No;

            // Create the piece that belongs here
            PlaceMarker(owner);
        }