コード例 #1
0
        public override List <Field> GetAccessibleFields()
        {
            int dY = 0;

            if (Affiliation == PlayerAffiliation.Black)
            {
                dY = -1;
            }
            else if (Affiliation == PlayerAffiliation.White)
            {
                dY = 1;
            }

            return(MoveController.GetAccessibleFieldsPawn(Board, this, dY));
        }