Angband
Data Structures | Macros | Functions | Variables
obj-init.c File Reference

Various game initialization routines. More...

#include "angband.h"
#include "buildid.h"
#include "datafile.h"
#include "effects.h"
#include "init.h"
#include "mon-util.h"
#include "obj-curse.h"
#include "obj-ignore.h"
#include "obj-list.h"
#include "obj-make.h"
#include "obj-pile.h"
#include "obj-power.h"
#include "obj-randart.h"
#include "obj-slays.h"
#include "obj-tval.h"
#include "obj-util.h"
#include "object.h"
#include "option.h"
#include "player-spell.h"
#include "project.h"
#include "list-mon-race-flags.h"
#include "list-object-flags.h"
#include "list-stats.h"
#include "list-object-modifiers.h"
#include "list-kind-flags.h"
#include "list-elements.h"

Data Structures

struct  kb_parsedata
 

Initialize object bases

More...
 

Macros

#define RF(a, b, c)   #a,
 
#define OF(a)   #a,
 
#define STAT(a)   #a,
 
#define OBJ_MOD(a)   #a,
 
#define KF(a, b)   #a,
 
#define ELEM(a)   #a,
 

Functions

static bool grab_element_flag (struct element_info *info, const char *flag_name)
 
static int code_index_in_array (const char *code_name[], const char *code)
 
static enum parser_error write_dummy_object_record (struct artifact *art, const char *name)
 
static void write_curse_kinds (void)
 Fill in curse object info now that curse_object_kind is defined. More...
 
static struct activationfindact (const char *act_name)
 
static enum parser_error parse_projection_code (struct parser *p)
 

Initialize projections

More...
 
static enum parser_error parse_projection_name (struct parser *p)
 
static enum parser_error parse_projection_type (struct parser *p)
 
static enum parser_error parse_projection_desc (struct parser *p)
 
static enum parser_error parse_projection_player_desc (struct parser *p)
 
static enum parser_error parse_projection_blind_desc (struct parser *p)
 
static enum parser_error parse_projection_numerator (struct parser *p)
 
static enum parser_error parse_projection_denominator (struct parser *p)
 
static enum parser_error parse_projection_divisor (struct parser *p)
 
static enum parser_error parse_projection_damage_cap (struct parser *p)
 
static enum parser_error parse_projection_message_type (struct parser *p)
 
static enum parser_error parse_projection_obvious (struct parser *p)
 
static enum parser_error parse_projection_color (struct parser *p)
 
struct parserinit_parse_projection (void)
 
static errr run_parse_projection (struct parser *p)
 
static errr finish_parse_projection (struct parser *p)
 
static void cleanup_projection (void)
 
static enum parser_error parse_object_base_defaults (struct parser *p)
 
static enum parser_error parse_object_base_name (struct parser *p)
 
static enum parser_error parse_object_base_graphics (struct parser *p)
 
static enum parser_error parse_object_base_break (struct parser *p)
 
static enum parser_error parse_object_base_flags (struct parser *p)
 
struct parserinit_parse_object_base (void)
 
static errr run_parse_object_base (struct parser *p)
 
static errr finish_parse_object_base (struct parser *p)
 
static void cleanup_object_base (void)
 
static enum parser_error parse_slay_code (struct parser *p)
 

Initialize object slays

More...
 
static enum parser_error parse_slay_name (struct parser *p)
 
static enum parser_error parse_slay_race_flag (struct parser *p)
 
static enum parser_error parse_slay_base (struct parser *p)
 
static enum parser_error parse_slay_multiplier (struct parser *p)
 
static enum parser_error parse_slay_power (struct parser *p)
 
static enum parser_error parse_slay_melee_verb (struct parser *p)
 
static enum parser_error parse_slay_range_verb (struct parser *p)
 
struct parserinit_parse_slay (void)
 
static errr run_parse_slay (struct parser *p)
 
