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

An edge polygon shape. More...

#include <CCPhysicsShape.h>

Inheritance diagram for PhysicsShapeEdgePolygon:
PhysicsShape Object

Static Public Member Functions

static PhysicsShapeEdgePolygoncreate (PhysicsBody *body, Point *points, int count, float border=1)
local create ( local body, local points, local count, local 1)

Protected Member Functions

bool init (PhysicsBody *body, Point *points, int count, float border=1)
var init ( var body, var points, var count, var 1)
local init ( local body, local points, local count, local 1)
 PhysicsShapeEdgePolygon ()
virtual ~PhysicsShapeEdgePolygon ()
var ~PhysicsShapeEdgePolygon ()
local ~PhysicsShapeEdgePolygon ()
- 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

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

An edge polygon shape.

Constructor & Destructor Documentation

PhysicsShapeEdgePolygon ( )
protected
var PhysicsShapeEdgePolygon ( )
protected
local PhysicsShapeEdgePolygon ( )
protected
virtual ~PhysicsShapeEdgePolygon ( )
protectedvirtual
var ~PhysicsShapeEdgePolygon ( )
protectedvirtual
local ~PhysicsShapeEdgePolygon ( )
protectedvirtual

Member Function Documentation

static PhysicsShapeEdgePolygon*
create
( PhysicsBody body,
Point points,
int  count,
float  border = 1 
)
static
var create ( var  body,
var  points,
var  count,
var  border = 1 
)
static
local create ( local  body,
local  points,
local  count,
local  border = 1 
)
static
bool init ( PhysicsBody body,
Point points,
int  count,
float  border = 1 
)
protected
var init ( var  body,
var  points,
var  count,
var  border = 1 
)
protected
local init ( local  body,
local  points,
local  count,
local  border = 1 
)
protected

Friends And Related Function Documentation

friend class PhysicsBody
friend
var PhysicsBody
friend
local PhysicsBody
friend

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