229 void AcquireCollidesRefs();
233 std::list<Collideable *> mCollides;
virtual void Replace(Object *pFrom, Object *pTo)
Retarget every mCollides entry equal to pFrom at pTo.
virtual void FindCollisions(const Vector2 &point, std::list< Collision > &collisions)
Test a screen point against this object and append what it strikes to collisions.
void ReleaseCollidesRefs()
Drop this object's reference on every mCollides entry without emptying the list.
Collideable * Parent()
Report the collideable that hit-tests this one.
virtual void Copy(const Object *pSource, unsigned nFlags)
Copy the child list of pSource when nFlags requests it.
virtual void FindCollisions(const Segment &ray, std::list< Collision > &collisions)
Test a segment against this object and append what it strikes to collisions.
virtual ~Collideable()
Drop this object's references on its children.
virtual void Save(Stream &stream)
Write the revision and the mCollides list to stream.
virtual void Load(Stream &stream)
Replace the child list from stream.
void RemoveCollide(Collideable *pCollide)
Erase pCollide from mCollides.
void AddCollide(Collideable *pCollide)
Append pCollide to mCollides.
friend void CollectChildren(std::list< Object * > &objects, Collideable *pCollideable)
Append every collision descendant of a collideable.
Definition collectchildren.h:47
virtual void DumpText(Dbg &sink)
Write a description of this object to sink.
Collideable()
Construct a collideable with no children.
Sink that the engine formats its diagnostic and failure text into.
Definition dbg.h:33
Object()
Construct an unnamed object.
Byte stream that every renderer object serialises itself through.
Definition stream.h:31
The rendering engine.
Definition animhelper.h:3
One recorded intersection.
Definition collideable.h:62
Collideable * mObject
Definition collideable.h:63
float mDistance
Definition collideable.h:64
Line segment a collision query is run along.
Definition collideable.h:22
float mStart[4]
Definition collideable.h:23
float mEnd[4]
Definition collideable.h:24
Two-component vector, used for texture coordinates.
Definition vector2.h:10