Data Structures | Defines | Variables

objclass.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  objclass
struct  objdescr
struct  fruit

Defines

#define oc_bimanual   oc_big
#define oc_bulky   oc_big
#define NODIR   1
#define IMMEDIATE   2
#define RAY   3
#define PIERCE   1
#define SLASH   2
#define WHACK   0
#define LIQUID   1
#define WAX   2
#define VEGGY   3
#define FLESH   4
#define PAPER   5
#define CLOTH   6
#define LEATHER   7
#define WOOD   8
#define BONE   9
#define DRAGON_HIDE   10
#define IRON   11
#define METAL   12
#define COPPER   13
#define SILVER   14
#define GOLD   15
#define PLATINUM   16
#define MITHRIL   17
#define PLASTIC   18
#define GLASS   19
#define GEMSTONE   20
#define MINERAL   21
#define is_organic(otmp)   (objects[otmp->otyp].oc_material <= WOOD)
#define is_metallic(otmp)
#define is_rustprone(otmp)   (objects[otmp->otyp].oc_material == IRON)
#define is_corrodeable(otmp)   (objects[otmp->otyp].oc_material == COPPER || objects[otmp->otyp].oc_material == IRON)
#define is_damageable(otmp)
#define oc_skill   oc_subtyp
#define oc_armcat   oc_subtyp
#define ARM_SHIELD   1
#define ARM_HELM   2
#define ARM_GLOVES   3
#define ARM_BOOTS   4
#define ARM_CLOAK   5
#define ARM_SHIRT   6
#define ARM_SUIT   0
#define oc_hitbon   oc_oc1
#define a_ac   oc_oc1
#define a_can   oc_oc2
#define oc_level   oc_oc2
#define RANDOM_CLASS   0
#define ILLOBJ_CLASS   1
#define WEAPON_CLASS   2
#define ARMOR_CLASS   3
#define RING_CLASS   4
#define AMULET_CLASS   5
#define TOOL_CLASS   6
#define FOOD_CLASS   7
#define POTION_CLASS   8
#define SCROLL_CLASS   9
#define SPBOOK_CLASS   10
#define WAND_CLASS   11
#define COIN_CLASS   12
#define GEM_CLASS   13
#define ROCK_CLASS   14
#define BALL_CLASS   15
#define CHAIN_CLASS   16
#define VENOM_CLASS   17
#define MAXOCLASSES   18
#define ALLOW_COUNT   (MAXOCLASSES+1)
#define ALL_CLASSES   (MAXOCLASSES+2)
#define ALLOW_NONE   (MAXOCLASSES+3)
#define BURNING_OIL   (MAXOCLASSES+1)
#define MON_EXPLODE   (MAXOCLASSES+2)
#define ILLOBJ_SYM   ']'
#define WEAPON_SYM   ')'
#define ARMOR_SYM   '['
#define RING_SYM   '='
#define AMULET_SYM   '"'
#define TOOL_SYM   '('
#define FOOD_SYM   '%'
#define POTION_SYM   '!'
#define SCROLL_SYM   '?'
#define SPBOOK_SYM   '+'
#define WAND_SYM   '/'
#define GOLD_SYM   '$'
#define GEM_SYM   '*'
#define ROCK_SYM   '`'
#define BALL_SYM   '0'
#define CHAIN_SYM   '_'
#define VENOM_SYM   '.'
#define newfruit()   (struct fruit *)alloc(sizeof(struct fruit))
#define dealloc_fruit(rind)   free((genericptr_t) (rind))
#define OBJ_NAME(obj)   (obj_descr[(obj).oc_name_idx].oc_name)
#define OBJ_DESCR(obj)   (obj_descr[(obj).oc_descr_idx].oc_descr)

Variables

NEARDATA struct objclass objects []
NEARDATA struct objdescr obj_descr []

Define Documentation

