5daad4bc
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
|
//
// ToyTouchableSprite.h
// SteveMaggieCpp
//
// Created by Katarzyna Kalinowska-Górska on 17.05.2017.
//
//
#ifndef ToyTouchableSprite_h
#define ToyTouchableSprite_h
#include "ToyPlainSprite.h"
class ToyTouchableSprite : public ToyPlainSprite
{
public:
static ToyTouchableSprite* createWithFile(const std::string& filename);
virtual bool initWithFile(const std::string& filename) override;
bool interactionEnabled;
std::function<void(ToyTouchableSprite*)> touchBeganCallback;
protected:
virtual void configureTouchHandlers();
};
#endif /* ToyTouchableSprite_h */
|