levels.h
musicmud-2.1.6/include/levels.h · 450 B
From the archive musicmud2.1.6.tar.gz
Download the archive « Back to the archive contents
#ifndef LEVELS_H
#define LEVELS_H
#include "musicmud.h"
#include "misc.h"
const char *get_rank(int i);
const char *long_rank(int i);
const char *plural_rank(int i);
const char *get_rank(const MudObject *o);
const char *get_long_rank(const MudObject *o);
inline string object_title(const MudObject *who) {
if (const char *title = who->get("title"))
return title;
return ssprintf ("%s %s", get_long_rank(who), who->get("name"));
}
#endif