static errr finish_parse_slay (struct parser *p)
 
static void cleanup_slay (void)
 
static enum parser_error parse_brand_code (struct parser *p)
 

Initialize object brands

More...
 
static enum parser_error parse_brand_name (struct parser *p)
 
static enum parser_error parse_brand_verb (struct parser *p)
 
static enum parser_error parse_brand_multiplier (struct parser *p)
 
static enum parser_error parse_brand_power (struct parser *p)
 
static enum parser_error parse_brand_resist_flag (struct parser *p)
 
struct parserinit_parse_brand (void)
 
static errr run_parse_brand (struct parser *p)
 
static errr finish_parse_brand (struct parser *p)
 
static void cleanup_brand (void)
 
static enum parser_error parse_curse_name (struct parser *p)
 

Initialize object curses

More...
 
static enum parser_error parse_curse_type (struct parser *p)
 
static enum parser_error parse_curse_combat (struct parser *p)
 
static enum parser_error parse_curse_flags (struct parser *p)
 
static enum parser_error parse_curse_values (struct parser *p)
 
static enum parser_error parse_curse_effect (struct parser *p)
 
static enum parser_error parse_curse_param (struct parser *p)
 
static enum parser_error parse_curse_dice (struct parser *p)
 
static enum parser_error parse_curse_expr (struct parser *p)
 
static enum parser_error parse_curse_msg (struct parser *p)
 
static enum parser_error parse_curse_time (struct parser *p)
 
static enum parser_error parse_curse_desc (struct parser *p)
 
static enum parser_error parse_curse_conflict (struct parser *p)
 
struct parserinit_parse_curse (void)
 
static errr run_parse_curse (struct parser *p)
 
static errr finish_parse_curse (struct parser *p)
 
static void cleanup_curse (void)
 
static enum parser_error parse_act_name (struct parser *p)
 

Initialize activations

More...
 
static enum parser_error parse_act_aim (struct parser *p)
 
static enum parser_error parse_act_power (struct parser *p)
 
static enum parser_error parse_act_effect (struct parser *p)
 
static enum parser_error parse_act_param (struct parser *p)
 
static enum parser_error parse_act_dice (struct parser *p)
 
static enum parser_error parse_act_expr (struct parser *p)
 
static enum parser_error parse_act_msg (struct parser *p)
 
static enum parser_error parse_act_desc (struct parser *p)
 
struct parserinit_parse_act (void)
 
static errr run_parse_act (struct parser *p)
 
static errr finish_parse_act (struct parser *p)
 
static void cleanup_act (void)
 
static enum parser_error parse_object_name (struct parser *p)
 
static enum parser_error parse_object_graphics (struct parser *p)
 
static enum parser_error parse_object_type (struct parser *p)
 
static enum parser_error parse_object_properties (struct parser *p)
 
static enum parser_error parse_object_alloc (struct parser *p)
 
static enum parser_error parse_object_combat (struct parser *p)
 
static enum parser_error parse_object_charges (struct parser *p)
 
static enum parser_error parse_object_pile (struct parser *p)
 
static enum parser_error parse_object_flags (struct parser *p)
 
static enum parser_error parse_object_power (struct parser *p)
 
static enum parser_error parse_object_effect (struct parser *p)
 
static enum parser_error parse_object_param (struct parser *p)
 
static enum parser_error parse_object_dice (struct parser *p)
 
static enum parser_error parse_object_expr (struct parser *p)
 
static enum parser_error parse_object_msg (struct parser *p)
 
static enum parser_error parse_object_time (struct parser *p)
 
static enum parser_error parse_object_desc (struct parser *p)
 
static enum parser_error parse_object_pval (struct parser *p)
 
static enum parser_error parse_object_values (struct parser *p)
 
static enum parser_error parse_object_slay (struct parser *p)
 
static enum parser_error parse_object_brand (struct parser *p)
 
static enum parser_error parse_object_curse (struct parser *p)
 
