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

A segment shape. More...

#include <CCPhysicsShape.h>

Inheritance diagram for PhysicsShapeEdgeSegment:
PhysicsShape Object

Protected Member Functions

bool init (PhysicsBody *body, Point a, Point b, float border=1)
 PhysicsShapeEdgeSegment ()
virtual ~PhysicsShapeEdgeSegment ()
- Protected Member Functions inherited from PhysicsShape
bool init (PhysicsBody *body, Type type)
var init ( var body, var type)
local init ( local body, local type)
PhysicsBodyInfobodyInfo () const
 PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't. More...
 
var bodyInfo ()
 PhysicsShape is PhysicsBody's friend class, but all the subclasses isn't. More...
 
void addToBody ()
 PhysicsShape ()
virtual ~PhysicsShape ()=0

Static Protected Member Functions

static PhysicsShapeEdgeSegmentcreate (PhysicsBody *body, Point a, Point b, float border=1)

Friends

class PhysicsBody

Additional Inherited Members

- Public Types inherited from PhysicsShape
enum  Type {
  UNKNOWN, CIRCLE, BOX, POLYGEN,
  EDGESEGMENT, EDGEBOX, EDGEPOLYGEN, EDGECHAIN
}
 
- Public Member Functions inherited from PhysicsShape
PhysicsBodygetBody ()
Type getType ()
- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 
- Protected Attributes inherited from PhysicsShape
PhysicsBody_body
PhysicsShapeInfo_info
local _info
Type _type

Detailed Description

A segment shape.

Constructor & Destructor Documentation

PhysicsShapeEdgeSegment ( )
protected
virtual ~PhysicsShapeEdgeSegment ( )
protectedvirtual

Member Function Documentation

static PhysicsShapeEdgeSegment*
create
( PhysicsBody body,
Point  a,
Point  b,
float  border = 1 
)
staticprotected
bool init ( PhysicsBody body,
Point  a,
Point  b,
float  border = 1 
)
protected

Friends And Related Function Documentation

friend class PhysicsBody
friend

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