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;
        }
Exemple #2
0
 public DiceEvent(ref TechnologyCard card)
 {
     Card = card;
 }
Exemple #3
0
 public BudgetPoints(ref TechnologyCard card, int multiplier)
 {
     Card       = card;
     Multiplier = multiplier;
 }
Exemple #4
0
 public WorkerPoints(ref TechnologyCard card, int multiplier)
 {
     Card       = card;
     Multiplier = multiplier;
 }
Exemple #5
0
 public ResearchTokenPoints(ref TechnologyCard card, int multiplier)
 {
     Card       = card;
     Multiplier = Multiplier;
 }
Exemple #6
0
 public ClientCardPoints(ref TechnologyCard card, int multiplier)
 {
     Card       = card;
     Multiplier = multiplier;
 }
Exemple #7
0
 public GreenCardPoints(ref TechnologyCard card, int SymbolNum)
 {
     Card = card;
     Card.IsGreenBackground = true;
     Symbol = SymbolNum;
 }
Exemple #8
0
 public DiceResourceEvent(ref TechnologyCard card, int resourceIndex)
 {
     Card         = card;
     ResourceType = resourceIndex;
 }
Exemple #9
0
 public TempResearchEvent(ref TechnologyCard card, int researchLevel)
 {
     Card          = card;
     ResearchLevel = researchLevel;
     IsUsed        = false;
 }
Exemple #10
0
 public WildResourceEvent(ref TechnologyCard card)
 {
     Card   = card;
     IsUsed = false;
 }
Exemple #11
0
 public DrawCardEvent(ref TechnologyCard card)
 {
     Card = card;
 }
Exemple #12
0
 public ResearchEvent(ref TechnologyCard card)
 {
     Card = card;
 }
Exemple #13
0
 public PointsEvent(ref TechnologyCard card, int points)
 {
     Card   = card;
     Points = points;
 }
Exemple #14
0
 public MoneyEvent(ref TechnologyCard card, int money)
 {
     Card  = card;
     Money = money;
 }
Exemple #15
0
 public BudgetEvent(ref TechnologyCard card)
 {
     Card = card;
 }
Exemple #16
0
 public ResourceEvent(ref TechnologyCard card, int Task, int Story, int Feature, int Epic)
 {
     Card      = card;
     Resources = new int[] { Task, Story, Feature, Epic };
 }
Exemple #17
0
 public WildResourceForm(TechnologyCard card)
 {
     InitializeComponent();
     Card = card;
 }