cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhysicsShapeInfo Class Reference

#include <CCPhysicsShapeInfo_chipmunk.h>

Public Member Functions

void add (cpShape *shape)
 
void remove (cpShape *shape)
 
void removeAll ()
 
void setGroup (cpGroup group)
 
void setBody (cpBody *body)
 
PhysicsShapegetShape () const
 
std::vector< cpShape * > & getShapes ()
 
cpBody * getBody () const
 
cpGroup getGourp () const
 

Static Public Member Functions

static std::unordered_map
< cpShape *, PhysicsShapeInfo * > & 
getMap ()
 
static cpBody * getSharedBody ()
 

Protected Member Functions

 PhysicsShapeInfo (PhysicsShape *shape)
 
 ~PhysicsShapeInfo ()
 

Protected Attributes

std::vector< cpShape * > _shapes
 
PhysicsShape_shape
 
cpBody * _body
 
cpGroup _group
 

Static Protected Attributes

static std::unordered_map
< cpShape *, PhysicsShapeInfo * > 
_map
 
static cpBody * _sharedBody
 

Friends

class PhysicsShape
 

Constructor & Destructor Documentation

PhysicsShapeInfo ( PhysicsShape shape)
protected
~PhysicsShapeInfo ( )
protected

Member Function Documentation

void add ( cpShape *  shape)
cpBody* getBody ( ) const
inline
cpGroup getGourp ( ) const
inline
static std::unordered_map<cpShape*, PhysicsShapeInfo*>& getMap ( )
inlinestatic
PhysicsShape* getShape ( ) const
inline
std::vector<cpShape*>& getShapes ( )
inline
static cpBody* getSharedBody ( )
inlinestatic
void remove ( cpShape *  shape)
void removeAll ( )
void setBody ( cpBody *  body)
void setGroup ( cpGroup  group)

Friends And Related Function Documentation

friend class PhysicsShape
friend

Member Data Documentation

cpBody* _body
protected
cpGroup _group
protected
std::unordered_map<cpShape*, PhysicsShapeInfo*> _map
staticprotected
PhysicsShape* _shape
protected
std::vector<cpShape*> _shapes
protected
cpBody* _sharedBody
staticprotected

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