mirror of https://github.com/axmolengine/axmol.git
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
|
|
#include "support/data_support/ccCArray.h"
|
|
|
|
|
|
|
|
namespace cocos2d
|
|
{
|
|
|
|
class CCArray : public CCObject
|
|
{
|
|
|
|
static CCArray* array();
|
|
static CCArray* arrayWithCapacity(unsigned int capacity);
|
|
static CCArray* arrayWithArray(CCArray* otherArray);
|
|
|
|
bool init();
|
|
bool initWithCapacity(unsigned int capacity);
|
|
bool initWithArray(CCArray* otherArray);
|
|
|
|
unsigned int count();
|
|
unsigned int capacity();
|
|
unsigned int indexOfObject(CCObject* object);
|
|
CCObject* objectAtIndex(unsigned int index);
|
|
CCObject* lastObject();
|
|
CCObject* randomObject();
|
|
bool containsObject(CCObject* object);
|
|
|
|
void addObject(CCObject* object);
|
|
void addObjectsFromArray(CCArray* otherArray);
|
|
void insertObject(CCObject* object, unsigned int index);
|
|
|
|
void removeLastObject();
|
|
void removeObject(CCObject* object);
|
|
void removeObjectAtIndex(unsigned int index);
|
|
void removeObjectsInArray(CCArray* otherArray);
|
|
void removeAllObjects();
|
|
void fastRemoveObject(CCObject* object);
|
|
void fastRemoveObjectAtIndex(unsigned int index);
|
|
|
|
public:
|
|
ccArray* data;
|
|
};
|
|
|
|
}
|
|
|
|
|