#include "AppHdr.h"
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <iterator>
#include <algorithm>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "artefact.h"
#include "branch.h"
#include "coord.h"
#include "coordit.h"
#include "describe.h"
#include "dungeon.h"
#include "enum.h"
#include "errors.h"
#include "map_knowledge.h"
#include "externs.h"
#include "files.h"
#include "ghost.h"
#include "itemname.h"
#include "libutil.h"
#include "mapmark.h"
#include "mon-info.h"
#include "mon-util.h"
#include "mon-transit.h"
#include "quiver.h"
#include "skills.h"
#include "skills2.h"
#include "state.h"
#include "stuff.h"
#include "env.h"
#include "tags.h"
#include "travel.h"
Classes | |
union | float_marshall_kludge |
Defines | |
#define | CHECK_INITIALIZED(x) |
#define | MAP_SERIALIZE_FLAGS_MASK 3 |
#define | MAP_SERIALIZE_FLAGS_8 1 |
#define | MAP_SERIALIZE_FLAGS_16 2 |
#define | MAP_SERIALIZE_FLAGS_32 3 |
#define | MAP_SERIALIZE_FEATURE 4 |
#define | MAP_SERIALIZE_FEATURE_COLOUR 8 |
#define | MAP_SERIALIZE_ITEM 0x10 |
#define | MAP_SERIALIZE_CLOUD 0x20 |
#define | MAP_SERIALIZE_MONSTER 0x40 |
#define | MAP_SERIALIZE_CLOUD_COLOUR 0x80 |
Functions | |
void | marshallByte (writer &th, int8_t data) |
int8_t | unmarshallByte (reader &th) |
void | marshallUByte (writer &th, uint8_t data) |
uint8_t | unmarshallUByte (reader &th) |
void | marshallShort (std::vector< unsigned char > &buf, short data) |
void | marshallShort (writer &th, short data) |
int16_t | unmarshallShort (reader &th) |
void | marshallInt (std::vector< unsigned char > &buf, int32_t data) |
void | marshallInt (writer &th, int32_t data) |
int32_t | unmarshallInt (reader &th) |
void | marshallUnsigned (writer &th, uint64_t v) |
uint64_t | unmarshallUnsigned (reader &th) |
void | marshallSigned (writer &th, int64_t v) |
int64_t | unmarshallSigned (reader &th) |
template<typename data> | |
void | marshallSet (writer &th, const std::set< data > &s, void(*marshall)(writer &, const data &)) |
template<typename key, typename value> | |
void | marshallMap (writer &th, const std::map< key, value > &data, void(*key_marshall)(writer &, const key &), void(*value_marshall)(writer &, const value &)) |
void | marshall_level_id (writer &th, const level_id &id) |
void | marshall_level_pos (writer &th, const level_pos &lpos) |
template<typename data, typename set> | |
void | unmarshallSet (reader &th, set &dset, data(*data_unmarshall)(reader &)) |
template<typename key, typename value, typename map> | |
void | unmarshallMap (reader &th, map &data, key(*key_unmarshall)(reader &), value(*value_unmarshall)(reader &)) |
template<typename T> | |
T | unmarshall_long_as (reader &th) |
level_id | unmarshall_level_id (reader &th) |
level_pos | unmarshall_level_pos (reader &th) |
void | marshallCoord (writer &th, const coord_def &c) |
coord_def | unmarshallCoord (reader &th) |
void | marshallFloat (writer &th, float data) |
float | unmarshallFloat (reader &th) |
void | marshallString (writer &th, const std::string &data, int maxSize) |
std::string | unmarshallString (reader &th, int maxSize) |
void | marshallString4 (writer &th, const std::string &data) |
void | unmarshallString4 (reader &th, std::string &s) |
void | marshallBoolean (writer &th, bool data) |
bool | unmarshallBoolean (reader &th) |
std::string | make_date_string (time_t in_date) |
void | marshallEnumVal (writer &wr, const enum_info *ei, int val) |
int | unmarshallEnumVal (reader &rd, const enum_info *ei) |
void | tag_write (tag_type tagID, writer &outf) |
void | tag_read (reader &inf, tag_type tag_id) |
void | marshallItem (writer &th, const item_def &item) |
void | unmarshallItem (reader &th, item_def &item) |
void | marshallMapCell (writer &th, const map_cell &cell) |
void | unmarshallMapCell (reader &th, map_cell &cell) |
void | marshallMonster (writer &th, const monster &m) |
void | marshallMonsterInfo (writer &th, const monster_info &mi) |
void | unmarshallMonsterInfo (reader &th, monster_info &mi) |
void | unmarshallMonster (reader &th, monster &m) |
Variables | |
std::map< branch_type, level_id > | stair_level |
std::map< level_pos, shop_type > | shops_present |
std::map< level_pos, god_type > | altars_present |
std::map< level_pos, portal_type > | portals_present |
std::map< level_pos, std::string > | portal_vaults_present |
std::map< level_pos, std::string > | portal_vault_notes |
std::map< level_pos, uint8_t > | portal_vault_colours |
std::map< level_id, std::string > | level_annotations |
std::map< level_id, std::string > | level_exclusions |
level_id_set | Generated_Levels |
#define CHECK_INITIALIZED | ( | x | ) |
#define MAP_SERIALIZE_CLOUD 0x20 |
#define MAP_SERIALIZE_CLOUD_COLOUR 0x80 |
#define MAP_SERIALIZE_FEATURE 4 |
#define MAP_SERIALIZE_FEATURE_COLOUR 8 |
#define MAP_SERIALIZE_FLAGS_16 2 |
#define MAP_SERIALIZE_FLAGS_32 3 |
#define MAP_SERIALIZE_FLAGS_8 1 |
#define MAP_SERIALIZE_FLAGS_MASK 3 |
#define MAP_SERIALIZE_ITEM 0x10 |
#define MAP_SERIALIZE_MONSTER 0x40 |
std::string make_date_string | ( | time_t | in_date | ) |
void marshallBoolean | ( | writer & | th, | |
bool | data | |||
) |
void marshallByte | ( | writer & | th, | |
int8_t | data | |||
) |
void marshallFloat | ( | writer & | th, | |
float | data | |||
) |
void marshallInt | ( | writer & | th, | |
int32_t | data | |||
) |
void marshallInt | ( | std::vector< unsigned char > & | buf, | |
int32_t | data | |||
) |
void marshallMap | ( | writer & | th, | |
const std::map< key, value > & | data, | |||
void(*)(writer &, const key &) | key_marshall, | |||
void(*)(writer &, const value &) | value_marshall | |||
) | [inline] |
void marshallMonsterInfo | ( | writer & | th, | |
const monster_info & | mi | |||
) |
void marshallSet | ( | writer & | th, | |
const std::set< data > & | s, | |||
void(*)(writer &, const data &) | marshall | |||
) | [inline] |
void marshallShort | ( | writer & | th, | |
short | data | |||
) |
void marshallShort | ( | std::vector< unsigned char > & | buf, | |
short | data | |||
) |
void marshallSigned | ( | writer & | th, | |
int64_t | v | |||
) |
void marshallString | ( | writer & | th, | |
const std::string & | data, | |||
int | maxSize | |||
) |
void marshallString4 | ( | writer & | th, | |
const std::string & | data | |||
) |
void marshallUByte | ( | writer & | th, | |
uint8_t | data | |||
) |
void marshallUnsigned | ( | writer & | th, | |
uint64_t | v | |||
) |
T unmarshall_long_as | ( | reader & | th | ) | [inline] |
bool unmarshallBoolean | ( | reader & | th | ) |
int8_t unmarshallByte | ( | reader & | th | ) |
float unmarshallFloat | ( | reader & | th | ) |
int32_t unmarshallInt | ( | reader & | th | ) |
void unmarshallMap | ( | reader & | th, | |
map & | data, | |||
key(*)(reader &) | key_unmarshall, | |||
value(*)(reader &) | value_unmarshall | |||
) | [inline] |
void unmarshallMonsterInfo | ( | reader & | th, | |
monster_info & | mi | |||
) |
void unmarshallSet | ( | reader & | th, | |
set & | dset, | |||
data(*)(reader &) | data_unmarshall | |||
) | [inline] |
int16_t unmarshallShort | ( | reader & | th | ) |
int64_t unmarshallSigned | ( | reader & | th | ) |
std::string unmarshallString | ( | reader & | th, | |
int | maxSize | |||
) |
void unmarshallString4 | ( | reader & | th, | |
std::string & | s | |||
) |
uint8_t unmarshallUByte | ( | reader & | th | ) |
uint64_t unmarshallUnsigned | ( | reader & | th | ) |
std::map<level_pos, god_type> altars_present |
std::map<level_id, std::string> level_annotations |
std::map<level_id, std::string> level_exclusions |
std::map<level_pos, uint8_t> portal_vault_colours |
std::map<level_pos, std::string> portal_vault_notes |
std::map<level_pos, std::string> portal_vaults_present |
std::map<level_pos, portal_type> portals_present |
std::map<level_pos, shop_type> shops_present |
std::map<branch_type, level_id> stair_level |