Title / Description
Code #ifndef __ROOM_SCENE_H__ #define __ROOM_SCENE_H__ #include "cocos2d.h" #include "SimpleAudioEngine.h" #include <stdlib.h> #include "CCEditBox.h" #include "TileList.h" #include "UpdateTest_RoomScene.h" #include "MenuButtonMaker.h" #include "Render_RoomScene.h" using namespace cocos2d; class Room : public CCLayer { public: virtual bool init(); // there's no 'id' in cpp, so we recommand to return the exactly class pointer static cocos2d::CCScene* scene(); // static cocos2d::CCScene* Roomscene(); // a selector callback void menuCallback(CCObject* pSender); CREATE_FUNC(Room); // Function OverRide for Touching part implementation virtual void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent); virtual void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent); virtual void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent); virtual void CreateMenu(); //virtual void DiscriminateYaku(std::string strYaku); private: TileList CTileList; UpdateTest_RoomScene CUpdateTest; Render_RoomScene CRender; }; #endif // __ROOM_SCENE_H__ /* end of file */
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code