helper functions for AI: testing if an object is in line of sight (and optionally if it's enabled), if a point is clear, and if an object is within a given angular field of view (optionally specified beyond a stock 45 degrees, as well as optionally checking if the target is enabled)

This commit is contained in:
Azaezel 2014-05-13 19:53:00 -05:00
parent 7a517d3cb1
commit 9342115b1e
2 changed files with 118 additions and 20 deletions

View file

@ -80,6 +80,9 @@ public:
void setAimLocation( const Point3F &location );
Point3F getAimLocation() const { return mAimLocation; }
void clearAim();
bool checkInLos(GameBase* target, bool _checkEnabled);
bool checkLosClear(Point3F _pos);
bool checkInFoV(GameBase* target, F32 camFov, bool _checkEnabled);
// Movement sets/gets
void setMoveSpeed( const F32 speed );