struct parserinit_parse_object (void)
 
static errr run_parse_object (struct parser *p)
 
static errr finish_parse_object (struct parser *p)
 
static void cleanup_object (void)
 
static enum parser_error parse_ego_name (struct parser *p)
 

Initialize ego items

More...
 
static enum parser_error parse_ego_info (struct parser *p)
 
static enum parser_error parse_ego_alloc (struct parser *p)
 
static enum parser_error parse_ego_type (struct parser *p)
 
static enum parser_error parse_ego_item (struct parser *p)
 
static enum parser_error parse_ego_combat (struct parser *p)
 
static enum parser_error parse_ego_min (struct parser *p)
 
static enum parser_error parse_ego_effect (struct parser *p)
 
static enum parser_error parse_ego_dice (struct parser *p)
 
static enum parser_error parse_ego_time (struct parser *p)
 
static enum parser_error parse_ego_flags (struct parser *p)
 
static enum parser_error parse_ego_flags_off (struct parser *p)
 
static enum parser_error parse_ego_values (struct parser *p)
 
static enum parser_error parse_ego_min_val (struct parser *p)
 
static enum parser_error parse_ego_desc (struct parser *p)
 
static enum parser_error parse_ego_slay (struct parser *p)
 
static enum parser_error parse_ego_brand (struct parser *p)
 
static enum parser_error parse_ego_curse (struct parser *p)
 
struct parserinit_parse_ego (void)
 
static errr run_parse_ego (struct parser *p)
 
static errr finish_parse_ego (struct parser *p)
 
static void cleanup_ego (void)
 
static enum parser_error parse_artifact_name (struct parser *p)
 

Initialize artifacts

More...
 
static enum parser_error parse_artifact_base_object (struct parser *p)
 
static enum parser_error parse_artifact_graphics (struct parser *p)
 
static enum parser_error parse_artifact_info (struct parser *p)
 
static enum parser_error parse_artifact_alloc (struct parser *p)
 
static enum parser_error parse_artifact_power (struct parser *p)
 
static enum parser_error parse_artifact_flags (struct parser *p)
 
static enum parser_error parse_artifact_act (struct parser *p)
 
static enum parser_error parse_artifact_time (struct parser *p)
 
static enum parser_error parse_artifact_msg (struct parser *p)
 
static enum parser_error parse_artifact_values (struct parser *p)
 
static enum parser_error parse_artifact_desc (struct parser *p)
 
static enum parser_error parse_artifact_slay (struct parser *p)
 
static enum parser_error parse_artifact_brand (struct parser *p)
 
static enum parser_error parse_artifact_curse (struct parser *p)
 
struct parserinit_parse_artifact (void)
 
static errr run_parse_artifact (struct parser *p)
 
static errr finish_parse_artifact (struct parser *p)
 
static void cleanup_artifact (void)
 
static errr run_parse_randart (struct parser *p)
 

Initialize random artifacts

This mostly uses the artifact functions

More...
 
static errr finish_parse_randart (struct parser *p)
 
static enum parser_error parse_object_property_name (struct parser *p)
 

Initialize object properties

More...
 
static enum parser_error parse_object_property_type (struct parser *p)
 
static enum parser_error parse_object_property_subtype (struct parser *p)
 
static enum parser_error parse_object_property_id_type (struct parser *p)
 
static enum parser_error parse_object_property_code (struct parser *p)
 
static enum parser_error parse_object_property_power (struct parser *p)
 
static enum parser_error parse_object_property_mult (struct parser *p)
 
static enum parser_error parse_object_property_type_mult (struct parser *p)
 
static enum parser_error parse_object_property_adjective (struct parser *p)
 
static enum parser_error parse_object_property_neg_adj (struct parser *p)
 
static enum parser_error parse_object_property_msg (struct parser *p)
 
static enum parser_error parse_object_property_desc (struct parser *p)
 
struct parserinit_parse_object_property (void)
 
