Searched refs:WEAPON_CLASS (Results 1 - 25 of 60) sorted by relevance

123

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Du_init.c30 { BULLWHIP, 2, WEAPON_CLASS, 1, UNDEF_BLESS },
43 { TWO_HANDED_SWORD, 0, WEAPON_CLASS, 1, UNDEF_BLESS },
44 { AXE, 0, WEAPON_CLASS, 1, UNDEF_BLESS },
51 { CLUB, 1, WEAPON_CLASS, 1, UNDEF_BLESS },
52 { SLING, 2, WEAPON_CLASS, 1, UNDEF_BLESS },
59 { SCALPEL, 0, WEAPON_CLASS, 1, UNDEF_BLESS },
73 { LONG_SWORD, 1, WEAPON_CLASS, 1, UNDEF_BLESS },
74 { LANCE, 1, WEAPON_CLASS, 1, UNDEF_BLESS },
100 { MACE, 1, WEAPON_CLASS, 1, 1 },
113 { DAGGER, 1, WEAPON_CLASS,
[all...]
H A Dwield.c57 #define erodeable_wep(optr) ((optr)->oclass == WEAPON_CLASS \
103 unweapon = (obj->oclass == WEAPON_CLASS) ?
226 { ALL_CLASSES, ALLOW_NONE, WEAPON_CLASS, TOOL_CLASS, 0 };
228 { ALL_CLASSES, ALLOW_NONE, WEAPON_CLASS, 0 };
230 { ALL_CLASSES, ALLOW_NONE, GEM_CLASS, WEAPON_CLASS, 0 };
447 verb, (obj->oclass == WEAPON_CLASS) ? "weapon" : "tool");
463 if (obj->oclass != WEAPON_CLASS)
473 #define NOT_WEAPON(obj) (!is_weptool(obj) && obj->oclass != WEAPON_CLASS)
695 if(!uwep || (uwep->oclass != WEAPON_CLASS && !is_weptool(uwep))) {
H A Dshknam.c189 D_SHOP, {{90, ARMOR_CLASS}, {10, WEAPON_CLASS}, {0, 0}},
195 {"antique weapons outlet", WEAPON_CLASS, 5, D_SHOP,
196 {{90, WEAPON_CLASS}, {10, ARMOR_CLASS}, {0, 0}}, shkweapons},
H A Dweapon.c131 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp));
202 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp));
495 if (otmp->oclass == WEAPON_CLASS
1076 if (obj->oclass != WEAPON_CLASS && obj->oclass != TOOL_CLASS &&
H A Dengrave.c405 { ALL_CLASSES, ALLOW_NONE, TOOL_CLASS, WEAPON_CLASS, WAND_CLASS,
762 case WEAPON_CLASS:
1027 if ((otmp->oclass == WEAPON_CLASS) &&
H A Dmkobj.c31 {10, WEAPON_CLASS},
58 {12, WEAPON_CLASS},
69 {20, WEAPON_CLASS},
359 GEM_CLASS, SPBOOK_CLASS, WEAPON_CLASS, TOOL_CLASS, 0
391 case WEAPON_CLASS:
H A Dobjnam.c276 case WEAPON_CLASS:
632 case WEAPON_CLASS:
822 otmp->oclass != WEAPON_CLASS &&
1250 WEAPON_CLASS, ARMOR_CLASS, ARMOR_CLASS, TOOL_CLASS, FOOD_CLASS,
1517 { "sword", WEAPON_CLASS, SHORT_SWORD, KATANA },
2479 ((oclass == WEAPON_CLASS && is_ammo(otmp))
2491 else if (oclass == ARMOR_CLASS || oclass == WEAPON_CLASS ||
H A Dinvent.c805 if(*let == WEAPON_CLASS &&
883 ((otmp->oclass == WEAPON_CLASS && !is_pick(otmp) &&
1170 { ARMOR_CLASS, WEAPON_CLASS, RING_CLASS, AMULET_CLASS, TOOL_CLASS, 0 };
1277 } else if (oc_of_sym == WEAPON_CLASS &&
2346 if ((obj->oclass==WEAPON_CLASS || obj->oclass==ARMOR_CLASS) &&
2758 return (obj->oclass == WEAPON_CLASS
H A Dobjects.c62 WEAPON_CLASS, prob, 0, \
68 WEAPON_CLASS, prob, 0, \
73 WEAPON_CLASS, prob, 0, \
H A Ddothrow.c25 { ALLOW_COUNT, COIN_CLASS, ALL_CLASSES, WEAPON_CLASS, 0 };
263 } else if (otmp->oclass == WEAPON_CLASS && throwing_weapon(otmp)) {
1140 if (obj->oclass == WEAPON_CLASS || is_weptool(obj) ||
1276 if (obj->oclass == WEAPON_CLASS || is_weptool(obj) ||
H A Do_init.c197 oclass != WEAPON_CLASS &&
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Du_init.c30 { BULLWHIP, 2, WEAPON_CLASS, 1, UNDEF_BLESS },
43 { TWO_HANDED_SWORD, 0, WEAPON_CLASS, 1, UNDEF_BLESS },
44 { AXE, 0, WEAPON_CLASS, 1, UNDEF_BLESS },
51 { CLUB, 1, WEAPON_CLASS, 1, UNDEF_BLESS },
52 { SLING, 2, WEAPON_CLASS, 1, UNDEF_BLESS },
59 { SCALPEL, 0, WEAPON_CLASS, 1, UNDEF_BLESS },
73 { LONG_SWORD, 1, WEAPON_CLASS, 1, UNDEF_BLESS },
74 { LANCE, 1, WEAPON_CLASS, 1, UNDEF_BLESS },
100 { MACE, 1, WEAPON_CLASS, 1, 1 },
113 { DAGGER, 1, WEAPON_CLASS,
[all...]
H A Dwield.c57 #define erodeable_wep(optr) ((optr)->oclass == WEAPON_CLASS \
103 unweapon = (obj->oclass == WEAPON_CLASS) ?
226 { ALL_CLASSES, ALLOW_NONE, WEAPON_CLASS, TOOL_CLASS, 0 };
228 { ALL_CLASSES, ALLOW_NONE, WEAPON_CLASS, 0 };
230 { ALL_CLASSES, ALLOW_NONE, GEM_CLASS, WEAPON_CLASS, 0 };
447 verb, (obj->oclass == WEAPON_CLASS) ? "weapon" : "tool");
463 if (obj->oclass != WEAPON_CLASS)
473 #define NOT_WEAPON(obj) (!is_weptool(obj) && obj->oclass != WEAPON_CLASS)
695 if(!uwep || (uwep->oclass != WEAPON_CLASS && !is_weptool(uwep))) {
H A Dshknam.c189 D_SHOP, {{90, ARMOR_CLASS}, {10, WEAPON_CLASS}, {0, 0}},
195 {"antique weapons outlet", WEAPON_CLASS, 5, D_SHOP,
196 {{90, WEAPON_CLASS}, {10, ARMOR_CLASS}, {0, 0}}, shkweapons},
H A Dweapon.c131 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp));
202 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp));
495 if (otmp->oclass == WEAPON_CLASS
1076 if (obj->oclass != WEAPON_CLASS && obj->oclass != TOOL_CLASS &&
H A Dengrave.c405 { ALL_CLASSES, ALLOW_NONE, TOOL_CLASS, WEAPON_CLASS, WAND_CLASS,
762 case WEAPON_CLASS:
1027 if ((otmp->oclass == WEAPON_CLASS) &&
H A Dmkobj.c31 {10, WEAPON_CLASS},
58 {12, WEAPON_CLASS},
69 {20, WEAPON_CLASS},
359 GEM_CLASS, SPBOOK_CLASS, WEAPON_CLASS, TOOL_CLASS, 0
391 case WEAPON_CLASS:
H A Dobjnam.c276 case WEAPON_CLASS:
632 case WEAPON_CLASS:
822 otmp->oclass != WEAPON_CLASS &&
1250 WEAPON_CLASS, ARMOR_CLASS, ARMOR_CLASS, TOOL_CLASS, FOOD_CLASS,
1517 { "sword", WEAPON_CLASS, SHORT_SWORD, KATANA },
2479 ((oclass == WEAPON_CLASS && is_ammo(otmp))
2491 else if (oclass == ARMOR_CLASS || oclass == WEAPON_CLASS ||
H A Dinvent.c805 if(*let == WEAPON_CLASS &&
883 ((otmp->oclass == WEAPON_CLASS && !is_pick(otmp) &&
1170 { ARMOR_CLASS, WEAPON_CLASS, RING_CLASS, AMULET_CLASS, TOOL_CLASS, 0 };
1277 } else if (oc_of_sym == WEAPON_CLASS &&
2346 if ((obj->oclass==WEAPON_CLASS || obj->oclass==ARMOR_CLASS) &&
2758 return (obj->oclass == WEAPON_CLASS
H A Dobjects.c62 WEAPON_CLASS, prob, 0, \
68 WEAPON_CLASS, prob, 0, \
73 WEAPON_CLASS, prob, 0, \
H A Ddothrow.c25 { ALLOW_COUNT, COIN_CLASS, ALL_CLASSES, WEAPON_CLASS, 0 };
263 } else if (otmp->oclass == WEAPON_CLASS && throwing_weapon(otmp)) {
1140 if (obj->oclass == WEAPON_CLASS || is_weptool(obj) ||
1276 if (obj->oclass == WEAPON_CLASS || is_weptool(obj) ||
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Dobj.h117 * #define is_sword(otmp) (otmp->oclass == WEAPON_CLASS && \
119 * #define is_blade(otmp) (otmp->oclass == WEAPON_CLASS && \
127 #define is_blade(otmp) (otmp->oclass == WEAPON_CLASS && \
130 #define is_axe(otmp) ((otmp->oclass == WEAPON_CLASS || \
133 #define is_pick(otmp) ((otmp->oclass == WEAPON_CLASS || \
136 #define is_sword(otmp) (otmp->oclass == WEAPON_CLASS && \
139 #define is_pole(otmp) ((otmp->oclass == WEAPON_CLASS || \
143 #define is_spear(otmp) (otmp->oclass == WEAPON_CLASS && \
146 #define is_launcher(otmp) (otmp->oclass == WEAPON_CLASS && \
149 #define is_ammo(otmp) ((otmp->oclass == WEAPON_CLASS || \
[all...]
H A Dobjclass.h126 #define WEAPON_CLASS 2 macro
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Dobj.h117 * #define is_sword(otmp) (otmp->oclass == WEAPON_CLASS && \
119 * #define is_blade(otmp) (otmp->oclass == WEAPON_CLASS && \
127 #define is_blade(otmp) (otmp->oclass == WEAPON_CLASS && \
130 #define is_axe(otmp) ((otmp->oclass == WEAPON_CLASS || \
133 #define is_pick(otmp) ((otmp->oclass == WEAPON_CLASS || \
136 #define is_sword(otmp) (otmp->oclass == WEAPON_CLASS && \
139 #define is_pole(otmp) ((otmp->oclass == WEAPON_CLASS || \
143 #define is_spear(otmp) (otmp->oclass == WEAPON_CLASS && \
146 #define is_launcher(otmp) (otmp->oclass == WEAPON_CLASS && \
149 #define is_ammo(otmp) ((otmp->oclass == WEAPON_CLASS || \
[all...]
H A Dobjclass.h126 #define WEAPON_CLASS 2 macro

Completed in 205 milliseconds

123