Example #1
0
 public Harvester.Props getHarvProps()
 {
     Harvester.Props props = new Harvester.Props();
     props.HP      = RulesTable.GreenHarvHP;
     props.Speed   = RulesTable.GreenHarvSpeed;
     props.Storage = RulesTable.GreenHarvStorage;
     return(props);
 }
Example #2
0
        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;
            }
        }
Example #3
0
 public Harvester.Props getHarvProps()
 {
     Harvester.Props props = new Harvester.Props();
     props.HP = RulesTable.GreenHarvHP;
     props.Speed = RulesTable.GreenHarvSpeed;
     props.Storage = RulesTable.GreenHarvStorage;
     return props;                        
 }