Instance

From ENIGMA

(Difference between revisions)
Jump to: navigation, search

Revision as of 04:20, 22 December 2010

In ENIGMA, an instance refers to an actual instance, or representation, or copy, if you will, of an object. An instance is to an object as you are to the human species. An object can have any number of instances, each functioning independently of one another with their own set of local variables.


Uses

When an object is created and its behavior programmed (e.g. a bullet), then when it is created in the game that is an instance of that object. So when a player shoots, then every bullet is its own instance.

Built-in variables

Every instance have built in variables that are local to the instance itself. They are updated automatically or can be set.

*These variables are constant and cannot be changed.

Functions

Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox