Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class TMuggleDefinition

Unit

MuggleObject

Declaration

type TMuggleDefinition = class(TMuggleBaseObject)

Description

============================================================================
TMuggleDefinition

There is one MuggleDefinition per class of MuggleObject.
A MuggleDefinition is created by MuggleManager.RegisterClass
When a MuggleObject is first created, it's Initialization routine is called.
This allows objects to use no memory until they are created, so there could be many possible objects for the world, not using resources until created.
This behavior can be called ahead of time, to preload during startup.
The user does not need to worry about MuggleDefinitions. They are maintained by the engine. However they can be useful to store one-time class Data (such as the MasterObject FreeForm for ProxyObjects), and class-wide information.

Hierarchy

TMuggleBaseObject

Methods

Overview

Public Constructor Create; override;
Public procedure DecrementCount;
Public Destructor Destroy; override;
Public procedure IncrementCount;

Description

Public Constructor Create; override;

 

Public procedure DecrementCount;

Decrement Count by 1

Public Destructor Destroy; override;

 

Public procedure IncrementCount;

Increment Count by 1

Properties

Overview

Public property ClassID: integer;
Public property ClassKind: TMuggleClass;
Public property Count: integer;
Public property Data: TMuggleBaseContainer;
Public property Initialized: boolean;
Public property Maximum: integer;
Public property Name: string;
Public property NamePlural: string;
Public property NameSearch: string;
Public property NameSearchPlural: string;

Description

Public property ClassID: integer;

Unique Class ID

Public property ClassKind: TMuggleClass;

Class

Public property Count: integer;

Current number in the world

Public property Data: TMuggleBaseContainer;

Storage (master objects, etc)

Public property Initialized: boolean;

Has this class been initialized? (an object of this class added to the engine)

Public property Maximum: integer;

Maximum allowed in the world

Public property Name: string;

Name

Public property NamePlural: string;

Plural Name

Public property NameSearch: string;

Lower cased name for searching

Public property NameSearchPlural: string;

Lower cased plural name for searching


Generated by PasDoc 0.8.7 on Mon 29/ Sep 2003 18:51:05