static errr run_parse_object_property (struct parser *p)
 
static errr finish_parse_object_property (struct parser *p)
 
static void cleanup_object_property (void)
 
static enum parser_error parse_object_power_name (struct parser *p)
 

Initialize object power calculations

More...
 
static enum parser_error parse_object_power_type (struct parser *p)
 
static enum parser_error parse_object_power_item (struct parser *p)
 
static enum parser_error parse_object_power_dice (struct parser *p)
 
static enum parser_error parse_object_power_expr (struct parser *p)
 
static enum parser_error parse_object_power_operation (struct parser *p)
 
static enum parser_error parse_object_power_iterate (struct parser *p)
 
static enum parser_error parse_object_power_apply_to (struct parser *p)
 
struct parserinit_parse_object_power (void)
 
static errr run_parse_object_power (struct parser *p)
 
static errr finish_parse_object_power (struct parser *p)
 
static void cleanup_object_power (void)
 

Variables

static const char * mon_race_flags []
 
static const char * obj_flags []
 
static const char * obj_mods []
 
static const char * kind_flags []
 
static const char * element_names []
 
struct file_parser projection_parser
 
struct file_parser object_base_parser
 
struct file_parser slay_parser
 
struct file_parser brand_parser
 
struct file_parser curse_parser
 
struct file_parser act_parser
 
struct object_kindunknown_item_kind
 

Initialize objects

More...
 
struct object_kindunknown_gold_kind
 
struct object_kindpile_kind
 
struct object_kindcurse_object_kind
 
struct file_parser object_parser
 
struct file_parser ego_parser
 
struct file_parser artifact_parser
 
struct file_parser randart_parser
 
struct file_parser object_property_parser
 
struct file_parser object_power_parser
 

Detailed Description

Various game initialization routines.

Copyright (c) 1997 Ben Harrison

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

This file is used to initialize various variables and arrays for objects in the Angband game.

Several of the arrays for Angband are built from data files in the "lib/gamedata" directory.

Macro Definition Documentation

#define ELEM (   a)    #a,
#define KF (   a,
 
)    #a,
#define OBJ_MOD (   a)    #a,
#define OF (   a)    #a,
#define RF (   a,
  b,
 
)    #a,
#define STAT (   a)    #a,

Function Documentation

static void cleanup_act ( void  )
static
static void cleanup_artifact ( void  )
static
static void cleanup_brand ( void  )
static
static void cleanup_curse ( void  )
static
static void cleanup_ego ( void  )
static
static void cleanup_object ( void  )
static
static void cleanup_object_base ( void  )
static

References kb_info, mem_free(), string_free(), and TV_MAX.

static void cleanup_object_power ( void  )
static
static void cleanup_object_property ( void  )
static
static void cleanup_projection ( void  )
static
static void cleanup_slay ( void  )
static
static int code_index_in_array ( const char *  code_name[],
const char *  code 
)
static

References i, and streq.

Referenced by parse_object_property_code().

