qaf::CollisionStruct::Box Class Reference

#include <qafCollisionStruct.h>

Inheritance diagram for qaf::CollisionStruct::Box:

qaf::CollisionStruct List of all members.

Detailed Description

Represents rectangular collision boundaries.


Public Member Functions

 Box (float x, float y, float w, float h)
 Initializes the box's boundaries.
 Box ()
 Initializes the box's boundaries to (0, 0, 0, 0).
void setX (float _x)
void setY (float _y)
void setWidth (float _w)
void setHeight (float _h)
float getX ()
float getY ()
float getWidth ()
float getHeight ()
void render (float scrollX, float scrollY, unsigned long color)
bool collidesWith (CollisionStruct *otherStruct)
bool hasPoint (float x, float y)
bool pointIntersection (float x1, float y1, float x2, float y2, Vector2D *pContact, Vector2D *pNormal)
void move (float dx, float dy)


The documentation for this class was generated from the following file:
Generated on Sun Mar 25 12:32:13 2007 for Qaf Framework by  doxygen 1.5.1-p1