#include <PhPolygonCollisionObject.h>
Public Member Functions | |
| PhCollisionObject () | |
| Construct. | |
| PhCollisionObject (PhPolygon *p, int r=0, PhObjectCallback c=NULL, void *o=NULL) | |
| Construct. | |
| void | setUserData (void *o) |
| Set user data. | |
| void * | getUserData () |
| Get user data. | |
| void | setCallback (PhObjectCallback c) |
| Set callback. | |
| PhObjectCallback | getCallback () |
| Get callback. | |
| void | setType (int r) |
| Set type. | |
| int | getType () |
| Get type. | |
| void | setPolygon (PhPolygon *p) |
| Set polygon. | |
| PhPolygon * | getPolygon () |
| Get polygon. | |
Protected Attributes | |
| void * | userdata |
| User data. | |
| int | RTTI |
| Type. | |
| PhPolygon * | poly |
| Polygon. | |
| PhObjectCallback | callback |
| Callback. | |
Provides a structed way to store collision objects for later testing.
| phoenix::PhCollisionObject::PhCollisionObject | ( | PhPolygon * | p, | |
| int | r = 0, |
|||
| PhObjectCallback | c = NULL, |
|||
| void * | o = NULL | |||
| ) |
Construct.
| p | The polygon. | |
| r | The type. | |
| c | The callback. | |
| o | The user data. |
| void phoenix::PhCollisionObject::setUserData | ( | void * | o | ) |
| void* phoenix::PhCollisionObject::getUserData | ( | ) |
| void phoenix::PhCollisionObject::setCallback | ( | PhObjectCallback | c | ) |
| PhObjectCallback phoenix::PhCollisionObject::getCallback | ( | ) |
| void phoenix::PhCollisionObject::setType | ( | int | r | ) |
| void phoenix::PhCollisionObject::setPolygon | ( | PhPolygon * | p | ) |
| PhPolygon* phoenix::PhCollisionObject::getPolygon | ( | ) |
void* phoenix::PhCollisionObject::userdata [protected] |
User data.
This is a void pointer, using RTTI you can make this store a pointer to a class and cast it in order to make changes.
int phoenix::PhCollisionObject::RTTI [protected] |
Type.
An integer representing the type of this object. This can be used to gather what this object is (A solid wall, a bullet, an enemy, etc.).
PhPolygon* phoenix::PhCollisionObject::poly [protected] |
Polygon.
The polygon used by the collision handle to test for collisions.
PhObjectCallback phoenix::PhCollisionObject::callback [protected] |
1.5.4