static struct activation* findact ( const char *  act_name)
static
static errr finish_parse_act ( struct parser p)
static
static errr finish_parse_artifact ( struct parser p)
static
static errr finish_parse_brand ( struct parser p)
static
static errr finish_parse_curse ( struct parser p)
static
static errr finish_parse_ego ( struct parser p)
static
static errr finish_parse_object ( struct parser p)
static
static errr finish_parse_object_base ( struct parser p)
static
static errr finish_parse_object_power ( struct parser p)
static
static errr finish_parse_object_property ( struct parser p)
static
static errr finish_parse_projection ( struct parser p)
static
static errr finish_parse_randart ( struct parser p)
static
static errr finish_parse_slay ( struct parser p)
static
static bool grab_element_flag ( struct element_info info,
const char *  flag_name 
)
static
struct parser* init_parse_act ( void  )
struct parser* init_parse_artifact ( void  )
struct parser* init_parse_brand ( void  )
struct parser* init_parse_curse ( void  )
struct parser* init_parse_ego ( void  )
struct parser* init_parse_object ( void  )
struct parser* init_parse_object_base ( void  )
struct parser* init_parse_object_power ( void  )
struct parser* init_parse_object_property ( void  )
struct parser* init_parse_projection ( void  )
struct parser* init_parse_slay ( void  )
static enum parser_error parse_act_aim ( struct parser p)
static
static enum parser_error parse_act_desc ( struct parser p)
static
static enum parser_error parse_act_dice ( struct parser p)
static
static enum parser_error parse_act_effect ( struct parser p)
static
static enum parser_error parse_act_expr ( struct parser p)
static
static enum parser_error parse_act_msg ( struct parser p)
static
static enum parser_error parse_act_name ( struct parser p)
static
static enum parser_error parse_act_param ( struct parser p)
static
static enum parser_error parse_act_power ( struct parser p)
static
static enum parser_error parse_artifact_act ( struct parser p)
static
static enum parser_error parse_artifact_alloc ( struct parser p)
static
static enum parser_error parse_artifact_base_object ( struct parser p)
static
static enum parser_error parse_artifact_brand ( struct parser p)
static
static enum parser_error parse_artifact_curse ( struct parser p)
static
static enum parser_error parse_artifact_desc ( struct parser p)
static
static enum parser_error parse_artifact_flags ( struct parser p)
static
static enum parser_error parse_artifact_graphics ( struct parser p)
static
static enum parser_error parse_artifact_info ( struct parser p)
static
static enum parser_error parse_artifact_msg ( struct parser p)
static
static enum parser_error parse_artifact_name ( struct parser p)
static
static enum parser_error parse_artifact_power ( struct parser p)
static
static enum parser_error parse_artifact_slay ( struct parser p)
static
static enum parser_error parse_artifact_time ( struct parser p)
static
static enum parser_error parse_artifact_values ( struct parser p)
static
static enum parser_error parse_brand_code ( struct parser p)
static
static enum parser_error parse_brand_multiplier ( struct parser p)
static
static enum parser_error parse_brand_name ( struct parser p)
static
static enum parser_error parse_brand_power ( struct parser p)
static
static enum parser_error parse_brand_resist_flag ( struct parser p)
static
static enum parser_error parse_brand_verb ( struct parser p)
static
static enum parser_error parse_curse_combat ( struct parser p)
static
static enum parser_error parse_curse_conflict ( struct parser p)
static
static enum parser_error parse_curse_desc ( struct parser p)
static
static enum parser_error parse_curse_dice ( struct parser p)
static
static enum parser_error parse_curse_effect ( struct parser p)
static
static enum parser_error parse_curse_expr ( struct parser p)
static
static enum parser_error parse_curse_flags ( struct parser p)
static
static enum parser_error parse_curse_msg ( struct parser p)
static
static enum parser_error parse_curse_name ( struct parser p)
static
static enum parser_error parse_curse_param ( struct parser p)
static
static enum parser_error parse_curse_time ( struct parser p)
static
static enum parser_error parse_curse_type ( struct parser p)
static
static enum parser_error parse_curse_values ( struct parser p)
static
static enum parser_error parse_ego_alloc ( struct parser p)
static
static enum parser_error parse_ego_brand ( struct parser p)
static
static enum parser_error parse_ego_combat ( struct parser p)
static
static enum parser_error parse_ego_curse ( struct parser p)
static
static enum parser_error parse_ego_desc ( struct parser p)
static
static enum parser_error parse_ego_dice ( struct parser p)
static
static enum parser_error parse_ego_effect ( struct parser p)
static
static enum parser_error parse_ego_flags ( struct parser p)
static
static enum parser_error parse_ego_flags_off ( struct parser p)
static
static enum parser_error parse_ego_info ( struct parser p)
static
static enum parser_error parse_ego_item ( struct parser p)
static
static enum parser_error parse_ego_min ( struct parser p)
static
static enum parser_error parse_ego_min_val ( struct parser p)
static
static enum parser_error parse_ego_name ( struct parser p)
static
static enum parser_error parse_ego_slay ( struct parser p)
static
static enum parser_error parse_ego_time ( struct parser p)
static
static enum parser_error parse_ego_type ( struct parser p)
static
static enum parser_error parse_ego_values ( struct parser p)
static
static enum parser_error parse_object_alloc ( struct parser p)
static
static enum parser_error parse_object_base_break ( struct parser p)
static
static enum parser_error parse_object_base_defaults ( struct parser p)
static
static enum parser_error parse_object_base_flags ( struct parser p)
static
static enum parser_error parse_object_base_graphics ( struct parser p)
static
static enum parser_error parse_object_base_name ( struct parser p)
static
static enum parser_error parse_object_brand ( struct parser p)
static
static enum parser_error parse_object_charges ( struct parser p)
static
static enum parser_error parse_object_combat ( struct parser p)
static
static enum parser_error parse_object_curse ( struct parser p)
static
static enum parser_error parse_object_desc ( struct parser p)
static
static enum parser_error parse_object_dice ( struct parser p)
static
static enum parser_error parse_object_effect ( struct parser p)
static
static enum parser_error parse_object_expr ( struct parser p)
static
static enum parser_error parse_object_flags ( struct parser p)
static
static enum parser_error parse_object_graphics ( struct parser p)
static
static enum parser_error parse_object_msg ( struct parser p)
static
static enum parser_error parse_object_name ( struct parser p)
static
static enum parser_error parse_object_param ( struct parser p)
static
static enum parser_error parse_object_pile ( struct parser p)
static
static enum parser_error parse_object_power ( struct parser p)
static
static enum parser_error parse_object_power_apply_to ( struct parser p)
static
static enum parser_error parse_object_power_dice ( struct parser p)
static
static enum parser_error parse_object_power_expr ( struct parser p)
static
static enum parser_error parse_object_power_item ( struct parser p)
static
static enum parser_error parse_object_power_iterate ( struct parser p)
static
static enum parser_error parse_object_power_name ( struct parser p)
static
static enum parser_error parse_object_power_operation ( struct parser p)
static
static enum parser_error parse_object_power_type ( struct parser p)
static
static enum parser_error parse_object_properties ( struct parser p)
static
static enum parser_error parse_object_property_adjective ( struct parser p)
static
static enum parser_error parse_object_property_code ( struct parser p)
static
static enum parser_error parse_object_property_desc ( struct parser p)
static
static enum parser_error parse_object_property_id_type ( struct parser p)
static
static enum parser_error parse_object_property_msg ( struct parser p)
static
static enum parser_error parse_object_property_mult ( struct parser p)
static
static enum parser_error parse_object_property_name ( struct parser p)
static
static enum parser_error parse_object_property_neg_adj ( struct parser p)
static
static enum parser_error parse_object_property_power ( struct parser p)
static
static enum parser_error parse_object_property_subtype ( struct parser p)
static
static enum parser_error parse_object_property_type ( struct parser p)
static
static enum parser_error parse_object_property_type_mult ( struct parser p)
static
static enum parser_error parse_object_pval ( struct parser p)
static
static enum parser_error parse_object_slay ( struct parser p)
static
static enum parser_error parse_object_time ( struct parser p)
static
static enum parser_error parse_object_type ( struct parser p)
static
static enum parser_error parse_object_values ( struct parser p)
static
static enum parser_error parse_projection_blind_desc ( struct parser p)
static
static enum parser_error parse_projection_code ( struct parser p)
static
static enum parser_error parse_projection_color ( struct parser p)
static
static enum parser_error parse_projection_damage_cap ( struct parser p)
static
static enum parser_error parse_projection_denominator ( struct parser p)
static
static enum parser_error parse_projection_desc ( struct parser p)
static
static enum parser_error parse_projection_divisor ( struct parser p)
static
static enum parser_error parse_projection_message_type ( struct parser p)
static
static enum parser_error parse_projection_name ( struct parser p)
static
static enum parser_error parse_projection_numerator ( struct parser p)
static
static enum parser_error parse_projection_obvious ( struct parser p)
static
static enum parser_error parse_projection_player_desc ( struct parser p)
static
static enum parser_error parse_projection_type ( struct parser p)
static
static enum parser_error parse_slay_base ( struct parser p)
static
static enum parser_error parse_slay_code ( struct parser p)
static


