MPUZ: Null Object

From Mario Fan Games Galaxy Wiki
Revision as of 07:45, 4 March 2010 by Xgoff (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This information is subject to change.
MPUZ
Mpuz logo.png
Development Main Page
Basics
Intermediate
Advanced
  • none
Reference
[Edit]


The Null Object is a special object in MPUZ's runtime engine. It never participates during gameplay, has no onscreen object, its events are normally never run, and it contains no useful information. However, it finds use as an error handler and a source of an object reference in cases where a valid reference would not be produced.

The Null Object is referenced by the variable null. Null Objects are created when some error happens during an attempt to load or create another object. In these cases, the Null Object outputs an error message to the error log and immediately destroys itself.

Null Objects have all of their numeric variables set to 0, and all of their string variables are empty except for objid, which contains "MP_Null".