2000Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Object and class heirarchies &#45;&#45; are they really necessary? -->
<!--X-From-R13: X Q Znjerapr <pynjNpc.arg> -->
<!--X-Date: Wed, 22 Mar 2000 15:14:38 &#45;0800 -->
<!--X-Message-Id: E12XuKZ&#45;0001dI&#45;00#under,eng.cp.net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: E12XVws&#45;0001DB&#45;00#under,eng.cp.net -->
<!--X-Reference: 14551.65272.614292.445363#alyx,skotos.net -->
<!--X-Reference: zell#alyx,com -->
<!--X-Reference: E12XYWb&#45;0000hk&#45;00#under,eng.cp.net -->
<!--X-Reference: 20000322010133.A5367#funky,monkey.org -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Object and class heirarchies -- are they really </title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#cp,net">
</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="msg00694.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00696.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00688.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00706.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00695">Author</A>
&nbsp;|&nbsp;<A HREF="#00695">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00695">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Object and class heirarchies -- are they really necessary? </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#cp,net">claw#cp,net</A>&gt;</LI>
<LI><em>Date</em>: Wed, 22 Mar 2000 15:14:27 -0800</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Wed, 22 Mar 2000 01:01:33 -0500 
Phillip Lenhardt &lt;philen#funky,monkey.org&gt; wrote:

&gt; On Tue, Mar 21, 2000 at 03:57:25PM -0800, J C Lawrence wrote:
&gt;&gt; True.  That was one of the sources of the design requirement for
&gt;&gt; Murkle that features must be programmable without requiring
&gt;&gt; source access to any other objects.

&gt; No matter how many times I read this design requirement--and it
&gt; has been many: I have read and reread nearly every thread in the
&gt; archive in which it appears--I always come to the conclusion that
&gt; it is either tautological or trivially false. Since both those
&gt; conclusions seem unlikely candidates for what you mean, I was
&gt; wondering if you could clarify.

Aye, the wording is not the best.  A better statement:

  In order to program any feature in the game source level access
must not be required to any other pre-existent objects in the game
that are not the direct recipients of the feature.  Ie.  If a
feature is going to _directly_ affect only objects X, Y, and Z, then
those are the ONLY objects that should need to be accessed.

Even that's not so great.  There were a variety of scenarios used to
develop the basic concepts:

The Elven Forest, Castle Krak and the Sceptre scenario
======================================================

  When the King's sceptre is in the Elven Forest magic ceases to 
    work in Castle Krak.  ie all previously exstant magical results 
    in the castle fail.  If Bubba was magically invisible, he is no 
    longer, 

  When the sceptre is no longer in the Elven Forest, magic works 
    in Castle Krak.

  Any transition of the sceptre in or out of the Elven forest 
    transitions the state as appropriate.  eg if the sceptre enters 
    the forest and Bubba was magically invisible in the castle, 
    voila!  He's visible.  If Boffo was flying, he falls.  If Bernie 
    was magically strong, he's now weak.  If Buzz was magically 
    disguised, he's now back to normal.  If Thrud was weiling the 
    Sword of Doom, well we's waving a bit of base iron about now. 
    The magic sack as in the GGGG ceases to function, and teleports 
    cease to work as do all other new spells...  You get the idea.

Now, just to prevent you special casing the magic calls to go check we
had the relics of the Great God GooGoo and the Magic Sack.  Ohh, what
the crap, I might as well post the entire scenario (it was what was
used to develop and exercise my spoof and watcher models):