Initialize object slays

References code, slay::code, h, mem_zalloc(), slay::next, parser_getstr(), parser_priv(), parser_setpriv(), and string_make().

Referenced by init_parse_slay().

static enum parser_error parse_slay_melee_verb ( struct parser p)
static
static enum parser_error parse_slay_multiplier ( struct parser p)
static
static enum parser_error parse_slay_name ( struct parser p)
static
static enum parser_error parse_slay_power ( struct parser p)
static

References parser_getuint(), parser_priv(), and slay::power.

Referenced by init_parse_slay().

static enum parser_error parse_slay_race_flag ( struct parser p)
static
static enum parser_error parse_slay_range_verb ( struct parser p)
static
static errr run_parse_act ( struct parser p)
static
static errr run_parse_artifact ( struct parser p)
static
static errr run_parse_brand ( struct parser p)
static
static errr run_parse_curse ( struct parser p)
static
static errr run_parse_ego ( struct parser p)
static
static errr run_parse_object ( struct parser p)
static
static errr run_parse_object_base ( struct parser p)
static
static errr run_parse_object_power ( struct parser p)
static
static errr run_parse_object_property ( struct parser p)
static
static errr run_parse_projection ( struct parser p)
static
static errr run_parse_randart ( struct parser p)
static


Initialize random artifacts

