Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

include/crogue.h File Reference


Detailed Description

Base include file, which includes everything else.

Definition in file crogue.h.

#include "config.h"
#include "machdep.h"
#include "util.h"
#include "rle.h"
#include "huffman.h"
#include "map.h"
#include "items.h"
#include "monst.h"
#include "ui.h"
#include "keyboard.h"
#include "timer.h"
#include "player.h"
#include "score.h"
#include "options.h"
#include "constdata.h"
#include "world.h"
#include "interpret.h"
#include "automatic.h"
#include "dll_import.h"
#include "dll_export.h"
#include "proto.h"

Go to the source code of this file.

Defines

#define isNull(a)   ((a).offset == 0)
#define MDESC(a)   find_monster_description(a)
#define MATTACK(a, b)   (MDESC(a)->attacks[b])
#define MAPDESC_CURRENT   (*w->current_map)
#define TILEDESC(a)   (w->tiledescs[(a).type])
#define ITEMDESCN(a)   (*((itemdesc*)deref_file_ptr( w->itemdescs[a] )))
#define ITEMDESC(a)   (ITEMDESCN((a).type))
#define INVENTORY(a)   (w->plr.inventory[(a)])
#define MAPSPEC(a)   (MAPDESC_CURRENT.ext[a])
#define TILESPEC(x, y)   MAPSPEC(w->t[(y)][(x)].special)
#define DATA_WRAP_PTR(a)   a
#define CONST   const
#define ECONST   const
#define SEG(a)

Variables

worldw
ECONST uchar tiles [128]
const schar dir [8][2]
const import_functions body_functions


Define Documentation

#define CONST   const
 

Definition at line 35 of file crogue.h.

#define DATA_WRAP_PTR  )     a
 

Definition at line 34 of file crogue.h.

#define ECONST   const
 

Definition at line 39 of file crogue.h.

#define INVENTORY  )     (w->plr.inventory[(a)])
 

Definition at line 24 of file crogue.h.

Referenced by award_item_points(), count_inventory(), debit_gold(), do_drop_item(), do_takeoff_item(), do_wear_item(), enchant_item(), filter_matches(), fix_rust(), give_item(), give_item_slip(), hotkey_item(), identify(), init_inventory(), item_by_sequence(), itemstring(), merge_item(), n_itemname(), num_player_equipment(), player_equipment(), player_gold(), removecurses(), rust_inventory(), sort_inventory(), split_item(), throw_readied_item(), timepass(), update_player(), and use_item().

#define isNull  )     ((a).offset == 0)
 

Definition at line 13 of file crogue.h.

Referenced by call_attackfunc(), call_genericfunc(), call_stepfunc(), call_throwhitfunc(), call_usefunc(), cause_confusion(), compress_monsters(), deref_file_ptr(), gather_wandering_monsters(), list_discoveries(), monst_attack_type(), monst_swing_monst(), monstbytile(), place_monster(), plr_walk(), shortitemname(), and timepass().

#define ITEMDESC  )     (ITEMDESCN((a).type))
 

Definition at line 23 of file crogue.h.

Referenced by append_armor_description(), apply_all_item_properties(), apply_item_property(), award_item_points(), can_stack(), debit_gold(), do_drop_item(), do_takeoff_item(), do_wear_item(), draw_item(), enchant_item(), filter_enchantable(), filter_matches(), filter_plural(), filter_unidentified(), filter_usable(), filter_wearable(), get_item_property(), give_item(), give_item_slip(), item_by_sequence(), item_value(), itemname(), itemstring(), num_player_equipment(), player_equipment(), player_gold(), randitem(), rust_inventory(), shortitemname(), sort_inventory(), split_item(), throw_item(), throw_readied_item(), and timepass().

#define ITEMDESCN  )     (*((itemdesc*)deref_file_ptr( w->itemdescs[a] )))
 

Definition at line 22 of file crogue.h.

Referenced by init_discoveries(), and list_discoveries().

#define MAPDESC_CURRENT   (*w->current_map)
 

Definition at line 19 of file crogue.h.

Referenced by addrandommonst(), base_coat(), deref_jump_table(), dll_fill_room(), draw(), enter_map(), gen_map(), make_connections(), place_items(), place_player_on_map(), and timepass().

#define MAPSPEC  )     (MAPDESC_CURRENT.ext[a])
 

Definition at line 26 of file crogue.h.

Referenced by follow_connection().

#define MATTACK a,
 )     (MDESC(a)->attacks[b])
 

Definition at line 17 of file crogue.h.

Referenced by monst_attack_plr(), monst_attack_type(), monst_hit_monst(), monst_hit_plr(), and monst_swing_monst().

#define MDESC  )     find_monster_description(a)
 

Definition at line 16 of file crogue.h.

Referenced by draw_tile(), monst_anger(), monst_attack_monst(), monst_attack_plr(), monst_attack_type(), monst_chat(), monst_heal(), monst_hit_monst(), monst_hit_plr(), monst_swing_monst(), monst_takedamage(), monstcanmove(), monstmove(), monstname(), player_can_see(), plr_attack(), plr_attack_monster_roll(), scare_monster(), throw_item(), timepass(), and tool_holysymbol().

