AbilitiesAvatarCommand AliasValueIndexLibrary
[ First Topic | Previous Topic | Next Topic | Last Topic | Index | Library ]

Class Class

The Object Model
A class is a collection of one or more objects. Each object within an object hierarchy possesses a parent object. Only the topmost object in an object hierarchy, called the root, has no parent object. Thus, a class represents an object and all its ancestors. In MUDzilla, this root object is called TObject, and it grants basic object functionality to all other objects within the system. Specifically, TObject defines a ClassName property that is used to identify the class of an object instance.

MUDzilla uses class names to form relationships between an object's property values and their location within persistent database tables. There is a many-to-one correspondence between MUDzilla class names and database tables. By storing the class name within each object identifier, the system can always locate the table in which an object's persistent property values are stored. By allowing multiple classes per table, a greater level of abstraction can be achieved without maintaining additional, identically-structured data tables.

Delphi uses class definitions at run-time to manage object instances in memory. During construction, objects are allocated memory in order from the root, TObject. For each object, memory for property values is allocated first, followed by memory for method code. Destruction occurs in reverse order.

See Also See Also:


AbilitiesAvatarCommand AliasValueIndexLibrary
[ First Topic | Previous Topic | Next Topic | Last Topic | Index | Library ]


The MUDzilla Simulation System
Please e-mail us your comments and inquiries.
© 1994-2002 Myne Corporation

Myne Corporation