[DGD]DGD and Melville
Chris Kaczor
zor at mediaone.net
Thu Jan 11 21:35:13 CET 2001
I'm not all that familiar with Melville anymore (having gone and restarted
off the kernel lib) but in general you would have functions in living.c that
you could call like set_hit_points, set_spell_points, etc. and you would
clone a player.c and call these functions on it to setup the player.
Zor
----- Original Message -----
From: "Nightlith" <nightlith at mb.sympatico.ca>
To: <dgd at list.imaginary.com>
Sent: Thursday, January 11, 2001 3:32 PM
Subject: Re: [DGD]DGD and Melville
>
> ----- Original Message -----
> From: "Stephen Schmidt" <schmidsj at union.edu>
> To: <dgd at list.imaginary.com>
> Sent: Thursday, January 11, 2001 2:17 PM
> Subject: Re: [DGD]DGD and Melville
>
>
> > On Thu, 11 Jan 2001, Nightlith wrote:
> > > What's the relationship of Player.c and Creation.c?
> >
> > player.c is the object which is cloned to create the body
> > of the player in the mud world. When the body is cloned,
> > the player's attributes are read in from a data file.
> > creation.c is the code that asks a new player for the
> > initial information (name, password, and if you added
> > such things, race, social background, etc) and fills
> > in any pregenerated information (such as stats if you
> > have those). creation.c is never cloned, but is invoked
> > each time a player logs on and enters a player name
> > with no data file associated.
> >
> > > If I create a living.c who should inherit it? player.c or creation.c?
> >
> > player.c, presuming that living.c would be code that would
> > be common to both a player body and a monster body.
>
> Ok, that's what I though. But if living.c contains all the stat info for
> players and monsters, how would creation.c access those variables? Do I
> inherit living.c before creation.c?
>
> Dereck.
>
>
>
> List config page: http://list.imaginary.com/mailman/listinfo/dgd
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list