Exemplo n.º 1
0
 public Step(
     ResourceQuantity[] buildCondition,
     StepType[] types,
     RewardQuantity[] reward,
     int warPoints,
     AcquisitionType commercialType,
     ResourceMetaType resourceMetaType,
     BuilderType builder
     )
 {
     this.BuildCondition   = buildCondition;
     this.Types            = types;
     this.Reward           = reward;
     this.WarPoints        = warPoints;
     this.CommercialType   = commercialType;
     this.ResourceMetaType = resourceMetaType;
     this.Builder          = builder;
 }
Exemplo n.º 2
0
 public BonusCard(
     Card card,
     RewardQuantity[] reward,
     bool checkLeft,
     bool checkRight,
     bool checkSelf,
     BonusType bonus,
     CardType[] bonusCardType,
     ResourceMetaType resourceKind
     ) : base(card)
 {
     this.Reward        = reward;
     this.CheckLeft     = checkLeft;
     this.CheckRight    = checkRight;
     this.CheckSelf     = checkSelf;
     this.Bonus         = bonus;
     this.BonusCardType = bonusCardType;
     this.ResourceKind  = resourceKind;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Apply bilateral trade reduction on given resources at given price.
 /// </summary>
 /// <param name="metaType">The meta type of the resources involved.</param>
 /// <param name="price">The price set for the transactions.</param>
 public void ApplyTradeReduction(ResourceMetaType metaType, int price)
 {
     this.WestTradePrice[(int)metaType] = price;
     this.EastTradePrice[(int)metaType] = price;
 }