English (United Kingdom) Hebrew


An object within Mama is a software unit which encapsulates methods and properties. Object properties may be read and changed, and object methods can be activated by calling them. As a convention in the development environment, methods are called functions when they return a value.

For example, if we have an object called Miki, and it includes the method walk, we can activate it as follows:
  • Alice style:
Miki.walk 10, left
  • Mama style:
Miki.walk(10, left);

An object might be constructed out of sub parts. The object tree, located on the upper left side in the development environment displays the objects currently existing in the world. An object may be selected in this window and be opened by clicking on the '+' sign to its left - the sub parts of the object are then displayed.