Relics of the Great God GooGoo and the Magic Sack of Hiding
===========================================================

  The GreatGodGooGoo has a number of holy relics.
  Each relic has a non-magical base state, and a magical awakened
    state.
  If more than three of GGGG's relics are simultaneously awakened,
    the GGGG does nasty things.
  Relic #1 is a stone which awakens into the Gem of GGGG.
  The gem turns its bearer into a FireGod only for so long as he
    carries the gem.
  The FireGod is very hot.  Food cooks when in his presence, metals
    get painfully hot, and candles melt.
  Other players near the FireGod are slowly damaged by the heat.
  Relic #2 is the Horn of the GGGG, which awakens only while it is
    blown and then reverts to the base state.
  Relic #3 is a sword which awakens to the sword of GGGG.
  The sword has interesting properties when awakened:
    1) If the GGGG is awake (three relics etc), the the sword
       teleports to GGGG.
    2) If it can detect the MistWraithe it magically teleports to the
       MW and begins attacking him.
    3) If it is carried by a FireGod, then the sword is destroyed.
    #1 happens as soon as the GGGG is awake, and the sword can
    detect him and it can teleport.
    #2 happens as soon as it can detect the MW and can teleport.
    #1 has priority over #2, and #2 has priority over #3.
  There is a Magic Sack of Hiding.
  Anything in the MSH is hidden from the rest of the game.  No
    magical effects can either enter of leave the MSH.  Players, and
    the MW can enter the MSH.
  There is a Wizards Lair.
  Any magical effects, such as an awakening, occuring in the WL are
    hidden from the rest of the game.  No magical effects or spells
    can enter the WL, but they can all leave the WL.  ie in fails,
    out works.
  There is a Magic Cloak.
  Anyone wearing the MC appears to be the MW (more than the real
    MW (ie gets preferentially attacked)).
  Anyone carrying the MC appears to be the GGGG (non-preferentially).

And then:

Bubba and the Crystalling Tree scenario:
========================================

  The actual scenario was called "Bubba and the Crystalline Tree", and
  dealt fairly simply with our friend Bubba who managed to climb a
  crystalline tree.  This was no mean feat as Bubba is a very heavy chap
  whose weight *should* break the tree, dropping bubba to the ground. 
  The scenario is:

    -- Bubba is in the Crystalline Tree.

    -- Bubba has some sort of state changing effect which lessens his
    weight such that the tree does not break.  Typical examples are: he is
    holding on to a large number of helium balloons, he is enchanted to be
    lighter, etc.


    -- Bubba now changes his weight value.  This could be by letting go of
    the balloons, picking up another object, receiving a "heavy" spell,
    having his "light" spell wear off, having one of the objects he is
    carrying receive or lose a heavy/light spell, having one of the
    objects he is carrying chage its weight for any other reason etc.

    -- Having the tree respond appropriately to Bubba's weight change.

&gt; I read your design requirement either as:

&gt; "Any object must be able to affect any other object without
&gt; changing that other object."

Without requiring that other object's explicit support (in the form
of its source) to implement the feature.

Taking the ElvenForest/CastleKrak/Sceptre scenario, the problem is
this:

  You have a world in which already exist magical objects, the Elven
Forest, and Castle Krak.  You have to implement the feature set
described in the above scenario (magic working/not_working) without
in any way touching the source code for any of the magic objects,
the Elven Forest, or Castle Krak.  You can however edit the source
for the Sceptre (as that object id directly involved), and create
any number of new objects as part of yuor process.

  Now notice, you can't rewrite your magic code to check for the
toggle flag!  That's touching the source of an object that is not
directly involved.  You also can't have the ElvenForest or
CastleKrak notice when the sceptre is or is not inside their bounds
for the same reason.  _ALL_ the functionality must be accomplished
via edits to the sceptre object, or via the creation of new objects
(possibly dynamically at runtime).

Following similar constraints for the other scenarios gets more
interesting.  The reason however for the design constraint is to
ensure that __arbitrary__user__programmers__ can accomplish features
in their world without ncecessarily requiring write access to
objects they don't own or otherwise have access to.

Its the other side of usability in a game comprosed of very tight
multi-user object-level security restrictions.  Remember that the
base purpose of Murkle is/was:

  Murkle is intended to serve worlds where the players can create
