Class: holder

Description:

Abilities: container, emitter, (name, containable)
Parent classes: object

This is the class of objects which may contain other objects, e.g., rooms, bags, creatures, etc.

Usage:

#include <class.h>

inherit HOLDER;

void create() {
  holder::create();

  // initalizations from class object:
  set_name("name"); // required
  set_alias(({"alias1", ..., "aliasN"}));  // optional

  // initalizations from ability containable:
  set_mass(mass); // required (has alternative)
  set_bulk(bulk); // required (has alternative)

  // initializations from ability container:
  set_mass_capacity(mass capacity); // required
  set_bulk_capacity(bulk capacity); // required
  set_mass_factor(mass factor); // optional
  set_bulk_factor(bulk factor); // optional

  set_long_in("long inside description"); // required
}

Functions:

All functions defined in class object.

All functions defined in ability container.

All functions defined in ability emitter.

void set_long_in(mixed s)
Shorthand for set_req_handler("/visual/long_in", s). See message types specific to classes for further explanation.

string query_long_in()
Shorthand for request_msg("/visual/long/in").

Source code:

/class/holder.c

See also:

Ability: container
Ability: emitter