cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhysicsJoint Class Referenceabstract

#include <CCPhysicsJoint.h>

Inheritance diagram for PhysicsJoint:
Object PhysicsJointFixed PhysicsJointLimit PhysicsJointPin PhysicsJointSliding PhysicsJointSpring

Public Member Functions

PhysicsBodygetBodyA ()
local getBodyA ()
PhysicsBodygetBodyB ()
local getBodyB ()
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 Release the ownership sometime soon automatically. More...
 
bool isSingleReference () const
 Returns a boolean value that indicates whether there is only one reference to the object. More...
 
unsigned int retainCount () const
 Returns the object's current reference count. More...
 
virtual bool isEqual (const Object *object)
 Returns a boolean value that indicates whether this object and a given object are equal. More...
 
virtual void acceptVisitor (DataVisitor &visitor)
virtual void update (float dt)

Protected Member Functions

 PhysicsJoint ()
virtual ~PhysicsJoint ()=0
bool init (PhysicsBody *a, PhysicsBody *b)
var init ( var a, var b)
local init ( local a, local b)
PhysicsBodyInfobodyInfo (PhysicsBody *body) const
 PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't. More...
 
var bodyInfo ( var body)
 PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't. More...
 

Protected Attributes

PhysicsBody_bodyA
PhysicsBody_bodyB
var _bodyB
local _bodyB
PhysicsJointInfo_info
local _info
- Protected Attributes inherited from Object
unsigned int _reference
 count of references More...
 
var _reference
 count of references More...
 
local _reference
 count of references More...
 
unsigned int _autoReleaseCount
 count of autorelease More...
 
var _autoReleaseCount
 count of autorelease More...
 
local _autoReleaseCount
 count of autorelease More...
 

Friends

class PhysicsBody

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 

Constructor & Destructor Documentation

PhysicsJoint ( )
protected
var PhysicsJoint ( )
protected
local PhysicsJoint ( )
protected
virtual ~PhysicsJoint ( )
protectedpure virtual
var ~PhysicsJoint ( )
protectedpure virtual
local ~PhysicsJoint ( )
protectedpure virtual

Member Function Documentation

PhysicsBodyInfo* bodyInfo ( PhysicsBody body) const
protected

PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't.

so this method is use for subclasses to catch the bodyInfo from PhysicsBody.

var bodyInfo ( var  body)
protected

PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't.

so this method is use for subclasses to catch the bodyInfo from PhysicsBody.

local bodyInfo ( local  body)
protected

PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't.

so this method is use for subclasses to catch the bodyInfo from PhysicsBody.

PhysicsBody* getBodyA ( )
inline
var getBodyA ( )
inline
local getBodyA ( )
inline
PhysicsBody* getBodyB ( )
inline
var getBodyB ( )
inline
local getBodyB ( )
inline
bool init ( PhysicsBody a,
PhysicsBody b 
)
protected
var init ( var  a,
var  b 
)
protected
local init ( local  a,
local  b 
)
protected

Friends And Related Function Documentation

friend class PhysicsBody
friend
var PhysicsBody
friend
local PhysicsBody
friend

Member Data Documentation

PhysicsBody* _bodyA
protected
var _bodyA
protected
local _bodyA
protected
PhysicsBody* _bodyB
protected
var _bodyB
protected
local _bodyB
protected
PhysicsJointInfo* _info
protected
var _info
protected
local _info
protected

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