Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] Patch: tech advances updates
Home

[Freeciv-Dev] Patch: tech advances updates

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Patch: tech advances updates
From: "Andrew McGuinness" <andrew@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 16 Jan 2000 19:49:26 -0000
Reply-to: andrew_mcguinness@xxxxxxxxxxx

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There are six different ways of getting a new tech:
- - research it (including getting it as a freebie after philosophy)
- - get it from a hut
- - get it from another player by treaty
- - steal it with a spy
- - find it when conquering or subverting an enemy city
- - get it from the Great Library

A lot of stuff has to be done for each one - checking if city
squares need to be upgraded to rails, incrementing researchpoints,
checking if a different tech needs to be researched, and so on.  I 
have pulled most of this into one function, and cleared up a couple 
of very small bugs on the way. (Other players with embassies not 
being informed when tech is stolen by capture, for instance).

I have also provided a function notify_embassies(), to handle the 
job of notifying players who have embassies with a given player of 
things that have happened.

This is my first effort in this kind of development, so all criticism is 
welcome.


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.2 -- QDPGP 2.61a
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOIIgxodxqqwX7vn9EQJCYACfd0KNU8vhVGBWehJEEaVNFfNxfgwAoOtz
Y04p95oHJbemjR6rv45i+TsA
=nR6y
-----END PGP SIGNATURE-----
Andrew McGuinness                     andrew_mcguinness@xxxxxxxxxxxxx
Luton, Beds. UK

Attachment: adv_updates.diff.gz
Description: Text from file 'adv_updates.diff.gz'


[Prev in Thread] Current Thread [Next in Thread]