#define a_ac   oc_oc1
#define a_can   oc_oc2
#define ALL_CLASSES   (MAXOCLASSES+2)
#define ALLOW_COUNT   (MAXOCLASSES+1)

Referenced by doorganize(), and getobj().

#define ALLOW_NONE   (MAXOCLASSES+3)

Referenced by getobj(), and use_stone().

#define AMULET_CLASS   5
#define AMULET_SYM   '"'
#define ARM_BOOTS   4
#define ARM_CLOAK   5
#define ARM_GLOVES   3

Referenced by hits_bars().

#define ARM_HELM   2
#define ARM_SHIELD   1
#define ARM_SHIRT   6
#define ARM_SUIT   0
#define ARMOR_CLASS   3
#define ARMOR_SYM   '['
#define BALL_CLASS   15
#define BALL_SYM   '0'
#define BONE   9
#define BURNING_OIL   (MAXOCLASSES+1)

Referenced by explode(), and splatter_burning_oil().

#define CHAIN_CLASS   16
#define CHAIN_SYM   '_'
#define CLOTH   6

Referenced by create_polymon(), dosit(), and use_stone().

#define COIN_CLASS   12
#define COPPER   13

Referenced by create_polymon().

#define dealloc_fruit (   rind )    free((genericptr_t) (rind))
#define DRAGON_HIDE   10

Referenced by doeat(), and edibility_prompts().

#define FLESH   4
#define FOOD_CLASS   7
#define FOOD_SYM   '%'
#define GEM_CLASS   13
#define GEM_SYM   '*'
#define GEMSTONE   20
#define GLASS   19
#define GOLD   15
#define GOLD_SYM   '$'
#define ILLOBJ_CLASS   1
#define ILLOBJ_SYM   ']'

Referenced by do_class_genocide().

#define IMMEDIATE   2

Referenced by weffects().

#define IRON   11
#define is_corrodeable (   otmp )    (objects[otmp->otyp].oc_material == COPPER || objects[otmp->otyp].oc_material == IRON)
#define is_damageable (   otmp )
#define is_metallic (   otmp )
#define is_organic (   otmp )    (objects[otmp->otyp].oc_material <= WOOD)
#define is_rustprone (   otmp )    (objects[otmp->otyp].oc_material == IRON)
#define LEATHER   7
#define LIQUID   1
#define MAXOCLASSES   18
#define METAL   12

Referenced by create_polymon().

#define MINERAL   21
#define MITHRIL   17

Referenced by create_polymon().

#define MON_EXPLODE   (MAXOCLASSES+2)

Referenced by corpse_chance(), and explode().

#define newfruit (  )    (struct fruit *)alloc(sizeof(struct fruit))

Referenced by fruitadd(), and loadfruitchn().

#define NODIR   1
#define OBJ_DESCR (   obj )    (obj_descr[(obj).oc_descr_idx].oc_descr)
#define OBJ_NAME (   obj )    (obj_descr[(obj).oc_name_idx].oc_name)
#define oc_armcat   oc_subtyp
#define oc_bimanual   oc_big

Referenced by select_hwep().

#define oc_bulky   oc_big
#define oc_hitbon   oc_oc1
#define oc_level   oc_oc2

Referenced by study_book().

#define oc_skill   oc_subtyp
#define PAPER   5
#define PIERCE   1

Referenced by mswings(), mswingsm(), and throwing_weapon().

#define PLASTIC   18

Referenced by dip(), and is_flammable().

#define PLATINUM   16

Referenced by create_polymon().

#define POTION_CLASS   8
#define POTION_SYM   '!'
#define RANDOM_CLASS   0
#define RAY   3

Referenced by searches_for_item().

#define RING_CLASS   4
#define RING_SYM   '='
#define ROCK_CLASS   14
#define ROCK_SYM   '`'
#define SCROLL_CLASS   9
#define SCROLL_SYM   '?'
#define SILVER   14
#define SLASH   2
#define SPBOOK_CLASS   10
#define SPBOOK_SYM   '+'
#define TOOL_CLASS   6
#define TOOL_SYM   '('
#define VEGGY   3

