Class CCPointArray

#include <Geode/cocos/actions/CCActionCatmullRom.h>
classCCPointArray:publiccocos2d::CCObject{ ... }

An Array that contain control points. Used by CCCardinalSplineTo and (By) and CCCatmullRomTo (and By) actions.

Examples0
Public static methods1
staticcocos2d::CCPointArray*create(
uintcapacity
)

creates and initializes a Points array with capacity

Public member functions12
boolinitWithCapacity(
uintcapacity
)

initializes a Catmull Rom config with a capacity hint

voidaddControlPoint(
cocos2d::CCPointcontrolPoint
)

appends a control point

voidinsertControlPoint(
cocos2d::CCPoint&controlPoint
,
uintindex
)

inserts a controlPoint at index

voidreplaceControlPoint(
cocos2d::CCPoint&controlPoint
,
uintindex
)

replaces an existing controlPoint at index

cocos2d::CCPointgetControlPointAtIndex(
uintindex
)

get the value of a controlPoint at a given index

voidremoveControlPointAtIndex(
uintindex
)

deletes a control point at a given index

uintcount()

returns the number of objects of the control point array

cocos2d::CCPointArray*reverse()

returns a new copy of the array reversed. User is responsible for releasing this copy

voidreverseInline()

reverse the current control point array inline, without generating a new one

virtualcocos2d::CCObject*copyWithZone()
No description provided
std::vector<cocos2d::CCPoint*>const*getControlPoints()
No description provided
voidsetControlPoints()
No description provided
Fields0
Protected member functions0
Protected fields0