![]() |
Crossfire Server, Trunk
1.75.0
|
Go to the source code of this file.
Functions | |
static void | bitstostring (long bits, int num) |
Writes num ones and zeros to standard output based on the bits variable. More... | |
void | dump_abilities (void) |
Dump to standard out the abilities of all monsters. More... | |
void | print_monsters (void) |
As dump_abilities(), but with an alternative way of output. More... | |
The functions in this file are purely mean to generate information in differently formatted output, mainly about monsters.
Definition in file info.cpp.
|
static |
Writes num ones and zeros to standard output based on the bits variable.
bits | variable to convert to binary string |
num | number of bits to dump. Values above 32 will be ignored. |
Definition at line 35 of file info.cpp.
Referenced by print_monsters().
void dump_abilities | ( | void | ) |
Dump to standard out the abilities of all monsters.
Definition at line 52 of file info.cpp.
References archetypes, AssetsManager::archetypes(), archetype::clone, describe_item(), AssetsCollection< T, Key >::each(), FLAG_CHANGING, FLAG_MONSTER, FMT64, getManager(), HEAD, if(), name, archetype::name, object::other_arch, QUERY_FLAG, and stringbuffer_finish().
Referenced by init_beforeplay().
void print_monsters | ( | void | ) |
As dump_abilities(), but with an alternative way of output.
Definition at line 87 of file info.cpp.
References living::ac, object::arch, arch_to_object(), AssetsManager::archetypes(), object::attacktype, attacktype_desc, bitstostring(), living::dam, AssetsCollection< T, Key >::each(), living::exp, FLAG_MONSTER, FMT64, getManager(), living::maxhp, archetype::name, new_exp(), NROFATTACKS, object_free_drop_inventory(), QUERY_FLAG, object::resist, resist_plus, object::stats, and living::wc.
Referenced by init_beforeplay().