#ifndef __CONTROLLERACTION_H__ #define __CONTROLLERACTION_H__ #include "FairyGUIMacros.h" #include "cocos2d.h" NS_FGUI_BEGIN class GController; class ByteBuffer; class ControllerAction { public: static ControllerAction* createAction(int types); ControllerAction(); virtual ~ControllerAction(); void run(GController* controller, const std::string& prevPage, const std::string& curPage); virtual void setup(ByteBuffer * buffer); std::vector fromPage; std::vector toPage; protected: virtual void enter(GController* controller) = 0; virtual void leave(GController* controller) = 0; }; NS_FGUI_END #endif