test

C++ code posted by clmk
created at 02 May 09:39

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#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 */
1.12 KB in 4 ms with coderay