Пример #1
0
        // constructors

        public PokerGraphics(int width_, int height_, string pic_list_filename)
            : base(width_, height_, pic_list_filename)
        {
            // setup player rank display boxes
            PlayerRankDisplay[0] = new RectangleType(new RectangleDimension(30, 225, 125, 17));
            PlayerRankDisplay[1] = new RectangleType(new RectangleDimension(250, 30, 125, 17));
            PlayerRankDisplay[2] = new RectangleType(new RectangleDimension(610, 225, 125, 17));
            PlayerRankDisplay[3] = new RectangleType(new RectangleDimension(110, 450, 125, 17));
        }
        // constructors
        public CardGraphics(int width, int height, string pic_list_filename)
        {
            SetupSlate(width, height);



            // setup the different fonts that we will be using for text
            arialblk_8pt = new System.Drawing.Font("Arial Black", 8, FontStyle.Regular);

            // setup pens
            blkpen = new Pen(Color.Black, 1); // black pen width = 1
            redpen = new Pen(Color.Red, 1);   // red pen width = 1


            // setup the player boxes
            PlayerBox[0] = new RectangleType(new RectangleDimension(30, 255, 71 * 5, 96 * 2));
            PlayerBox[1] = new RectangleType(new RectangleDimension(250, 60, 71 * 5, 96 * 2));
            PlayerBox[2] = new RectangleType(new RectangleDimension(490, 255, 71 * 5, 96 * 2));
            PlayerBox[3] = new RectangleType(new RectangleDimension(250, 450, 71 * 5, 96 * 2));



            InitialBoardSetup(pic_list_filename);  // call this function last after everything else is setup
        }