public Harvester.Props getHarvProps() { Harvester.Props props = new Harvester.Props(); props.HP = RulesTable.GreenHarvHP; props.Speed = RulesTable.GreenHarvSpeed; props.Storage = RulesTable.GreenHarvStorage; return(props); }
public GatherCity(BattleField btfld, Player owner, CityType type) : base(btfld, owner, type) { harvester = new Harvester(this, btfld.Map); harvester.GotHome += Harv_Home; harvester.GotThere += Harv_Dest; Harvester.Props hprop = getHarvProps(); harvester.SetProps(hprop); if (this.Type == CityType.Oil) { gatherDistance = RulesTable.OilGatherDistance; } else if (this.Type == CityType.Green) { gatherDistance = RulesTable.GreenGatherDistance; } }
public Harvester.Props getHarvProps() { Harvester.Props props = new Harvester.Props(); props.HP = RulesTable.GreenHarvHP; props.Speed = RulesTable.GreenHarvSpeed; props.Storage = RulesTable.GreenHarvStorage; return props; }