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
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class TestController : public Layer
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
TestController();
|
|
|
|
~TestController();
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
void menuCallback(Object * pSender);
|
|
|
|
void closeCallback(Object * pSender);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
virtual void ccTouchesBegan(Set *pTouches, Event *pEvent);
|
|
|
|
virtual void ccTouchesMoved(Set *pTouches, Event *pEvent);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
private:
|
2013-06-20 14:17:10 +08:00
|
|
|
Point _beginPos;
|
|
|
|
Menu* _itemMenu;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|