From 5fc4ef91a5a82981c3becf54509a2ae64b2b4ec1 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 8 Oct 2009 14:24:43 +0200 Subject: Split LOS code from view.cc. los.cc: basic raycasting algorithm; losight(), see_grid() etc. ray.cc: ray_def implementation. mon-los.cc: monster_los This includes adding a bunch of #includes; there's probably some obsolete includes of view.h now. --- crawl-ref/source/ray.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/ray.h') diff --git a/crawl-ref/source/ray.h b/crawl-ref/source/ray.h index fabaa8bf82..617385f5eb 100644 --- a/crawl-ref/source/ray.h +++ b/crawl-ref/source/ray.h @@ -7,6 +7,9 @@ #ifndef RAY_H #define RAY_H +int shoot_ray(double accx, double accy, const double slope, + int maxrange, int xpos[], int ypos[]); + struct ray_def { public: -- cgit v1.2.3-54-g00ecf