diff options
Diffstat (limited to 'stone_soup/crawl-ref/source/direct.h')
-rw-r--r-- | stone_soup/crawl-ref/source/direct.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/stone_soup/crawl-ref/source/direct.h b/stone_soup/crawl-ref/source/direct.h deleted file mode 100644 index d3aec5816a..0000000000 --- a/stone_soup/crawl-ref/source/direct.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * File: direct.cc - * Summary: Functions used when picking squares. - * Written by: Linley Henzell - * - * Change History (most recent first): - * - * <1> -/--/-- LRH Created - */ - - -#ifndef DIRECT_H -#define DIRECT_H - -#include "externs.h" -#include "enum.h" - -#define STD_DIRECTION_PROMPT "Which direction ([*+-] to target)? " - -// last updated 12may2000 {dlb} -/* *********************************************************************** - * called from: acr - debug - effects - it_use3 - item_use - spells1 - - * spells2 - spells3 - spells4 - * *********************************************************************** */ - -#define DIR_NONE 0 -#define DIR_TARGET 1 -#define DIR_DIR 2 - -void direction( struct dist &moves, int restricts = DIR_NONE, - int mode = TARG_ANY ); - -// last updated 12may2000 {dlb} -/* *********************************************************************** - * called from: acr - direct - * *********************************************************************** */ -void look_around( struct dist &moves, bool justLooking, int first_move = -1, - int mode = TARG_ANY ); - -bool in_los_bounds(int x, int y); -bool in_viewport_bounds(int x, int y); -bool in_los(int x, int y); -bool in_vlos(int x, int y); - -std::string feature_description(int mx, int my); - -inline int view2gridX(int vx) -{ - return (you.x_pos + vx - VIEW_CX); -} - -inline int view2gridY(int vy) -{ - return (you.y_pos + vy - VIEW_CY); -} - -inline int grid2viewX(int gx) -{ - return (gx - you.x_pos + VIEW_CX); -} - -inline int grid2viewY(int gy) -{ - return (gy - you.y_pos + VIEW_CY); -} - -#endif |