diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-03 10:11:51 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-03 10:15:44 +0100 |
commit | d49f04f32345c12a726e02f8d338d8bd6efb7f66 (patch) | |
tree | 288d33a28a07b4eb98cc9eaf0fd72fc44847c8b4 /crawl-ref/source/ray.h | |
parent | 24cffd138886ef99a186281e0bf6cc4f8c21d670 (diff) | |
download | crawl-ref-d49f04f32345c12a726e02f8d338d8bd6efb7f66.tar.gz crawl-ref-d49f04f32345c12a726e02f8d338d8bd6efb7f66.zip |
Refine ray_def assertions.
ray_def::advance() and ray_def::bounce() now check pre- and post-
conditions on validity.
Diffstat (limited to 'crawl-ref/source/ray.h')
-rw-r--r-- | crawl-ref/source/ray.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |