Angband
Data Structures | Macros | Typedefs | Enumerations | Variables
object.h File Reference

basic object structs and enums More...

#include "z-rand.h"
#include "z-quark.h"
#include "z-bitflag.h"
#include "z-dice.h"
#include "obj-properties.h"
#include "list-elements.h"
#include "list-origins.h"

Go to the source code of this file.

Data Structures

struct  effect
 Effect. More...
 
struct  brand
 Brand type. More...
 
struct  slay
 Slay type. More...
 
struct  curse
 Curse type. More...
 
struct  element_info
 Element info type. More...
 
struct  activation
 Activation structure. More...
 
struct  object_base
 Information about object types, like rods, wands, etc. More...
 
struct  object_kind
 Information about object kinds, including player knowledge. More...
 
struct  artifact
 Information about artifacts. More...
 
struct  poss_item
 Structure for possible object kinds for an ego item. More...
 
struct  ego_item
 Information about ego-items. More...
 
struct  curse_data
 
struct  object
 Object information, for a specific object. More...
 
struct  flavor
 

Macros

#define ELEM(a)   ELEM_##a,
 
#define ELEM_BASE_MIN   ELEM_ACID
 
#define ELEM_BASE_MAX   (ELEM_COLD + 1)
 
#define ELEM_HIGH_MIN   ELEM_POIS
 
#define ELEM_HIGH_MAX   (ELEM_DISEN + 1)
 
#define ORIGIN(a, b, c)   ORIGIN_##a,
 

Typedefs

typedef bool(* item_tester )(const struct object *)
 

Enumerations

enum  { ELEM_MAX }
 Elements. More...
 
enum  { ORIGIN, ORIGIN }
 Object origin kinds. More...
 
enum  { EL_INFO_HATES = 0x01, EL_INFO_IGNORE = 0x02, EL_INFO_RANDOM = 0x04 }
 
enum  { OBJ_NOTICE_WORN = 0x01, OBJ_NOTICE_ASSESSED = 0x02, OBJ_NOTICE_IGNORE = 0x04, OBJ_NOTICE_IMAGINED = 0x08 }
 Flags for the obj->notice field. More...
 

Variables

struct activationactivations
 
struct object_basekb_info
 
struct object_kindk_info
 
struct object_kindunknown_item_kind
 

Initialize objects

More...
 
struct object_kindunknown_gold_kind
 
struct object_kindpile_kind
 
struct object_kindcurse_object_kind
 
struct artifacta_info
 The artifact arrays. More...
 
struct ego_iteme_info
 
static struct object const OBJECT_NULL
 Null object constant, for safe initialization. More...
 
struct flavorflavors
 

Detailed Description

basic object structs and enums

Macro Definition Documentation

#define ELEM (   a)    ELEM_##a,
#define ELEM_BASE_MAX   (ELEM_COLD + 1)
#define ELEM_BASE_MIN   ELEM_ACID
#define ELEM_HIGH_MAX   (ELEM_DISEN + 1)
#define ELEM_HIGH_MIN   ELEM_POIS
#define ORIGIN (   a,
  b,
 
)    ORIGIN_##a,

Typedef Documentation

typedef bool(* item_tester)(const struct object *)

Enumeration Type Documentation

anonymous enum

Elements.

Enumerator
ELEM_MAX 
anonymous enum

Object origin kinds.

Enumerator
ORIGIN 
ORIGIN 
anonymous enum
Enumerator
EL_INFO_HATES 
EL_INFO_IGNORE 
EL_INFO_RANDOM 
anonymous enum

Flags for the obj->notice field.

Enumerator
OBJ_NOTICE_WORN 
OBJ_NOTICE_ASSESSED 
OBJ_NOTICE_IGNORE 
OBJ_NOTICE_IMAGINED 

Variable Documentation

struct artifact* a_info
struct activation* activations
struct object_kind* curse_object_kind

Referenced by object_power(), and write_curse_kinds().

struct ego_item* e_info
struct flavor* flavors
struct object_kind* k_info
struct object_base* kb_info
struct object const OBJECT_NULL
static
struct object_kind* pile_kind

Referenced by grid_data_as_text().

struct object_kind* unknown_gold_kind
struct object_kind* unknown_item_kind


Initialize objects

Referenced by grid_data_as_text(), map_info(), object_sense(), and scan_distant_floor().