home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: rec.games.programmer
- Path: 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
-
-
- 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.
-