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; }
public DiceEvent(ref TechnologyCard card) { Card = card; }
public BudgetPoints(ref TechnologyCard card, int multiplier) { Card = card; Multiplier = multiplier; }
public WorkerPoints(ref TechnologyCard card, int multiplier) { Card = card; Multiplier = multiplier; }
public ResearchTokenPoints(ref TechnologyCard card, int multiplier) { Card = card; Multiplier = Multiplier; }
public ClientCardPoints(ref TechnologyCard card, int multiplier) { Card = card; Multiplier = multiplier; }
public GreenCardPoints(ref TechnologyCard card, int SymbolNum) { Card = card; Card.IsGreenBackground = true; Symbol = SymbolNum; }
public DiceResourceEvent(ref TechnologyCard card, int resourceIndex) { Card = card; ResourceType = resourceIndex; }
public TempResearchEvent(ref TechnologyCard card, int researchLevel) { Card = card; ResearchLevel = researchLevel; IsUsed = false; }
public WildResourceEvent(ref TechnologyCard card) { Card = card; IsUsed = false; }
public DrawCardEvent(ref TechnologyCard card) { Card = card; }
public ResearchEvent(ref TechnologyCard card) { Card = card; }
public PointsEvent(ref TechnologyCard card, int points) { Card = card; Points = points; }
public MoneyEvent(ref TechnologyCard card, int money) { Card = card; Money = money; }
public BudgetEvent(ref TechnologyCard card) { Card = card; }
public ResourceEvent(ref TechnologyCard card, int Task, int Story, int Feature, int Epic) { Card = card; Resources = new int[] { Task, Story, Feature, Epic }; }
public WildResourceForm(TechnologyCard card) { InitializeComponent(); Card = card; }