home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / rec / games / programm / 4798 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1015 b   |  22 lines

  1. Newsgroups: rec.games.programmer
  2. Path: sparky!uunet!cs.utexas.edu!milano!cactus.org!wixer!cat
  3. From: cat@wixer.cactus.org (Dr. Cat)
  4. Subject: Re: Playing map....
  5. Message-ID: <1992Nov23.052204.7849@wixer.cactus.org>
  6. Organization: Real/Time Communications
  7. References: <50217gb@rpi.edu>
  8. Date: Mon, 23 Nov 92 05:22:04 GMT
  9. Lines: 11
  10.  
  11.  
  12.    No need getting fancy.  If you were doing a computer version of Axis and
  13. Allies, say, first you should count how many spaces there are on the map.
  14. Assign a number to each of them.  Set up an array (or several) that holds
  15. whatever information is necessary about what units are currently in each
  16. space on the map.  To figure out movement, you make a linkage array.  Each
  17. entry (one per map region) is an arbitrary length list of the region numbers
  18. of other map spaces that are adjacent to the current one.
  19.    If you're going to build a map generator, you should still have it
  20. generate a linkage array when it's all finished.  Most reasonable internal
  21. representation of the map to have.
  22.