SuperTuxKart
|
A UserPointer is stored as a user pointer in all bullet bodies. More...
#include <user_pointer.hpp>
Public Types | |
enum | UserPointerType { UP_UNDEF , UP_KART , UP_FLYABLE , UP_TRACK , UP_PHYSICAL_OBJECT , UP_ANIMATION } |
List of all possibles STK objects that are represented in the physics. | |
Public Member Functions | |
bool | is (UserPointerType t) const |
TriangleMesh * | getPointerTriangleMesh () const |
Moveable * | getPointerMoveable () const |
Flyable * | getPointerFlyable () const |
AbstractKart * | getPointerKart () const |
PhysicalObject * | getPointerPhysicalObject () const |
ThreeDAnimation * | getPointerAnimation () const |
void | set (PhysicalObject *p) |
void | set (AbstractKart *p) |
void | set (Flyable *p) |
void | set (TriangleMesh *p) |
void | set (ThreeDAnimation *p) |
void | zero () |
Private Attributes | |
void * | m_pointer |
UserPointerType | m_user_pointer_type |
A UserPointer is stored as a user pointer in all bullet bodies.
This allows easily finding the appropriate STK object for a bullet body.