Entities/Object: Add some Position const& overloads to distance/angle methods for usability.
This commit is contained in:
1 parent
9b89458cc8
commit
74c4c208c9
4 files changed
+35
-13
No files matched your search
@@ -534,7 +534,8 @@ class TC_GAME_API WorldObject : public Object, public WorldLocation
|
||||
bool isInFront(WorldObject const* target, float arc = float(M_PI)) const;
|
||||
bool isInBack(WorldObject const* target, float arc = float(M_PI)) const;
|
||||
|
||||
bool IsInBetween(WorldObject const* obj1, WorldObject const* obj2, float size = 0) const;
|
||||
bool IsInBetween(Position const& pos1, Position const& pos2, float size = 0) const;
|
||||
bool IsInBetween(WorldObject const* obj1, WorldObject const* obj2, float size = 0) const { return obj1 && obj2 && IsInBetween(obj1->GetPosition(), obj2->GetPosition(), size); }
|
||||
|
||||
virtual void CleanupsBeforeDelete(bool finalCleanup = true); // used in destructor or explicitly before mass creature delete to remove cross-references to already deleted units
|
||||
|
||||
|
||||
Reference in new issue
Block a user