1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: Prepositions and parsing -->
<!--X-From-R13: E001U[GNabin.jevtug.rqh -->
<!--X-Date: from tacitus.globecomm.net [207.51.48.7] by mx3.ibm.net id 863012182.56512&#45;1 Wed May  7 13:36:22 1997 -->
<!--X-Message-Id: 01IIL0PA7AVM99FU60#nova,wright.edu -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: Prepositions and parsing</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:S001GMU#nova,wright.edu">
</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="msg00327.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00330.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00509.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00345.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00328">Author</A>
&nbsp;|&nbsp;<A HREF="#00328">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00328">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: Prepositions and parsing</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: Prepositions and parsing</LI>
<LI><em>From</em>: <A HREF="mailto:S001GMU#nova,wright.edu">S001GMU#nova,wright.edu</A></LI>
<LI><em>Date</em>: Wed, 07 May 1997 09:40:36 -0500 (EST)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
Date: Tue, 06 May 1997 20:45:19 +0000 (PST8PDT)
From: clawrenc#cup,hp.com
Subject: [MUD-Dev]  Prepositions and parsing

&gt;What with the recent discussion of parsers and methods of parsing
&gt;commands, and old entry from my to-do list popped up:
&gt;
&gt;  Support for prepositions such as "under", "on top of", "behind" etc.
&gt;
&gt;Anyone got any ideas for supporting/parsing a command like:
&gt;
&gt;  hide under the desk
&gt;
&gt;or
&gt;
&gt;  put the rock under the rug behind the pillar

'On top of' and 'under' are pretty easy to handle.

  What does 'Behind the pillar' mean?  Is behind relative to the room or to the
player?  The former is easy, the later not so easy, but much more realistic.
If you wanted it to be relative to the player you would have to know where the
player was relative to the object.   'Spose you could also have it be 
relative to the object in question... a TV has a definite front and back...
when you are interested in watching it.  If it's just collecting dust in
the attic, though, then I don't spose it'd make a difference what direction
it was facing.. :)

You could have each object type have the possibility of a defined orientation.
The parser could then look for that first, and failing that, go by the 
character's position.

Once you have the orientation of the object in question, you could then just
have some algorithm that determines what parts of the room's coordinate space
belong to what preposition.  An easy alg I can think of would be to treat 
the object as a rectangular solid with each face of the solid determining the
near boundry of the coordinate space belonging to a given preposition (wouldn't
work too well with oddly shaped objects, though).  The far boundry could be
determined based on the size of the object in question... beside a building
and beside an apple are two entirely different things.

-Greg

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00345" HREF="msg00345.html">Re: [MUD-Dev]  Re: Prepositions and parsing</A></strong>
<ul compact><li><em>From:</em> clawrenc#cup,hp.com</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00327.html">Re: [MUD-Dev]  Comments on the DB layer</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00330.html">Re: [MUD-Dev]	Prepositions and parsing</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00509.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00345.html">Re: [MUD-Dev]  Re: Prepositions and parsing</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00328"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00328"><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>[MUD-Dev] Re: Prepositions and parsing</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00371" HREF="msg00371.html">[MUD-Dev] Re: Prepositions and parsing</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Sun 11 May 1997, 17:24 GMT
<UL>
<LI><strong><A NAME="00473" HREF="msg00473.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Thu 15 May 1997, 00:34 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00489" HREF="msg00489.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Fri 16 May 1997, 05:41 GMT
<UL>
<LI><strong><A NAME="00509" HREF="msg00509.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Sat 17 May 1997, 00:59 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
<LI><strong><A NAME="00328" HREF="msg00328.html">Re: Prepositions and parsing</A></strong>, 
S001GMU <a href="mailto:S001GMU#nova,wright.edu">S001GMU#nova,wright.edu</a>, Wed 07 May 1997, 20:36 GMT
<UL>
<LI><strong><A NAME="00345" HREF="msg00345.html">Re: [MUD-Dev]  Re: Prepositions and parsing</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Sat 10 May 1997, 00:14 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00325" HREF="msg00325.html">Comments on the DB layer</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 07 May 1997, 07:43 GMT
<LI><strong><A NAME="00319" HREF="msg00319.html">Last sendmail test (we're up to 8.*)!</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Sun 04 May 1997, 08:37 GMT
<LI><strong><A NAME="00317" HREF="msg00317.html">Re: [MUD-Dev]	Re: Multi-threaded mudding (was a flamefest)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 03 May 1997, 12:57 GMT
</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>