#include <hiscores.h>
Public Types | |
enum | death_desc_verbosity { DDV_TERSE, DDV_ONELINE, DDV_NORMAL, DDV_VERBOSE, DDV_LOGVERBOSE } |
Public Member Functions | |
scorefile_entry () | |
scorefile_entry (int damage, int death_source, int death_type, const char *aux, bool death_cause_only=false, const char *death_source_name=NULL, time_t death_time=0) | |
scorefile_entry (const scorefile_entry &se) | |
scorefile_entry & | operator= (const scorefile_entry &other) |
void | init_death_cause (int damage, int death_source, int death_type, const char *aux, const char *death_source_name) |
void | init (time_t death_time=0) |
void | reset () |
std::string | raw_string () const |
bool | parse (const std::string &line) |
std::string | hiscore_line (death_desc_verbosity verbosity) const |
std::string | character_description (death_desc_verbosity) const |
std::string | death_description (death_desc_verbosity) const |
std::string | death_place (death_desc_verbosity) const |
std::string | game_time (death_desc_verbosity) const |
int | get_score () const |
int | get_death_type () const |
time_t | get_death_time () const |
xlog_fields | get_fields () const |
void | set_base_xlog_fields () const |
scorefile_entry::scorefile_entry | ( | ) |
scorefile_entry::scorefile_entry | ( | int | damage, | |
int | death_source, | |||
int | death_type, | |||
const char * | aux, | |||
bool | death_cause_only = false , |
|||
const char * | death_source_name = NULL , |
|||
time_t | death_time = 0 | |||
) |
scorefile_entry::scorefile_entry | ( | const scorefile_entry & | se | ) |
scorefile_entry & scorefile_entry::operator= | ( | const scorefile_entry & | other | ) |
void scorefile_entry::init_death_cause | ( | int | damage, | |
int | death_source, | |||
int | death_type, | |||
const char * | aux, | |||
const char * | death_source_name | |||
) |
void scorefile_entry::init | ( | time_t | death_time = 0 |
) |
void scorefile_entry::reset | ( | ) |
std::string scorefile_entry::raw_string | ( | ) | const |
bool scorefile_entry::parse | ( | const std::string & | line | ) |
std::string scorefile_entry::hiscore_line | ( | death_desc_verbosity | verbosity | ) | const |
std::string scorefile_entry::character_description | ( | death_desc_verbosity | verbosity | ) | const |
std::string scorefile_entry::death_description | ( | death_desc_verbosity | verbosity | ) | const |
std::string scorefile_entry::death_place | ( | death_desc_verbosity | verbosity | ) | const |
std::string scorefile_entry::game_time | ( | death_desc_verbosity | verbosity | ) | const |
int scorefile_entry::get_score | ( | ) | const [inline] |
int scorefile_entry::get_death_type | ( | ) | const [inline] |
time_t scorefile_entry::get_death_time | ( | ) | const [inline] |
xlog_fields scorefile_entry::get_fields | ( | ) | const |
void scorefile_entry::set_base_xlog_fields | ( | ) | const |