revised checkInLos and CheckFoV. boith now take all parameters as optional as suggested, with a target value of NULL resulting in checking the present one.

cleaned up internal usage of checkInLos, tightened the typemask used, and provided further documentation.
This commit is contained in:
Azaezel 2014-07-11 06:58:19 -05:00
parent 8aebb67aa1
commit ae55ad2b50
2 changed files with 44 additions and 21 deletions

View file

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