Object

From IFWiki
Jump to: navigation, search

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).