This mostly uses the artifact functions

References parse_file_quit_not_found().

static errr run_parse_slay ( struct parser p)
static
static void write_curse_kinds ( void  )
static
static enum parser_error write_dummy_object_record ( struct artifact art,
const char *  name 
)
static

Variable Documentation

struct file_parser act_parser
Initial value:
= {
"activation",
}
static errr run_parse_act(struct parser *p)
Definition: obj-init.c:1408
struct parser * init_parse_act(void)
Definition: obj-init.c:1393
static void cleanup_act(void)
Definition: obj-init.c:1443
static errr finish_parse_act(struct parser *p)
Definition: obj-init.c:1412
struct file_parser artifact_parser
Initial value:
= {
"artifact",
}
static void cleanup_artifact(void)
Definition: obj-init.c:2712
static errr run_parse_artifact(struct parser *p)
Definition: obj-init.c:2666
struct parser * init_parse_artifact(void)
Definition: obj-init.c:2644
static errr finish_parse_artifact(struct parser *p)
Definition: obj-init.c:2670

Referenced by rd_misc().

struct file_parser brand_parser
Initial value:
= {
"brand",
}
static errr finish_parse_brand(struct parser *p)
Definition: obj-init.c:853
static void cleanup_brand(void)
Definition: obj-init.c:880
struct parser * init_parse_brand(void)
Definition: obj-init.c:837
static errr run_parse_brand(struct parser *p)
Definition: obj-init.c:849
struct object_kind* curse_object_kind

Referenced by object_power(), and write_curse_kinds().

