Class: thing

Description:

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

Non-living physical objects belong to the class thing, e.g., weapons, bags, money, food, etc.

Usage:

#include <class.h>

inherit THING;

void create() {
  thing::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 emitter:
  set_short("short description"); // required (has alternative)
  set_long("long description");   // required (has alternative)
}

Functions:

All functions defined in class object.

All functions defined in ability containable.

All functions defined in ability emitter.

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

string query_short()
Shorthand for request_msg("/visual/short").

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

string query_long()
Shorthand for request_msg("/visual/long").

Source code:

/class/thing.c

See also:

Ability: containable
Ability: emitter