Article View: rec.games.programmer
Article #1698Re: Playing map....
From: Dr. Cat
Date: Mon, 23 Nov 1992 05:22
Date: Mon, 23 Nov 1992 05:22
11 lines
1036 bytes
1036 bytes
No need getting fancy. If you were doing a computer version of Axis and Allies, say, first you should count how many spaces there are on the map. Assign a number to each of them. Set up an array (or several) that holds whatever information is necessary about what units are currently in each space on the map. To figure out movement, you make a linkage array. Each entry (one per map region) is an arbitrary length list of the region numbers of other map spaces that are adjacent to the current one. If you're going to build a map generator, you should still have it generate a linkage array when it's all finished. Most reasonable internal representation of the map to have.
Technical Details
Message-ID:
<1992Nov23.052204.7849@wixer.cactus.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!milano!cactus.org!wixer!catReferences:
<50217gb@rpi.edu>Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!milano!cactus.org!wixer!cat From: cat@wixer.cactus.org (Dr. Cat) Subject: Re: Playing map.... Message-ID: <1992Nov23.052204.7849@wixer.cactus.org> Organization: Real/Time Communications References: <50217gb@rpi.edu> Date: Mon, 23 Nov 92 05:22:04 GMT Lines: 11