cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
1
|
//
|
5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
2
|
// ToyBlockingActionParser.h
|
cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
3
4
5
6
7
8
|
// SteveMaggieCpp
//
// Created by Katarzyna Kalinowska-Górska on 31.05.2017.
//
//
|
5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
9
10
|
#ifndef ToyBlockingActionParser_h
#define ToyBlockingActionParser_h
|
cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
11
|
|
5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
12
13
|
#include "ToyActionParser.h"
#include "ToyColourableSprite.h"
|
cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
14
|
|
5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
15
|
class ToyBlockingActionParser
|
cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
16
17
18
|
{
public:
|
5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
19
|
static ToyBlockingActionParser& getInstance()
|
cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
20
|
{
|
5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
21
|
static ToyBlockingActionParser instance;
|
cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
22
23
24
25
26
27
28
29
30
31
32
33
|
return instance;
};
cocos2d::Action* parseJSONAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished = true);
protected:
cocos2d::Action* parseCallFunctionWithBlockingAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
cocos2d::Action* parseWaitForTouchAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
cocos2d::Action* parseWaitForPaletteComponentAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
cocos2d::Action* parseWaitForDragAndDropAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
cocos2d::Action* parseWaitForObjectUnlockAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
|
5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
34
|
std::function<void()> parseWaitForObjectUnlockActionFunction_ToyColourableSprite(ToyColourableSprite* unlockingObject, const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
|
cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
35
36
37
38
39
|
void runCompletingActions(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, int indexForConditionedActions = 0);
};
|
5daad4bc
xiaoyu
游戏源码添加编译(现存问题:游戏内...
|
40
|
#endif /* ToyBlockingActionParser_h */
|