mirror of https://github.com/axmolengine/axmol.git
issue #18, debug, change description
This commit is contained in:
parent
e3d34da47e
commit
e08807083c
|
@ -41,12 +41,10 @@ CCCamera::~CCCamera(void)
|
|||
{
|
||||
}
|
||||
|
||||
string CCCamera::description(void)
|
||||
char * CCCamera::description(void)
|
||||
{
|
||||
char des[100];
|
||||
sprintf_s(des, 100, "<CCCamera | center = (%.2f,%.2f,%.2f)>", m_fCenterX, m_fCenterY, m_fCenterZ);
|
||||
string ret(des);
|
||||
|
||||
char *ret = new char[100];
|
||||
sprintf_s(ret, 100, "<CCCamera | center = (%.2f,%.2f,%.2f)>", m_fCenterX, m_fCenterY, m_fCenterZ);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -52,12 +52,10 @@ CCAction * CCAction::action()
|
|||
return pRet;
|
||||
}
|
||||
|
||||
std::string CCAction::description()
|
||||
char * CCAction::description()
|
||||
{
|
||||
char des[100] ;
|
||||
sprintf_s(des, 100, "<CCAction | Tag = %d>", m_nTag);
|
||||
std::string ret(des);
|
||||
|
||||
char *ret = new char[100] ;
|
||||
sprintf_s(ret, 100, "<CCAction | Tag = %d>", m_nTag);
|
||||
return ret;
|
||||
}
|
||||
NSObject* CCAction::copyWithZone(NSZone *pZone)
|
||||
|
|
|
@ -405,12 +405,10 @@ void CCNode::cleanup()
|
|||
}
|
||||
|
||||
|
||||
std::string CCNode::description()
|
||||
char * CCNode::description()
|
||||
{
|
||||
char des[100] ;
|
||||
sprintf_s(des, 100, "<CCNode | Tag = %d>", m_nTag);
|
||||
std::string ret(des);
|
||||
|
||||
char *ret = new char[100] ;
|
||||
sprintf_s(ret, 100, "<CCNode | Tag = %d>", m_nTag);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
CCAction(void);
|
||||
virtual ~CCAction(void);
|
||||
|
||||
std::string description();
|
||||
char * description();
|
||||
|
||||
virtual NSObject* copyWithZone(NSZone *pZone);
|
||||
|
||||
|
@ -125,7 +125,7 @@ class CCX_DLL CCRepeatForever : public CCAction
|
|||
{
|
||||
public:
|
||||
CCRepeatForever(){}
|
||||
~CCRepeatForever();
|
||||
virtual ~CCRepeatForever();
|
||||
|
||||
CCRepeatForever* initWithAction(CCIntervalAction *pAction);
|
||||
virtual NSObject* copyWithZone(NSZone *pZone);
|
||||
|
|
|
@ -72,7 +72,7 @@ protected:
|
|||
|
||||
public:
|
||||
CCAtlasNode();
|
||||
~CCAtlasNode();
|
||||
virtual ~CCAtlasNode();
|
||||
|
||||
/** creates a CCAtlasNode with an Atlas file the width and height of each item and the quantity of items to render*/
|
||||
static CCAtlasNode * atlasWithTileFile(const char* tile,int tileWidth, int tileHeight, int itemsToRender);
|
||||
|
|
|
@ -50,7 +50,7 @@ public:
|
|||
CCCamera(void);
|
||||
~CCCamera(void);
|
||||
|
||||
std::string description(void);
|
||||
char * description(void);
|
||||
|
||||
// sets the dirty value
|
||||
void setDirty(bool bValue);
|
||||
|
|
|
@ -225,7 +225,7 @@ public:
|
|||
|
||||
virtual ~CCNode();
|
||||
|
||||
std::string description(void);
|
||||
char * description(void);
|
||||
|
||||
/** allocates and initializes a node.
|
||||
The node will be created as "autorelease".
|
||||
|
|
|
@ -46,7 +46,7 @@ protected:
|
|||
public:
|
||||
|
||||
CCPVRTexture();
|
||||
~CCPVRTexture();
|
||||
virtual ~CCPVRTexture();
|
||||
|
||||
CCPVRTexture * initWithContentsOfFile(const char* path);
|
||||
/// @todo CCPVRTexture * initWithContentsOfURL(NSURL *url);
|
||||
|
|
|
@ -108,9 +108,9 @@ class CCX_DLL CCTexture2D : public NSObject
|
|||
|
||||
public:
|
||||
CCTexture2D();
|
||||
~CCTexture2D();
|
||||
virtual ~CCTexture2D();
|
||||
|
||||
std::string description(void);
|
||||
char * description(void);
|
||||
|
||||
/** Intializes with a texture2d with data */
|
||||
CCTexture2D * initWithData(const void* data, CCTexture2DPixelFormat pixelFormat, unsigned int pixelsWide, unsigned int pixelsHigh, CGSize contentSize);
|
||||
|
|
|
@ -65,9 +65,9 @@ protected:
|
|||
public:
|
||||
|
||||
CCTextureAtlas();
|
||||
~CCTextureAtlas();
|
||||
virtual ~CCTextureAtlas();
|
||||
|
||||
std::string description();
|
||||
char * description();
|
||||
|
||||
/** creates a TextureAtlas with an filename and with an initial capacity for Quads.
|
||||
* The TextureAtlas capacity can be increased in runtime.
|
||||
|
|
|
@ -55,9 +55,9 @@ private:
|
|||
public:
|
||||
|
||||
CCTextureCache();
|
||||
~CCTextureCache();
|
||||
virtual ~CCTextureCache();
|
||||
|
||||
std::string description(void);
|
||||
char * description(void);
|
||||
|
||||
/** Retruns ths shared instance of the cache */
|
||||
static CCTextureCache * sharedTextureCache();
|
||||
|
|
|
@ -105,7 +105,7 @@ protected:
|
|||
|
||||
public:
|
||||
CCOrientedTransitionScene();
|
||||
~CCOrientedTransitionScene();
|
||||
virtual ~CCOrientedTransitionScene();
|
||||
|
||||
/** creates a base transition with duration and incoming scene */
|
||||
static CCOrientedTransitionScene * transitionWithDuration(ccTime t,CCScene* scene, tOrientation orientation);
|
||||
|
|
|
@ -172,12 +172,10 @@ CCTexture2D * CCTexture2D::initWithData(const void *data, CCTexture2DPixelFormat
|
|||
}
|
||||
|
||||
|
||||
std::string CCTexture2D::description(void)
|
||||
char * CCTexture2D::description(void)
|
||||
{
|
||||
char des[100];
|
||||
sprintf_s(des, 100, "<CCTexture2D | Name = %u | Dimensions = %u x %u | Coordinates = (%.2f, %.2f)>", m_uName, m_uPixelsWide, m_uPixelsHigh, m_fMaxS, m_fMaxT);
|
||||
std::string ret(des);
|
||||
|
||||
char *ret = new char[100];
|
||||
sprintf_s(ret, 100, "<CCTexture2D | Name = %u | Dimensions = %u x %u | Coordinates = (%.2f, %.2f)>", m_uName, m_uPixelsWide, m_uPixelsHigh, m_fMaxS, m_fMaxT);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -143,12 +143,10 @@ CCTextureAtlas * CCTextureAtlas::initWithTexture(CCTexture2D *texture, unsigned
|
|||
return this;
|
||||
}
|
||||
|
||||
std::string CCTextureAtlas::description()
|
||||
char * CCTextureAtlas::description()
|
||||
{
|
||||
char des[100];
|
||||
sprintf_s(des, 100, "<CCTextureAtlas | totalQuads = %u>", m_uTotalQuads);
|
||||
std::string ret(des);
|
||||
|
||||
char *ret = new char[100];
|
||||
sprintf_s(ret, 100, "<CCTextureAtlas | totalQuads = %u>", m_uTotalQuads);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -92,12 +92,10 @@ void CCTextureCache::purgeSharedTextureCache()
|
|||
}
|
||||
|
||||
|
||||
std::string CCTextureCache::description()
|
||||
char * CCTextureCache::description()
|
||||
{
|
||||
char des[100];
|
||||
sprintf_s(des, 100, "<CCTextureCache | Number of textures = %u>", m_pTextures->count());
|
||||
std::string ret(des);
|
||||
|
||||
char *ret = new char[100];
|
||||
sprintf_s(ret, 100, "<CCTextureCache | Number of textures = %u>", m_pTextures->count());
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue