#include <monster.h>
Public Member Functions | |
mon_enchant (enchant_type e=ENCH_NONE, int deg=0, kill_category whose=KC_OTHER, int dur=0) | |
killer_type | killer () const |
int | kill_agent () const |
operator std::string () const | |
const char * | kill_category_desc (kill_category) const |
void | merge_killer (kill_category who) |
void | cap_degree () |
void | set_duration (const monster *mons, const mon_enchant *exist) |
bool | operator< (const mon_enchant &other) const |
bool | operator== (const mon_enchant &other) const |
mon_enchant & | operator+= (const mon_enchant &other) |
mon_enchant | operator+ (const mon_enchant &other) const |
Public Attributes | |
enchant_type | ench |
int | degree |
int | duration |
int | maxduration |
kill_category | who |
mon_enchant::mon_enchant | ( | enchant_type | e = ENCH_NONE , |
|
int | deg = 0 , |
|||
kill_category | whose = KC_OTHER , |
|||
int | dur = 0 | |||
) |
killer_type mon_enchant::killer | ( | ) | const |
int mon_enchant::kill_agent | ( | ) | const |
mon_enchant::operator std::string | ( | ) | const |
const char * mon_enchant::kill_category_desc | ( | kill_category | k | ) | const |
void mon_enchant::merge_killer | ( | kill_category | who | ) |
void mon_enchant::cap_degree | ( | ) |
void mon_enchant::set_duration | ( | const monster * | mons, | |
const mon_enchant * | exist | |||
) |
bool mon_enchant::operator< | ( | const mon_enchant & | other | ) | const [inline] |
bool mon_enchant::operator== | ( | const mon_enchant & | other | ) | const [inline] |
mon_enchant & mon_enchant::operator+= | ( | const mon_enchant & | other | ) |
mon_enchant mon_enchant::operator+ | ( | const mon_enchant & | other | ) | const |