Re: [circ] Universal object?

From: George (greerga@CIRCLEMUD.ORG)
Date: 01/19/98


On Mon, 19 Jan 1998, Patrick J. Dughi wrote:

>        Anyway, I thought a great solution would be to place the three
>main data groups (room_data, obj_data, char_data) into a single structure,
>add a switch to choose which data type it actually is, and then using that
>for special cases, treat everything bascially the same. So, you could
>mount a flying carpet, or have a talking room,, or a fighting sword, or,

My first thought is that the idea screams, 'C++'.

Otherwise it'd be C with void* and byte identifiers...could be ugly.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST