From: Erik V. <eri...@xs...> - 2011-03-28 08:38:27
|
Basically, anything defined under <CompanyType> can be overridden under any <Company> implementing that type. Of course, the catch here is, that the private buying price range is defined with the (buying) major companies rather than the (sold) private companies. If we want to add an ability to vary the buy price ranges per private company, we must move these parameters to the Private <CompanyType> definition. That will also require some code refactoring. I wasn't aware that games existed having this need, but indeed 1848 does. It's also not using factors but absolute numbers as limits, so we probably should also have new "lowerPrice" and "upperPrice" attributes. I'm willing to pick this up in the near future, but if you want to give it a try, please go ahead. Erik > -----Oorspronkelijk bericht----- > Van: Bill Rosgen [mailto:ro...@gm...] > Verzonden: maandag 28 maart 2011 7:14 > Aan: Development list for Rails: an 18xx game > CC: John A. Tamplin > Onderwerp: Re: [Rails-devel] B&O PC Sale > > > On 2011-03-27, at 0:49 , Scott Petersen wrote: > > > On Sat, Mar 26, 2011 at 11:36 AM, John A. Tamplin <ja...@ja...> wrote: > > Since various games have different limits on the purchase price, I suggest > instead having a maximum price it can be purchased for by a company, and 0 > means it can't be purchased. > > > > The variable purchase prices are already well implemented and are > changeable with XML. I suppose it would work to override it (buy in > multiplier is zero) for certain companies, but it would be even better if it did > not even show up in the list of privates to buy in. > > Is there any documentation on this? I can't find any place in the code that > reads the XML for a private company that anything like a buy in multiplier is > read or set per private company. > > I *can* find this in the PublicCompany class, but if I want to have different > multipliers for different private companies (so that, for instance, in 1848 the > various privates can be bought in for different ranges of values), this doesn't > seem to work. I can get around this by setting different base prices for the > privates, and then writing extra code so that they are sold for some other > price in the auction, but this seems not like the best way to proceed. > > Bill Rosgen > > > ---------------------------------------------------------------------------- -- > Enable your software for Intel(R) Active Management Technology to meet > the growing manageability and security demands of your customers. > Businesses are taking advantage of Intel(R) vPro (TM) technology - will your > software be a part of the solution? Download the Intel(R) Manageability > Checker today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |