mirror of https://github.com/axmolengine/axmol.git
Merge pull request #713 from dumganhar/iss951_rm_NSMutableSet
fixed #951: removed definition of NSMutableSet.
This commit is contained in:
commit
437f27ff47
|
@ -80,7 +80,6 @@ private:
|
|||
std::set<CCObject *> *m_pSet;
|
||||
};
|
||||
|
||||
typedef CCSet NSMutableSet;
|
||||
}//namespace cocos2d
|
||||
|
||||
#endif // __NS_SET_H__
|
||||
|
|
|
@ -95,7 +95,7 @@ public:
|
|||
void setSwallowsTouches(bool bSwallowsTouches);
|
||||
|
||||
/** MutableSet that contains the claimed touches */
|
||||
NSMutableSet* getClaimedTouches(void);
|
||||
CCSet* getClaimedTouches(void);
|
||||
|
||||
/** initializes a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not */
|
||||
bool initWithDelegate(CCTouchDelegate *pDelegate, int nPriority, bool bSwallow);
|
||||
|
@ -106,7 +106,7 @@ public:
|
|||
|
||||
protected:
|
||||
bool m_bSwallowsTouches;
|
||||
NSMutableSet *m_pClaimedTouches;
|
||||
CCSet *m_pClaimedTouches;
|
||||
};
|
||||
}//namespace cocos2d
|
||||
|
||||
|
|
|
@ -191,7 +191,7 @@ void CCTargetedTouchHandler::setSwallowsTouches(bool bSwallowsTouches)
|
|||
m_bSwallowsTouches = bSwallowsTouches;
|
||||
}
|
||||
|
||||
NSMutableSet* CCTargetedTouchHandler::getClaimedTouches(void)
|
||||
CCSet* CCTargetedTouchHandler::getClaimedTouches(void)
|
||||
{
|
||||
return m_pClaimedTouches;
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ bool CCTargetedTouchHandler::initWithDelegate(CCTouchDelegate *pDelegate, int nP
|
|||
{
|
||||
if (CCTouchHandler::initWithDelegate(pDelegate, nPriority))
|
||||
{
|
||||
m_pClaimedTouches = new NSMutableSet();
|
||||
m_pClaimedTouches = new CCSet();
|
||||
m_bSwallowsTouches = bSwallow;
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue