🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1119

Looking for sparse-array example code

#1119
From: David Wright
Date: Tue, 13 Oct 1992 02:27
22 lines
1828 bytes
	I am looking at starting work on a SF-oriented MUD system based
on LPmud 3.x. The main changes I want to implement (all of these take place
in the C language "core" parser, and so I think they belong here rather
than in rec.games.mud.lp) involve greatly restricted access to the
programming language ("normal" players (read like 99.99%) would not be able
to create new objects, but would only be able to "program" their ship to
do certain actions automatically for them (navigate to location xxx,
fire phasers if more than yyy units of energy left, otherwise use torps,
etc)), and the ability to have an integral "positioning" system inside the
lowest level of the object classes.
	What I want to do is to allow objects such as ships, stars, planets,
etc. to occupy a set or coords in a 2d or 3d space, and you should have the
ability to navigate from place to place without needing to create any
"inbetween" objects. That is, the "empty" portions of space would not exist,
and the only things taking up space in RAM or on disk would be the
actual objects themselves.
	Does anyone have any example code for creating/handling sparse
arrays, or do you think it would just be better to use some kind of
indexing system (in which case, do you have any C-ISAM library code?).

				Dave
Technical Details
Message-ID: <Bw1G6G.Cn9@NCoast.ORG>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ncoast!davewt

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer,comp.unix.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ncoast!davewt
From: davewt@NCoast.ORG (David Wright)
Subject: Looking for sparse-array example code
Organization: North Coast Public Access *NIX, Cleveland, OH
Date: Tue, 13 Oct 1992 02:27:51 GMT
Message-ID: <Bw1G6G.Cn9@NCoast.ORG>
Followup-To: rec.games.programmer
Lines: 24