How hard would it be to make a "power map"?
Bernd Jendrissek <berndj-5p/6O/qjo8/[email protected]>
| Newsgroups | gmane.games.freeciv.general |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all I'm currently spending a few minutes here and there every day for the last few months on this huge map-of-europe game, playing solo, interrupted only by barbarians. Unfortunately I don't bother properly defending *all* my cities, so the barbs by now have stolen Amphibious Warfare from my cities. (*) I'd like to avoid losing yet another city to them before they start nuking me. :) So my question is, how hard would it be to build a "power map" so I can quickly see where my weak spots are? I'm imagining some sort of map that maintains the total damage that can be inflicted on any given square *immediately* (same turn). Basically, the result I want is a "mode" for the minimap that shows me (in red) all the squares that are *not* immediately reachable by any of my bombers, nukes and armors. The naive approach I imagine is to loop over all tiles, and over all units, and add up all the attack values each can inflict. But that's just, erm, naive. Maybe rather do a global reachability map that divides the map up into "military continents", taking into consideration such things as railroads, which give free movement, just to avoid looking at *all* squares individually. Would this be better done in the server, or could it just as easily/hardly be done in the client? Hmm, just wondering. bernd P.S. If you're wondering, the date is 2687AD, population 535 million on the 200x100 europe map. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/mTjP/FmLrNfLpjMRAlIyAKClvDeEL4Unt9e7qvh7z1ZjG2CJyACeLB2t 6HQ25tBdtpg1z0L2IFEVP5c= =ZiJ5 -----END PGP SIGNATURE-----