Blame view

ios/Runner/Wowgame/Classes/game_food/TouchableSprite.h 610 Bytes
cb213901   xiaoyu   添加一个游戏的源码和编译选项
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
  //
  //  TouchableSprite.h
  //  SteveMaggieCpp
  //
  //  Created by Katarzyna Kalinowska-Górska on 17.05.2017.
  //
  //
  
  #ifndef TouchableSprite_h
  #define TouchableSprite_h
  
  #include "PlainSprite.h"
  
  class TouchableSprite : public PlainSprite
  {
      public:
      
          static TouchableSprite* createWithFile(const std::string& filename);
          virtual bool initWithFile(const std::string& filename) override;
      
          bool interactionEnabled;
          std::function<void(TouchableSprite*)> touchBeganCallback;
      
      protected:
          virtual void configureTouchHandlers();
  };
  
  #endif /* TouchableSprite_h */