From d49f04f32345c12a726e02f8d338d8bd6efb7f66 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 3 Nov 2009 10:11:51 +0100 Subject: Refine ray_def assertions. ray_def::advance() and ray_def::bounce() now check pre- and post- conditions on validity. --- crawl-ref/source/ray.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/ray.h') diff --git a/crawl-ref/source/ray.h b/crawl-ref/source/ray.h index 92373eddea..d2bcb0c1e1 100644 --- a/crawl-ref/source/ray.h +++ b/crawl-ref/source/ray.h @@ -24,9 +24,10 @@ struct ray_def coord_def pos() const; bool advance(); - coord_def move_to_side(); void bounce(const reflect_grid &rg); void regress(); + + bool _valid() const; }; #endif -- cgit v1.2.3-54-g00ecf