Referenced by chest_shatter_msg().

#define VENOM_CLASS   17
#define VENOM_SYM   '.'
#define WAND_CLASS   11
#define WAND_SYM   '/'
#define WAX   2
#define WEAPON_CLASS   2
#define WEAPON_SYM   ')'
#define WHACK   0
#define WOOD   8

Variable Documentation

NEARDATA struct objdescr obj_descr[]

Referenced by initoptions(), and mimic_obj_name().

NEARDATA struct objclass objects[]

Referenced by alchemy_init(), Amulet_on(), armoroff(), arti_cost(), artifact_score(), autoquiver(), bagotricks(), bhito(), Boots_off(), Boots_on(), breaktest(), burnarmor(), can_blnd(), can_carry(), cancel_item(), cancellable(), check_map_spot(), check_tutorial_farlook(), chest_shatter_msg(), clear_bypasses(), Cloak_off(), Cloak_on(), cloak_simple_name(), confused_book(), contained_cost(), container_impact_dmg(), cost(), create_monster(), create_object(), cursed_book(), dip(), dipfountain(), discover_object(), dmgval(), do_improvisation(), do_look(), do_osshock(), doapply(), docall(), dodiscovered(), dodrink(), doeat(), doforce(), dog_nutrition(), dogfood(), doname_base(), done(), dopotion(), doread(), dosit(), dotele(), doturn(), dowear(), dowieldquiver(), dowrite(), dozap(), dragons_init(), drain_item(), eataccessory(), eaten_stat(), edibility_prompts(), engrave(), find_skates(), foodword(), forget_objects(), forget_single_object(), fruitadd(), gem_accept(), get_compopt_value(), get_cost(), gethungry(), getobj(), ghitm(), Gloves_off(), Gloves_on(), hitmu(), hits_bars(), hitval(), hmon_hitmon(), in_container(), ini_inv(), init_objects(), initialspell(), initoptions(), interesting_to_discover(), is_chargeable(), is_edible(), is_flammable(), is_rottable(), kick_monster(), killer_xname(), knows_class(), knows_object(), learn(), m_dowear_type(), m_move(), m_slips_free(), m_throw(), magic_negation(), makewish(), mapglyph(), mattackm(), maybe_tutorial(), meatmetal(), meatobj(), mergable(), mimic_hit_msg(), mimic_obj_name(), mixtype(), mk_artifact(), mkobj(), mksobj(), mon_adjust_speed(), mpickgold(), mswings(), mswingsm(), noisy_hit(), not_fully_identified(), o_material(), obj_is_pname(), obj_typename(), object_detect(), ohitmon(), paygd(), percent_success(), pickup_object(), pleased(), poly_obj(), polyuse(), potionbreathe(), potionhit(), precheck(), query_category(), query_objlist(), readobjnam(), ready_weapon(), recharge(), resetobjs(), resists_blnd(), resists_magm(), restnames(), Ring_off_or_gone(), Ring_on(), rnd_class(), savenames(), scatter(), searches_for_item(), seffects(), select_hwep(), select_rwep(), sellobj(), set_cost(), setgemprobs(), setnotworn(), setworn(), shade_aware(), ship_object(), shk_names_obj(), shuffle(), shuffle_all(), simple_typename(), spell_skilltype(), spelleffects(), start_eating(), steal(), strange_feeling(), study_book(), swap_armor(), take_off(), test_move(), the_unique_obj(), thitmonst(), thitu(), throw_obj(), throwing_weapon(), thrwmu(), toss_up(), touchfood(), u_slip_free(), undiscover_object(), update_mon_intrinsics(), use_defensive(), use_lamp(), use_misc(), use_pick_axe2(), use_stone(), weapon_type(), weffects(), weight(), xkilled(), xname(), and zapnodir().