public Enemy(Form1 form1, int i, Disposal Dis) { fieldLeft = 900; num = i; fieldTop = 10 + 120 * num; trashTop = 740; trashLeft = 10 + 120 * num; name = "CPU" + i; this.Dis = Dis; ShowDeck = new PlayCard(); ShowDeck.Name = "deck"; ShowDeck.Size = new System.Drawing.Size(70, 110); ShowDeck.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; ShowDeck.Image = global::dominion.Properties.Resources.back; ShowDeck.Location = new System.Drawing.Point(820, 10 + 120 * num); ShowTrash.Location = new System.Drawing.Point(740, 10 + 120 * num); ShowTrash.Name = "trash"; ShowTrash.Image = global::dominion.Properties.Resources.back; ShowTrash.Size = new System.Drawing.Size(70, 110); ShowTrash.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; ShowTrash.TabIndex = 8; ShowTrash.TabStop = false; ShowTrash.Visible = false; p.Visible = false; p.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; p.Size = new System.Drawing.Size(70, 110); this.form1 = form1; this.form1.Controls.Add(ShowDeck); this.form1.Controls.Add(ShowTrash); this.form1.Controls.Add(p); }
public Enemy(Form1 form1, int i,Disposal Dis) { fieldLeft = 900; num = i; fieldTop = 10 + 120 * num; trashTop = 740; trashLeft = 10 + 120 * num; name = "CPU"+i; this.Dis = Dis; ShowDeck = new PlayCard(); ShowDeck.Name = "deck"; ShowDeck.Size = new System.Drawing.Size(70, 110); ShowDeck.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; ShowDeck.Image = global::dominion.Properties.Resources.back; ShowDeck.Location = new System.Drawing.Point(820, 10 + 120 * num); ShowTrash.Location = new System.Drawing.Point(740, 10 + 120 * num); ShowTrash.Name = "trash"; ShowTrash.Image = global::dominion.Properties.Resources.back; ShowTrash.Size = new System.Drawing.Size(70, 110); ShowTrash.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; ShowTrash.TabIndex = 8; ShowTrash.TabStop = false; ShowTrash.Visible = false; p.Visible = false; p.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; p.Size = new System.Drawing.Size(70, 110); this.form1 = form1; this.form1.Controls.Add(ShowDeck); this.form1.Controls.Add(ShowTrash); this.form1.Controls.Add(p); }
public Me(Form1 f, Disposal Dis) { fieldLeft = 180; fieldTop = 540; name = "あなた"; this.Dis = Dis; ShowDeck = new Deck(this, ShowField, ShowHand); ShowTrash.Image = global::dominion.Properties.Resources.back; ShowTrash.Location = new System.Drawing.Point(20, 540); ShowTrash.Name = "trash"; ShowTrash.Size = new System.Drawing.Size(70, 110); ShowTrash.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; ShowTrash.TabIndex = 8; ShowTrash.TabStop = false; ShowTrash.Visible = false; p.Visible = false; p.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; p.Size = new System.Drawing.Size(70, 110); form1 = f; form1.Controls.Add(ShowDeck); form1.Controls.Add(ShowTrash); form1.Controls.Add(p); }