#include "AppHdr.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <cstdlib>
#include <fstream>
#include <unistd.h>
#include "clua.h"
#include "database.h"
#include "files.h"
#include "libutil.h"
#include "random.h"
#include "stuff.h"
#define MAX_RECURSION_DEPTH 10 |
#define MAX_REPLACEMENTS 100 |
datum database_fetch | ( | DBM * | database, | |
const std::string & | key | |||
) |
std::vector<std::string> database_find_bodies | ( | DBM * | database, | |
const std::string & | regex, | |||
bool | ignore_case, | |||
db_find_filter | filter | |||
) |
std::vector<std::string> database_find_keys | ( | DBM * | database, | |
const std::string & | regex, | |||
bool | ignore_case, | |||
db_find_filter | filter | |||
) |
void databaseSystemInit | ( | ) |
void databaseSystemShutdown | ( | ) |
std::vector<std::string> getAllFAQKeys | ( | void | ) |
std::string getFAQ_Answer | ( | const std::string & | question | ) |
std::string getFAQ_Question | ( | const std::string & | key | ) |
std::string getGameStartDescription | ( | const std::string & | key | ) |
std::string getHelpString | ( | const std::string & | topic | ) |
std::vector<std::string> getLongDescBodiesByRegex | ( | const std::string & | regex, | |
db_find_filter | filter | |||
) |
std::vector<std::string> getLongDescKeysByRegex | ( | const std::string & | regex, | |
db_find_filter | filter | |||
) |
std::string getLongDescription | ( | const std::string & | key | ) |
std::string getMiscString | ( | const std::string & | misc, | |
const std::string & | suffix | |||
) |
std::string getQuoteString | ( | const std::string & | key | ) |
std::string getRandNameString | ( | const std::string & | itemtype, | |
const std::string & | suffix | |||
) |
std::string getShoutString | ( | const std::string & | monst, | |
const std::string & | suffix | |||
) |
std::string getSpeakString | ( | const std::string & | key | ) |
std::string getWeightedRandomisedDescription | ( | const std::string & | key | ) |
std::string getWeightedSpeechString | ( | const std::string & | key, | |
const std::string & | suffix, | |||
const int | weight | |||
) |