Ejemplo n.º 1
0
 public Supply(Player p, int n,int m,Form1 f,string s)
 {
     cost = n;
     player = p;
     Click += new EventHandler(CardClick);
     this.Counter.Location = new System.Drawing.Point(40, 0);
     this.Counter.Size = new System.Drawing.Size(30, 30);
     this.Counter.Image = global::dominion.Properties.Resources.カウンター;
     this.Counter.BackColor = System.Drawing.Color.Transparent;
     this.Counter.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.Counter.Name = "カウント";
     this.Supplycount.AutoSize = true;
     this.Supplycount.BackColor = System.Drawing.Color.Transparent;
     this.Supplycount.Location = new System.Drawing.Point(8, 8);
     this.Supplycount.Name = "テキスト";
     this.Supplycount.Size = new System.Drawing.Size(17, 12);
     this.Supplycount.Text = m.ToString();
     this.Counter.Controls.Add(this.Supplycount);
     this.Controls.Add(this.Counter);
     Type[s] = true;
     Count = m;
     this.f = f;
     this.f = player.GetForm();
     MouseHover += new EventHandler(PopText);
     MouseLeave += new EventHandler(CloseText);
 }
Ejemplo n.º 2
0
 public UndergroundRepository(List<PlayCard> Field, List<PlayCard> ShowHand, Player Player)
 {
     this.Field = Field;
     this.Hand = ShowHand;
     player = Player;
     Type["action"] = true;
     cost = 2;
 }
Ejemplo n.º 3
0
 public Market(Player player)
 {
     this.player = player;
     Click += new EventHandler(MoveField);
     Click += new EventHandler(DoAction);
     Type["action"] = true;
     cost = 5;
 }
Ejemplo n.º 4
0
 /*
  * 場に出したときにアクションなどが0になる
  */
 public Remodel(Player Player)
 {
     player = Player;
     Click += new EventHandler(MoveField);
     Click += new EventHandler(DoAction);
     Type["action"] = true;
     cost = 4;
     action = 1;
 }
Ejemplo n.º 5
0
 public Mansion(List<PlayCard> ShowField, List<PlayCard> ShowHand, Player player)
 {
     // TODO: Complete member initialization
     this.Field = ShowField;
     this.Hand = ShowHand;
     this.player = player;
     Type["victory"] = true;
     victory = 1;
     cost = 2;
 }
Ejemplo n.º 6
0
 public Village(Player Player)
 {
     player = Player;
     Click += new EventHandler(MoveField);
     Click += new EventHandler(DoAction);
     Type["action"] = true;
     cost = 3;
     action = -1;
     clicked = false;
 }
Ejemplo n.º 7
0
 public Militia(List<PlayCard> ShowField, List<PlayCard> ShowHand, Player player)
 {
     this.Field = ShowField;
     this.Hand = ShowHand;
     this.player = player;
     Click += new EventHandler(MoveField);
     Click += new EventHandler(DoAction);
     Type["action"] = true;
     action = 1;
     cost = 4;
 }
Ejemplo n.º 8
0
 public Gold(List<PlayCard> ShowField, List<PlayCard> ShowHand, Player player)
 {
     this.Field = ShowField;
     this.Hand = ShowHand;
     this.player = player;
     money = 3;
     Type["money"] = true;
     Click += new EventHandler(AddMoney);
     Click += new EventHandler(MoveField);
     cost = 6;
 }
Ejemplo n.º 9
0
 public UndergroundRepository(List<PlayCard> Field, List<PlayCard> ShowHand,Player Player,Form1 form1,Deck deck)
 {
     this.Field = Field;
     this.Hand = ShowHand;
     player = Player;
     Click += new EventHandler(MoveField);
     Click += new EventHandler(DoAction);
     this.form1 = form1;
     button.Location = new System.Drawing.Point(820, 540);
     button.Text = "決定";
     button.Visible = false;
     form1.Controls.Add(button);
     Deck = deck;
     button.Click += new EventHandler(DrawCard);
     Type["action"] = true;
     cost = 2;
 }
Ejemplo n.º 10
0
 internal void AddTrash(Player p)
 {
     PlayCard hoge = new PlayCard();
     hoge.Size = new System.Drawing.Size(70, 110);
     hoge.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     f.Controls.Add(hoge);
     hoge.Visible = true;
     hoge.Image = Image;
     hoge.Location = Location;
     hoge.ChangePointPara(p.trashTop, p.trashLeft);
     Count--;
     Supplycount.Text = Count.ToString();
     if (Count == 0)
     {
         Image = null;
     }
     Refresh();
     hoge.Visible = false;
     hoge.Refresh();
 }
Ejemplo n.º 11
0
 internal void SetEnemy(Player p)
 {
     Enemy.Add(p);
 }
Ejemplo n.º 12
0
 public Curse(Player p)
 {
     player = p;
     Image = global::dominion.Properties.Resources.呪い;
     cost = 0;
 }