Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?
[Phillip Lenhardt <philen#funky,monkey.org>:]
> For example, if a door is just a regular object with open and close
> methods and link attributes pointing at two other roomish objects,
> how do you determine if it is a door at all? In a class hierarchy,
> you can ask for the class or type of an object. If that class or
> type is or is descended from the door class, you know you have a
> door object. With just a base class, you have to check for all
> relevant methods and attributes before treating that object like
> a door.
I recall someone on this list (JCL?) saying something analagous to:
If it acts like a door, its a door.
Why do you care if the way it gets its door behaviour is by being an
"official" door? If someone has, within the rules of your world, created
a non-door object which is intended to act like a door, then I would
think you would want everyone to treat it as if it were a door. In other
words, you don't want anyone to be able to find out that it isn't "really"
a door.
Possibly there are some rare administrative cases where you want to be
able to identify "official" doors, but should that kind of requirement
drive the basic heart of your system?
--
Don't design inefficiency in - it'll happen in the implementation.
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA
http://www.GraySage.Edmonton.AB.CA/cg/
_______________________________________________
MUD-Dev mailing list
MUD-Dev#kanga,nu
http://www.kanga.nu/lists/listinfo/mud-dev
- Thread context:
- RE: [MUD-Dev] Object and class heirarchies -- are they really necessary?, (continued)
- Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?,
Draymoor fibhufky#erols,com, Wed 22 Mar 2000, 02:33 GMT
- Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?,
Draymoor fibhufky#erols,com, Wed 22 Mar 2000, 03:53 GMT
- RE: [MUD-Dev] Object and class heirarchies -- are they really necessary?,
Brian Ashburn BAshburn#us-south,net, Tue 28 Mar 2000, 20:18 GMT
- Re: [MUD-Dev] Object and class heirarchies -- are they really necessary?,
cg cg#ami-cg,GraySage.Edmonton.AB.CA, Wed 29 Mar 2000, 02:38 GMT
- [MUD-Dev] The Meta list is now open and active.,
J C Lawrence claw#kanga,nu, Mon 20 Mar 2000, 18:58 GMT
- [MUD-Dev] Licensing and Clauses,
Chris Jacobson fear#technologist,com, Mon 20 Mar 2000, 17:35 GMT
- Re: [MUD-Dev] [CODE] unique items,
Draymoor fibhufky#erols,com, Mon 20 Mar 2000, 05:26 GMT
[ Other Periods
| Other mailing lists
| Search
]