Class hierarchy   Compound list   File list   Compound Members  

Collision2D Class Reference

Collision detection information for a sprite. More...

List of all members.

Public Members


Detailed Description

Collision detection information for a sprite.


Member Function Documentation

Collision2D::Collision2D(Bitmap* BM, Rect2D r)

Construct info base for this bitmap.

int Collision2D::pointInside(int x, int y)

Returns non-zero value if the specified point is inside the borders of the sprite's entity.

int Collision2D::collision(Collision2D& C, int dx, int dy)

Check if there is a collision with this object.

Returns non-zero value if a collision occurred. dx,dy specify the offset location of the given object from this one.


The documentation for this class was generated from the following file: