body.h
musicmud-2.1.6/include/body.h · 700 B
From the archive musicmud2.1.6.tar.gz
Download the archive « Back to the archive contents
#ifndef BODY_H
#define BODY_H
struct pairs_t {
const char *both;
const char *left;
const char *right;
const char *single;
const char *lnice;
const char *rnice;
int depends;
};
extern int pairs_n;
extern pairs_t pairs[];
extern const char *fingers[8];
//! data about a 'mog' target.
struct animal_t {
const char *noun;
const char *adj;
const char *noise;
const char *body;
};
//! the various 'mog' targets
extern animal_t animals[];
//! a pointer to a member of animal_t
typedef const char *(animal_t::*anoff_t);
//! match animal with given adjective and return contents of given member of it
const char *get_mog_noun(const char *adj, anoff_t la=&animal_t::noun);
#endif