1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Room&#45;based vs. coordinate&#45;based -->
<!--X-From-R13: Eunja Vnycraal <znynpunvNvanzr.pbz> -->
<!--X-Date: from fabius.globecomm.net [207.51.48.6] by in2.ibm.net id 845185.38840&#45;1 Sat Jan 10 18:46:25 1970 CUT -->
<!--X-Message-Id: 339C310C.41C67EA6#iname,com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199704250127.SAA25913#xsvr3,cup.hp.com -->
<!--X-Reference: 3399f534.728119540@neptune -->
<!--X-Reference: 33943B87.41C67EA6#iname,com -->
<!--X-Reference: 33bc137b.1325694578@neptune -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Room-based vs. coordinate-based</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:malachai#iname,com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg01261.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00000.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01262.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00176.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01263">Author</A>
&nbsp;|&nbsp;<A HREF="#01263">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01263">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Room-based vs. coordinate-based</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  Room-based vs. coordinate-based</LI>
<LI><em>From</em>: Shawn Halpenny &lt;<A HREF="mailto:malachai#iname,com">malachai#iname,com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 09 Jun 1997 12:36:28 -0400</LI>
<LI><em>Sender</em>: <A HREF="mailto:rsh#iname,com">rsh#iname,com</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
Alex Oren wrote:
&gt; 
&gt; Shawn wrote:
&gt; 
&gt; } &gt; How will I handle "Boffo arrives from the north" type of messages?
&gt; } &gt;
&gt; } &gt; Room-based (or, rather, "container-based") has an advantage here.  A
&gt; } &gt; container may send messages to the objects it contains.  In a
&gt; } &gt; coordinate-based system I will need to consult a "map" of object
&gt; } &gt; locations to determine message recipients.  Or am I wrong?
&gt; }
&gt; } Well, I have a mapping of locations to objects as well as each objects
&gt; } existing in a container (i.e.  the room it's in).  To make Boffo
&gt; } arrive from the north, I (roughly):
&gt; }     - set Boffo's coordinates to the new location
&gt; }     - check the location-&gt;object mapping to see if there is a real room at
&gt; }       that location
&gt; }         - if so, add Boffo to that container and generate a message for its
&gt; }           contents
&gt; }         - if not (the room is deterministically generated, so there is no
&gt; }           room container), from the mapping grab all objects at Boffo's
&gt; }           new location and tell them of Boffo's arrival.
&gt; 
&gt; The desert of desolation stretches from (500,200) to (900,500).
&gt; Bubba is in the desert (620,342).
&gt; Boffo is in the desert (621,343).
&gt; Wesley is in the desert (888,472).
&gt; Humperdink arrives (from the north, obviously), his position is now
&gt;   (621,342).
&gt; 
&gt; If the (huge) desert is defined as one room, who gets the message? Why?
&gt; If there was no explicitly defined room, who gets the message? Why?
&gt; 
&gt; [The expected answer is: Bubba and Boffo]

If object A is in the same room as object B, they occupy the same
location in 3-space (my room granularity is purposefully low), so the
huge desert as one room is impossible with the requirements you
stated.  Given that, I should have elaborated that when grabbing all
objects at Boffo's new location, objects in the surrounding vicinity
are grabbed as well.  The surrounding vicinity is defined to some
arbitrarily small number of units.  Any observers within the square
bounding the vicinity (only Bubba--see below) will see something
indicating Humperdink's arrival in the appropriate direction (they
may or may not be able to determine whether it is "Humperdink" or
"Someone" who has arrived, depending on their respective vision or
being indoors).  The only time one sees the "X has arrived" message
is if X now occupies the same space as the observer (because of the
low granularity).

So, Boffo will see the "Humperdink leaves south" message.  If Boffo
looks around again, he will see something like "You see Humperdink to
the south".  Boffo will not automatically receive a message
indicating that Humperdink is now to the south since Humperdink was
leaving Boffo's location and the repetition would seem ridiculous. 
Bubba (since he was not at the location Humperdink had left) will get
an automatic message saying that Humperdink has moved to his east
(though probably not a message with "arrive" in it, since that seems
to imply that the objects are in the same room).

--
Shawn Halpenny

"You only need two things in life:
    WD-40 to make things go and duct tape to make them stop."
                                                - Unknown

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00214" HREF="msg00214.html">Re: [MUD-Dev]  Re: Issues from the digests and Wout's list</A></STRONG>
<UL><LI><EM>From:</EM> clawrenc#cup,hp.com</LI></UL></LI>
<LI><STRONG><A NAME="01059" HREF="msg01059.html">Room-based vs. coordinate-based</A></STRONG>
<UL><LI><EM>From:</EM> alexo#bigfoot,com (Alex Oren)</LI></UL></LI>
<LI><STRONG><A NAME="01099" HREF="msg01099.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></STRONG>
<UL><LI><EM>From:</EM> Shawn Halpenny &lt;malachai#iname,com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="01262" HREF="msg01262.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></STRONG>
<UL><LI><EM>From:</EM> alexo#bigfoot,com (Alex Oren)</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01261.html">"From Kansas to Oz"</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00000.html">Re: Greetings. :)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01262.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00176.html">Re: Issues from the digests and Wout's list</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01263"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01263"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev]  Room-based vs. coordinate-based</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="01474" HREF="msg01474.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
Alex Oren <a href="mailto:alexo#bigfoot,com">alexo#bigfoot,com</a>, Tue 24 Jun 1997, 14:09 GMT
<LI><strong><A NAME="01487" HREF="msg01487.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Wed 25 Jun 1997, 11:07 GMT
</LI>
</LI>
<LI><strong><A NAME="01618" HREF="msg01618.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Tue 01 Jul 1997, 06:06 GMT
</LI>
</ul>
<LI><strong><A NAME="01262" HREF="msg01262.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
Alex Oren <a href="mailto:alexo#bigfoot,com">alexo#bigfoot,com</a>, Mon 09 Jun 1997, 22:05 GMT
<UL>
<LI><strong><A NAME="01263" HREF="msg01263.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Sun 11 Jan 1970, 02:46 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00176" HREF="msg00176.html">Re: Issues from the digests and Wout's list</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Tue 22 Apr 1997, 06:53 GMT
</LI>
<LI><strong><A NAME="00177" HREF="msg00177.html">Re: Issues from the digests and Wout's list</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Tue 22 Apr 1997, 07:52 GMT
</LI>
<LI><strong><A NAME="00178" HREF="msg00178.html">Re: Issues from the digests and Wout's list</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Tue 22 Apr 1997, 08:16 GMT
<UL>
<LI><strong><A NAME="00198" HREF="msg00198.html">Re: [MUD-Dev]  Re: Issues from the digests and Wout's list</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#inficad,com">nightfall#inficad,com</a>, Thu 24 Apr 1997, 10:28 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>