Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#37 some factory customization options

open
nobody
None
5
2011-04-21
2011-04-21
Chris Duncan
No

From the mailing list, by tekkie_chiu
probably very out of date, but provides some cool ideas

This patch is about building of units.
It adds a bit of programmability of production for XML game makers.
Backwards compatible. Only two new IMPLIED XML fields.
Main changes are in class
games.strategy.triplea.delegate.AbstractPlaceDelegate.

Small things:

*fix typo of constant "FACTORIES_PER_COUNTRY_PROPERTY" and updated
accordingly.
*fourth edition rules coding hidden from user, added two constants
"FACTORY_TURN_LIMIT" and "MORE_THAN_ONE_AA_PER_TERRITORY" to allow use

Bigger things:

*can now create units that must be built at a factory type unit
*can now create units that is allow one per territory only (in terms of
building units)
*can now create units that have a production capacity (not resource) cost
*can now create units and initialise it to have taken hits already

Some applications:

*Ships are built at ship yard. Troops are raised at barracks.
*A city can only raise troops when a general is present.
*A city can raise twice the amount of troops when two generals are present.

Discussion

  • Chris Duncan
    Chris Duncan
    2011-04-21

     
    Attachments