Complete.Org: Mailing Lists: Archives: freeciv: October 2003:
[Freeciv] How hard would it be to make a "power map"?
Home

[Freeciv] How hard would it be to make a "power map"?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv@xxxxxxxxxxx
Subject: [Freeciv] How hard would it be to make a "power map"?
From: Bernd Jendrissek <berndj@xxxxxxxxxxx>
Date: Fri, 24 Oct 2003 16:36:02 +0200

-----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-----


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv] How hard would it be to make a "power map"?, Bernd Jendrissek <=