struct file_parser curse_parser
Initial value:
= {
"curse",
}
static errr run_parse_curse(struct parser *p)
Definition: obj-init.c:1165
struct parser * init_parse_curse(void)
Definition: obj-init.c:1146
static errr finish_parse_curse(struct parser *p)
Definition: obj-init.c:1169
static void cleanup_curse(void)
Definition: obj-init.c:1196
struct file_parser ego_parser
Initial value:
= {
"ego_item",
}
static void cleanup_ego(void)
Definition: obj-init.c:2348
struct parser * init_parse_ego(void)
Definition: obj-init.c:2287
static errr finish_parse_ego(struct parser *p)
Definition: obj-init.c:2315
static errr run_parse_ego(struct parser *p)
Definition: obj-init.c:2311
const char* element_names[]
static
const char* kind_flags[]
static
Initial value:
= {
#define KF(a, b)
}
NULL
Definition: list-summon-types.h:18

Referenced by finish_parse_object(), parse_ego_flags(), parse_object_base_flags(), and parse_object_flags().

const char* mon_race_flags[]
static
const char* obj_flags[]
static
const char* obj_mods[]
static
Initial value:
= {
#define STAT(a)
#define OBJ_MOD(a)
}
NULL
Definition: list-summon-types.h:18

Referenced by parse_artifact_values(), parse_curse_values(), parse_ego_min_val(), parse_ego_values(), parse_object_property_code(), and parse_object_values().

struct file_parser object_base_parser
Initial value:
= {
"object_base",
}
struct parser * init_parse_object_base(void)
Definition: obj-init.c:541
static errr finish_parse_object_base(struct parser *p)
Definition: obj-init.c:559
static errr run_parse_object_base(struct parser *p)
Definition: obj-init.c:555
static void cleanup_object_base(void)
Definition: obj-init.c:581
struct file_parser object_parser
Initial value:
= {
"object",
}
static errr run_parse_object(struct parser *p)
Definition: obj-init.c:1867
static void cleanup_object(void)
Definition: obj-init.c:1909
static errr finish_parse_object(struct parser *p)
Definition: obj-init.c:1871
struct parser * init_parse_object(void)
Definition: obj-init.c:1839
struct file_parser object_power_parser
Initial value:
= {
"object_power",
}
struct parser * init_parse_object_power(void)
Definition: obj-init.c:3231
static void cleanup_object_power(void)
Definition: obj-init.c:3278
static errr run_parse_object_power(struct parser *p)
Definition: obj-init.c:3245
static errr finish_parse_object_power(struct parser *p)
Definition: obj-init.c:3249
struct file_parser object_property_parser
Initial value:
= {
"object_property",
}
static errr run_parse_object_property(struct parser *p)
Definition: obj-init.c:2995
static void cleanup_object_property(void)
Definition: obj-init.c:3028
static errr finish_parse_object_property(struct parser *p)
Definition: obj-init.c:2999
struct parser * init_parse_object_property(void)
Definition: obj-init.c:2977
struct object_kind* pile_kind

Referenced by grid_data_as_text().

struct file_parser projection_parser
Initial value:
= {
"projection",
}
struct parser * init_parse_projection(void)
Definition: obj-init.c:352
static errr run_parse_projection(struct parser *p)
Definition: obj-init.c:371
static void cleanup_projection(void)
Definition: obj-init.c:408
static errr finish_parse_projection(struct parser *p)
Definition: obj-init.c:375
struct file_parser randart_parser
Initial value:
= {
"randart",
}
static errr finish_parse_randart(struct parser *p)
Definition: obj-init.c:2744
static void cleanup_artifact(void)
Definition: obj-init.c:2712
static errr run_parse_randart(struct parser *p)
Initialize random artifacts This mostly uses the artifact functions
Definition: obj-init.c:2740
struct parser * init_parse_artifact(void)
Definition: obj-init.c:2644

Referenced by rd_misc().

struct file_parser slay_parser
Initial value:
= {
"slay",
}
struct parser * init_parse_slay(void)
Definition: obj-init.c:699
static errr finish_parse_slay(struct parser *p)
Definition: obj-init.c:717
static void cleanup_slay(void)
Definition: obj-init.c:744
static errr run_parse_slay(struct parser *p)
Definition: obj-init.c:713
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().