Crossfire Server, Trunk
|
Go to the source code of this file.
Functions | |
static void | bitstostring (long bits, int num, char *str) |
void | dump_abilities (void) |
void | print_monsters (void) |
The functions in this file are purely mean to generate information in differently formatted output, mainly about monsters.
Definition in file info.c.
|
static |
Writes num ones and zeros to the given string based on the bits variable.
bits | variable to convert to binary string |
num | number of bits to dump. Values above 32 will be ignored. |
str | string to write to. Must be long enough. |
Definition at line 39 of file info.c.
References make_face_from_files::str.
Referenced by print_monsters().
void dump_abilities | ( | void | ) |
Dump to standard out the abilities of all monsters.
Definition at line 63 of file info.c.
References liv::ac, archt::clone, describe_item(), liv::exp, FLAG_CHANGING, FLAG_MONSTER, FMT64, get_next_archetype(), HEAD, liv::hp, give::name, obj::name, archt::name, obj::other_arch, QUERY_FLAG, obj::stats, and stringbuffer_finish().
Referenced by init_beforeplay().
void print_monsters | ( | void | ) |
As dump_abilities(), but with an alternative way of output.
Definition at line 101 of file info.c.
References arch_to_object(), bitstostring(), FLAG_MONSTER, FMT64, get_next_archetype(), new_exp(), NROFATTACKS, object_free_drop_inventory(), give::op, and QUERY_FLAG.
Referenced by init_beforeplay().