artefact.h File Reference

#include "externs.h"
#include "art-enum.h"

Include dependency graph for artefact.h:

Go to the source code of this file.

Classes

struct  unrandart_entry

Defines

#define ART_PROPERTIES   ARTP_NUM_PROPERTIES
#define RANDART_SEED_MASK   0x00ffffff
#define KNOWN_PROPS_KEY   "artefact_known_props"
#define ARTEFACT_PROPS_KEY   "artefact_props"
#define ARTEFACT_NAME_KEY   "artefact_name"
#define ARTEFACT_APPEAR_KEY   "artefact_appearance"

Typedefs

typedef FixedVector< int,
ART_PROPERTIES > 
artefact_properties_t
typedef FixedVector< bool,
ART_PROPERTIES > 
artefact_known_props_t

Enumerations

enum  unrand_flag_type {
  UNRAND_FLAG_NONE = 0x00, UNRAND_FLAG_SPECIAL = 0x01, UNRAND_FLAG_HOLY = 0x02, UNRAND_FLAG_UNHOLY = 0x04,
  UNRAND_FLAG_EVIL = 0x08, UNRAND_FLAG_UNCLEAN = 0x10, UNRAND_FLAG_CHAOTIC = 0x20, UNRAND_FLAG_CORPSE_VIOLATING = 0x40,
  UNRAND_FLAG_NOGEN = 0x80
}
enum  setup_missile_type { SM_CONTINUE, SM_FINISHED, SM_CANCEL }

Functions

bool is_known_artefact (const item_def &item)
bool is_artefact (const item_def &item)
bool is_random_artefact (const item_def &item)
bool is_unrandom_artefact (const item_def &item)
bool is_special_unrandom_artefact (const item_def &item)
void artefact_fixup_props (item_def &item)
unique_item_status_type get_unique_item_status (const item_def &item)
unique_item_status_type get_unique_item_status (int unrand_index)
void set_unique_item_status (const item_def &item, unique_item_status_type status)
void set_unique_item_status (int unrand_index, unique_item_status_type status)
std::string get_artefact_name (const item_def &item, bool force_known=false)
void set_artefact_name (item_def &item, const std::string &name)
std::string artefact_name (const item_def &item, bool appearance=false)
const char * unrandart_descrip (int which_descrip, const item_def &item)
int find_okay_unrandart (uint8_t aclass, uint8_t atype=OBJ_RANDOM, bool in_abyss=false)
void artefact_desc_properties (const item_def &item, artefact_properties_t &proprt, artefact_known_props_t &known, bool force_fake_props=false)
void artefact_wpn_properties (const item_def &item, artefact_properties_t &proprt, artefact_known_props_t &known)
void artefact_wpn_properties (const item_def &item, artefact_properties_t &proprt)
int artefact_wpn_property (const item_def &item, artefact_prop_type prop, bool &known)
int artefact_wpn_property (const item_def &item, artefact_prop_type prop)
int artefact_known_wpn_property (const item_def &item, artefact_prop_type prop)
void artefact_wpn_learn_prop (item_def &item, artefact_prop_type prop)
bool make_item_randart (item_def &item, bool force_mundane=false)
bool make_item_unrandart (item_def &item, int unrand_index)
bool randart_is_bad (const item_def &item)
bool randart_is_bad (const item_def &item, artefact_properties_t &proprt)
int find_unrandart_index (const item_def &artefact)
unrandart_entryget_unrand_entry (int unrand_index)
void artefact_set_property (item_def &item, artefact_prop_type prop, int val)
int get_unrandart_num (const char *name)
void cheibriados_make_item_ponderous (item_def &item)


Define Documentation

#define ART_PROPERTIES   ARTP_NUM_PROPERTIES

#define ARTEFACT_APPEAR_KEY   "artefact_appearance"

#define ARTEFACT_NAME_KEY   "artefact_name"

#define ARTEFACT_PROPS_KEY   "artefact_props"

