Esempio n. 1
0
 public HeroPowerPortret(HeroPortret p)
 {
     parent = p;
     center = parent.center;
     parent.Controls.Add(this);
     MouseUp += HeroPowerPortret_MouseUp;
 }
Esempio n. 2
0
        public CardPortret(ControlCenter cc, Card c)
        {
            center = cc;
            card   = c;

            DoubleBuffered = true;
            MouseUp       += CardPortret_MouseUp;
            BackColor      = ColorUnselected;
        }
        public HandControl(ControlCenter c, bool APlayer)
        {
            IsAPlayer = APlayer;
            center    = c;
            game      = center.game;
            center.parent.Controls.Add(this);

            //center.game.OnStart += loadHand;
            loadme();
        }
Esempio n. 4
0
        public HeroPortret(ControlCenter c, bool isA)
        {
            center = c;
            IsA    = isA;
            center.game.OnStart += loadHeroes;
            powerC = new HeroPowerPortret(this);

            DoubleBuffered = true;
            center.parent.Controls.Add(this);

            MouseUp += HeroPortret_MouseUp;
        }
Esempio n. 5
0
        public GamingForm(GameInstance g)
        {
            CheckForIllegalCrossThreadCalls = false;
            KeyPreview      = true;
            StartPosition   = FormStartPosition.CenterScreen;
            FormBorderStyle = FormBorderStyle.FixedToolWindow;

            Size = new Size(1300, 700);

            center = new ControlCenter(g, this);

            center.boardC.Location = BoardControl.StdLocation(center.boardC);

            center.HeroA.Location = HeroPortret.DefaultLocation(center.HeroA);
            center.HeroB.Location = HeroPortret.DefaultLocation(center.HeroB);

            center.AHand.Location = HandControl.StdLocation(center.AHand, false);
            center.BHand.Location = HandControl.StdLocation(center.BHand, true);

            center.endButt.Location = EndTurnButton.StdLocation(center.endButt);

            Load += StdForm_Load;
        }