/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/ |
H A D | o_init.c | 114 register char oclass; local 135 oclass = objects[first].oc_class; 137 while (last < NUM_OBJECTS && objects[last].oc_class == oclass) last++; 138 bases[(int)oclass] = first; 140 if (oclass == GEM_CLASS) { 173 error("init-prob error for class %d (%d%%)", oclass, sum); 187 int first, last, oclass; local 189 for (oclass = 1; oclass < MAXOCLASSES; oclass 377 char *s, oclass, prev_class, classes[MAXOCLASSES]; local [all...] |
H A D | write.c | 16 if (otmp->oclass == SPBOOK_CLASS) 97 typeword = (paper->oclass == SPBOOK_CLASS) ? "spellbook" : "scroll"; 125 first = bases[(int)paper->oclass]; 126 last = bases[(int)paper->oclass + 1] - 1; 150 } else if (by_descr && paper->oclass == SPBOOK_CLASS && 185 if (paper->oclass == SPBOOK_CLASS) { 204 if (paper->oclass == SPBOOK_CLASS) { 225 if (new_obj->oclass == SPBOOK_CLASS) {
|
H A D | invent.c | 57 if (otmp->oclass == COIN_CLASS) { 181 if (otmp->oclass == COIN_CLASS) otmp->owt = weight(otmp); 247 if (obj->oclass == COIN_CLASS) { 313 if (obj->oclass == COIN_CLASS) 492 if (obj->oclass == COIN_CLASS) { 670 if (obj->oclass == COIN_CLASS) return obj; 823 if (!*let || index(let, otmp->oclass) 858 ((otmp->oclass == FOOD_CLASS && otmp->otyp != MEAT_RING) || 859 (otmp->oclass == TOOL_CLASS && 862 (otmp->oclass 1978 int class_count, oclass, unpaid_count, itemcount; local 2598 int oclass = (let >= 1 && let < MAXOCLASSES) ? let : 0; local [all...] |
H A D | detect.c | 23 /* Recursively search obj for an object in class oclass and return 1st found */ 25 o_in(obj, oclass) 27 char oclass; 32 if (obj->oclass == oclass) return obj; 36 if (otmp->oclass == oclass) return otmp; 37 else if (Has_contents(otmp) && (temp = o_in(otmp, oclass))) 78 check_map_spot(x, y, oclass, material) 80 register char oclass; 301 char oclass = confused ? POTION_CLASS : FOOD_CLASS; local [all...] |
H A D | objnam.c | 261 switch (obj->oclass) { 470 Sprintf(buf,"glorkum %d %d %d", obj->oclass, typ, obj->spe); 593 obj->oclass != COIN_CLASS && 604 (obj->oclass == ARMOR_CLASS || 605 obj->oclass == RING_CLASS)) 627 switch(obj->oclass) { 802 if (otmp->oclass == COIN_CLASS) return FALSE; /* always fully ID'd */ 821 if (otmp->rknown || (otmp->oclass != ARMOR_CLASS && 822 otmp->oclass != WEAPON_CLASS && 824 otmp->oclass ! 1487 const char *name, oclass; member in struct:o_range 1784 char oclass; local [all...] |
H A D | wield.c | 57 #define erodeable_wep(optr) ((optr)->oclass == WEAPON_CLASS \ 103 unweapon = (obj->oclass == WEAPON_CLASS) ? 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) 619 } else if (target->oclass == SCROLL_CLASS) { 695 if(!uwep || (uwep->oclass != WEAPON_CLASS && !is_weptool(uwep))) { 705 if (otmp && otmp->oclass == SCROLL_CLASS) otyp = otmp->otyp;
|
H A D | read.c | 96 } else if (scroll->oclass != SCROLL_CLASS 97 && scroll->oclass != SPBOOK_CLASS) { 102 if (scroll->oclass == SPBOOK_CLASS) 122 if(scroll->oclass == SPBOOK_CLASS) { 196 if (obj->oclass == WAND_CLASS) return TRUE; 198 if (obj->oclass == RING_CLASS) 203 if (obj->oclass == TOOL_CLASS) 223 if (obj->oclass == WAND_CLASS) { 270 } else if (obj->oclass == RING_CLASS && 297 } else if (obj->oclass [all...] |
H A D | pickup.c | 118 c = def_oc_syms[(int)otmp->oclass]; 329 (index(valid_menu_classes, obj->oclass) != (char *)0)) 332 (obj->oclass != COIN_CLASS && obj->bknown && !obj->blessed && !obj->cursed))) 335 (obj->oclass != COIN_CLASS && obj->bknown && obj->blessed))) 338 (obj->oclass != COIN_CLASS && obj->bknown && obj->cursed))) 341 (obj->oclass != COIN_CLASS && !obj->bknown))) 355 (index(valid_menu_classes, obj->oclass) != (char *)0))) 369 && (index(valid_menu_classes, otmp->oclass) != (char *)0)); 548 if (!selective && oclasses[0] && !index(oclasses,obj->oclass)) 563 oclasses[0] = obj->oclass; [all...] |
H A D | dothrow.c | 50 if (obj->oclass == COIN_CLASS) { 58 if(obj->oclass == COIN_CLASS) return(throw_gold(obj)); 75 if(obj->oclass == COIN_CLASS && obj != uquiver) return(throw_gold(obj)); 240 otmp->oclass == GEM_CLASS && 248 } else if (otmp->oclass == GEM_CLASS) { 263 } else if (otmp->oclass == WEAPON_CLASS && throwing_weapon(otmp)) { 745 if (obj->oclass == POTION_CLASS) { 962 else if (obj->oclass != GEM_CLASS) 1140 if (obj->oclass == WEAPON_CLASS || is_weptool(obj) || 1141 obj->oclass [all...] |
H A D | weapon.c | 131 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp)); 202 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp)); 285 if (Is_weapon || otmp->oclass == GEM_CLASS || 286 otmp->oclass == BALL_CLASS || otmp->oclass == CHAIN_CLASS) { 413 if (otmp->oclass == GEM_CLASS && 495 if (otmp->oclass == WEAPON_CLASS 1076 if (obj->oclass != WEAPON_CLASS && obj->oclass != TOOL_CLASS && 1077 obj->oclass ! [all...] |
H A D | sit.c | 24 if (otmp->oclass == COIN_CLASS) { 332 if (otmp->oclass == COIN_CLASS) continue; 343 if (otmp->oclass == COIN_CLASS) continue;
|
H A D | u_init.c | 946 || (obj->oclass == SPBOOK_CLASS && 977 if (obj->oclass == RING_CLASS || 978 obj->oclass == SPBOOK_CLASS) 993 if (obj->oclass == WEAPON_CLASS || 994 obj->oclass == TOOL_CLASS) { 997 } else if (obj->oclass == GEM_CLASS && 1018 if(obj->oclass == ARMOR_CLASS){ 1038 if (obj->oclass == WEAPON_CLASS || is_weptool(obj) || 1045 if (obj->oclass == SPBOOK_CLASS &&
|
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/ |
H A D | o_init.c | 114 register char oclass; local 135 oclass = objects[first].oc_class; 137 while (last < NUM_OBJECTS && objects[last].oc_class == oclass) last++; 138 bases[(int)oclass] = first; 140 if (oclass == GEM_CLASS) { 173 error("init-prob error for class %d (%d%%)", oclass, sum); 187 int first, last, oclass; local 189 for (oclass = 1; oclass < MAXOCLASSES; oclass 377 char *s, oclass, prev_class, classes[MAXOCLASSES]; local [all...] |
H A D | write.c | 16 if (otmp->oclass == SPBOOK_CLASS) 97 typeword = (paper->oclass == SPBOOK_CLASS) ? "spellbook" : "scroll"; 125 first = bases[(int)paper->oclass]; 126 last = bases[(int)paper->oclass + 1] - 1; 150 } else if (by_descr && paper->oclass == SPBOOK_CLASS && 185 if (paper->oclass == SPBOOK_CLASS) { 204 if (paper->oclass == SPBOOK_CLASS) { 225 if (new_obj->oclass == SPBOOK_CLASS) {
|
H A D | invent.c | 57 if (otmp->oclass == COIN_CLASS) { 181 if (otmp->oclass == COIN_CLASS) otmp->owt = weight(otmp); 247 if (obj->oclass == COIN_CLASS) { 313 if (obj->oclass == COIN_CLASS) 492 if (obj->oclass == COIN_CLASS) { 670 if (obj->oclass == COIN_CLASS) return obj; 823 if (!*let || index(let, otmp->oclass) 858 ((otmp->oclass == FOOD_CLASS && otmp->otyp != MEAT_RING) || 859 (otmp->oclass == TOOL_CLASS && 862 (otmp->oclass 1978 int class_count, oclass, unpaid_count, itemcount; local 2598 int oclass = (let >= 1 && let < MAXOCLASSES) ? let : 0; local [all...] |
H A D | detect.c | 23 /* Recursively search obj for an object in class oclass and return 1st found */ 25 o_in(obj, oclass) 27 char oclass; 32 if (obj->oclass == oclass) return obj; 36 if (otmp->oclass == oclass) return otmp; 37 else if (Has_contents(otmp) && (temp = o_in(otmp, oclass))) 78 check_map_spot(x, y, oclass, material) 80 register char oclass; 301 char oclass = confused ? POTION_CLASS : FOOD_CLASS; local [all...] |
H A D | objnam.c | 261 switch (obj->oclass) { 470 Sprintf(buf,"glorkum %d %d %d", obj->oclass, typ, obj->spe); 593 obj->oclass != COIN_CLASS && 604 (obj->oclass == ARMOR_CLASS || 605 obj->oclass == RING_CLASS)) 627 switch(obj->oclass) { 802 if (otmp->oclass == COIN_CLASS) return FALSE; /* always fully ID'd */ 821 if (otmp->rknown || (otmp->oclass != ARMOR_CLASS && 822 otmp->oclass != WEAPON_CLASS && 824 otmp->oclass ! 1487 const char *name, oclass; member in struct:o_range 1784 char oclass; local [all...] |
H A D | wield.c | 57 #define erodeable_wep(optr) ((optr)->oclass == WEAPON_CLASS \ 103 unweapon = (obj->oclass == WEAPON_CLASS) ? 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) 619 } else if (target->oclass == SCROLL_CLASS) { 695 if(!uwep || (uwep->oclass != WEAPON_CLASS && !is_weptool(uwep))) { 705 if (otmp && otmp->oclass == SCROLL_CLASS) otyp = otmp->otyp;
|
H A D | read.c | 96 } else if (scroll->oclass != SCROLL_CLASS 97 && scroll->oclass != SPBOOK_CLASS) { 102 if (scroll->oclass == SPBOOK_CLASS) 122 if(scroll->oclass == SPBOOK_CLASS) { 196 if (obj->oclass == WAND_CLASS) return TRUE; 198 if (obj->oclass == RING_CLASS) 203 if (obj->oclass == TOOL_CLASS) 223 if (obj->oclass == WAND_CLASS) { 270 } else if (obj->oclass == RING_CLASS && 297 } else if (obj->oclass [all...] |
H A D | pickup.c | 118 c = def_oc_syms[(int)otmp->oclass]; 329 (index(valid_menu_classes, obj->oclass) != (char *)0)) 332 (obj->oclass != COIN_CLASS && obj->bknown && !obj->blessed && !obj->cursed))) 335 (obj->oclass != COIN_CLASS && obj->bknown && obj->blessed))) 338 (obj->oclass != COIN_CLASS && obj->bknown && obj->cursed))) 341 (obj->oclass != COIN_CLASS && !obj->bknown))) 355 (index(valid_menu_classes, obj->oclass) != (char *)0))) 369 && (index(valid_menu_classes, otmp->oclass) != (char *)0)); 548 if (!selective && oclasses[0] && !index(oclasses,obj->oclass)) 563 oclasses[0] = obj->oclass; [all...] |
H A D | dothrow.c | 50 if (obj->oclass == COIN_CLASS) { 58 if(obj->oclass == COIN_CLASS) return(throw_gold(obj)); 75 if(obj->oclass == COIN_CLASS && obj != uquiver) return(throw_gold(obj)); 240 otmp->oclass == GEM_CLASS && 248 } else if (otmp->oclass == GEM_CLASS) { 263 } else if (otmp->oclass == WEAPON_CLASS && throwing_weapon(otmp)) { 745 if (obj->oclass == POTION_CLASS) { 962 else if (obj->oclass != GEM_CLASS) 1140 if (obj->oclass == WEAPON_CLASS || is_weptool(obj) || 1141 obj->oclass [all...] |
H A D | weapon.c | 131 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp)); 202 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp)); 285 if (Is_weapon || otmp->oclass == GEM_CLASS || 286 otmp->oclass == BALL_CLASS || otmp->oclass == CHAIN_CLASS) { 413 if (otmp->oclass == GEM_CLASS && 495 if (otmp->oclass == WEAPON_CLASS 1076 if (obj->oclass != WEAPON_CLASS && obj->oclass != TOOL_CLASS && 1077 obj->oclass ! [all...] |
H A D | sit.c | 24 if (otmp->oclass == COIN_CLASS) { 332 if (otmp->oclass == COIN_CLASS) continue; 343 if (otmp->oclass == COIN_CLASS) continue;
|
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/ |
H A D | obj.h | 41 char oclass; /* object class */ member in struct:obj 117 * #define is_sword(otmp) (otmp->oclass == WEAPON_CLASS && \ 119 * #define is_blade(otmp) (otmp->oclass == WEAPON_CLASS && \ 122 * #define is_weptool(o) ((o)->oclass == TOOL_CLASS && \ 127 #define is_blade(otmp) (otmp->oclass == WEAPON_CLASS && \ 130 #define is_axe(otmp) ((otmp->oclass == WEAPON_CLASS || \ 131 otmp->oclass == TOOL_CLASS) && \ 133 #define is_pick(otmp) ((otmp->oclass == WEAPON_CLASS || \ 134 otmp->oclass == TOOL_CLASS) && \ 136 #define is_sword(otmp) (otmp->oclass [all...] |
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/ |
H A D | obj.h | 41 char oclass; /* object class */ member in struct:obj 117 * #define is_sword(otmp) (otmp->oclass == WEAPON_CLASS && \ 119 * #define is_blade(otmp) (otmp->oclass == WEAPON_CLASS && \ 122 * #define is_weptool(o) ((o)->oclass == TOOL_CLASS && \ 127 #define is_blade(otmp) (otmp->oclass == WEAPON_CLASS && \ 130 #define is_axe(otmp) ((otmp->oclass == WEAPON_CLASS || \ 131 otmp->oclass == TOOL_CLASS) && \ 133 #define is_pick(otmp) ((otmp->oclass == WEAPON_CLASS || \ 134 otmp->oclass == TOOL_CLASS) && \ 136 #define is_sword(otmp) (otmp->oclass [all...] |