2012-04-19 14:35:52 +08:00
|
|
|
#ifndef _CONTROLLER_H_
|
|
|
|
#define _CONTROLLER_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
|
2012-06-14 05:19:13 +08:00
|
|
|
USING_NS_CC;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
class TestController : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TestController();
|
|
|
|
~TestController();
|
|
|
|
|
|
|
|
void menuCallback(CCObject * pSender);
|
|
|
|
void closeCallback(CCObject * pSender);
|
|
|
|
|
|
|
|
virtual void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
|
|
|
|
virtual void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);
|
|
|
|
|
|
|
|
private:
|
|
|
|
CCPoint m_tBeginPos;
|
|
|
|
CCMenu* m_pItemMenu;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|