Object

From IFWiki

Revision as of 23:55, 23 September 2009 by Dswxyz (talk | contribs) (+ Game mechanics; commented out the original author)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In IF, the fundamental component of the model world, generally simulating some physical thing (such as an inventory item or piece of scenery) or an entity the player can interact with (such as an NPC or an "esoteric" object, like a shaft of sunlight). In most authoring systems, game objects are represented by a programmatic object. Programmatic objects are also used in IF to represent abstract concepts, such as a piece of knowledge, or to control other aspects of the game's behavior.

In computer programming, an object is a structure which encapsulates both data (attributes) and executable procedures (methods).