#define KNOWN_PROPS_KEY   "artefact_known_props"

#define RANDART_SEED_MASK   0x00ffffff


Typedef Documentation

typedef FixedVector< bool, ART_PROPERTIES > artefact_known_props_t

typedef FixedVector< int, ART_PROPERTIES > artefact_properties_t


Enumeration Type Documentation

Enumerator:
SM_CONTINUE 
SM_FINISHED 
SM_CANCEL 

Enumerator:
UNRAND_FLAG_NONE 
UNRAND_FLAG_SPECIAL 
UNRAND_FLAG_HOLY 
UNRAND_FLAG_UNHOLY 
UNRAND_FLAG_EVIL 
UNRAND_FLAG_UNCLEAN 
UNRAND_FLAG_CHAOTIC 
UNRAND_FLAG_CORPSE_VIOLATING 
UNRAND_FLAG_NOGEN 


Function Documentation

void artefact_desc_properties ( const item_def item,
artefact_properties_t proprt,
artefact_known_props_t known,
bool  force_fake_props = false 
)

void artefact_fixup_props ( item_def item  ) 

Here is the call graph for this function:

int artefact_known_wpn_property ( const item_def item,
artefact_prop_type  prop 
)

Here is the call graph for this function:

std::string artefact_name ( const item_def item,
bool  appearance = false 
)

Here is the call graph for this function:

void artefact_set_property ( item_def item,
artefact_prop_type  prop,
int  val 
)

Here is the call graph for this function:

void artefact_wpn_learn_prop ( item_def item,
artefact_prop_type  prop 
)

Here is the call graph for this function:

void artefact_wpn_properties ( const item_def item,
artefact_properties_t proprt 
)

void artefact_wpn_properties ( const item_def item,
artefact_properties_t proprt,
artefact_known_props_t known 
)

int artefact_wpn_property ( const item_def item,
artefact_prop_type  prop 
)

Here is the call graph for this function:

int artefact_wpn_property ( const item_def item,
artefact_prop_type  prop,
bool &  known 
)

Here is the call graph for this function:

void cheibriados_make_item_ponderous ( item_def item  ) 

Here is the call graph for this function:

int find_okay_unrandart ( uint8_t  aclass,
uint8_t  atype = OBJ_RANDOM,
bool  in_abyss = false 
)

Here is the call graph for this function:

int find_unrandart_index ( const item_def artefact  ) 

std::string get_artefact_name ( const item_def item,
bool  force_known = false 
)

Here is the call graph for this function:

unique_item_status_type get_unique_item_status ( int  unrand_index  ) 

unique_item_status_type get_unique_item_status ( const item_def item  ) 

Here is the call graph for this function:

unrandart_entry* get_unrand_entry ( int  unrand_index  ) 

int get_unrandart_num ( const char *  name  ) 

Here is the call graph for this function:

bool is_artefact ( const item_def item  ) 

bool is_known_artefact ( const item_def item  ) 

Here is the call graph for this function:

bool is_random_artefact ( const item_def item  ) 

bool is_special_unrandom_artefact ( const item_def item  ) 

bool is_unrandom_artefact ( const item_def item  ) 

bool make_item_randart ( item_def item,
bool  force_mundane = false 
)

Here is the call graph for this function:

bool make_item_unrandart ( item_def item,
int  unrand_index 
)

Here is the call graph for this function:

bool randart_is_bad ( const item_def item,
artefact_properties_t proprt 
)

bool randart_is_bad ( const item_def item  ) 

Here is the call graph for this function:

void set_artefact_name ( item_def item,
const std::string name 
)

Here is the call graph for this function:

void set_unique_item_status ( int  unrand_index,
unique_item_status_type  status 
)

void set_unique_item_status ( const item_def item,
unique_item_status_type  status 
)

Here is the call graph for this function:

const char* unrandart_descrip ( int  which_descrip,
const item_def item 
)


Generated on Thu Jan 13 13:03:06 2011 by  doxygen 1.5.6