#define SEG  ) 
 

Definition at line 89 of file crogue.h.

#define TILEDESC  )     (w->tiledescs[(a).type])
 

Definition at line 20 of file crogue.h.

Referenced by addrandommonst(), calc_light_tile(), connection_fill(), dll_fill_room(), follow_connection(), make_door(), place_corridors(), place_monster(), place_player_on_map(), plr_moveto(), plr_walk(), tile_is_passable(), and tile_is_transparent().

#define TILESPEC x,
 )     MAPSPEC(w->t[(y)][(x)].special)
 

Definition at line 27 of file crogue.h.

Referenced by auto_follow_connection(), and read_tutorial_sign().


Variable Documentation

const import_functions body_functions
 

Definition at line 87 of file crogue.h.

Referenced by link_data_file().

const schar dir[8][2]
 

Definition at line 83 of file crogue.h.

Referenced by add_mark(), plr_walk(), prompt_dir(), throw_item(), and trace_path().

ECONST uchar tiles[128]
 

Definition at line 79 of file crogue.h.

Referenced by _UI_TF_DrawTile(), and init_layout().

world* w
 

Definition at line 69 of file crogue.h.

Referenced by _UI_TF_DrawTile(), add_item(), add_mark(), add_timer(), addrandommonst(), apply_stat_mod_desc(), apply_timers(), attack_tile(), auto_follow_connection(), award_high_score(), award_item_points(), award_mark(), awardXP(), base_coat(), bigmap_place_corridor(), bigmap_place_room(), bigmap_place_vault(), bigmap_postpass(), bigmap_prepass(), calc_light(), calc_light_tile(), call_attackfunc(), call_genericfunc(), call_stepfunc(), call_throwhitfunc(), call_usefunc(), cast_spell(), cause_confusion(), cave_pass(), cb_cave(), cb_cave_partial(), cb_options_menu(), char_info(), cleanup(), cleanup_items(), cleanup_save(), compress_items(), compress_monsters(), compress_tiles(), confuse_monster(), connection_fill(), construct_rect(), count_adjacent_tiles(), count_items(), delete_item(), deref_file_ptr(), deref_file_ptr_partial(), deref_jump_table(), distribute_attributes(), dll_fill_room(), do_drop_item(), draw(), draw_item(), draw_tile(), end_game(), enter_map(), facing_towards(), find_monster_description(), follow_connection(), force_follow_connection(), full_redraw(), gather_wandering_monsters(), gen_map(), get_plr(), get_w(), give_gold(), give_item_slip(), hotkey_item(), hunger_status(), identify_type(), illuminate(), init_discoveries(), init_inventory(), init_items(), init_options(), init_player(), init_shuffle_tab(), init_skills(), init_spells(), init_timers(), initialize(), item_step(), learn_spell(), light_room(), link_data_file(), list_discoveries(), load_level(), load_options(), main_menu(), make_connections(), make_door(), make_noise(), manip_door(), marks_to_advance(), mod_from_attribute(), monst_anger(), monst_attack_plr(), monst_attack_type(), monst_battle_pet(), monst_can_attack_player(), monst_chat(), monst_detect_player(), monst_facing(), monst_heal(), monst_hit_plr(), monst_is_aligned_with_plr(), monst_is_peaceful(), monst_is_pet(), monst_remove(), monst_swing_monst(), monst_takedamage(), monstbytile(), monstcanmove(), monstmove(), monstmoveawayfromplayer(), monstmoverandomly(), monstmoveto(), monstmovetowardsplayer(), monstname(), numSpellsKnown(), options_menu(), pet_move(), pickup(), place_corridors(), place_doors(), place_fountain(), place_hole(), place_item(), place_items(), place_monster(), place_player_on_map(), place_player_randomly(), place_room(), place_shop(), place_wandering_monsters(), player_can_see(), player_facing(), playerclassname(), plr_attack(), plr_attack_monster_roll(), plr_mod_stat(), plr_move(), plr_moveto(), plr_restore_stat(), plr_run(), plr_search(), plr_takedamage(), plr_walk(), potion_numbness_expire(), print_skills(), prompt_dir(), refresh_spell(), remove_expired_timers(), replace(), resize_map_store(), restore_game(), save_game(), save_level(), scare_monster_force(), spell_confusion(), spellByIndex(), spellString(), study_book(), study_spell(), sys_cleanup(), sys_init_data_file(), throw_item(), tile_is_occupied(), tile_is_passable(), tile_is_transparent(), timepass(), tool_holysymbol(), top_item(), trace_path(), tracevision(), type_is_identified(), UI_MF_clear(), UI_MF_history(), UI_MF_sendmsg(), UI_TF_DrawEffect(), UI_TF_Scroll(), update_player(), vmessage(), weapon_skill_attack(), weapon_skill_damage(), webspinner_build(), and webspinner_cower().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6