Ejemplo n.º 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);
 }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;                        
 }