![]() |
Crossfire Server, Trunk
1.75.0
|
#include <cfnewspaper.h>#include <stdarg.h>#include <cfnewspaper_proto.h>#include <sqlite3.h>#include <stdlib.h>#include <string.h>#include <svnversion.h>
Include dependency graph for cfnewspaper.cpp:Go to the source code of this file.
Data Structures | |
| struct | kill_format |
| struct | paper_properties |
Typedefs | |
| typedef struct kill_format | kill_format |
| typedef struct paper_properties | paper_properties |
Functions | |
| int | cfnewspaper_globalEventListener (int *type,...) |
| int | cfnewspaper_runPluginCommand (object *op, char *params) |
| int | closePlugin (void) |
| called before the plugin gets unloaded from memory. More... | |
| static void | do_kills (char *buffer, int size, time_t start, time_t end, const char *reg, kill_format *format) |
| static void | do_region (region *reg, char *buffer, int size, time_t start, time_t end) |
| static void | do_region_kills (region *reg, char *buffer, int size, time_t start, time_t end) |
| static void | do_sql (const char *sql, sqlite3 *base) |
| static void | do_world (char *buffer, int size, time_t start, time_t end) |
| static void | do_world_kills (char *buffer, int size, time_t start, time_t end) |
| int | eventListener (int *type,...) |
| Handles an object-related event. More... | |
| static void | format_time (timeofday_t *tod, char *buffer, int size) |
| static paper_properties * | get_newspaper (const char *name) |
| static void | get_newspaper_content (object *paper, paper_properties *properties, region *reg) |
| static int | get_region_id (region *reg) |
| void * | getPluginProperty (int *type,...) |
| The server calls this function to get information about the plugin, notably the name and version. More... | |
| int | initPlugin (const char *iversion, f_plug_api gethooksptr) |
| The server calls this function after loading the plugin. More... | |
| static void | news_cat (char *buffer, int size, const char *format,...) |
| int | postInitPlugin (void) |
| The server calls this function to actually initialize the plugin here, after object handlers are registered. More... | |
| static void | read_parameters (void) |
Variables | |
| static paper_properties | default_properties |
| f_plug_api | gethook |
| static sqlite3 * | logger_database |
| static sqlite3 * | newspaper_database |
| f_plug_api | reCmp |
| f_plug_api | registerGlobalEvent |
| CF_PLUGIN char | SvnRevPlugin [] = SVN_REV |
| f_plug_api | unregisterGlobalEvent |
| typedef struct kill_format kill_format |
| typedef struct paper_properties paper_properties |
| int cfnewspaper_globalEventListener | ( | int * | type, |
| ... | |||
| ) |
Definition at line 137 of file cfnewspaper.cpp.
References is_valid_types_gen::type.
| int cfnewspaper_runPluginCommand | ( | object * | op, |
| char * | params | ||
| ) |
Definition at line 133 of file cfnewspaper.cpp.
|
static |
Definition at line 219 of file cfnewspaper.cpp.
References buffer, cf_log(), llevError, logger_database, kill_format::many_monster_death, kill_format::many_player_death, news_cat(), kill_format::no_monster_death, kill_format::no_player_death, kill_format::one_monster_death, kill_format::one_player_death, and PLUGIN_NAME.
Referenced by do_region_kills(), and do_world_kills().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 286 of file cfnewspaper.cpp.
References buffer, do_region_kills(), region::name, and news_cat().
Referenced by get_newspaper_content().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 268 of file cfnewspaper.cpp.
References buffer, do_kills(), get_region_id(), kill_format::many_monster_death, kill_format::many_player_death, kill_format::no_monster_death, kill_format::no_player_death, kill_format::one_monster_death, and kill_format::one_player_death.
Referenced by do_region().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 53 of file cfnewspaper.cpp.
References cf_log(), llevError, and PLUGIN_NAME.
Referenced by get_region_id().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 304 of file cfnewspaper.cpp.
References buffer, do_world_kills(), and news_cat().
Referenced by get_newspaper_content().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 292 of file cfnewspaper.cpp.
References buffer, do_kills(), kill_format::many_monster_death, kill_format::many_player_death, kill_format::no_monster_death, kill_format::no_player_death, kill_format::one_monster_death, and kill_format::one_player_death.
Referenced by do_world().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 91 of file cfnewspaper.cpp.
References buffer, timeofday_t::day, timeofday_t::hour, timeofday_t::minute, timeofday_t::month, and timeofday_t::year.
Referenced by get_newspaper_content().
Here is the caller graph for this function:
|
static |
Definition at line 204 of file cfnewspaper.cpp.
References default_properties.
Referenced by eventListener().
Here is the caller graph for this function:
|
static |
Definition at line 310 of file cfnewspaper.cpp.
References cf_get_time(), cf_log(), cf_object_set_string_property(), CFAPI_OBJECT_PROP_MESSAGE, contents, do_region(), do_world(), format_time(), paper_properties::info_region, paper_properties::info_world, llevError, logger_database, PLUGIN_NAME, and time.
Referenced by eventListener().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 67 of file cfnewspaper.cpp.
References do_sql(), is_valid_types_gen::line, logger_database, and region::name.
Referenced by do_region_kills().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 208 of file cfnewspaper.cpp.
References buffer.
Referenced by do_kills(), do_region(), and do_world().
Here is the caller graph for this function:
|
static |
Definition at line 95 of file cfnewspaper.cpp.
Referenced by postInitPlugin().
Here is the caller graph for this function:
|
static |
Definition at line 189 of file cfnewspaper.cpp.
Referenced by get_newspaper().
| f_plug_api gethook |
Definition at line 41 of file cfnewspaper.cpp.
|
static |
Definition at line 49 of file cfnewspaper.cpp.
Referenced by closePlugin(), do_kills(), get_newspaper_content(), get_region_id(), and postInitPlugin().
|
static |
Definition at line 51 of file cfnewspaper.cpp.
Referenced by closePlugin(), and postInitPlugin().
| f_plug_api reCmp |
Definition at line 47 of file cfnewspaper.cpp.
| f_plug_api registerGlobalEvent |
Definition at line 43 of file cfnewspaper.cpp.
Definition at line 39 of file cfnewspaper.cpp.
| f_plug_api unregisterGlobalEvent |
Definition at line 45 of file cfnewspaper.cpp.