1 #ifndef YAPOG_BOUNDINGBOXCOLLECTION_HPP
2 # define YAPOG_BOUNDINGBOXCOLLECTION_HPP
33 virtual const Vector2& GetPosition ()
const;
34 virtual const Vector2& GetSize ()
const;
36 virtual const Vector2& GetTopLeft ()
const;
37 virtual const Vector2& GetBottomRight ()
const;
38 virtual const Vector2& GetCenter ()
const;
40 virtual const FloatRect& GetRectangle ()
const;
42 virtual void Move (
const Vector2& offset);
43 virtual void Scale (
const Vector2& factor);
45 virtual void SetPosition (
const Vector2& position);
46 virtual void SetSize (
const Vector2& size);
51 virtual const int& GetZ ()
const;
52 virtual void SetZ (
int z);
54 virtual const int& GetH ()
const;
55 virtual void SetH (
int h);
60 virtual bool CollidesWith (
const ICollidable& other)
const;
61 virtual bool CollidesWith (
82 void AddBoundingBoxToCollidableArea (
BoundingBox* boundingBox);
83 void RemoveBoundingBoxFromCollidableArea (
BoundingBox* boundingBox);
85 virtual void HandleAddBoundingBoxToCollidableArea (
87 virtual void HandleRemoveBoundingBoxFromCollidableArea (
90 void AddBoundingBoxesToCollidableArea ();
91 void RemoveBoundingBoxesFromCollidableArea ();
101 #endif // YAPOG_BOUNDINGBOXCOLLECTION_HPP