Add a ground_level method to actor.
commitdb74bba88abab63b5789e77dd85e031b72491df0
authorRaphael Langella <raphael.langella@gmail.com>
Fri, 11 Feb 2011 16:06:14 +0000 (11 17:06 +0100)
committerRaphael Langella <raphael.langella@gmail.com>
Fri, 11 Feb 2011 22:19:05 +0000 (11 23:19 +0100)
tree9a8c09df30de07d0639476dacc365132148459e5
parentffeed6d7ee9e0186cd222aa450651021917034ca
Add a ground_level method to actor.

Returns true if the actor is neither airborne nor clinging to walls.
As airborne and clinging checks are often done together, it should simplify
the code.
crawl-ref/source/actor.cc
crawl-ref/source/actor.h