There's a few things I'm doing in my current project where I need a 'lineOfSIght' method that checks for entities as well. (I have moving platforms which are, of course entities).
I'm not sure how to go about implementing it so if anyone else wants to do it I'd appreciate it ;P