private void Box_Click(object sender, EventArgs e)
        {
            TechnologyCard card = CardOwner.TechnologyCardList[(int)((PictureBox)sender).Tag];

            if (card.CardEvent is WildResourceEvent && !((WildResourceEvent)card.CardEvent).IsUsed)
            {
                ((WildResourceEvent)card.CardEvent).UseResource();
            }
            ((PictureBox)sender).Image = card.Image;
        }
Exemplo n.º 2
0
 public DiceEvent(ref TechnologyCard card)
 {
     Card = card;
 }
Exemplo n.º 3
0
 public BudgetPoints(ref TechnologyCard card, int multiplier)
 {
     Card       = card;
     Multiplier = multiplier;
 }
Exemplo n.º 4
0
 public WorkerPoints(ref TechnologyCard card, int multiplier)
 {
     Card       = card;
     Multiplier = multiplier;
 }
Exemplo n.º 5
0
 public ResearchTokenPoints(ref TechnologyCard card, int multiplier)
 {
     Card       = card;
     Multiplier = Multiplier;
 }
Exemplo n.º 6
0
 public ClientCardPoints(ref TechnologyCard card, int multiplier)
 {
     Card       = card;
     Multiplier = multiplier;
 }
Exemplo n.º 7
0
 public GreenCardPoints(ref TechnologyCard card, int SymbolNum)
 {
     Card = card;
     Card.IsGreenBackground = true;
     Symbol = SymbolNum;
 }
Exemplo n.º 8
0
 public DiceResourceEvent(ref TechnologyCard card, int resourceIndex)
 {
     Card         = card;
     ResourceType = resourceIndex;
 }
Exemplo n.º 9
0
 public TempResearchEvent(ref TechnologyCard card, int researchLevel)
 {
     Card          = card;
     ResearchLevel = researchLevel;
     IsUsed        = false;
 }
Exemplo n.º 10
0
 public WildResourceEvent(ref TechnologyCard card)
 {
     Card   = card;
     IsUsed = false;
 }
Exemplo n.º 11
0
 public DrawCardEvent(ref TechnologyCard card)
 {
     Card = card;
 }
Exemplo n.º 12
0
 public ResearchEvent(ref TechnologyCard card)
 {
     Card = card;
 }
Exemplo n.º 13
0
 public PointsEvent(ref TechnologyCard card, int points)
 {
     Card   = card;
     Points = points;
 }
Exemplo n.º 14
0
 public MoneyEvent(ref TechnologyCard card, int money)
 {
     Card  = card;
     Money = money;
 }
Exemplo n.º 15
0
 public BudgetEvent(ref TechnologyCard card)
 {
     Card = card;
 }
Exemplo n.º 16
0
 public ResourceEvent(ref TechnologyCard card, int Task, int Story, int Feature, int Epic)
 {
     Card      = card;
     Resources = new int[] { Task, Story, Feature, Epic };
 }
Exemplo n.º 17
0
 public WildResourceForm(TechnologyCard card)
 {
     InitializeComponent();
     Card = card;
 }