virtual realities, and then enforce those realities on each other.

A post which discusses some of the spoof and related areas with
Shawn Halpenny is at the URL below.  Just plug in keywords from the
above into the search engine at Kanga.Nu to find the rest:

  <A  HREF="http://www.kanga.nu/archives/MUD-Dev-L/1997Q2/msg01237.html">http://www.kanga.nu/archives/MUD-Dev-L/1997Q2/msg01237.html</A>

-- 
J C Lawrence                              Internet: claw#kanga,nu
----------(*)                            Internet: coder#kanga,nu
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...


_______________________________________________
MUD-Dev mailing list
MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

</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="00706" HREF="msg00706.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></strong>
<ul compact><li><em>From:</em> Phillip Lenhardt &lt;philen#funky,monkey.org&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00675" HREF="msg00675.html">[MUD-Dev] Object and class heirarchies -- are they really necessary?</A></STRONG>
<UL><LI><EM>From:</EM> J C Lawrence &lt;claw#cp,net&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00679" HREF="msg00679.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></STRONG>
<UL><LI><EM>From:</EM> Par Winzell &lt;zell#alyx,com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00680" HREF="msg00680.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></STRONG>
<UL><LI><EM>From:</EM> J C Lawrence &lt;claw#cp,net&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00688" HREF="msg00688.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></STRONG>
<UL><LI><EM>From:</EM> Phillip Lenhardt &lt;philen#funky,monkey.org&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00694.html">Re: [MUD-Dev] Gamasutra: Online Justice Systems</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00696.html">Re: [MUD-Dev] Gamasutra: Online Justice Systems</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00688.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00706.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00695"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00695"><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] Object and class heirarchies -- are they really necessary?</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00678" HREF="msg00678.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></strong>, 
scott guzman <a href="mailto:shade2x#home,com">shade2x#home,com</a>, Tue 21 Mar 2000, 21:55 GMT
</LI>
<LI><strong><A NAME="00679" HREF="msg00679.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></strong>, 
Par Winzell <a href="mailto:zell#alyx,com">zell#alyx,com</a>, Tue 21 Mar 2000, 23:11 GMT
<UL>
<LI><strong><A NAME="00680" HREF="msg00680.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></strong>, 
J C Lawrence <a href="mailto:claw#cp,net">claw#cp,net</a>, Tue 21 Mar 2000, 23:57 GMT
<UL>
<LI><strong><A NAME="00688" HREF="msg00688.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></strong>, 
Phillip Lenhardt <a href="mailto:philen#funky,monkey.org">philen#funky,monkey.org</a>, Wed 22 Mar 2000, 06:36 GMT
<UL>
<LI><strong><A NAME="00695" HREF="msg00695.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></strong>, 
J C Lawrence <a href="mailto:claw#cp,net">claw#cp,net</a>, Wed 22 Mar 2000, 23:14 GMT
<UL>
<LI><strong><A NAME="00706" HREF="msg00706.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></strong>, 
Phillip Lenhardt <a href="mailto:philen#funky,monkey.org">philen#funky,monkey.org</a>, Thu 23 Mar 2000, 06:14 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00681" HREF="msg00681.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></strong>, 
Kevin Littlejohn <a href="mailto:darius#connect,com.au">darius#connect,com.au</a>, Wed 22 Mar 2000, 00:25 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00683" HREF="msg00683.html">Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?</A></strong>, 
Chris Jones <a href="mailto:cjones#v-wave,com">cjones#v-wave,com</a>, Wed 22 Mar 2000, 00:49 GMT
</LI>
<LI><strong><A NAME="00743" HREF="msg00743.html">Re: [MUD-Dev] Object and class heirarchies -- are they reallynecessary?</A></strong>, 
Lazarus <a href="mailto:lazarus#ourplace,org">lazarus#ourplace,org</a>, Mon 27 Mar 2000, 21:19 GMT
</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>