Definition in file util.h.
#include "filelink.h"
Go to the source code of this file.
Data Structures | |
| struct | coord |
| A coordinate. More... | |
| struct | scoord |
| A (signed short) coordinate. More... | |
| struct | rect |
| A rectangle. More... | |
| struct | direction |
| A heading (one of eight cardinal directions). More... | |
| struct | range |
| A numeric range. More... | |
| struct | lrange |
| A numeric range. More... | |
| struct | draw_string_info |
Defines | |
| #define | COORD(a, b) construct_coord(a, b) |
| #define | RECT(a, b, c, d) construct_rect(a,b,c,d) |
| #define | SRANGE(a, b) construct_range((a),(b)) |
| #define | DIRECTION(a, b) (construct_direction((a),(b))) |
| #define | RANGE(a, b) xrandom( ((a)<<8)+(b) ) |
| #define | distancesquare(x1, y1, x2, y2) ( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) ) |
| #define | call_aifunc call_usefunc |
| #define | call_chatfunc call_throwhitfunc |
| #define | call_killfunc call_throwhitfunc |
| #define | debug_malloc malloc_throw |
| #define | debug_free free |
| #define | debug_calloc calloc_throw |
| #define | debug_realloc realloc_throw |
Functions | |
| coord | construct_coord (uchar x, uchar y) |
| rect | construct_rect (uchar x, uchar y, uchar w, uchar h) |
| direction | construct_direction (schar x, schar y) |
| range | construct_range (uchar max, uchar min) |
| int | min (int a, int b) |
| int | max (int a, int b) |
|
|
Definition at line 155 of file util.h. Referenced by monst_anger(), and monstmove(). |
|
|
Definition at line 156 of file util.h. Referenced by monst_chat(). |
|
|
Definition at line 157 of file util.h. Referenced by monst_takedamage(). |
|
|
Definition at line 92 of file util.h. Referenced by init_layout(), initialize(), main_menu(), resize_map_store(), trace_path(), and UI_TF_Init(). |
|
|
Definition at line 178 of file util.h. Referenced by initialize(). |
|
|
Definition at line 177 of file util.h. Referenced by cleanup(), cleanup_items(), place_wandering_monsters(), and resize_map_store(). |
|
|
Definition at line 176 of file util.h. Referenced by init_discoveries(), init_items(), init_shuffle_tab(), init_spells(), load_level(), resize_map_store(), restore_game(), show_help_page(), and sys_init_data_file(). |
|
|
Definition at line 179 of file util.h. Referenced by add_item(), and gather_wandering_monsters(). |
|
|
|
|
|
Definition at line 140 of file util.h. Referenced by calc_light_tile(), monst_can_attack_player(), monst_detect_player(), monstcanmove(), monstmove(), monstmoveawayfromplayer(), monstmovetowardsplayer(), pet_move(), place_monster(), and webspinner_cower(). |
|
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 32 of file construct.c. |
|
||||||||||||
|
Definition at line 52 of file construct.c. References direction::x, and direction::y. |
|
||||||||||||
|
Definition at line 63 of file construct.c. References range::max, and range::min. |
|
||||||||||||||||||||
|
Definition at line 41 of file construct.c. References rect::extent, rect::topleft, w, coord::x, and coord::y. |
|
||||||||||||
|
Definition at line 37 of file sysutil.c. Referenced by follow_connection(), monst_takedamage(), plr_takedamage(), throw_item(), UI_TF_MoveCamera(), UI_TF_PlaceCamera(), and update_player(). |
|
||||||||||||
|
Definition at line 26 of file sysutil.c. Referenced by delta_facing(), display_scores(), and place_room(). |
1.3.6