Back to index

supertuxkart  0.5+dfsg1
Public Types | Public Member Functions | Private Attributes
UserPointer Class Reference

#include <user_pointer.hpp>

List of all members.

Public Types

enum  UserPointerType {
  UP_UNDEF, UP_KART, UP_FLYABLE, UP_TRACK,
  UP_MOVING_PHYSICS
}

Public Member Functions

bool is (UserPointerType t) const
TriangleMeshgetPointerTriangleMesh () const
MoveablegetPointerMoveable () const
FlyablegetPointerFlyable () const
KartgetPointerKart () const
MovingPhysicsgetPointerMovingPhysics () const
void set (MovingPhysics *p)
void set (Kart *p)
void set (Flyable *p)
void set (TriangleMesh *p)
 UserPointer ()
void zero ()

Private Attributes

void * m_pointer
UserPointerType m_user_pointer_type

Detailed Description

Definition at line 32 of file user_pointer.hpp.


Member Enumeration Documentation

Enumerator:
UP_UNDEF 
UP_KART 
UP_FLYABLE 
UP_TRACK 
UP_MOVING_PHYSICS 

Definition at line 35 of file user_pointer.hpp.


Constructor & Destructor Documentation

Definition at line 55 of file user_pointer.hpp.

{ zero();                          }

Here is the call graph for this function:


Member Function Documentation

Definition at line 44 of file user_pointer.hpp.

{return (Flyable*)m_pointer;       }
Kart* UserPointer::getPointerKart ( ) const [inline]

Definition at line 45 of file user_pointer.hpp.

{return (Kart*)m_pointer;          }

Definition at line 43 of file user_pointer.hpp.

{return (Moveable*)m_pointer;      }

Definition at line 46 of file user_pointer.hpp.

{return (MovingPhysics*)m_pointer; }

Definition at line 42 of file user_pointer.hpp.

{return (TriangleMesh*)m_pointer;  }
bool UserPointer::is ( UserPointerType  t) const [inline]

Definition at line 41 of file user_pointer.hpp.

{return m_user_pointer_type==t;    }

Here is the caller graph for this function:

void UserPointer::set ( MovingPhysics p) [inline]

Definition at line 47 of file user_pointer.hpp.

Here is the caller graph for this function:

void UserPointer::set ( Kart p) [inline]

Definition at line 49 of file user_pointer.hpp.

void UserPointer::set ( Flyable p) [inline]

Definition at line 51 of file user_pointer.hpp.

void UserPointer::set ( TriangleMesh p) [inline]

Definition at line 53 of file user_pointer.hpp.

void UserPointer::zero ( ) [inline]

Definition at line 56 of file user_pointer.hpp.

Here is the caller graph for this function:


Member Data Documentation

void* UserPointer::m_pointer [private]

Definition at line 38 of file user_pointer.hpp.

Definition at line 39 of file user_pointer.hpp.


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