tags.cc File Reference

#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"

Include dependency graph for tags.cc:


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>
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_idstair_level
std::map< level_pos, shop_typeshops_present
std::map< level_pos, god_typealtars_present
std::map< level_pos, portal_typeportals_present
std::map< level_pos, std::stringportal_vaults_present
std::map< level_pos, std::stringportal_vault_notes
std::map< level_pos, uint8_t > portal_vault_colours
std::map< level_id, std::stringlevel_annotations
std::map< level_id, std::stringlevel_exclusions
level_id_set Generated_Levels

Define Documentation

#define CHECK_INITIALIZED (  ) 

#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


Function Documentation

std::string make_date_string ( time_t  in_date  ) 

Here is the call graph for this function:

void marshall_level_id ( writer th,
const level_id id 
)

Here is the call graph for this function:

void marshall_level_pos ( writer th,
const level_pos lpos 
)

Here is the call graph for this function:

void marshallBoolean ( writer th,
bool  data 
)

Here is the call graph for this function:

void marshallByte ( writer th,
int8_t  data 
)

Here is the call graph for this function:

void marshallCoord ( writer th,
const coord_def c 
)

Here is the call graph for this function:

void marshallEnumVal ( writer wr,
const enum_info ei,
int  val 
)

Here is the call graph for this function:

void marshallFloat ( writer th,
float  data 
)

Here is the call graph for this function:

void marshallInt ( writer th,
int32_t  data 
)

Here is the call graph for this function:

void marshallInt ( std::vector< unsigned char > &  buf,
int32_t  data 
)

void marshallItem ( writer th,
const item_def item 
)

Here is the call graph for this function:

template<typename key, typename value>
void marshallMap ( writer th,
const std::map< key, value > &  data,
void(*)(writer &, const key &)  key_marshall,
void(*)(writer &, const value &)  value_marshall 
) [inline]

Here is the call graph for this function:

void marshallMapCell ( writer th,
const map_cell cell 
)

Here is the call graph for this function:

void marshallMonster ( writer th,
const monster m 
)

Here is the call graph for this function:

void marshallMonsterInfo ( writer th,
const monster_info mi 
)

Here is the call graph for this function:

template<typename data>
void marshallSet ( writer th,
const std::set< data > &  s,
void(*)(writer &, const data &)  marshall 
) [inline]

Here is the call graph for this function:

void marshallShort ( writer th,
short  data 
)

Here is the call graph for this function:

void marshallShort ( std::vector< unsigned char > &  buf,
short  data 
)

void marshallSigned ( writer th,
int64_t  v 
)

Here is the call graph for this function:

void marshallString ( writer th,
const std::string data,
int  maxSize 
)

Here is the call graph for this function:

void marshallString4 ( writer th,
const std::string data 
)

Here is the call graph for this function:

void marshallUByte ( writer th,
uint8_t  data 
)

Here is the call graph for this function:

void marshallUnsigned ( writer th,
uint64_t  v 
)

Here is the call graph for this function:

void tag_read ( reader inf,
tag_type  tag_id 
)

Here is the call graph for this function:

void tag_write ( tag_type  tagID,
writer outf 
)

Here is the call graph for this function:

level_id unmarshall_level_id ( reader th  ) 

Here is the call graph for this function:

level_pos unmarshall_level_pos ( reader th  ) 

Here is the call graph for this function:

template<typename T>
T unmarshall_long_as ( reader th  )  [inline]

Here is the call graph for this function:

bool unmarshallBoolean ( reader th  ) 

Here is the call graph for this function:

int8_t unmarshallByte ( reader th  ) 

Here is the call graph for this function:

coord_def unmarshallCoord ( reader th  ) 

Here is the call graph for this function:

int unmarshallEnumVal ( reader rd,
const enum_info ei 
)

Here is the call graph for this function:

float unmarshallFloat ( reader th  ) 

Here is the call graph for this function:

int32_t unmarshallInt ( reader th  ) 

Here is the call graph for this function:

void unmarshallItem ( reader th,
item_def item 
)

Here is the call graph for this function:

template<typename key, typename value, typename map>
void unmarshallMap ( reader th,
map &  data,
key(*)(reader &)  key_unmarshall,
value(*)(reader &)  value_unmarshall 
) [inline]

Here is the call graph for this function:

void unmarshallMapCell ( reader th,
map_cell cell 
)

Here is the call graph for this function:

void unmarshallMonster ( reader th,
monster m 
)

Here is the call graph for this function:

void unmarshallMonsterInfo ( reader th,
monster_info mi 
)

Here is the call graph for this function:

template<typename data, typename set>
void unmarshallSet ( reader th,
set &  dset,
data(*)(reader &)  data_unmarshall 
) [inline]

Here is the call graph for this function:

int16_t unmarshallShort ( reader th  ) 

Here is the call graph for this function:

int64_t unmarshallSigned ( reader th  ) 

Here is the call graph for this function:

std::string unmarshallString ( reader th,
int  maxSize 
)

void unmarshallString4 ( reader th,
std::string s 
)

Here is the call graph for this function:

uint8_t unmarshallUByte ( reader th  ) 

Here is the call graph for this function:

uint64_t unmarshallUnsigned ( reader th  ) 

Here is the call graph for this function:


Variable Documentation

std::map<level_pos, uint8_t> portal_vault_colours


Generated on Thu Jan 13 13:27:28 2011 by  doxygen 1.5.6