Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2004:
[Freeciv-Dev] (PR#7668) transporter types should be in the ruleset
Home

[Freeciv-Dev] (PR#7668) transporter types should be in the ruleset

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#7668) transporter types should be in the ruleset
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 7 Mar 2004 19:09:39 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7668 >

Currently the transporter types are hard-coded.  There are three types 
of transporters:

   - Ground unit
   - Carrier (air unit + missile)
   - Missile (missile unit only)

which are specified for each unit in units.ruleset.  Of course the 
"missile" units have to be specified separately.

My idea (as described in PR#6174) is to generalize this to have 
arbitrary carrying types.  For instance units.ruleset could specify

   carry_types = "ground", "air", "missile"

and then for each unit the unit specifies

   cargo_type = "ground"

and for transporters the unit specifies

   transporter_types = "air", "missile"

This is not fully thought out, but I believe it will not only generalize 
the rulesets but will help to simplify the logic in some functions.

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#7668) transporter types should be in the ruleset, Jason Short <=