Complete.Org: Mailing Lists: Archives: freeciv-dev: September 1999:
[Freeciv-Dev] New feature: connect command
Home

[Freeciv-Dev] New feature: connect command

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] New feature: connect command
From: Jarda Benkovsky <pvt.benkovsk@xxxxxxxxx>
Date: Wed, 22 Sep 1999 21:01:45 +0200

Hi folks,

I have implemented 'Connect' unit command. What's that?

With 'connect', you can point unit somewhere and it will
go an build something (roads only for now) along the way.
I hope it will be useful to lift micromanagement burden
a bit.

Some notes:
- I have not marked and translated the menu string
- I have only tested the GTK client.
- It currently builds roads only. Other activities could
  be selected with some dialog box, I guess. The activities
  I would support are roads, railroads, irrigation,
  fortresses (Maginot line *grin*). It could be extended
  for bridges or st. like this in the future.
- I do not know if it is proper to add new packet type
  (as packet_unit_request does not provide for
  specifying the activity) or extend the existing
  packet type (incompatibility) or specify more
  types (useless work).

  However, irrigation has the problem that it would require
  the path curves to be orthogonal and the find_shortest_path
  does not guarantee this. Maybe it would be possible to
  create hooks in fsp which would allow to deny suggested
  next tile? It would be also useful for cases when you can't
  use the tile for other reasons.

Any comments? Would be someone so kind, reviewed the patch 
(it's my first for freeciv) and eventually checked it into CVS?

BTW: Does anybody care for ChangeLog? The last record is from July!

                                Regards,
                                Edheldil


And here's the promised patch:

Attachment: freeciv-patch-connect.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] New feature: connect command, Jarda Benkovsky <=