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 ()
local 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
var PhysicsShapeInfo ( var  shape)
protected
local PhysicsShapeInfo ( local  shape)
protected
~PhysicsShapeInfo ( )
protected
var ~PhysicsShapeInfo ( )
protected
local ~PhysicsShapeInfo ( )
protected

Member Function Documentation

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

Friends And Related Function Documentation

friend class PhysicsShape
friend
var PhysicsShape
friend
local PhysicsShape
friend

Member Data Documentation

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

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