mirror of https://github.com/axmolengine/axmol.git
39 lines
547 B
C++
Executable File
39 lines
547 B
C++
Executable File
#ifndef __CCBOOL_H__
|
|
#define __CCBOOL_H__
|
|
|
|
#include "CCObject.h"
|
|
|
|
NS_CC_BEGIN
|
|
|
|
/**
|
|
* @addtogroup data_structures
|
|
* @{
|
|
*/
|
|
|
|
class CC_DLL CCBool : public CCObject
|
|
{
|
|
public:
|
|
CCBool(bool v)
|
|
: m_bValue(v) {}
|
|
bool getValue() const {return m_bValue;}
|
|
|
|
static CCBool* create(bool v)
|
|
{
|
|
CCBool* pRet = new CCBool(v);
|
|
if (pRet)
|
|
{
|
|
pRet->autorelease();
|
|
}
|
|
return pRet;
|
|
}
|
|
private:
|
|
bool m_bValue;
|
|
};
|
|
|
|
// end of data_structure group
|
|
/// @}
|
|
|
|
NS_CC_END
|
|
|
|
#endif /* __CCBOOL_H__ */
|