2010-08-08 10:06:34 +02:00
|
|
|
|
#include <platform.h>
|
|
|
|
|
#include "settings.h"
|
|
|
|
|
#include "eressea.h"
|
|
|
|
|
|
|
|
|
|
#include <kernel/config.h>
|
|
|
|
|
#include <util/log.h>
|
|
|
|
|
|
|
|
|
|
#if MUSEUM_MODULE
|
|
|
|
|
#include <modules/museum.h>
|
|
|
|
|
#endif
|
|
|
|
|
#if ARENA_MODULE
|
|
|
|
|
#include <modules/arena.h>
|
|
|
|
|
#endif
|
|
|
|
|
#include <triggers/triggers.h>
|
|
|
|
|
#include <util/language.h>
|
|
|
|
|
#include <kernel/xmlreader.h>
|
|
|
|
|
#include <kernel/reports.h>
|
|
|
|
|
#include <kernel/item.h>
|
|
|
|
|
#include <kernel/names.h>
|
|
|
|
|
#include <kernel/reports.h>
|
|
|
|
|
#include <kernel/building.h>
|
|
|
|
|
#include <modules/wormhole.h>
|
2014-03-22 21:49:18 +01:00
|
|
|
|
#include <modules/gmcmd.h>
|
2010-08-08 10:06:34 +02:00
|
|
|
|
#include <modules/xmas.h>
|
|
|
|
|
#include <items/itemtypes.h>
|
|
|
|
|
#include <attributes/attributes.h>
|
2014-02-18 05:45:00 +01:00
|
|
|
|
#include "archetype.h"
|
|
|
|
|
#include "report.h"
|
|
|
|
|
#include "items.h"
|
|
|
|
|
#include "creport.h"
|
|
|
|
|
#include "xmlreport.h"
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
2012-06-07 04:29:36 +02:00
|
|
|
|
void game_done(void)
|
2010-08-08 10:06:34 +02:00
|
|
|
|
{
|
|
|
|
|
#ifdef CLEANUP_CODE
|
|
|
|
|
/* Diese Routine enfernt allen allokierten Speicher wieder. Das ist nur
|
2011-03-07 08:02:35 +01:00
|
|
|
|
* zum Debugging interessant, wenn man Leak Detection hat, und nach
|
|
|
|
|
* nicht freigegebenem Speicher sucht, der nicht bis zum Ende ben<EFBFBD>tigt
|
|
|
|
|
* wird (tempor<EFBFBD>re Hilsstrukturen) */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
|
|
free_game();
|
|
|
|
|
|
|
|
|
|
creport_cleanup();
|
|
|
|
|
#ifdef REPORT_FORMAT_NR
|
|
|
|
|
report_cleanup();
|
|
|
|
|
#endif
|
|
|
|
|
calendar_cleanup();
|
|
|
|
|
#endif
|
2012-06-07 04:29:36 +02:00
|
|
|
|
kernel_done();
|
2010-08-08 10:06:34 +02:00
|
|
|
|
}
|
|
|
|
|
|
2012-06-07 04:29:36 +02:00
|
|
|
|
void game_init(void)
|
2010-08-08 10:06:34 +02:00
|
|
|
|
{
|
2012-06-07 04:29:36 +02:00
|
|
|
|
kernel_init();
|
2010-08-08 10:06:34 +02:00
|
|
|
|
register_triggers();
|
|
|
|
|
register_xmas();
|
|
|
|
|
|
|
|
|
|
register_reports();
|
|
|
|
|
register_nr();
|
|
|
|
|
register_cr();
|
|
|
|
|
register_xr();
|
|
|
|
|
|
|
|
|
|
register_names();
|
|
|
|
|
register_resources();
|
|
|
|
|
register_buildings();
|
|
|
|
|
register_itemfunctions();
|
|
|
|
|
#if DUNGEON_MODULE
|
|
|
|
|
register_dungeon();
|
|
|
|
|
#endif
|
|
|
|
|
#if MUSEUM_MODULE
|
|
|
|
|
register_museum();
|
|
|
|
|
#endif
|
|
|
|
|
#if ARENA_MODULE
|
|
|
|
|
register_arena();
|
|
|
|
|
#endif
|
|
|
|
|
register_wormholes();
|
|
|
|
|
|
|
|
|
|
register_itemtypes();
|
|
|
|
|
register_xmlreader();
|
|
|
|
|
register_archetypes();
|
|
|
|
|
enable_xml_gamecode();
|
|
|
|
|
|
|
|
|
|
register_attributes();
|
2014-03-22 21:49:18 +01:00
|
|
|
|
register_gmcmd();
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
|
|
}
|